*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    --ink:      #060c18;
    --deep:     #0a1428;
    --border:   #1c2c4a;
    --blue:     #4a9bf5;
    --blue-pale:#a8cdf9;
    --white:    #f2f6fc;
    --mid:      #9db0cc;
    --muted:    #6b7c99;
  }

  html { scroll-behavior: smooth; background: var(--ink); }

  body {
    background: var(--ink);
    color: var(--mid);
    font-family: 'Sora', system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }

  a { color: inherit; }
  img { display: block; max-width: 100%; }
  :focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

  /* ---------- HEADER ---------- */
  header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(6,12,24,0.88);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 0 clamp(1.25rem, 4vw, 3.5rem);
    height: 74px;
  }

  .brand { display: flex; align-items: center; text-decoration: none; }
  .logo-img {
    display: block;
    width: 144px; height: 30px;
    background-image: url('/assets/agos-logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left center;
  }
  .logo-sm { width: 115px; height: 24px; }

  .site-nav { display: flex; align-items: center; gap: 2rem; list-style: none; }
  .site-nav a {
    text-decoration: none;
    font-size: 0.92rem;
    color: var(--mid);
    padding: 0.3rem 0;
    border-bottom: 1.5px solid transparent;
    transition: color 0.18s, border-color 0.18s;
  }
  .site-nav a:hover { color: var(--white); border-bottom-color: var(--blue); }

  .header-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    color: var(--white);
    border: 1.5px solid var(--blue);
    border-radius: 999px;
    padding: 0.52rem 1.35rem;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    transition: background 0.18s;
  }
  .header-cta:hover { background: rgba(74,155,245,0.2); }

  .menu-btn {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--white);
    padding: 0.45rem 0.75rem;
    font: inherit;
    font-size: 0.85rem;
    cursor: pointer;
  }

  /* ---------- HERO ---------- */
  .hero {
    position: relative;
    overflow: hidden;
    min-height: clamp(520px, 74vh, 780px);
    display: flex;
    align-items: center;
  }

  .hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('/assets/hero.jpg');
    background-size: cover;
    background-position: 58% center;
    z-index: 0;
  }

  .hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
      linear-gradient(90deg, rgba(6,12,24,0.94) 0%, rgba(6,12,24,0.78) 32%, rgba(6,12,24,0.14) 58%, rgba(6,12,24,0.02) 100%),
      linear-gradient(180deg, rgba(6,12,24,0.45) 0%, rgba(6,12,24,0) 32%, rgba(6,12,24,0.12) 72%, rgba(6,12,24,0.55) 100%);
  }

  .hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: clamp(3.5rem, 8vw, 6rem) clamp(1.25rem, 4vw, 3.5rem);
  }

  .hero-eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.3em;
    color: var(--muted);
    margin-bottom: 1.1rem;
  }

  .hero h1 {
    font-size: clamp(2.4rem, 6vw, 4.4rem);
    font-weight: 600;
    line-height: 1.06;
    letter-spacing: -0.025em;
    color: var(--white);
    margin-bottom: 1.5rem;
  }
  .hero h1 span { display: block; color: var(--blue-pale); }

  .hero-rule { width: 46px; height: 2px; background: var(--muted); margin-bottom: 1.5rem; }

  .hero p {
    font-size: clamp(1rem, 1.4vw, 1.12rem);
    color: var(--mid);
    max-width: 38ch;
    margin-bottom: 2.3rem;
  }

  .hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    color: var(--white);
    border: 1.5px solid var(--blue);
    border-radius: 999px;
    padding: 0.85rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    background: rgba(10,20,40,0.4);
    transition: background 0.18s;
  }
  .hero-cta:hover { background: rgba(74,155,245,0.24); }

  /* ---------- PRODUCTS ---------- */
  .products {
    background: var(--deep);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }

  .products-grid {
    max-width: 1500px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: clamp(2.5rem, 5vw, 3.75rem) clamp(1.25rem, 4vw, 3.5rem);
  }

  .product {
    padding: 0 clamp(1rem, 2.5vw, 2.4rem);
    border-right: 1px solid var(--border);
  }
  .product:first-child { padding-left: 0; }
  .product:last-child { border-right: none; padding-right: 0; }

  .product-head { display: flex; align-items: flex-start; gap: 1.15rem; margin-bottom: 1.5rem; }

  .product-head img {
    width: 64px; height: 64px;
    border-radius: 15px;
    flex-shrink: 0;
  }

  .product h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.35rem;
    letter-spacing: -0.015em;
  }

  .product p { font-size: 0.95rem; color: var(--mid); max-width: 30ch; }

  /* Screenshot sits below the meta line. width/height are on the tag so the
     browser reserves space before the lazy-loaded file arrives. */
  .product-shot {
    display: block;
    width: 100%;
    height: auto;
    margin-top: 1.15rem;
    border-radius: 10px;
  }

  .product-meta {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: var(--muted);
    text-transform: uppercase;
    padding-top: 1.15rem;
    border-top: 1px solid var(--border);
  }

  .product-status,
  .availability {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--blue-pale);
  }

  .product-status {
    margin-top: 0.85rem;
    font-size: 0.74rem;
    font-weight: 500;
  }

  .status-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: var(--blue);
    box-shadow: 0 0 12px rgba(74,155,245,0.7);
  }

  .product-status-testing .status-dot,
  .availability-testing .status-dot {
    background: #70d7b2;
    box-shadow: 0 0 12px rgba(112,215,178,0.6);
  }

  /* ---------- PRINCIPLES ---------- */
  .principles {
    padding: clamp(3.5rem, 7vw, 6rem) clamp(1.25rem, 4vw, 3.5rem);
    background: linear-gradient(180deg, var(--ink), rgba(10,20,40,0.96));
    border-bottom: 1px solid var(--border);
  }

  .principles-inner {
    max-width: 1500px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.6fr);
    gap: clamp(2.5rem, 6vw, 7rem);
    align-items: start;
  }

  .section-kicker {
    margin-bottom: 0.75rem;
    color: var(--blue);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.17em;
    line-height: 1.4;
  }

  .principles h2 {
    margin-bottom: 0.9rem;
    color: var(--white);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 600;
    letter-spacing: -0.025em;
  }

  .principles-heading > p:last-child {
    max-width: 34ch;
    color: var(--mid);
    font-size: 0.96rem;
  }

  .principles-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
  }

  .principles-grid article {
    min-height: 160px;
    padding: 1.4rem;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }

  .principles-grid article > span {
    display: block;
    margin-bottom: 1.35rem;
    color: var(--muted);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
  }

  .principles-grid h3 {
    margin-bottom: 0.4rem;
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
  }

  .principles-grid p {
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.55;
  }

  /* ---------- ABOUT ---------- */
  .about { padding: clamp(3rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 3.5rem); }
  .about-inner { max-width: 1500px; margin: 0 auto; }
  .about h2 {
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    font-weight: 600;
    color: var(--white);
    letter-spacing: -0.015em;
    margin-bottom: 1.2rem;
  }
  .about p { font-size: 1rem; color: var(--mid); max-width: 62ch; }
  .about p + p { margin-top: 1rem; }
  .about .about-note { color: var(--muted); font-size: 0.92rem; }
  .about .section-kicker { margin-bottom: 0.8rem; color: var(--blue); font-size: 0.68rem; }

  /* ---------- FOOTER ---------- */
  footer {
    background: var(--ink);
    border-top: 1px solid var(--border);
    padding: 2.2rem clamp(1.25rem, 4vw, 3.5rem);
  }
  .footer-inner {
    max-width: 1500px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
  }
  .footer-left { display: flex; align-items: center; gap: 1.8rem; flex-wrap: wrap; }
  .footer-copy { font-size: 0.85rem; color: var(--muted); line-height: 1.5; }
  .footer-links { display: flex; gap: 1.8rem; list-style: none; }
  .footer-links a {
    text-decoration: none;
    font-size: 0.88rem;
    color: var(--mid);
    transition: color 0.18s;
  }
  .footer-links a:hover { color: var(--white); }

  /* ---------- RESPONSIVE ---------- */
  @media (max-width: 900px) {
    .products-grid { grid-template-columns: 1fr; }
    .principles-inner { grid-template-columns: 1fr; }
    .product {
      border-right: none;
      padding: 0 0 2.2rem;
      border-bottom: 1px solid var(--border);
      margin-bottom: 2.2rem;
    }
    .product:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
  }

  @media (max-width: 760px) {
    .site-nav, .header-cta { display: none; }
    .menu-btn { display: block; }
    .site-nav.open {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 0.5rem;
      position: absolute;
      top: 74px; left: 0; right: 0;
      background: var(--deep);
      border-bottom: 1px solid var(--border);
      padding: 1rem clamp(1.25rem, 4vw, 3.5rem) 1.4rem;
    }
    .hero-bg { background-position: 72% center; }
    .hero-bg::after {
      background: linear-gradient(180deg, rgba(6,12,24,0.9) 0%, rgba(6,12,24,0.72) 45%, rgba(6,12,24,0.92) 100%);
    }
    .hero p { max-width: 100%; }
    .principles-grid { grid-template-columns: 1fr; }
  }

  @media (prefers-reduced-motion: reduce) {
    .header-cta, .hero-cta, .site-nav a, .footer-links a { transition: none; }
  }

  /* ---------- INTERIOR PAGES ---------- */
  .page-band {
    position: relative;
    height: clamp(150px, 20vw, 210px);
    background-image: url('/assets/page-band.jpg');
    background-size: cover;
    background-position: center 46%;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: flex-end;
  }
  .page-band::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(6,12,24,0.55) 0%, rgba(6,12,24,0.2) 45%, rgba(6,12,24,0.9) 100%);
  }
  .page-band-inner {
    position: relative; z-index: 2;
    max-width: 1500px; width: 100%;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 3.5rem) 1.6rem;
  }
  .page-band h1 {
    font-size: clamp(1.9rem, 4vw, 2.9rem);
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--white);
    line-height: 1.1;
  }
  .page-band .updated {
    font-size: 0.78rem;
    color: var(--mid);
    margin-top: 0.5rem;
  }

  .doc {
    max-width: 780px;
    margin: 0 auto;
    padding: clamp(2.5rem, 5vw, 3.75rem) clamp(1.25rem, 4vw, 3.5rem) clamp(3rem, 6vw, 4.5rem);
  }
  .doc h2 {
    font-size: 1.24rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: -0.015em;
    margin: 2.4rem 0 0.9rem;
    padding-top: 1.6rem;
    border-top: 1px solid var(--border);
  }
  .doc h2:first-of-type { margin-top: 0; padding-top: 0; border-top: none; }
  .doc h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--blue-pale);
    margin: 1.5rem 0 0.5rem;
  }
  .doc p, .doc li { font-size: 0.97rem; color: var(--mid); }
  .doc p + p { margin-top: 0.9rem; }
  .doc ul { margin: 0.8rem 0 0; padding-left: 1.2rem; }
  .doc li { margin-bottom: 0.5rem; }
  .doc strong { color: var(--white); font-weight: 500; }
  .doc a { color: var(--blue); }
  .doc .lede { font-size: 1.05rem; color: var(--white); margin-bottom: 1.8rem; }

  .callout {
    background: var(--deep);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.3rem 1.5rem;
    margin: 1.6rem 0;
  }
  .callout p { font-size: 0.94rem; }
  .callout p:first-child { margin-top: 0; }

  /* ---------- CONTACT FORM ---------- */
  .form-row { margin-bottom: 1.3rem; }
  .form-row label {
    display: block;
    font-size: 0.88rem;
    color: var(--white);
    margin-bottom: 0.45rem;
  }
  .form-row .hint { color: var(--muted); font-size: 0.82rem; margin-top: 0.35rem; }
  .form-row input, .form-row select, .form-row textarea {
    width: 100%;
    background: var(--deep);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--white);
    font: inherit;
    font-size: 0.95rem;
    padding: 0.7rem 0.85rem;
    transition: border-color 0.18s;
  }
  .form-row textarea { min-height: 160px; resize: vertical; }
  .form-row input:focus, .form-row select:focus, .form-row textarea:focus {
    outline: none;
    border-color: var(--blue);
  }
  .form-row input[aria-invalid="true"], .form-row textarea[aria-invalid="true"] { border-color: #e2564b; }
  .field-error { color: #ff8a80; font-size: 0.83rem; margin-top: 0.35rem; display: none; }
  .field-error.show { display: block; }

  .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

  .submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--blue);
    color: #06101f;
    border: none;
    border-radius: 999px;
    padding: 0.8rem 2rem;
    font: inherit;
    font-size: 0.98rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s;
  }
  .submit-btn:hover { background: #6fb0f7; }
  .submit-btn[disabled] { opacity: 0.55; cursor: not-allowed; }

  /* Space below the form so the status line, when it appears, never crowds
     the heading that follows. Set on the form rather than the status element
     so the gap is the same whether or not a message is showing. */
  #contact-form { margin-bottom: 2.75rem; }

  .form-status { margin-top: 1.1rem; font-size: 0.92rem; display: none; }
  .form-status.show { display: block; }
  .form-status.ok { color: #66d19e; }
  .form-status.err { color: #ff8a80; }

  @media (prefers-reduced-motion: reduce) {
    .submit-btn, .form-row input, .form-row textarea { transition: none; }
  }


/* ---- product cards become links to their detail section ---- */
.product-link {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 10px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.product-link:hover,
.product-link:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.35);
}

.product-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue);
}

