@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@300&display=swap');

:root {
  /* Brand */
  --tw-ground: #07111F;
  --tw-steel: #263A52;
  --tw-transition: #1F7F99;
  --tw-neon: #00F0FF;
  --tw-neon-core: #8CF8FF;

  /* On dark */
  --tw-dark-heading: #FFFFFF;
  --tw-dark-text: #EEF4F8;
  --tw-dark-secondary: #A3B4C4;
  --tw-dark-muted: #8A9CAD;
  --tw-dark-placeholder: #8C9DAD;
  --tw-dark-field: #0E1B2C;
  --tw-dark-tile: #0B2433;

  /* On light */
  --tw-accent-text: #176F86;
  --tw-accent-deep: #0D5F70;
  --tw-accent-tint: #E3F8FB;
  --tw-bar-light: #8FE3EC;
  --tw-bar-mid: #00C8D9;
  --tw-ink: #16191D;
  --tw-body: #4F565E;
  --tw-meta: #5A6068;
  --tw-idle: #6B7178;
  --tw-chip-text: #3A4047;
  --tw-chip-fill: #F0F1F3;
  --tw-border: #E3E5E8;
  --tw-divider: #ECEDEF;
  --tw-input-border: #C9CDD2;
  --tw-surface: #FFFFFF;
  --tw-surface-vote: #F8F9FA;
  --tw-surface-band: #F7F7F7;
  --tw-surface-page: #F6F7F8;

  /* Functional */
  --tw-verified: #1A73E8;
  --tw-downvote: #C2410C;
  --tw-online: #00C8D9;

  /* Type */
  --tw-font-logo: 'Space Grotesk', sans-serif; /* weight 300, -0.04em, logo only */
  --tw-font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  --tw-text-display: clamp(44px, 5.6vw, 80px);
  --tw-text-h1: clamp(32px, 3.6vw, 40px);
  --tw-text-h2: 28px;
  --tw-text-h3: 26px;
  --tw-text-lead: clamp(19px, 2vw, 22px);
  --tw-text-title: 18px;
  --tw-text-body: 16px;
  --tw-text-ui: 15px;
  --tw-text-caption: 14px;
  --tw-text-meta: 13px;
  --tw-text-overline: 12px;

  /* Space */
  --tw-space-1: 4px;
  --tw-space-2: 8px;
  --tw-space-3: 12px;
  --tw-space-4: 16px;
  --tw-space-5: 24px;
  --tw-space-6: 32px;
  --tw-space-7: 48px;
  --tw-space-8: 72px;
  --tw-space-9: 96px;

  /* Shape */
  --tw-radius-pill: 999px;
  --tw-radius-xl: 16px;
  --tw-radius-lg: 12px;
  --tw-radius-md: 10px;
  --tw-radius-sm: 8px;
  --tw-target: 44px;
  --tw-width-site: 1200px;
  --tw-width-app: 1440px;

  /* Effects */
  --tw-glow-sm: 0 0 20px rgba(0, 240, 255, 0.3);
  --tw-glow-lg: 0 0 28px rgba(0, 240, 255, 0.35);
  --tw-glow-text: 0 0 32px rgba(0, 240, 255, 0.35);
  --tw-focus: 2px solid #1F7F99;
}

/* Base & Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--tw-font);
  font-size: var(--tw-text-body);
  line-height: 1.6;
  color: var(--tw-body);
  background-color: var(--tw-ground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Accessibility: Skip Link & Focus Ring */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--tw-space-5);
  z-index: 1000;
  background-color: var(--tw-neon);
  color: var(--tw-ground);
  font-weight: 600;
  font-size: var(--tw-text-ui);
  padding: 12px 20px;
  border-radius: var(--tw-radius-pill);
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: var(--tw-space-4);
}

a:focus-visible,
button:focus-visible {
  outline: var(--tw-focus);
  outline-offset: 2px;
}

/* Container */
.container {
  width: 100%;
  max-width: calc(var(--tw-width-site) + (var(--tw-space-5) * 2));
  margin: 0 auto;
  padding-left: var(--tw-space-5);
  padding-right: var(--tw-space-5);
}

/* ==========================================================================
   Section 1: Site Header (Ground, 72px height, 1px Steel bottom border)
   ========================================================================== */
