:root {
  --bg: #07111f;
  --bg-soft: #0f1b33;
  --panel: rgba(255, 255, 255, 0.12);
  --panel-border: rgba(255, 255, 255, 0.18);
  --text: #eff6ff;
  --muted: #bbcae3;
  --accent: #7dd3fc;
  --accent-2: #60a5fa;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  --radius: 24px;
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 20%, rgba(96, 165, 250, 0.28), transparent 24%),
    radial-gradient(circle at 85% 10%, rgba(125, 211, 252, 0.22), transparent 20%),
    radial-gradient(circle at 50% 80%, #3b82f62e, transparent 30%),
    linear-gradient(135deg, #07111f 0%, #0c1730 45%, #08111e 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
p { color: var(--muted); line-height: 1.7; }
h1, h2, h3 { margin: 0 0 0.8rem; line-height: 1.1; }
h1 { font-size: clamp(2.8rem, 7vw, 5.3rem); letter-spacing: -0.04em; }
h2 { font-size: clamp(2rem, 3vw, 3rem); letter-spacing: -0.03em; }
h3 { font-size: 1.25rem; }

.site-shell { width: min(calc(100% - 2rem), var(--max)); margin: 0 auto; }
.section-pad { padding: 4rem 0; }
.section-pad-sm { padding: 2rem 0; }
.glass {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.site-header {
  position: sticky;
  top: 1rem;
  z-index: 20;
  margin-top: 1rem;
  border-radius: 999px;
  padding: 0.9rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-img {
  height: 42px;
  width: auto;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2));
  transition: transform 0.3s ease;
}
.brand:hover .logo-img {
  transform: scale(1.05);
}
.brand { display: flex; gap: 0.9rem; align-items: center; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center; font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #04101d;
}
.brand-title, .brand-subtitle { display: block; }
.brand-title { font-weight: 700; font-size: 1.2rem; }
.brand-subtitle { font-size: 0.80rem; color: var(--muted); }
.site-nav { display: flex; gap: 0.4rem; align-items: center; }
.site-nav a {
  padding: 0.7rem 1rem;
  border-radius: 999px;
  color: var(--muted);
  transition: 0.3s ease;
}
.site-nav a:hover, .site-nav a.active { color: white; background: rgba(255,255,255,0.08); }
.nav-toggle { display: none; background: none; border: 0; color: white; font-size: 1.4rem; }

.hero { min-height: 88vh; display: grid; align-items: center; }
.hero-grid, .split-feature, .card-grid.two-col {
  display: grid; gap: 1.5rem; align-items: center;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.card-grid.three-col {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.hero-copy p { max-width: 60ch; font-size: 1.08rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.77rem; font-weight: 700;
  color: var(--accent);
  margin-bottom: 1rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin: 1.75rem 0 2rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.95rem 1.25rem; border-radius: 999px; font-weight: 700; transition: transform 0.25s ease, background 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #05111f; }
.btn-secondary { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); }

.stat-row, .mini-grid { display: grid; gap: 1rem; }
.stat-row { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 2rem; }
.stat-card, .info-card, .content-panel, .mini-card, .cta-card, .timeline-card {
  padding: 1.4rem;
  border-radius: var(--radius);
}
.stat-card strong, .mini-label { display: block; margin-bottom: 0.45rem; }

.hero-visual { position: relative; min-height: 520px; }
.card-large {
  position: absolute; inset: 2rem 3rem auto auto; width: min(100%, 480px);
  border-radius: 32px; padding: 2rem;
}
.chip {
  display: inline-block; padding: 0.45rem 0.8rem; border-radius: 999px;
  background: rgba(125, 211, 252, 0.18); color: var(--accent); font-size: 0.82rem; font-weight: 700;
  margin-bottom: 1rem;
}
.floating-metric {
  position: absolute; padding: 1rem 1.2rem; border-radius: 20px;
}
.metric-one { left: 1rem; bottom: 7rem; }
.metric-two { right: 0; bottom: 1rem; }
.mesh {
  position: absolute; inset: 3rem;
  background:
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black 45%, transparent 88%);
  opacity: 0.35;
}
.float-card { animation: floaty 6s ease-in-out infinite; }
@keyframes floaty {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

.section-heading { max-width: 760px; margin-bottom: 1.5rem; }
.info-card, .content-panel, .mini-card { min-height: 100%; }
.feature-list { padding-left: 1.2rem; color: var(--muted); }
.feature-list li { margin: 0.65rem 0; }
.feature-list.compact li { margin: 0.45rem 0; }
.tag-list { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.tag-list span {
  padding: 0.55rem 0.8rem; border-radius: 999px; background: rgba(255,255,255,0.07); color: var(--text);
  border: 1px solid rgba(255,255,255,0.08); font-size: 0.92rem;
}
.inner-hero { max-width: 850px; padding: 4rem 0 2rem; }
.timeline { display: grid; gap: 1rem; }
.timeline-year { color: var(--accent); font-size: 0.86rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.cta-band { padding-bottom: 5rem; }
.cta-card {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.contact-list p { margin: 0 0 1rem; }
.contact-form { display: grid; gap: 1rem; }
.contact-form label { display: grid; gap: 0.45rem; color: var(--muted); }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 0.95rem 1rem; border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.07); color: white; outline: none;
}
.site-footer { padding: 0 0 2rem; text-align: center; color: var(--muted); }

.page-transition {
  position: fixed; inset: 0; pointer-events: none; z-index: 99;
  background: linear-gradient(135deg, #07111f, #0f1b33);
  opacity: 0; transition: opacity 0.35s ease;
}
body.is-transitioning .page-transition { opacity: 1; }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.22s; }

@media (max-width: 920px) {
  .hero-grid, .split-feature, .card-grid.two-col, .card-grid.three-col, .stat-row {
    grid-template-columns: 1fr;
  }
  .hero { min-height: auto; padding-top: 3rem; }
  .hero-visual { 
      display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px; }
  .card-large { inset: 1rem; width: auto; }
  .metric-one { left: 1rem; bottom: 5rem; }
  .metric-two { right: 1rem; bottom: 1rem; }
  .cta-card { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 760px) {
  .site-header { border-radius: 24px; padding: 1rem; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: calc(100% + 0.5rem);
    padding: 0.8rem; border-radius: 24px; flex-direction: column;
    background: rgba(10, 20, 37, 0.95); border: 1px solid rgba(255,255,255,0.12);
    display: none;
  }
  .site-nav.open { display: flex; }
  h1 { font-size: clamp(2.4rem, 10vw, 4rem); }
}


.hero {
  min-height: 88vh;
  display: grid;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-copy h1 {
  max-width: 10ch;
}

.hero-visual {
  position: relative;
  min-height: 560px;
}

.hero-visual-shell {
  position: relative;
  min-height: 100%;
  height: 100%;
  padding: 2rem;
  border-radius: 32px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
}

.hero-visual-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, black 38%, transparent 82%);
  opacity: 0.3;
}

.hero-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.95;
  pointer-events: none;
}

.hero-orb-one {
  width: 220px;
  height: 220px;
  top: 12%;
  left: 8%;
  background: rgba(125, 211, 252, 0.14);
  animation: floaty 8s ease-in-out infinite;
}

.hero-orb-two {
  width: 180px;
  height: 180px;
  right: 10%;
  bottom: 12%;
  background: rgba(96, 165, 250, 0.18);
  animation: floaty 7s ease-in-out infinite reverse;
}

.hero-scramble-card {
  position: absolute;
  top: 2.2rem;
  right: 2.2rem;
  left: 4.5rem;
  z-index: 2;
  padding: 1.5rem;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(8, 17, 30, 0.55);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.hero-mini-label {
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.scramble-wrap {
  margin-top: 0.75rem;
}

.scramble-kicker {
  color: var(--muted);
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.scramble-display {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
  letter-spacing: -0.04em;
  min-height: 3.4em;
  max-width: 12ch;
  max-width: 420px;
  text-shadow: 0 0 24px rgba(125, 211, 252, 0.08);
}

.scramble-char {
  opacity: 0.42;
  color: var(--accent);
}

.scramble-meta {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 1.15rem;
}

.scramble-meta span {
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
}

.scramble-text {
  display: inline-block;
  min-width: 10ch; /* prevents layout shifting */
  will-change: contents;
}

.floating-metric strong {
  display: block;
  margin-bottom: 0.3rem;
}

.floating-metric span {
  color: var(--muted);
  font-size: 0.92rem;
}

.metric-one {
  left: 1.25rem;
  bottom: 7rem;
  z-index: 2;
}

.metric-two {
  right: 1.25rem;
  bottom: 1.2rem;
  z-index: 2;
}

@media (max-width: 920px) {
  .hero-copy h1 {
    max-width: 100%;
  }

  .hero-visual {
    min-height: 460px;
  }

  .hero-scramble-card {
    left: 1.25rem;
    right: 1.25rem;
    top: 1.25rem;
  }

  .scramble-display {
    max-width: 100%;
    min-height: 2.8em;
  }
}

@media (max-width: 760px) {
  .hero-visual {
    min-height: 420px;
  }

  .hero-visual-shell {
    padding: 1rem;
    border-radius: 26px;
  }

  .hero-scramble-card {
    padding: 1.1rem;
  }

  .metric-one {
    bottom: 6.2rem;
  }
}


/* ================================
   RESPONSIVE SCRAMBLE OPTIMIZATION
   ================================ */
.hero-copy h1 {
  max-width: 12ch;
  overflow-wrap: break-word;
}

.scramble-inline-wrap {
  display: inline-block;
  min-width: 8ch;
  white-space: nowrap;
  vertical-align: baseline;
}

.scramble-inline {
  display: inline-block;
  color: var(--accent);
}

.hero-visual {
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-scramble-panel {
  width: min(100%, 480px);
  padding: 1.5rem;
  border-radius: 28px;
}

.scramble-display-wrap {
  margin-top: 0.8rem;
  min-height: 3.2em;
}

.scramble-display {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.04em;
  max-width: 12ch;
  min-height: 2.4em;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#scramble-text,
#scramble-inline {
  contain: content;
}

@media (max-width: 920px) {
  .hero-copy h1 {
    max-width: 11ch;
  }

  .hero-visual {
    min-height: 360px;
  }

  .hero-scramble-panel {
    width: 100%;
  }

  .scramble-display {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .hero-copy h1 {
    font-size: clamp(1.95rem, 8vw, 3rem);
    line-height: 1.08;
    max-width: 10.5ch;
  }

  .scramble-inline-wrap {
    min-width: 7ch;
  }

  .hero-visual {
    min-height: 300px;
  }

  .hero-scramble-panel {
    padding: 1.2rem;
    border-radius: 24px;
  }

  .scramble-display-wrap {
    min-height: 2.7em;
  }

  .scramble-display {
    font-size: clamp(1.35rem, 6vw, 2.1rem);
    line-height: 1.18;
    max-width: 10ch;
  }
}

@media (max-width: 480px) {
  .site-shell {
    width: min(calc(100% - 1rem), var(--max));
  }

  .section-pad {
    padding: 3rem 0;
  }

  .hero-copy h1 {
    font-size: clamp(1.7rem, 9vw, 2.25rem);
    line-height: 1.1;
    max-width: 10ch;
  }

  .scramble-inline-wrap {
    min-width: 6.5ch;
  }

  .hero-actions {
    gap: 0.75rem;
  }

  .btn {
    width: 100%;
  }

  .hero-visual {
    min-height: 240px;
  }

  .hero-scramble-panel {
    padding: 1rem;
  }

  .scramble-kicker {
    font-size: 0.76rem;
    margin-bottom: 0.7rem;
  }

  .scramble-display-wrap {
    min-height: 2.4em;
  }

  .scramble-display {
    font-size: clamp(1.15rem, 7vw, 1.55rem);
    max-width: 9ch;
  }

  .scramble-meta {
    gap: 0.5rem;
    margin-top: 0.9rem;
  }

  .scramble-meta span {
    padding: 0.42rem 0.7rem;
    font-size: 0.78rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .float-card,
  .hero-orb-one,
  .hero-orb-two,
  .reveal,
  .btn,
  .logo-img {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}