@layer reset, tokens, base, layout, components, sections, utilities, responsive;

@layer reset {
  *,*::before,*::after { box-sizing: border-box; }
  * { margin: 0; }
  html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
  body { min-height: 100vh; -webkit-font-smoothing: antialiased; }
  img,svg { display: block; max-width: 100%; }
  a { color: inherit; }
  button,input,select,textarea { font: inherit; color: inherit; }
  table { border-collapse: collapse; width: 100%; }
  summary { cursor: pointer; }
  :focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; border-radius: 3px; }
}

@layer tokens {
  :root {
    --teal-900:#0c3f47; --teal-800:#103e46; --teal-700:#115e68; --teal-600:#1a7280;
    --teal-500:#1c8c9b; --teal-300:#7fc4ce; --teal-100:#e6f3f4; --teal-050:#f3fafa;
    --gold-600:#be7a12; --gold-500:#e0a02e; --gold-400:#f2c04e;
    --green:#2fa98c;
    --ink:#14323a; --muted:#5c7177; --line:#d5e6e7; --white:#ffffff;
    --shadow-sm:0 1px 2px rgba(12,63,71,.06);
    --shadow:0 10px 30px rgba(12,63,71,.10);
    --radius:10px; --radius-sm:6px; --radius-lg:18px;
    --wrap:1140px; --gap:clamp(1rem,3vw,2rem);
    --ff-head:"Host Grotesk",-apple-system,system-ui,Segoe UI,sans-serif;
    --ff-body:"Host Grotesk",-apple-system,system-ui,Segoe UI,sans-serif;
    --ff-mono:"JetBrains Mono",ui-monospace,SFMono-Regular,Menlo,monospace;
  }
}

@layer base {
  body { font-family: var(--ff-body); color: var(--ink); background: var(--white);
         font-size: 1.0625rem; line-height: 1.65; }
  h1,h2,h3,h4 { font-family: var(--ff-head); line-height: 1.15; color: var(--teal-900);
                font-weight: 700; letter-spacing: -0.01em; }
  h1 { font-size: clamp(2rem,5vw,3.1rem); }
  h2 { font-size: clamp(1.55rem,3.4vw,2.25rem); }
  h3 { font-size: clamp(1.2rem,2vw,1.45rem); }
  p { margin: 0 0 1rem; }
  a { text-decoration: none; }
  a:hover { text-decoration: underline; }
  .ng-eyebrow { font-family: var(--ff-mono); font-size: .72rem; letter-spacing: .22em;
                text-transform: uppercase; color: var(--teal-600); font-weight: 600; }
}