.site-header {
  background-color: var(--tw-ground);
  border-bottom: 1px solid var(--tw-steel);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background-color: rgba(7, 17, 31, 0.92);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--tw-space-5);
}

/* Brand Lockup */
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-height: var(--tw-target);
  padding: 6px 0;
}

.brand-mark {
  display: block;
  flex-shrink: 0;
}

.brand-wordmark {
  font-family: var(--tw-font-logo);
  font-weight: 300;
  font-size: 26px;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--tw-dark-heading);
  white-space: nowrap;
}

.brand-lockup--small {
  gap: var(--tw-space-2);
}

.brand-lockup--small .brand-wordmark {
  font-size: 21px;
}

/* Header Navigation */
.site-nav {
  display: flex;
  align-items: center;
  gap: var(--tw-space-2);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--tw-target);
  padding: 12px 14px;
  font-size: var(--tw-text-ui);
  font-weight: 500;
  color: var(--tw-dark-secondary);
  text-decoration: none;
  border-radius: var(--tw-radius-pill);
  transition: color 0.18s ease, background-color 0.18s ease;
}

.nav-link:hover {
  color: var(--tw-dark-heading);
  background-color: rgba(38, 58, 82, 0.28);
}

.nav-link--contact {
  color: var(--tw-dark-text);
  font-weight: 600;
  border: 1px solid var(--tw-steel);
  padding: 0 20px;
  height: var(--tw-target);
  margin-left: var(--tw-space-2);
  gap: var(--tw-space-2);
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.nav-link--contact:hover {
  border-color: var(--tw-transition);
  background-color: rgba(31, 127, 153, 0.14);
  color: var(--tw-dark-heading);
}

/* ==========================================================================
   Section 2: Hero (Ground, 104px / 88px padding, Bar Band below)
   ========================================================================== */
.hero {
  background-color: var(--tw-ground);
  padding-top: 104px;
  padding-bottom: 88px;
  border-bottom: 1px solid var(--tw-steel);
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 920px;
  animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--tw-text-overline);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--tw-dark-secondary);
  margin-bottom: var(--tw-space-5);
  padding: 6px 14px;
  background-color: var(--tw-dark-tile);
  border: 1px solid var(--tw-steel);
  border-radius: var(--tw-radius-pill);
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--tw-neon);
  box-shadow: 0 0 10px var(--tw-neon);
}

.hero-headline {
  font-size: var(--tw-text-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--tw-dark-heading);
  margin-bottom: var(--tw-space-6);
}

.hero-headline-line {
  display: block;
}

.hero-headline-accent {
  display: block;
  color: var(--tw-neon);
  text-shadow: var(--tw-glow-text);
  margin-top: 4px;
}

.hero-lead {
  font-size: var(--tw-text-lead);
  font-weight: 400;
  line-height: 1.45;
  color: var(--tw-dark-text);
  max-width: 760px;
  margin-bottom: var(--tw-space-4);
}

.hero-supporting {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--tw-dark-secondary);
  max-width: 680px;
  margin-bottom: var(--tw-space-7);
}

/* Hero Actions (12px apart, 52px tall) */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--tw-space-3);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--tw-space-2);
  height: 52px;
  padding: 0 24px;
  font-family: var(--tw-font);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--tw-radius-pill);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn--primary {
  background-color: var(--tw-neon);
  color: var(--tw-ground);
  border: 1px solid var(--tw-neon);
  box-shadow: var(--tw-glow-lg);
}

.btn--primary:hover {
  background-color: var(--tw-neon-core);
  border-color: var(--tw-neon-core);
  box-shadow: 0 0 36px rgba(0, 240, 255, 0.5);
  transform: translateY(-1px);
}

.btn--secondary {
  background-color: transparent;
  color: var(--tw-dark-text);
  border: 1px solid var(--tw-steel);
}

.btn--secondary:hover {
  border-color: var(--tw-transition);
  background-color: rgba(38, 58, 82, 0.32);
  color: var(--tw-dark-heading);
}

.btn-arrow {
  transition: transform 0.2s ease;
}

.btn:hover .btn-arrow {
  transform: translateX(3px);
}

/* The Closing Window Bar Band (72px under buttons, 1200x120 viewBox) */
.hero-bar-band-wrap {
  margin-top: var(--tw-space-8);
  width: 100%;
}

.bar-band-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.band-bar {
  opacity: 0;
  transform-origin: left center;
  animation: barReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(0.12s + (var(--bar-index, 0) * 0.025s));
}

