/* ═══════════════════════════════════════════════════
   A&A Technologies — shared stylesheet
   Professional corporate site — light theme
   ═══════════════════════════════════════════════════ */

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }

:root {
  --bg: #ffffff;
  --bg-elevated: #fafbfc;
  --bg-elevated-2: #f4f5f7;
  --text: #0a0a0f;
  --text-2: #52525b;
  --text-3: #8a8a94;
  --line: #e5e7eb;
  --line-2: #d1d5db;
  --accent: #1e5fce;
  --accent-hover: #164ca8;
  --accent-soft: #eff5ff;
  --success: #16a34a;
  --success-soft: #e6f6ec;
  --warning: #d97706;
  --warning-soft: #fef3e6;
  --info: #7c3aed;
  --info-soft: #f2edfd;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  letter-spacing: -0.005em;
}

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}
.container-narrow {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ─── NAV ─────────────────────────────────────────────── */
nav.site-nav {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  z-index: 100;
}
.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.015em;
  color: var(--text);
}
.nav-mark {
  height: 30px;
  width: auto;
  display: block;
}
.nav-mark-img {
  height: 32px;
  width: auto;
  display: block;
  object-fit: contain;
}
.nav-logo-img {
  height: 48px;
  width: auto;
  display: block;
  object-fit: contain;
}
.footer-brand .nav-logo-img {
  height: 54px;
  max-width: 320px;
  margin-bottom: 8px;
}
.footer-brand {
  margin-bottom: 16px;
}
.hero-logo-img {
  height: auto;
  max-width: 780px;
  width: 100%;
  display: block;
  margin-bottom: 48px;
  margin-left: -18px;
}
@media (max-width: 720px) {
  .hero-logo-img { max-width: 380px; margin-bottom: 32px; margin-left: -8px; }
  .nav-mark-img { height: 34px; }
  .nav-logo-img { height: 44px; }
  .footer-brand .nav-logo-img { height: 48px; max-width: 280px; }
}
.nav-mark.css-mark {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: -0.02em;
}
.nav-tm {
  font-size: 0.55em;
  color: var(--text-2);
  font-weight: 700;
  vertical-align: super;
  line-height: 1;
  letter-spacing: 0;
  margin-left: 1px;
  position: relative;
  top: 0.05em;
}
.nav-links {
  display: flex;
  gap: 28px;
}
.nav-links a {
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }
.nav-contact {
  padding: 8px 16px;
  background: var(--text);
  color: var(--bg) !important;
  border-radius: 8px;
  font-size: 13px !important;
  font-weight: 600 !important;
  transition: opacity 0.15s;
}
.nav-contact:hover { opacity: 0.85; }

/* Language switcher */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-right: 4px;
}
.lang-toggle button {
  border: none;
  background: transparent;
  color: var(--text-3);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 6px;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: all 0.15s;
}
.lang-toggle button:hover { color: var(--text-2); }
.lang-toggle button.active {
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
@media (max-width: 720px) {
  .lang-toggle { margin-right: 2px; }
  .lang-toggle button { padding: 4px 7px; font-size: 11px; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-inner { padding: 14px 24px; }
  .nav-mark { height: 26px; }
}

/* ─── PAGE HEADER ─────────────────────────────────────── */
.page-header {
  padding: 96px 0 64px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-elevated);
}
.breadcrumb {
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 24px;
  font-weight: 500;
}
.breadcrumb a { color: var(--text-2); }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb .sep { margin: 0 8px; opacity: 0.5; }

.page-title {
  font-size: clamp(38px, 5.5vw, 60px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 20px;
  max-width: 820px;
  color: var(--text);
}
.page-lede {
  font-size: 19px;
  color: var(--text-2);
  line-height: 1.6;
  max-width: 680px;
  font-weight: 400;
}

/* ─── SECTIONS ────────────────────────────────────────── */
section {
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
}
section:last-of-type { border-bottom: none; }
section.no-border { border-bottom: none; }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 20px;
  max-width: 720px;
  color: var(--text);
}

.section-lede {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.65;
  max-width: 640px;
  margin-bottom: 40px;
}

.prose p {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 20px;
  max-width: 720px;
}
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--accent); }
.prose a:hover { text-decoration: underline; }

