:root {
  --bg: #0b1220;
  --surface: #101a2f;
  --surface-2: #15233f;
  --card: #ffffff;
  --text: #e8eefc;
  --muted: #afbdd6;
  --heading: #ffffff;
  --brand: #73a7ff;
  --brand-dark: #2a63c7;
  --border: rgba(255, 255, 255, 0.1);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  --radius: 18px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: linear-gradient(180deg, #09101c 0%, #0e1730 35%, #f5f8fc 35%, #f5f8fc 100%);
  color: #152033;
  line-height: 1.6;
}

a {
  text-decoration: none;
}

.container {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
}

.narrow {
  width: min(820px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 16, 28, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.logo {
  color: white;
  font-weight: 800;
  font-size: 1.55rem;
  letter-spacing: -0.3px;
}

nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

nav a {
  color: var(--text);
  font-size: 0.95rem;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  color: var(--text);
  font-size: 0.95rem;
  cursor: pointer;
  user-select: none;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: #0d1829;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 6px;
  min-width: 170px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  z-index: 200;
}

.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}

/* bridge gap so menu doesn't close when moving mouse */
.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--text);
  font-size: 0.92rem;
}

.nav-dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.07);
  color: white;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--brand);
  color: #071226;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  opacity: 0.96;
}

.btn-secondary {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.22);
}

.btn-small {
  padding: 10px 16px;
}

.hero {
  padding: 72px 0 84px;
  color: white;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.eyebrow,
.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  color: var(--brand);
  margin-bottom: 14px;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.4rem, 4vw, 4.6rem);
  line-height: 1.05;
}

.hero-text {
  font-size: 1.18rem;
  max-width: 680px;
  color: var(--text);
  margin-bottom: 12px;
}

