:root {
  --bg-0: #01030a;
  --bg-1: #040b1b;
  --bg-2: #08122b;
  --panel: rgba(10, 18, 40, 0.72);
  --panel-strong: rgba(17, 30, 66, 0.9);
  --gradient-1: linear-gradient(135deg, #4dd5ff, #6cffc7);
  --gradient-2: linear-gradient(135deg, #7c5dff, #4dd5ff);
  --text: #f7f8ff;
  --muted: #9aa5c6;
  --border: rgba(255, 255, 255, 0.12);
  --danger: #ff8f9f;
  --shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
  --font-heading: 'Clash Display', 'Space Grotesk', sans-serif;
  --font-body: 'Space Grotesk', 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background: radial-gradient(circle at 15% 20%, #1f2650, #050913 55%, #020409 100%);
  line-height: 1.7;
  position: relative;
}

body::before,
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background: radial-gradient(circle at 70% 10%, rgba(124, 93, 255, 0.35), transparent 55%),
    radial-gradient(circle at 20% 80%, rgba(77, 213, 255, 0.25), transparent 50%);
  filter: blur(40px);
  z-index: -2;
}

body::after {
  background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="160" height="160" viewBox="0 0 160 160"%3E%3Ccircle fill="rgba(255,255,255,0.05)" cx="1" cy="1" r="1"/%3E%3C/svg%3E');
  opacity: 0.4;
  z-index: -1;
}

a {
  color: #6cffc7;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.85;
}

p {
  color: var(--muted);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-size: 0.7rem;
  color: #6cffc7;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.eyebrow::after {
  content: '';
  width: 40px;
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
}

.page {
  width: min(1200px, calc(100vw - 3rem));
  margin: 0 auto;
  padding: 0 0 5rem;
}

.site-header {
  width: min(1200px, calc(100vw - 3rem));
  margin: 1.5rem auto 0;
  padding: 1.25rem 1.75rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: rgba(7, 11, 24, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 1rem;
  z-index: 5;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-mark {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: var(--gradient-2);
  display: grid;
  place-items: center;
  color: #01030a;
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: 0 15px 30px rgba(76, 96, 255, 0.3);
  overflow: hidden;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 8px;
}

.brand-mark-fallback {
  display: none;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.brand-title {
  margin: 0;
  font-size: 1.15rem;
  font-family: var(--font-heading);
  letter-spacing: 0.04em;
}

.brand-tagline {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.main-nav {
  display: flex;
  gap: 1rem;
  font-size: 0.95rem;
}

.main-nav a {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.main-nav a:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
}

.cta {
  border: none;
  border-radius: 999px;
  padding: 0.95rem 1.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--gradient-1);
  color: #021117;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 45px rgba(76, 255, 214, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 30px 55px rgba(76, 255, 214, 0.35);
}

.hero {
  margin-top: 4rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: 2.5rem;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 2rem;
  border-radius: 2rem;
  background: radial-gradient(circle at 80% 20%, rgba(108, 255, 199, 0.18), transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

.lede {
  font-size: 1.1rem;
  color: rgba(247, 248, 255, 0.82);
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 2rem;
}

.cta-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-panel {
  display: grid;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.metric-card {
  padding: 1.6rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--panel-strong);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.metric-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(108, 255, 199, 0.1), transparent);
}

.metric-card > * {
  position: relative;
  z-index: 1;
}

.metric-label {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
}

.metric-value {
  margin: 0.4rem 0 0.2rem;
  font-family: var(--font-heading);
  font-size: 2.4rem;
}

.metric-footnote {
  margin: 0;
  color: rgba(247, 248, 255, 0.7);
}

.section {
  margin-top: 4.5rem;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 2rem;
}

.section-heading h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  position: relative;
  padding: 1.6rem;
  border-radius: 1.5rem;
  border: 1px solid transparent;
  background: rgba(10, 15, 30, 0.85);
  isolation: isolate;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(160deg, rgba(108, 255, 199, 0.35), rgba(124, 93, 255, 0.15));
  z-index: -1;
}

.feature-card::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: rgba(4, 8, 18, 0.8);
  z-index: -1;
}

.feature-metric {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: #6cffc7;
  text-transform: uppercase;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-heading);
}

.steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

.steps-list li {
  position: relative;
  padding: 1.5rem 1.5rem 1.5rem 3.5rem;
  border-radius: 1.5rem;
  background: rgba(6, 10, 22, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.05);
  min-height: 140px;
}

.steps-list li::before {
  content: '';
  position: absolute;
  left: 1.5rem;
  top: 1.5rem;
  bottom: 1.5rem;
  width: 2px;
  background: rgba(108, 255, 199, 0.4);
}

.step-index {
  position: absolute;
  left: 1rem;
  top: 1.2rem;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: #6cffc7;
}

.pillars-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}

.pillars-list li {
  padding: 1.2rem 1.4rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 12, 26, 0.85);
  display: flex;
  gap: 0.7rem;
}

.pillars-list li::before {
  content: '◦';
  color: #6cffc7;
  font-size: 1.2rem;
  line-height: 1;
}

.cta-stripe {
  margin-top: 4.5rem;
  padding: 2.5rem;
  border-radius: 2rem;
  background: linear-gradient(110deg, rgba(124, 93, 255, 0.32), rgba(108, 255, 199, 0.28));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.flash {
  width: min(1200px, calc(100vw - 3rem));
  margin: 1.25rem auto;
  padding: 1rem 1.5rem;
  border-radius: 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(108, 255, 199, 0.45);
  background: rgba(8, 23, 28, 0.8);
  box-shadow: var(--shadow);
}

.flash-danger {
  border-color: rgba(255, 143, 159, 0.6);
  background: rgba(42, 8, 15, 0.85);
}

.flash-dismiss {
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
}

.page-contact .contact-intro {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
  padding: 2.5rem;
  border-radius: 2rem;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-highlights {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
  display: grid;
  gap: 0.75rem;
}

.contact-highlights li {
  padding-left: 1.2rem;
  position: relative;
}

.contact-highlights li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6cffc7;
  position: absolute;
  left: 0;
  top: 0.65rem;
}

.contact-aside {
  border-radius: 1.5rem;
  background: rgba(7, 11, 24, 0.85);
  padding: 1.5rem 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-form-wrapper {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 2rem;
}

.contact-form,
.faq-panel {
  border-radius: 2rem;
  padding: 2rem 2.25rem;
  background: rgba(6, 12, 28, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: var(--shadow);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.3rem;
}

.form-field label {
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-field input,
.form-field textarea {
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(2, 6, 12, 0.75);
  color: var(--text);
  padding: 0.95rem 1rem;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: rgba(108, 255, 199, 0.8);
  box-shadow: 0 0 0 3px rgba(108, 255, 199, 0.15);
}

.form-field.dual {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.form-error {
  color: var(--danger);
  margin: 0;
}

.form-hint,
.form-note {
  color: var(--muted);
  margin: 0.2rem 0 0;
}

.faq-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item button {
  width: 100%;
  background: transparent;
  border: none;
  padding: 1.1rem 0;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.05rem;
  font-weight: 600;
}

.faq-item .answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  margin: 0;
}

.faq-item.open .answer {
  max-height: 220px;
  margin-bottom: 1rem;
}

.page-legal .legal-hero,
.page-legal .legal-cta {
  padding: 2.5rem;
  border-radius: 2rem;
  background: rgba(7, 12, 26, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-sections {
  margin: 2.5rem 0;
  display: grid;
  gap: 1.5rem;
}

.legal-sections article {
  border-radius: 1.75rem;
  padding: 1.8rem;
  background: rgba(5, 10, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.site-footer {
  width: min(1200px, calc(100vw - 3rem));
  margin: 4rem auto 2.5rem;
  padding: 2.5rem 2.8rem;
  border-radius: 2rem;
  background: rgba(5, 9, 16, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

.footer-title {
  margin: 0;
  font-family: var(--font-heading);
}

.footer-copy {
  max-width: 420px;
}

.footer-meta {
  color: var(--muted);
  max-width: 320px;
}

.page-404,
.page-500 {
  text-align: center;
  padding-top: 5rem;
}

.page-404 .actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.link {
  color: #6cffc7;
  text-decoration: underline;
}

@media (max-width: 960px) {
  .site-header {
    flex-direction: column;
    border-radius: 2rem;
  }

  .page-contact .contact-intro,
  .contact-form-wrapper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page {
    width: calc(100vw - 2rem);
    padding: 0 0 4rem;
  }

  .site-header {
    position: sticky;
    top: 0.75rem;
    flex-direction: column;
    padding: 1rem 1.25rem;
    gap: 0.75rem;
  }

  .main-nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.65rem;
  }

  .brand {
    width: 100%;
    justify-content: center;
  }

  .cta {
    width: 100%;
    justify-content: center;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 1.5rem;
    margin-top: 2.5rem;
  }

  .hero h1 {
    font-size: clamp(2.1rem, 8vw, 2.6rem);
  }

  .hero-cta {
    align-items: stretch;
  }

  .metric-card {
    padding: 1.2rem;
  }

  .section {
    margin-top: 3rem;
  }

  .feature-grid,
  .steps-list,
  .pillars-list {
    gap: 1rem;
  }

  .page-contact .contact-intro {
    padding: 1.8rem;
  }

  .contact-form-wrapper {
    gap: 1.25rem;
  }

  .contact-form,
  .faq-panel,
  .cta-stripe {
    padding: 1.5rem;
  }

  .cta-stripe {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer {
    padding: 1.5rem;
    border-radius: 1.5rem;
  }
}
