:root {
  --ng-blue: #1d8ec8;
  --ng-blue-dark: #166f9b;
  --ng-navy: #243592;
  --ng-deep: #12195c;
  --ng-cyan: #47d3fc;
  --ng-ink: #14203f;
  --ng-muted: #55607a;
  --ng-soft: #f1f7fc;
}

.ng-page p { font-size: 1rem; color: var(--ng-muted); }
.ng-page h1, .ng-page h2 { font-weight: 800; letter-spacing: -.02em; color: var(--ng-ink); }
.ng-page h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.25; }
.ng-page h3 { font-size: 1.1rem; font-weight: 700; line-height: 1.35; color: var(--ng-ink); }
.ng-soft { background: var(--ng-soft); }
.ng-head { max-width: 780px; margin: 0 auto 2.5rem; text-align: center; }
.ng-head p { margin: .75rem 0 0; }
.ng-photo { width: 100%; height: auto; display: block; border-radius: 20px; box-shadow: 0 20px 50px rgba(20,32,63,.18); }
.ng-list { margin: 0 0 1.25rem; padding-left: 1.2rem; color: var(--ng-muted); }
.ng-list li { margin-bottom: .45rem; }

/* Buttons */
.ng-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .7rem 1.5rem; border: 2px solid var(--ng-cyan); border-radius: 8px;
  background: var(--ng-cyan); color: var(--ng-deep); font-weight: 600; font-size: .95rem; line-height: 1.3; text-decoration: none; cursor: pointer; transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.ng-btn:hover, .ng-btn:focus-visible { border-color: #75e0ff; background: #75e0ff; color: var(--ng-deep); }
.ng-btn i { font-size: .8em; transition: transform .2s ease; }
.ng-btn:hover i { transform: translateX(3px); }
.ng-btn-blue { border-color: var(--ng-blue); background: var(--ng-blue); color: #fff; }
.ng-btn-blue:hover, .ng-btn-blue:focus-visible { border-color: var(--ng-blue-dark); background: var(--ng-blue-dark); color: #fff; }
.ng-btn-light { border-color: rgba(255,255,255,.65); background: transparent; color: #fff; }
.ng-btn-light:hover { border-color: #fff; background: rgba(255,255,255,.14); color: #fff; }
.ng-btns { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Hero */
.ng-hero { background: radial-gradient(900px 420px at 85% 0, rgba(71,211,252,.35), transparent 70%), linear-gradient(120deg, #12195c 0%, #243592 60%, #1d8ec8 100%); }
.ng-page .ng-hero h1 { margin: 0 0 1rem; color: #fff; font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.12; }
.ng-page .ng-hero p { margin: 0 0 1.75rem; color: #dbe6ff; font-size: 1.1rem; }
.ng-hero-card { overflow: hidden; border-radius: 20px; background: #fff; box-shadow: 0 24px 56px rgba(0,0,0,.3); }
.ng-hero-tabs { display: flex; flex-wrap: nowrap; border-bottom: 0; background: var(--ng-soft); }
.ng-hero-tabs .nav-item { flex: 1; }
.ng-hero-tabs .nav-link { width: 100%; padding: .9rem 1rem; border: 0; border-radius: 0; background: none; color: #6a7590; font-weight: 700; font-size: .9rem; transition: color .2s ease, background-color .2s ease; }
.ng-hero-tabs .nav-link:hover { color: var(--ng-ink); }
.ng-hero-tabs .nav-link.active { background: #fff; color: var(--ng-blue); }
.ng-hero-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.ng-hero-card .ng-list { margin: 0; padding: 1.1rem 1.4rem 1.3rem 2.4rem; }

/* Products */
.ng-product-logo { height: 44px; width: auto; max-width: 220px; margin-bottom: 1rem; }
.ng-page .ng-product h2 { margin-bottom: .75rem; font-size: clamp(1.4rem, 2.4vw, 1.8rem); }

/* Cards */
.ng-card { height: 100%; display: flex; flex-direction: column; overflow: hidden; border-radius: 16px; background: #fff; box-shadow: 0 8px 28px rgba(20,32,63,.1); transition: transform .3s ease, box-shadow .3s ease; }
.ng-card:hover { transform: translateY(-5px); box-shadow: 0 18px 42px rgba(29,142,200,.2); }
.ng-img-wrapper { display: flex; align-items: center; justify-content: center; flex: none; height: 110px; padding: .6rem; background: linear-gradient(135deg, #f1f7fc, #e0edf8); }
.ng-img-wrapper img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.ng-card-body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: .9rem 1rem 1.05rem; }
.ng-text-wrapper { flex: 1; margin-bottom: .8rem; }
.ng-page .ng-card h3 { margin-bottom: .5rem; font-size: 1.15rem; }
.ng-page .ng-card p { margin: 0 0 .6rem; font-size: .92rem; line-height: 1.55; }
.ng-card .ng-list { margin: 0; padding-left: 1.1rem; font-size: .9rem; }
.ng-card .ng-list li { margin-bottom: .3rem; }
.ng-icon-card { height: 100%; padding: 1.6rem 1.4rem; border-radius: 16px; background: #fff; box-shadow: 0 8px 28px rgba(20,32,63,.1); }
.ng-icon-card img { width: 48px; height: 48px; margin-bottom: 1rem; }
.ng-page .ng-icon-card h3 { color: var(--ng-blue); }
.ng-page .ng-icon-card p { margin: 0; font-size: .92rem; line-height: 1.55; }

/* Deploy tabs */
.ng-tabs { flex-wrap: nowrap; justify-content: center; overflow-x: auto; scrollbar-width: none; gap: .25rem; margin-bottom: 2.5rem; border-bottom: 1px solid #d9e3ee; }
.ng-tabs::-webkit-scrollbar { display: none; }
.ng-tabs .nav-link { position: relative; white-space: nowrap; padding: 1rem 1.4rem; border: 0; border-radius: 0; background: none; color: #6a7590; font-weight: 700; font-size: .92rem; transition: color .2s ease; }
.ng-tabs .nav-link::after { content: ''; position: absolute; left: 1.4rem; right: 1.4rem; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--ng-blue); transform: scaleX(0); transition: transform .25s ease; }
.ng-tabs .nav-link:hover, .ng-tabs .nav-link.active { color: var(--ng-ink); background: none; }
.ng-tabs .nav-link.active::after { transform: scaleX(1); }
@media (max-width: 575.98px) { .ng-tabs { justify-content: flex-start; } }

/* Why Netgate */
.ng-why { height: 100%; padding: 1.6rem 1.4rem; border-radius: 16px; background: #fff; box-shadow: 0 8px 28px rgba(20,32,63,.1); }
.ng-why img { width: 44px; height: 44px; margin-bottom: 1rem; }
.ng-page .ng-why h3 { margin-bottom: .5rem; }
.ng-page .ng-why p { margin: 0 0 .75rem; font-size: .9rem; line-height: 1.55; }
.ng-page .ng-why .ng-know { padding-top: .75rem; margin: 0; border-top: 1px dashed #cfdcea; color: var(--ng-ink); }
.ng-know strong { color: var(--ng-blue); }

/* CTA */
.ng-cta { position: relative; padding: 5.5rem 0 4rem; background: linear-gradient(120deg, #12195c 0%, #243592 55%, #1d8ec8 100%); clip-path: polygon(0 3rem, 100% 0, 100% 100%, 0 100%); }
.ng-cta-section { background: var(--ng-soft); }
.ng-page .ng-cta h2 { margin: 0 0 1.5rem; color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.ng-cta .ng-btns { justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  .ng-btn, .ng-btn i, .ng-card { transition: none; }
}

/* Hero logo */
.ng-hero-logo {
  display: block;
  width: auto;
  height: 44px;
  margin: 0 0 1.5rem;
}