.prose h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-top: 40px;
  margin-bottom: 14px;
}
.prose h3:first-child { margin-top: 0; }

.prose ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
  max-width: 720px;
}
.prose ul li {
  padding-left: 22px;
  position: relative;
  color: var(--text-2);
  font-size: 16.5px;
  line-height: 1.75;
  margin-bottom: 10px;
}
.prose ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 12px;
  height: 1px;
  background: var(--text-3);
}

/* ─── BUTTONS ─────────────────────────────────────────── */
.btn {
  padding: 12px 22px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 600;
  transition: all 0.15s;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: -0.005em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary {
  background: var(--text);
  color: var(--bg);
}
.btn-primary:hover { opacity: 0.85; }
.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--line-2);
}
.btn-secondary:hover {
  border-color: var(--text);
  background: var(--bg-elevated);
}
.btn-arrow::after {
  content: '→';
  font-weight: 500;
  margin-left: 2px;
}

/* ─── STATUS BADGES ───────────────────────────────────── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.status-badge.beta {
  background: var(--success-soft);
  color: var(--success);
  border: 1px solid rgba(22, 163, 74, 0.25);
}
.status-badge.planned {
  background: var(--warning-soft);
  color: var(--warning);
  border: 1px solid rgba(217, 119, 6, 0.25);
}
.status-badge.research {
  background: var(--info-soft);
  color: var(--info);
  border: 1px solid rgba(124, 58, 237, 0.25);
}

/* ─── DATA TABLES / KEY-VALUE ─────────────────────────── */
.kv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.kv-block {
  padding: 32px 36px;
  background: var(--bg);
}
.kv-block h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  font-weight: 600;
  margin-bottom: 20px;
}
.kv-block .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.kv-block .row:last-child { border-bottom: none; }
.kv-block .row .label {
  color: var(--text-2);
  font-weight: 500;
}
.kv-block .row .value {
  color: var(--text);
  font-weight: 500;
  text-align: right;
}
.kv-block .row .value a {
  color: var(--accent);
}
.kv-block .row .value a:hover { text-decoration: underline; }

@media (max-width: 720px) {
  .kv-grid { grid-template-columns: 1fr; }
  .kv-block { padding: 24px; }
}

/* ─── PRODUCT ROW ─────────────────────────────────────── */
.product-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--line);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.product-row {
  padding: 28px 32px;
  background: var(--bg);
  display: grid;
  grid-template-columns: 68px 1fr auto;
  gap: 28px;
  align-items: center;
  transition: background 0.15s;
}
.product-row:hover { background: var(--bg-elevated); }

.product-mark {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.03em;
  overflow: hidden;
  flex-shrink: 0;
}
.product-mark img,
.product-mark svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.product-info h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 5px;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: var(--text);
}
.product-info h3 .tm {
  font-size: 0.55em;
  color: var(--text-2);
  font-weight: 700;
  vertical-align: super;
  line-height: 1;
  margin-left: 1px;
  position: relative;
  top: 0.05em;
}
.product-info p {
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.55;
  max-width: 520px;
}

@media (max-width: 720px) {
  .product-row { grid-template-columns: 48px 1fr; padding: 22px; gap: 18px; }
  .product-mark { width: 44px; height: 44px; font-size: 18px; }
  .status-badge { grid-column: 1 / -1; justify-self: start; }
}