@layer layout {
  .ng-wrap { width: min(var(--wrap),92%); margin-inline: auto; }
  .ng-narrow { width: min(760px,92%); margin-inline: auto; }
  .ng-stack > * + * { margin-top: 1rem; }
  .ng-grid-2 { display: grid; gap: var(--gap); grid-template-columns: repeat(2,1fr); }
  .ng-grid-3 { display: grid; gap: var(--gap); grid-template-columns: repeat(3,1fr); }
  .ng-grid-4 { display: grid; gap: var(--gap); grid-template-columns: repeat(4,1fr); }
  .ng-cluster { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
  section { padding-block: clamp(2.6rem,6vw,4.4rem); }
}

@layer components {
  .ng-skip { position: absolute; left: -999px; top: 0; background: var(--teal-900);
             color: #fff; padding: .7rem 1rem; z-index: 200; }
  .ng-skip:focus { left: .5rem; top: .5rem; }

  /* ribbon */
  .ng-ribbon { background: var(--teal-900); color: #d8eef0; font-family: var(--ff-mono);
               font-size: .72rem; letter-spacing: .04em; text-align: center;
               padding: .45rem 1rem; }
  .ng-ribbon strong { color: var(--gold-400); font-weight: 600; }

  /* header / nav */
  .ng-head { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.97);
             border-bottom: 1px solid var(--line); }
  .ng-head-row { display: flex; align-items: center; justify-content: space-between;
                 gap: 1rem; padding-block: .7rem; }
  .ng-logo { display: flex; align-items: center; gap: .55rem; font-family: var(--ff-head);
             font-weight: 700; font-size: 1.2rem; color: var(--teal-900); letter-spacing: -.02em; }
  .ng-logo:hover { text-decoration: none; }
  .ng-logo svg { width: 30px; height: 30px; }
  .ng-logo small { display: block; font-family: var(--ff-mono); font-size: .56rem;
                   letter-spacing: .18em; color: var(--teal-600); text-transform: uppercase; }
  .ng-nav { display: flex; align-items: center; gap: 1.4rem; }
  .ng-nav a { font-weight: 500; font-size: .96rem; color: var(--teal-800); }
  .ng-nav a[aria-current="page"] { color: var(--gold-600); }
  .ng-burger { display: none; position: relative; z-index: 2; background: none; border: 1px solid var(--line);
               border-radius: var(--radius-sm); padding: .5rem .6rem; line-height: 0; }
  .ng-burger span { display: block; width: 20px; height: 2px; background: var(--teal-900); margin: 4px 0; }

  /* buttons */
  .ng-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
            font-family: var(--ff-head); font-weight: 700; border-radius: 999px;
            padding: .85rem 1.5rem; border: 1px solid transparent; cursor: pointer;
            text-align: center; min-height: 48px; transition: transform .12s ease, box-shadow .12s ease; }
  .ng-btn:hover { text-decoration: none; transform: translateY(-1px); }
  .ng-btn--gold { background: linear-gradient(180deg,var(--gold-400),var(--gold-500));
                  color: var(--teal-900); border-color: var(--gold-600);
                  box-shadow: 0 6px 16px rgba(190,122,18,.28); }
  .ng-btn--teal { background: var(--teal-700); color: #fff; }
  .ng-btn--ghost { background: #fff; color: var(--teal-800); border-color: var(--teal-300); }
  .ng-btn--lg { padding: 1rem 2rem; font-size: 1.08rem; }
  .ng-btn small { font-family: var(--ff-mono); font-weight: 500; font-size: .72rem; opacity: .85; }

  /* badges + checks */
  .ng-badges { display: flex; flex-wrap: wrap; gap: .5rem; }
  .ng-chip { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--ff-mono);
             font-size: .72rem; letter-spacing: .03em; background: var(--teal-100);
             color: var(--teal-800); border: 1px solid var(--line); border-radius: 999px;
             padding: .32rem .7rem; }
  .ng-check { color: var(--green); font-weight: 700; }

  /* cards */
  .ng-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
             padding: 1.4rem; box-shadow: var(--shadow-sm); }
  .ng-card h3 { margin-bottom: .4rem; }
  .ng-pillar { border-top: 4px solid var(--teal-500); }
  .ng-pillar .ng-num { font-family: var(--ff-mono); color: var(--gold-600); font-weight: 700; font-size: .8rem; }

  /* spec sheet / data tables */
  .ng-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
  table.ng-data { font-size: .96rem; }
  table.ng-data caption { text-align: left; font-family: var(--ff-mono); font-size: .72rem;
                          letter-spacing: .12em; text-transform: uppercase; color: var(--teal-600);
                          padding: .9rem 1rem; }
  table.ng-data th[scope="row"] { text-align: left; font-weight: 600; color: var(--teal-900);
                                   white-space: nowrap; }
  table.ng-data thead th { background: var(--teal-700); color: #fff; text-align: left;
                           font-family: var(--ff-mono); font-size: .74rem; letter-spacing: .06em;
                           text-transform: uppercase; padding: .7rem 1rem; }
  table.ng-data td, table.ng-data th { padding: .72rem 1rem; border-top: 1px solid var(--line);
                                        vertical-align: top; }
  table.ng-data tbody tr:nth-child(even) { background: var(--teal-050); }
  .ng-mono { font-family: var(--ff-mono); }

  /* tl;dr + callouts */
  .ng-tldr { background: var(--teal-050); border: 1px solid var(--line);
             border-left: 4px solid var(--gold-500); border-radius: var(--radius);
             padding: 1.2rem 1.4rem; }
  .ng-tldr .ng-eyebrow { color: var(--gold-600); }
  .ng-callout { background: var(--teal-900); color: #eaf6f7; border-radius: var(--radius-lg);
                padding: clamp(1.6rem,4vw,2.6rem); }
  .ng-callout h2, .ng-callout h3 { color: #fff; }
  .ng-callout a.ng-btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }

  /* takeaways */
  .ng-takeaways { list-style: none; padding: 0; display: grid; gap: .7rem; }
  .ng-takeaways li { padding-left: 1.8rem; position: relative; }
  .ng-takeaways li::before { content: ""; position: absolute; left: 0; top: .5em;
                             width: .7rem; height: .7rem; background: var(--gold-500);
                             border-radius: 2px; transform: rotate(45deg); }

  /* stats */
  .ng-stat { text-align: center; }
  .ng-stat b { display: block; font-family: var(--ff-head); font-size: clamp(1.8rem,4vw,2.6rem);
               color: var(--teal-700); line-height: 1; }
  .ng-stat span { font-family: var(--ff-mono); font-size: .72rem; letter-spacing: .08em;
                  text-transform: uppercase; color: var(--muted); }

  /* hero */
  .ng-hero { background: linear-gradient(170deg,var(--teal-050),var(--teal-100) 70%,#fff); }
  .ng-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: var(--gap); align-items: center; }
  .ng-hero img { margin-inline: auto; height: auto; max-width: 100%; filter: drop-shadow(0 22px 34px rgba(12,63,71,.22)); }
  .ng-rating { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--ff-mono);
               font-size: .8rem; color: var(--teal-800); }
  .ng-stars { color: var(--gold-500); letter-spacing: .1em; }

  /* pricing */
  .ng-price-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--gap); align-items: stretch; }
  .ng-price { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
              padding: 1.6rem 1.4rem; display: flex; flex-direction: column; text-align: center;
              box-shadow: var(--shadow-sm); position: relative; }
  .ng-price--feat { border: 2px solid var(--gold-500); box-shadow: var(--shadow); transform: translateY(-10px); }
  .ng-price .ng-flag { position: absolute; top: -.85rem; left: 50%; transform: translateX(-50%);
                       background: var(--gold-500); color: var(--teal-900); font-family: var(--ff-mono);
                       font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
                       padding: .25rem .8rem; border-radius: 999px; font-weight: 600; white-space: nowrap; }
  .ng-price h3 { font-size: 1.35rem; }
  .ng-price .ng-packshot { display: flex; justify-content: center; align-items: flex-end; min-height: 175px; }
  .ng-price .ng-packshot img { max-height: 175px; max-width: 100%; height: auto; width: auto;
                               filter: drop-shadow(0 10px 16px rgba(12,63,71,.18)); }
  .ng-price .ng-per { font-family: var(--ff-head); font-size: 2.6rem; color: var(--teal-700); font-weight: 700; line-height: 1; }
  .ng-price .ng-per sup { font-size: 1.1rem; top: -1rem; }
  .ng-price .ng-was { text-decoration: line-through; color: var(--muted); font-family: var(--ff-mono); font-size: .85rem; }
  .ng-price .ng-total { font-family: var(--ff-mono); font-size: .82rem; color: var(--ink); }
  .ng-price .ng-ship { font-size: .82rem; color: var(--muted); }
  .ng-price ul { list-style: none; padding: 0; text-align: left; font-size: .9rem; display: grid; gap: .35rem; margin: .6rem 0; }
  .ng-price ul li::before { content: "+ "; color: var(--green); font-weight: 700; }
  .ng-price .ng-btn { margin-top: auto; }

  /* testimonials */
  .ng-quote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
              padding: 1.3rem; box-shadow: var(--shadow-sm); }
  .ng-quote .ng-stars { font-size: .9rem; }
  .ng-who { display: flex; align-items: center; gap: .6rem; margin-top: .8rem; }
  .ng-avatar { width: 40px; height: 40px; border-radius: 999px; background: var(--teal-700);
               color: #fff; display: grid; place-items: center; font-weight: 700; font-family: var(--ff-head); }
  .ng-who small { color: var(--muted); display: block; }
  .ng-vb { font-family: var(--ff-mono); font-size: .64rem; color: var(--green); letter-spacing: .06em; }

  /* bars (review themes / distribution) */
  .ng-bar { display: grid; grid-template-columns: 150px 1fr 52px; gap: .8rem; align-items: center;
            margin-bottom: .55rem; font-size: .9rem; }
  .ng-bar .ng-track { background: var(--teal-100); border-radius: 999px; height: 12px; overflow: hidden; }
  .ng-bar .ng-fill { background: linear-gradient(90deg,var(--teal-500),var(--teal-700)); height: 100%; border-radius: 999px; }
  .ng-bar .ng-pct { font-family: var(--ff-mono); text-align: right; color: var(--teal-800); }

  /* faq / details */
  .ng-faq details { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: .7rem; }
  .ng-faq summary { padding: 1rem 1.2rem; font-family: var(--ff-head); font-weight: 600; color: var(--teal-900);
                    list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
  .ng-faq summary::-webkit-details-marker { display: none; }
  .ng-faq summary::after { content: "+"; color: var(--gold-600); font-weight: 700; }
  .ng-faq details[open] summary::after { content: "\2013"; }
  .ng-faq details > div { padding: 0 1.2rem 1.1rem; }

  /* glossary */
  dl.ng-gloss { display: grid; gap: .9rem; }
  dl.ng-gloss dt { font-weight: 700; color: var(--teal-900); font-family: var(--ff-head); }
  dl.ng-gloss dd { margin: 0; color: var(--muted); }

  /* breadcrumb */
  .ng-crumb { font-family: var(--ff-mono); font-size: .74rem; color: var(--muted); padding-block: .8rem; }
  .ng-crumb a { color: var(--teal-600); }
  .ng-crumb span { color: var(--ink); }

  /* byline */
  .ng-byline { font-size: .85rem; color: var(--muted); border-left: 3px solid var(--teal-300);
               padding-left: .9rem; margin: .4rem 0 1.4rem; }
  .ng-byline b { color: var(--teal-800); }

  /* contact form */
  .ng-form { display: grid; gap: .9rem; }
  .ng-form label { font-weight: 600; font-size: .9rem; color: var(--teal-900); display: grid; gap: .3rem; }
  .ng-form input, .ng-form select, .ng-form textarea { border: 1px solid var(--line);
            border-radius: var(--radius-sm); padding: .7rem .8rem; background: #fff; }
}

@layer sections {
  .ng-section-tint { background: var(--teal-050); }
  .ng-section-deep { background: var(--teal-900); color: #dceef0; }
  .ng-section-deep h2, .ng-section-deep h3 { color: #fff; }
  .ng-section-deep .ng-eyebrow { color: var(--gold-400); }
  .ng-lead { font-size: 1.18rem; color: var(--teal-800); }
  .ng-foot { background: var(--teal-900); color: #b9d6d9; padding-block: 3rem 1.5rem; font-size: .92rem; }
  .ng-foot h4 { color: #fff; font-size: .8rem; font-family: var(--ff-mono); letter-spacing: .12em;
                text-transform: uppercase; margin-bottom: .8rem; }
  .ng-foot a { color: #cfe7e9; }
  .ng-foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
  .ng-foot ul { list-style: none; padding: 0; display: grid; gap: .45rem; }
  .ng-foot .ng-disc { border-top: 1px solid rgba(255,255,255,.14); margin-top: 2rem; padding-top: 1.3rem;
                      font-size: .8rem; color: #8fb6ba; }
  .ng-foot .ng-mono { color: var(--gold-400); }
}

@layer utilities {
  .ng-center { text-align: center; }
  .ng-mt0 { margin-top: 0; }
  .ng-mb2 { margin-bottom: 2rem; }
  .ng-max60 { max-width: 60ch; }
  .ng-updated { font-family: var(--ff-mono); font-size: .74rem; color: var(--muted); }
  .ng-hide { display: none; }
}

@layer responsive {
  @media (max-width: 900px) {
    .ng-hero-grid { grid-template-columns: 1fr; text-align: center; }
    .ng-hero img { max-width: 320px; }
    .ng-price-grid { grid-template-columns: 1fr; }
    .ng-price--feat { transform: none; order: -1; }
    .ng-foot-grid { grid-template-columns: 1fr 1fr; }
    .ng-grid-3, .ng-grid-4, .ng-grid-2 { grid-template-columns: 1fr; }
    .ng-nav { position: fixed; inset: 0 0 0 auto; z-index: 1; width: min(80%,310px); flex-direction: column;
              align-items: flex-start; background: #fff; padding: 5.5rem 1.5rem 2rem; gap: 1.1rem;
              box-shadow: -10px 0 40px rgba(12,63,71,.18); transform: translateX(100%);
              transition: transform .25s ease; }
    .ng-nav[data-open="true"] { transform: translateX(0); }
    .ng-burger { display: inline-block; }
    .ng-bar { grid-template-columns: 120px 1fr 44px; }
  }
  @media (max-width: 560px) {
    .ng-foot-grid { grid-template-columns: 1fr; }
    body { font-size: 1.02rem; }
  }
}