.hero-subtext {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.vault-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.vault-title {
  font-weight: 700;
  margin-bottom: 18px;
  color: white;
}

.vault-shell {
  background: #0f1a2e;
  border-radius: 20px;
  padding: 24px;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  align-items: center;
}

.vault-door {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 8px solid #4f6ea8;
  position: relative;
  margin: 0 auto;
  background: radial-gradient(circle at 30% 30%, #9ec0ff, #34558f);
}

.vault-wheel {
  position: absolute;
  inset: 50%;
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.vault-wheel::before,
.vault-wheel::after {
  content: "";
  position: absolute;
  background: #34558f;
}

.vault-wheel::before {
  width: 54px;
  height: 4px;
  top: 18px;
  left: -7px;
}

.vault-wheel::after {
  width: 4px;
  height: 54px;
  top: -7px;
  left: 18px;
}

.lockers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.locker {
  background: linear-gradient(180deg, #213455, #172842);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 14px;
  padding: 18px 14px;
  text-align: center;
  color: white;
  font-weight: 600;
}

.vault-caption {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

section {
  padding: 84px 0;
}

.problem,
.analogy,
.how-it-works,
.features,
.api-section,
.use-cases,
.pricing,
.trust,
.cta {
  background: #f5f8fc;
}

.problem h2,
.analogy h2,
.how-it-works h2,
.features h2,
.api-section h2,
.use-cases h2,
.pricing h2,
.trust h2,
.cta h2 {
  margin: 0 0 14px;
  color: #0d1c36;
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 1.15;
}

.section-intro {
  color: #51627f;
  font-size: 1.05rem;
  margin-bottom: 32px;
}

.problem-grid,
.feature-grid,
.use-case-grid,
.pricing-grid,
.steps {
  display: grid;
  gap: 22px;
}

.problem-grid {
  grid-template-columns: repeat(2, 1fr);
}

.card,
.feature-card,
.pricing-card,
.step,
.comparison-card,
.code-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(13, 28, 54, 0.08);
  border: 1px solid rgba(13, 28, 54, 0.06);
}

.card,
.feature-card,
.pricing-card,
.step {
  padding: 26px;
}

.card h3,
.feature-card h3,
.pricing-card h3,
.step h3 {
  margin-top: 0;
  margin-bottom: 10px;
  color: #0d1c36;
}

.card ul {
  margin: 0;
  padding-left: 20px;
  color: #4f607d;
}

.card-highlight {
  border: 1px solid rgba(115, 167, 255, 0.35);
  box-shadow: 0 12px 30px rgba(67, 112, 192, 0.14);
}

.analogy-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  align-items: start;
}

.analogy-copy p {
  color: #4f607d;
  font-size: 1.05rem;
}

.comparison-card {
  overflow: hidden;
}

.comparison-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
}

.comparison-row > div {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(13, 28, 54, 0.08);
}

.comparison-row > div:first-child {
  border-right: 1px solid rgba(13, 28, 54, 0.08);
  font-weight: 700;
  color: #0d1c36;
}

.comparison-head {
  background: #eef4ff;
  font-weight: 700;
}

.steps {
  grid-template-columns: repeat(4, 1fr);
}

.step-number {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e8f0ff;
  color: var(--brand-dark);
  font-weight: 700;
  margin-bottom: 14px;
}

.feature-grid {
  grid-template-columns: repeat(2, 1fr);
}

.api-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 24px;
  align-items: center;
}

.code-card {
  padding: 0;
  overflow: hidden;
  background: #0d1526;
  color: #d9e6ff;
}

.code-card pre {
  margin: 0;
  padding: 24px;
  overflow-x: auto;
  font-size: 0.95rem;
}

.use-case-grid,
.pricing-grid {
  grid-template-columns: repeat(2, 1fr);
}

.price {
  font-weight: 700;
  color: var(--brand-dark);
}

.featured-pricing {
  border: 1px solid rgba(115, 167, 255, 0.35);
}

.cta-box {
  background: linear-gradient(135deg, #0d1a33, #15305e);
  color: white;
  border-radius: 28px;
  padding: 40px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: center;
}

.cta-box h2 {
  color: white;
}

.cta-box p {
  color: #d0ddf6;
}

.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.site-footer {
  background: #08101d;
  color: #9db0d3;
  padding: 26px 0;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .hero-grid,
  .analogy-grid,
  .api-grid,
  .cta-box,
  .problem-grid,
  .feature-grid,
  .use-case-grid,
  .pricing-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .cta-actions {
    justify-content: flex-start;
  }

  .vault-shell {
    grid-template-columns: 1fr;
  }

  .vault-door {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 720px) {
  nav {
    display: none;
  }

  section {
    padding: 68px 0;
  }

  .hero {
    padding-top: 44px;
  }

  .hero h1 {
    font-size: 2.3rem;
  }

  .comparison-row {
    grid-template-columns: 1fr;
  }

  .comparison-row > div:first-child {
    border-right: none;
    border-bottom: 1px solid rgba(13, 28, 54, 0.08);
  }

  .cta-box {
    padding: 28px;
  }
}

/* ===== Hero SVG ===== */
.hero-svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 22px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
}

/* ===== Process Flow Diagram ===== */
.flow-diagram {
  margin: 48px 0 40px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.flow-diagram-svg {
  width: 100%;
  height: auto;
  display: block;
  min-width: 680px;
}

@media (max-width: 720px) {
  .flow-diagram {
    margin: 32px -20px 32px;
    padding: 0 20px;
  }
}

/* ===== Video Section ===== */
.video-section {
  background: #f5f8fc;
}

.video-wrapper {
  margin-top: 36px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(13, 28, 54, 0.14);
  aspect-ratio: 16 / 9;
  background: #0d1526;
  position: relative;
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0d1a33 0%, #0e2248 50%, #0a1e3a 100%);
}

.play-content {
  text-align: center;
  padding: 24px;
}

.play-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 0 0 0 rgba(115, 167, 255, 0.4);
  animation: pulse 2.4s ease infinite;
}

.play-btn:hover {
  transform: scale(1.1);
  animation: none;
  box-shadow: 0 0 0 12px rgba(115, 167, 255, 0);
}

.play-btn svg {
  width: 32px;
  height: 32px;
  margin-left: 5px;
}

.play-label {
  color: white;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 8px;
}

.play-sub {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.95rem;
  margin: 0;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(115, 167, 255, 0.45); }
  70%  { box-shadow: 0 0 0 18px rgba(115, 167, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(115, 167, 255, 0); }
}

/* ===== Comparison Table ===== */
.comparison-table-wrap {
  margin-top: 40px;
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: 0 12px 36px rgba(13, 28, 54, 0.09);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  font-size: 0.95rem;
}

.comparison-table thead th {
  padding: 16px 22px;
  text-align: left;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.comparison-table th.ct-label {
  background: #f0f4fa;
  color: #8a9ab5;
  width: 16%;
}

.comparison-table th.ct-old {
  background: #fef2f2;
  color: #991b1b;
  width: 42%;
}

.comparison-table th.ct-new {
  background: #eff6ff;
  color: #1d4ed8;
  width: 42%;
}

.comparison-table tbody tr {
  border-bottom: 1px solid rgba(13, 28, 54, 0.06);
}

.comparison-table tbody tr:last-child {
  border-bottom: none;
}

.comparison-table tbody td {
  padding: 18px 22px;
  vertical-align: top;
  line-height: 1.65;
}

.comparison-table td.ct-label {
  font-weight: 700;
  font-size: 0.85rem;
  color: #0d1c36;
  background: #f9fbff;
}

.comparison-table td.ct-old {
  color: #5a3535;
  background: white;
}

.comparison-table td.ct-new {
  color: #1a3a6b;
  background: #f7fbff;
}

.comparison-table tbody tr:hover td.ct-old { background: #fff5f5; }
.comparison-table tbody tr:hover td.ct-new { background: #eef5ff; }
.comparison-table tbody tr:hover td.ct-label { background: #f0f4fa; }

/* ===== Two Products Section ===== */
.two-products {
  background: #f5f8fc;
}

.two-products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 36px;
}

.product-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.product-card {
  background: white;
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid rgba(13, 28, 54, 0.07);
  box-shadow: 0 12px 30px rgba(13, 28, 54, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 48px rgba(13, 28, 54, 0.12);
}

.product-card-age {
  border-color: rgba(245, 158, 11, 0.2);
}

.product-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.product-icon svg {
  width: 36px;
  height: 36px;
}

.product-icon-kyc {
  background: #eef4ff;
}

.product-icon-age {
  background: #fffbeb;
}

.product-card h3 {
  margin: 0 0 10px;
  color: #0d1c36;
  font-size: 1.3rem;
}

.product-card p {
  color: #51627f;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 18px;
}

.product-tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  background: #eef4ff;
  color: #2a63c7;
}

.product-tag-age {
  background: #fffbeb;
  color: #b45309;
}

/* ===== SovereignAge Section (homepage) ===== */
.sovereign-age-section {
  background: #f5f8fc;
}

.sovereign-age-section h2 {
  margin: 0 0 14px;
  color: #0d1c36;
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 1.15;
}

.age-flow {
  margin: 48px 0 52px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.age-flow-svg {
  width: 100%;
  height: auto;
  display: block;
  min-width: 760px;
}

.age-use-cases {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.age-use-card {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid rgba(13, 28, 54, 0.06);
  box-shadow: 0 8px 24px rgba(13, 28, 54, 0.06);
}

.age-use-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.age-use-card h3 {
  margin: 0 0 8px;
  color: #0d1c36;
  font-size: 1rem;
}

.age-use-card p {
  color: #51627f;
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
}

.age-cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .two-products-grid,
  .age-use-cases {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .two-products-grid,
  .age-use-cases {
    grid-template-columns: 1fr;
  }
}