/* ─── PRODUCT CARD FULL (products page) ──────────────── */
.product-card-full {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 36px;
  margin-bottom: 24px;
  background: var(--bg);
  transition: box-shadow 0.25s ease, border-color 0.2s ease;
}
.product-card-full:hover {
  box-shadow: 0 8px 32px rgba(10, 10, 15, 0.05);
  border-color: var(--line-2);
}
.pc-head {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 22px;
  align-items: center;
  margin-bottom: 24px;
}
.pc-mark {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pc-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.pc-title-block { min-width: 0; }
.pc-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.2;
}
.pc-title .tm {
  font-size: 0.5em;
  color: var(--text-2);
  font-weight: 700;
  vertical-align: super;
  line-height: 1;
  margin-left: 2px;
}
.pc-tagline {
  font-size: 14px;
  color: var(--text-2);
  font-weight: 500;
}
.pc-desc {
  font-size: 15.5px;
  color: var(--text-2);
  line-height: 1.65;
  max-width: 720px;
  margin-bottom: 28px;
}
.pc-desc strong { color: var(--text); font-weight: 600; }
.pc-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.pc-meta .meta-label {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin-bottom: 6px;
}
.pc-meta .meta-value {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
}

@media (max-width: 720px) {
  .product-card-full { padding: 24px; }
  .pc-head {
    grid-template-columns: 56px 1fr;
    gap: 16px;
  }
  .pc-mark { width: 56px; height: 56px; border-radius: 12px; }
  .pc-title { font-size: 18px; }
  .pc-head .status-badge {
    grid-column: 1 / -1;
    justify-self: start;
    margin-top: 8px;
  }
  .pc-meta { grid-template-columns: 1fr; gap: 14px; }
}

/* ─── PROFILE CARDS ───────────────────────────────────── */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 48px;
}
.person {
  padding: 40px 36px;
  background: var(--bg);
}
.person-avatar {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  flex-shrink: 0;
}
.person-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.person-avatar.placeholder {
  background: linear-gradient(135deg, var(--accent-soft) 0%, #dceafe 100%);
  border-color: var(--line-2);
}
.person-name {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  color: var(--text);
}
.person-role {
  font-size: 13.5px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 20px;
}
.person-bio {
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 14px;
}
.person-details {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.6;
}
.person-details strong {
  color: var(--text-2);
  font-weight: 600;
  display: block;
  margin-top: 12px;
  margin-bottom: 4px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@media (max-width: 720px) {
  .leadership-grid { grid-template-columns: 1fr; }
  .person { padding: 28px; }
}

/* ─── TIMELINE ────────────────────────────────────────── */
.timeline {
  border-left: 1px solid var(--line);
  padding-left: 28px;
  margin-left: 8px;
}
.timeline-item {
  position: relative;
  padding-bottom: 32px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -34px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}
.timeline-date {
  font-size: 12px;
  color: var(--text-3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.timeline-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.timeline-desc {
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.6;
  max-width: 560px;
}

/* ─── HERO (home only) ────────────────────────────────── */
.hero {
  padding: 88px 0 100px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 800px 400px at 50% 0%, var(--accent-soft), transparent 70%),
    var(--bg);
}
.hero-logo {
  max-width: 320px;
  height: auto;
  margin-bottom: 48px;
  display: block;
}
.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 32px;
  background: var(--bg);
}
.hero-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
}
.hero-title {
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 24px;
  max-width: 900px;
  color: var(--text);
}
.hero-title .tm {
  font-size: 0.35em;
  color: var(--text-2);
  font-weight: 700;
  vertical-align: super;
  margin-left: 2px;
  line-height: 1;
  position: relative;
  top: 0.15em;
}
.hero-sub {
  font-size: 19px;
  color: var(--text-2);
  line-height: 1.55;
  max-width: 620px;
  margin-bottom: 40px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-top: 48px;
  margin-top: 48px;
  border-top: 1px solid var(--line);
}
.fact-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  margin-bottom: 8px;
  font-weight: 600;
}
.fact-value {
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
  letter-spacing: -0.01em;
}