.product-link:hover .product-more { color: var(--blue-pale); }

/* ---- detail sections ---- */
.detail {
  border-top: 1px solid rgba(168,205,249,0.14);
  padding: clamp(46px, 7vw, 84px) clamp(20px, 5vw, 60px);
  scroll-margin-top: 74px;          /* clear the sticky header when jumped to */
}

.detail-inner { max-width: 1100px; margin: 0 auto; }

.detail-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.detail-head img { width: 54px; height: 54px; border-radius: 12px; }
.detail-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin: 0; }

.detail-lead {
  color: var(--blue-pale);
  font-size: 1.02rem;
  max-width: 62ch;
  margin-bottom: 14px;
}

.availability {
  width: fit-content;
  margin-bottom: 30px;
  padding: 8px 12px;
  border: 1px solid rgba(74,155,245,0.28);
  border-radius: 999px;
  background: rgba(74,155,245,0.07);
  font-size: 0.76rem;
  line-height: 1.35;
}

.availability strong {
  color: var(--white);
  font-weight: 600;
}

.availability > span:last-child {
  padding-left: 0.55rem;
  border-left: 1px solid rgba(168,205,249,0.2);
  color: var(--muted);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 54px);
  align-items: start;
}

.shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.shots-2col { grid-template-columns: repeat(2, 1fr); max-width: 420px; }