.band-window-glow,
.band-window-core {
  opacity: 0;
  animation: windowPulse 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.68s forwards;
}

.bar-band-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--tw-space-3);
  font-size: var(--tw-text-meta);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--tw-dark-muted);
}

.bar-band-caption-right {
  color: var(--tw-neon);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   Section 3: Our Focus (Light Content Frame, 96px / 104px padding)
   ========================================================================== */
.focus-section {
  background-color: var(--tw-surface-page);
  color: var(--tw-body);
  padding-top: var(--tw-space-9);
  padding-bottom: 104px;
  border-bottom: 1px solid var(--tw-border);
}

.section-header {
  max-width: 760px;
  margin-bottom: var(--tw-space-7);
}

.section-overline {
  display: block;
  font-size: var(--tw-text-overline);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--tw-accent-text);
  margin-bottom: var(--tw-space-3);
}

.section-title {
  font-size: var(--tw-text-h1);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--tw-ink);
  margin-bottom: var(--tw-space-4);
}

.section-intro {
  font-size: var(--tw-text-title);
  font-weight: 400;
  line-height: 1.5;
  color: var(--tw-body);
}

/* Focus Cards Grid (Flexbox wrap, 3 across, 300px minimum before wrapping, 24px gap) */
.focus-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--tw-space-5);
}

.focus-card {
  flex: 1 1 320px;
  min-width: 300px;
  background-color: var(--tw-surface);
  border: 1px solid var(--tw-border);
  border-radius: var(--tw-radius-xl);
  padding: var(--tw-space-6);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease;
}

.focus-card:hover {
  border-color: var(--tw-input-border);
}

/* 48px Tint Icon Tile with 24px Icon */
.card-icon-tile {
  width: 48px;
  height: 48px;
  border-radius: var(--tw-radius-lg);
  background-color: var(--tw-accent-tint);
  color: var(--tw-accent-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--tw-space-5);
}

.card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--tw-space-2);
  margin-bottom: var(--tw-space-2);
}

.card-label {
  font-size: var(--tw-text-meta);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--tw-accent-text);
}

.card-chip {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--tw-radius-pill);
  background-color: var(--tw-accent-tint);
  color: var(--tw-accent-deep);
}

.card-title {
  font-size: var(--tw-text-h3);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--tw-ink);
  margin-bottom: var(--tw-space-3);
}

.card-description {
  font-size: var(--tw-text-body);
  line-height: 1.6;
  color: var(--tw-body);
  margin-bottom: var(--tw-space-5);
}

/* Mini-bar bullet list inside Focus cards */
.card-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--tw-space-3);
  padding-top: var(--tw-space-5);
  border-top: 1px solid var(--tw-divider);
  margin-top: auto;
}

.card-bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--tw-body);
}

.mini-bar-glyph {
  flex-shrink: 0;
  margin-top: 4px;
}

/* Mission & Platform Roadmap Strip inside Light Frame */
.mission-panel {
  margin-top: var(--tw-space-7);
  background-color: var(--tw-surface);
  border: 1px solid var(--tw-border);
  border-radius: var(--tw-radius-xl);
  padding: var(--tw-space-6);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--tw-space-6);
}

.mission-copy {
  flex: 1 1 420px;
}

.mission-heading {
  font-size: var(--tw-text-h2);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--tw-ink);
  margin-bottom: var(--tw-space-3);
}

.mission-text {
  font-size: var(--tw-text-body);
  line-height: 1.6;
  color: var(--tw-body);
}

.roadmap-pillars {
  flex: 1 1 420px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--tw-space-4);
}

.roadmap-item {
  background-color: var(--tw-surface-vote);
  border: 1px solid var(--tw-divider);
  border-radius: var(--tw-radius-lg);
  padding: var(--tw-space-4);
}

.roadmap-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.roadmap-item-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--tw-ink);
}

.roadmap-flair {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--tw-radius-pill);
  background-color: var(--tw-chip-fill);
  color: var(--tw-chip-text);
}

.roadmap-item-desc {
  font-size: var(--tw-text-caption);
  line-height: 1.5;
  color: var(--tw-meta);
}

/* ==========================================================================
   Section 4: Contact (Clean Minimal Editorial Band, 96px padding)
   ========================================================================== */