@media (max-width: 720px) {
  .facts { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .hero-logo { max-width: 240px; margin-bottom: 36px; }
}

/* ─── CALLOUT / QUOTE ─────────────────────────────────── */
.callout {
  padding: 32px 36px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  margin: 32px 0;
  max-width: 720px;
}
.callout p {
  font-size: 17px;
  color: var(--text);
  line-height: 1.65;
  margin: 0 !important;
  font-style: italic;
  font-weight: 400;
  max-width: none !important;
}
.callout .attribution {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-3);
  font-style: normal;
  font-weight: 500;
}

/* ─── LINK CARD LIST (contacts, etc) ──────────────────── */
.link-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.link-card {
  padding: 24px 26px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: all 0.15s;
}
.link-card:hover {
  border-color: var(--line-2);
  background: var(--bg-elevated);
}
.link-card .lc-label {
  font-size: 12px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 6px;
}
.link-card .lc-email {
  font-size: 17px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
  display: block;
}
.link-card .lc-desc {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.5;
}

@media (max-width: 720px) {
  .link-cards { grid-template-columns: 1fr; }
}

/* ─── CTA CROSS-LINK BLOCK ────────────────────────────── */
.cta-block {
  padding: 40px 44px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-top: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-block .cta-text h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  color: var(--text);
}
.cta-block .cta-text p {
  font-size: 14.5px;
  color: var(--text-2);
  max-width: 460px;
}

/* ─── FOOTER ──────────────────────────────────────────── */
footer.site-footer {
  padding: 64px 0 40px;
  border-top: 1px solid var(--line);
  background: var(--bg-elevated);
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-col h5 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-3);
  font-weight: 600;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-2);
  font-weight: 500;
  padding: 6px 0;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--text); }
.footer-brand-block .footer-brand {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-brand-block p {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.6;
  max-width: 320px;
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-3);
}
.footer-bottom .legal-name { color: var(--text-2); font-weight: 500; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════
   MODERNIZATION — Mobile menu · Scroll reveals · Polish
   ═══════════════════════════════════════════════════ */

/* ─── Nav scrolled state ─────────────────────────────── */
nav.site-nav.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 0 rgba(10, 10, 15, 0.04), 0 4px 20px rgba(10, 10, 15, 0.03);
  border-bottom-color: transparent;
}
nav.site-nav.is-scrolled .nav-inner { padding-top: 14px; padding-bottom: 14px; }

/* ─── Mobile hamburger toggle ────────────────────────── */
.mobile-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border-radius: 10px;
  transition: background 0.18s;
}
.mobile-menu-toggle:hover { background: var(--bg-elevated); }
.mobile-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.2s,
              width 0.28s;
}
.mobile-menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
  width: 0;
}
.mobile-menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─── Mobile overlay + drawer ────────────────────────── */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 15, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
  z-index: 98;
}
.mobile-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 85vw);
  background: var(--bg);
  border-left: 1px solid var(--line);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 99;
  box-shadow: -12px 0 40px rgba(10, 10, 15, 0.08);
  display: flex;
  flex-direction: column;
  padding-top: 84px;
  overflow-y: auto;
}
.mobile-drawer.is-open { transform: translateX(0); }
.mobile-drawer-inner {
  padding: 8px 24px 32px;
  display: flex;
  flex-direction: column;
}
.mobile-drawer-inner a {
  padding: 14px 4px;
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  transition: color 0.15s, padding-left 0.2s;
}
.mobile-drawer-inner a:hover {
  color: var(--accent);
  padding-left: 8px;
}
.mobile-drawer-cta {
  margin-top: 28px;
  padding: 0 4px;
}
.mobile-drawer-cta a,
.mobile-drawer-cta a:hover {
  border: none !important;
  padding: 14px 20px !important;
  padding-left: 20px !important;
  justify-content: center;
  width: 100%;
  color: #ffffff !important;
  background: var(--text);
  font-size: 15px;
  border-radius: 10px;
}

