:root {
  --bg: #07111f;
  --bg-soft: #0f2138;
  --surface: #ffffff;
  --surface-soft: #f5f8fc;
  --surface-strong: #0c1728;
  --text: #132238;
  --text-soft: #56677d;
  --text-inverse: #ecf3ff;
  --primary: #2563eb;
  --primary-strong: #1d4ed8;
  --accent: #3dd3ff;
  --border: rgba(20, 42, 74, 0.12);
  --shadow: 0 18px 50px rgba(9, 24, 45, 0.12);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: #ffffff;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

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

.site-shell {
  overflow: hidden;
}

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

.funding-banner {
  background: #e8edf4;
}

.funding-banner img {
  width: 100%;
  height: auto;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(24, 41, 66, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 24px;
}

.brand-logo {
  height: 52px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  font-size: 0.95rem;
  font-weight: 600;
  color: #18324d;
  transition: color 0.25s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #18324d;
  margin: 5px 0;
  border-radius: 999px;
}

.section {
  padding: 104px 0;
}

.section-dark {
  position: relative;
  padding: 96px 0 72px;
  background:
    radial-gradient(circle at 20% 20%, rgba(61, 211, 255, 0.2), transparent 28%),
    radial-gradient(circle at 80% 30%, rgba(37, 99, 235, 0.24), transparent 30%),
    linear-gradient(135deg, #07111f 0%, #0f2138 55%, #0f3158 100%);
  color: var(--text-inverse);
}

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

.eyebrow {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a9d6ff;
  margin-bottom: 18px;
}

.section-light .eyebrow,
.section-white .eyebrow,
.section-gradient .eyebrow,
.section-brand .eyebrow {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.12);
  color: var(--primary-strong);
}

.hero h1,
.section-heading h2,
.brand-copy h2 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  max-width: 13ch;
}

.hero-lead {
  font-size: 1.15rem;
  color: rgba(236, 243, 255, 0.88);
  max-width: 64ch;
  margin: 24px 0 18px;
}

.hero-copy p:not(.hero-lead) {
  color: rgba(236, 243, 255, 0.72);
  max-width: 68ch;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 34px;
}

.hero-points span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.92rem;
  font-weight: 600;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: white;
  background: linear-gradient(135deg, #3dd3ff 0%, #2563eb 100%);
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.28);
}

.btn-secondary {
  color: #eef5ff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.device-stage {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.device-glow {
  position: absolute;
  inset: 8% 16%;
  background: radial-gradient(circle, rgba(61, 211, 255, 0.42), rgba(37, 99, 235, 0.14) 48%, transparent 72%);
  filter: blur(28px);
}

.hero-device {
  position: relative;
  width: min(82%, 520px);
  transform: rotate(-8deg);
  filter: drop-shadow(0 30px 56px rgba(0, 0, 0, 0.3));
  animation: floatDevice 6s ease-in-out infinite;
}

@keyframes floatDevice {
  0%, 100% { transform: rotate(-8deg) translateY(0); }
  50% { transform: rotate(-5deg) translateY(-16px); }
}

.metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 40px;
}

.metric-card {
  padding: 24px 22px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.metric-value {
  font-size: 1.55rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}

.metric-label {
  color: rgba(236, 243, 255, 0.76);
  font-size: 0.94rem;
}

.section-light {
  background: var(--surface-soft);
}

.section-gradient {
  background: linear-gradient(180deg, #f8fbff 0%, #eef5fb 100%);
}

.section-white {
  background: #ffffff;
}

.section-dark-alt {
  background:
    radial-gradient(circle at top right, rgba(61, 211, 255, 0.16), transparent 28%),
    linear-gradient(135deg, #091427 0%, #0c1728 100%);
  color: var(--text-inverse);
}

.section-brand {
  background: linear-gradient(180deg, #edf5ff 0%, #ffffff 100%);
}

.two-col {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
}

.section-heading {
  max-width: 760px;
}

.section-heading.center {
  text-align: center;
  margin: 0 auto 24px;
}

.section-heading h2,
.brand-copy h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  color: #0c2038;
}

.section-dark-alt .section-heading h2 {
  color: var(--text-inverse);
}

.section-heading p {
  color: var(--text-soft);
  max-width: 70ch;
  margin: 18px auto 0;
}

.content-stack p,
.impact-item p,
.brand-copy p,
.project-note p,
.footer-copy,
.info-card p,
.device-card-body p,
.timeline-step p,
.capability-card p {
  color: var(--text-soft);
}

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

.glass-card,
.device-card,
.capability-card,
.project-panel,
.brand-panel {
  box-shadow: var(--shadow);
}

.info-card {
  padding: 34px 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,254,0.98));
  border: 1px solid var(--border);
}

.card-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: linear-gradient(135deg, #3dd3ff, #2563eb);
  display: grid;
  place-items: center;
  color: white;
  font-weight: 800;
  margin-bottom: 18px;
}

.info-card h3,
.device-card-body h3,
.timeline-step h3,
.capability-card h3,
.impact-item h3,
.project-note h3,
.footer h4 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.advanced-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr 0.85fr;
  gap: 24px;
  align-items: stretch;
}