.shots figure { margin: 0; }

.shots img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  border: 1px solid rgba(168,205,249,0.16);
}

.shots figcaption {
  margin-top: 7px;
  font-size: 0.72rem;
  color: rgba(168,205,249,0.7);
  text-align: center;
}

.features { margin: 0; padding: 0; list-style: none; }

.features li {
  padding: 13px 0 13px 26px;
  border-bottom: 1px solid rgba(168,205,249,0.1);
  position: relative;
  font-size: 0.94rem;
  line-height: 1.55;
}

.features li:last-child { border-bottom: 0; }

.features li::before {
  content: '';
  position: absolute;
  left: 4px; top: 21px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blue);
}

.features b { color: var(--white); font-weight: 600; }

.detail-note {
  margin-top: 22px;
  padding: 14px 16px;
  border-left: 2px solid rgba(168,205,249,0.3);
  font-size: 0.86rem;
  color: rgba(168,205,249,0.78);
  line-height: 1.6;
}

.back-to-apps {
  display: inline-block;
  margin-top: 26px;
  font-size: 0.82rem;
  color: var(--blue);
  text-decoration: none;
}

.back-to-apps:hover { text-decoration: underline; }

@media (max-width: 860px) {
  .detail-grid { grid-template-columns: 1fr; }
}