.contact-section {
  background-color: var(--tw-surface);
  padding-top: var(--tw-space-9);
  padding-bottom: var(--tw-space-9);
  border-bottom: 1px solid var(--tw-border);
}

.contact-card {
  background-color: var(--tw-ground);
  border: 1px solid var(--tw-steel);
  border-radius: var(--tw-radius-xl);
  padding: var(--tw-space-8) var(--tw-space-7);
  color: var(--tw-dark-text);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--tw-space-6);
  position: relative;
  overflow: hidden;
}

.contact-overline {
  font-size: var(--tw-text-overline);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--tw-neon-core);
  margin-bottom: var(--tw-space-3);
}

.contact-headline {
  font-size: var(--tw-text-h1);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--tw-dark-heading);
  margin-bottom: var(--tw-space-4);
}

.contact-description {
  font-size: var(--tw-text-lead);
  font-weight: 400;
  line-height: 1.45;
  color: var(--tw-dark-secondary);
  max-width: 640px;
}

.contact-action-area {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--tw-space-5);
  width: 100%;
  padding-top: var(--tw-space-4);
  border-top: 1px solid var(--tw-steel);
}

.contact-email-link {
  display: inline-flex;
  align-items: center;
  gap: var(--tw-space-3);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--tw-dark-heading);
  text-decoration: none;
  min-height: var(--tw-target);
  padding: 6px 0;
  position: relative;
  transition: color 0.2s ease;
}

.contact-email-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 2px;
  background-color: var(--tw-neon);
  box-shadow: var(--tw-glow-sm);
  transform: scaleX(0.35);
  transform-origin: left center;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-email-link:hover {
  color: var(--tw-neon);
}

.contact-email-link:hover::after {
  transform: scaleX(1);
}

.contact-email-arrow {
  color: var(--tw-transition);
  transition: transform 0.2s ease, color 0.2s ease;
}

.contact-email-link:hover .contact-email-arrow {
  color: var(--tw-neon);
  transform: translate(3px, -3px);
}

/* ==========================================================================
   Section 5: Footer (Ground, 48px / 40px padding, Steel divider)
   ========================================================================== */
.site-footer {
  background-color: var(--tw-ground);
  padding-top: 48px;
  padding-bottom: 40px;
  color: var(--tw-dark-secondary);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--tw-space-5);
  padding-bottom: var(--tw-space-6);
  border-bottom: 1px solid var(--tw-steel);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--tw-space-2);
}

.footer-descriptor {
  font-size: var(--tw-text-caption);
  color: var(--tw-dark-secondary);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--tw-space-2);
}

.footer-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--tw-target);
  padding: 10px 12px;
  font-size: var(--tw-text-caption);
  font-weight: 400;
  color: var(--tw-dark-secondary);
  text-decoration: none;
  border-radius: var(--tw-radius-sm);
  transition: color 0.18s ease;
}

.footer-link:hover {
  color: var(--tw-dark-heading);
}

.footer-bottom {
  padding-top: var(--tw-space-5);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--tw-space-4);
}

.footer-legal {
  font-size: var(--tw-text-meta);
  color: var(--tw-dark-muted);
}

/* ==========================================================================
   Animations & Reduced Motion
   ========================================================================== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes barReveal {
  from {
    opacity: 0;
    transform: scaleY(0.75);
  }
  to {
    opacity: 1;
    transform: scaleY(1);
  }
}

@keyframes windowPulse {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .band-bar,
  .band-window-glow,
  .band-window-core,
  .hero-content {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ==========================================================================
   Responsive Design (Tablet & Mobile Refinements)
   ========================================================================== */
@media (max-width: 768px) {
  .hero {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .hero-bar-band-wrap {
    margin-top: var(--tw-space-7);
  }

  .focus-section,
  .contact-section {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .contact-card {
    padding: var(--tw-space-7) var(--tw-space-5);
  }

  .nav-link--hide-mobile {
    display: none;
  }
}

@media (max-width: 480px) {
  .header-inner {
    gap: var(--tw-space-2);
  }

  .brand-wordmark {
    font-size: 22px;
  }

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

  .btn {
    width: 100%;
  }

  .focus-card {
    min-width: 100%;
    padding: var(--tw-space-5);
  }

  .mission-panel {
    padding: var(--tw-space-5);
  }

  .bar-band-caption {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}