.device-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.device-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.device-card-body {
  padding: 24px;
}

.large-card img {
  aspect-ratio: 1.1 / 1;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 34px;
}

.timeline-step {
  position: relative;
  padding: 28px 24px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3dd3ff, #2563eb);
  color: white;
  font-weight: 800;
  margin-bottom: 18px;
}

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

.capability-card {
  padding: 28px 24px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.section-dark-alt .capability-card p,
.section-dark-alt .section-heading p {
  color: rgba(236, 243, 255, 0.76);
}

.impact-grid {
  align-items: start;
}

.impact-list {
  display: grid;
  gap: 18px;
}

.impact-item {
  padding: 24px 24px 22px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.brand-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
  background: linear-gradient(135deg, #0d2542 0%, #103864 100%);
  border-radius: 32px;
  padding: 42px;
  color: var(--text-inverse);
}

.brand-panel h2,
.brand-panel p {
  color: var(--text-inverse);
}

.brand-mark-wrap {
  display: flex;
  justify-content: center;
}

.brand-mark-large {
  width: min(100%, 420px);
  background: rgba(255, 255, 255, 0.94);
  border-radius: 28px;
  padding: 20px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.22);
}

.project-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
}

.project-table {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.project-row {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 16px;
  padding: 18px 20px;
  background: #ffffff;
}

.project-row + .project-row {
  border-top: 1px solid var(--border);
}

.project-row .label {
  font-weight: 700;
  color: #19324a;
}

.project-row .value {
  color: #35506e;
  font-weight: 600;
}

.project-note {
  padding: 24px;
  border-radius: 22px;
  background: linear-gradient(180deg, #edf5ff, #f7fbff);
  border: 1px solid rgba(37, 99, 235, 0.12);
}

.footer {
  background: #07111f;
  color: rgba(236, 243, 255, 0.88);
  padding: 48px 0 54px;
}

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

.footer-logo {
  height: 56px;
  width: auto;
  margin-bottom: 18px;
  filter: brightness(1.08);
}

.footer h4 {
  color: #ffffff;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .hero-grid,
  .two-col,
  .brand-panel,
  .project-panel,
  .footer-grid,
  .advanced-grid {
    grid-template-columns: 1fr;
  }

  .timeline,
  .capabilities-grid,
  .cards-grid,
  .metrics-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .device-stage {
    min-height: 420px;
  }
}

@media (max-width: 820px) {
  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 18px 20px 22px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(24, 41, 66, 0.08);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .hero {
    padding-top: 80px;
  }

  .section {
    padding: 78px 0;
  }

  .timeline,
  .capabilities-grid,
  .cards-grid,
  .metrics-strip {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(var(--container), calc(100% - 24px));
  }

  .nav-inner {
    min-height: 74px;
  }

  .brand-logo {
    height: 44px;
  }

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

  .hero-lead {
    font-size: 1rem;
  }

  .hero-points {
    gap: 10px;
  }

  .hero-points span {
    width: 100%;
  }

  .device-stage {
    min-height: 320px;
  }

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

  .brand-panel,
  .project-panel,
  .timeline-step,
  .info-card,
  .device-card-body,
  .capability-card,
  .impact-item {
    padding-left: 18px;
    padding-right: 18px;
  }
}