@media (max-width: 720px) {
  .mobile-menu-toggle { display: flex; }
  .nav-contact { display: none; }
  .nav-inner { gap: 12px; }
}

/* ─── Scroll reveal animation ────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ─── Enhanced Hero — subtle glow ────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 500px at 15% -10%, rgba(30, 95, 206, 0.06), transparent 60%),
    radial-gradient(900px 400px at 100% 0%, rgba(124, 58, 237, 0.04), transparent 55%),
    linear-gradient(180deg, #fafbfc 0%, #ffffff 100%);
}
.hero .container { position: relative; z-index: 1; }

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 24px;
  letter-spacing: -0.005em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}

/* ─── Product card polish ────────────────────────────── */
.product-row {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s ease,
              border-color 0.2s ease;
  position: relative;
}
.product-row:hover {
  transform: translateY(-3px);
  box-shadow:
    0 1px 0 rgba(30, 95, 206, 0.06),
    0 8px 32px rgba(10, 10, 15, 0.06),
    0 0 0 1px rgba(30, 95, 206, 0.18);
  border-color: transparent;
}
.product-row::after {
  content: "→";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%) translateX(-6px);
  color: var(--accent);
  font-size: 18px;
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.product-row:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
.product-row:hover .product-info h3 { color: var(--accent); }

/* ─── Stats / Trust section ──────────────────────────── */
.stats-section {
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
  padding: 88px 0 !important;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.stat-card {
  padding: 32px 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s ease,
              border-color 0.25s ease;
}
.stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-soft);
  box-shadow: 0 12px 32px rgba(10, 10, 15, 0.05);
}
.stat-value {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-size: 13px;
  color: var(--text-2);
  font-weight: 500;
  line-height: 1.5;
}
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-value { font-size: 36px; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; gap: 16px; }
  .stat-card { padding: 24px 20px; }
}

/* ─── Final CTA section ──────────────────────────────── */
.cta-section {
  padding: 96px 0 !important;
  background:
    radial-gradient(800px 400px at 50% 100%, rgba(30, 95, 206, 0.08), transparent 70%),
    linear-gradient(180deg, #0a0a0f 0%, #16161f 100%);
  color: white;
  text-align: center;
  border: none !important;
  position: relative;
  overflow: hidden;
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section .eyebrow {
  color: #6ea8ff;
}
.cta-section h2 {
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 20px;
  color: white;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.cta-section p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.6;
}
.cta-section .btn-primary {
  background: white;
  color: var(--text);
  padding: 14px 28px;
  font-size: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
.cta-section .btn-primary:hover {
  background: #f4f5f7;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}
.cta-section .btn-secondary {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.2);
}
.cta-section .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.35);
}
.cta-section .cta-actions {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ─── Micro-details: scrollbar, focus, links ─────────── */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--line-2);
  border-radius: 10px;
  border: 3px solid var(--bg);
  transition: background 0.2s;
}
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
button:focus-visible, a:focus-visible { outline-offset: 4px; }

/* Skip to content — accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 16px;
  background: var(--text);
  color: var(--bg);
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  z-index: 200;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

/* Section text link underline animation */
.prose a, .section-lede a {
  color: var(--accent);
  position: relative;
  padding-bottom: 1px;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.prose a:hover, .section-lede a:hover {
  background-size: 100% 1px;
}

/* Selection color */
::selection {
  background: var(--accent);
  color: white;
}

/* ─── 404 page ───────────────────────────────────────── */
.error-page {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 96px 32px;
  text-align: center;
}
.error-code {
  font-size: clamp(96px, 18vw, 180px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--text);
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--info) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.error-title {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--text);
}
.error-msg {
  font-size: 17px;
  color: var(--text-2);
  max-width: 440px;
  margin: 0 auto 40px;
  line-height: 1.6;
}
.error-actions {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
