:root {
  --bg: #050816;
  --bg-soft: rgba(255, 255, 255, 0.08);
  --text: #f5f7ff;
  --muted: #9ca7c8;
  --accent: #7c5cff;
  --accent-2: #24c7ff;
  --border: rgba(255, 255, 255, 0.14);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --surface: rgba(255, 255, 255, 0.08);
  --surface-strong: rgba(255, 255, 255, 0.12);
  --page-bg: linear-gradient(135deg, #060816 0%, #0c1228 45%, #131b3b 100%);
  --page-glow: rgba(36, 199, 255, 0.22);
}

body.light-theme {
  --text: #0f172a;
  --muted: #475569;
  --accent: #6d28d9;
  --accent-2: #0ea5e9;
  --border: rgba(15, 23, 42, 0.12);
  --shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: rgba(255, 255, 255, 0.95);
  --page-bg: linear-gradient(135deg, #f8fbff 0%, #eef4ff 45%, #fdf2ff 100%);
  --page-glow: rgba(14, 165, 233, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background:
    radial-gradient(circle at top left, var(--page-glow), transparent 32%),
    var(--page-bg);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
}

p,
h1,
h2,
h3,
li,
span {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: white;
  color: #050816;
  text-decoration: none;
  font-weight: 700;
}

.page-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  filter: blur(80px);
  opacity: 0.35;
  pointer-events: none;
  z-index: -1;
}

.glow-one {
  top: -60px;
  left: -80px;
  background: var(--accent);
}

.glow-two {
  bottom: 50px;
  right: -60px;
  background: var(--accent-2);
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 1rem clamp(1.1rem, 3vw, 2rem);
  backdrop-filter: blur(18px);
  background: rgba(5, 8, 22, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.light-theme .header {
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(15, 23, 42, 0.08);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-left: auto;
  margin-right: 1rem;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.3s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
}

.brand {
  color: white;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  gap: 1.2rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

body.light-theme .nav a {
  color: #334155;
}

.nav a:hover {
  color: white;
}

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

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: white;
  margin: 5px 0;
  border-radius: 999px;
}

.section {
  width: min(100%, 1200px);
  margin: 0 auto;
  padding: 5rem clamp(1.1rem, 3vw, 2rem);
  min-width: 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2.5rem;
  align-items: center;
  min-height: 82vh;
}

.hero-copy,
.hero-visual,
.about-copy,
.about-badges,
.section-heading,
.contact-form,
.contact-info {
  min-width: 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}

h3 {
  font-weight: 600;
  letter-spacing: -0.01em;
}

.hero-text,
.card p,
.about-copy p,
.contact-info p,
.form-note,
.process-step p,
.quote-box p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.7rem 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.35rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
}

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

body.light-theme .btn-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.8);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: 1.8rem;
}

.hero-stats div,
.card,
.contact-form,
.contact-info,
.about-badges .badge,
.panel,
.consent-details {
  background: linear-gradient(180deg, var(--surface), rgba(255,255,255,0.05));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

body.light-theme .hero-stats div,
body.light-theme .card,
body.light-theme .contact-form,
body.light-theme .contact-info,
body.light-theme .about-badges .badge,
body.light-theme .panel,
body.light-theme .consent-details {
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,250,252,0.95));
}

.hero-stats div {
  padding: 1rem;
  border-radius: 20px;
  backdrop-filter: blur(16px);
  min-width: 0;
}

.hero-stats strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

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

.hero-visual {
  display: flex;
  justify-content: center;
}

.panel {
  width: min(100%, 480px);
  padding: 1rem;
  border-radius: 28px;
  backdrop-filter: blur(20px);
  animation: float 5s ease-in-out infinite;
}

.panel-top {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.panel-top span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}

.panel-body {
  display: grid;
  gap: 1rem;
}

.mock-card {
  padding: 1rem;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.25), rgba(36, 199, 255, 0.15));
}

.mock-card.large {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.mock-card p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.35rem;
}

.mock-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.section-heading {
  margin-bottom: 2rem;
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1.2rem;
}

.card {
  padding: 1.45rem;
  border-radius: 24px;
  transition: transform 0.35s ease, border-color 0.35s ease;
  min-height: 220px;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(124, 92, 255, 0.5);
}

.about-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.feature-list {
  padding-left: 1.1rem;
  color: var(--muted);
  line-height: 1.8;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1rem;
}

.process-step {
  padding: 1.25rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255,255,255,0.1);
  min-height: 190px;
  min-width: 0;
}

.process-step span {
  display: inline-block;
  margin-bottom: 0.7rem;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent-2);
}

.process-step h3 {
  margin-bottom: 0.5rem;
}

.quote-box {
  margin-top: 1rem;
  padding: 1.2rem 1.4rem;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.2), rgba(36, 199, 255, 0.16));
  border: 1px solid rgba(255,255,255,0.12);
  text-align: center;
  font-weight: 600;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.about-badges {
  display: grid;
  gap: 1rem;
}

.about-badges .badge {
  padding: 1.2rem 1.3rem;
  border-radius: 20px;
  font-weight: 700;
  text-align: center;
}

.contact-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1.3rem;
  align-items: start;
}

.contact-form,
.contact-info {
  border-radius: 24px;
  padding: 1.35rem;
  min-width: 0;
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.consent-group {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.consent-details {
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.consent-details summary {
  cursor: pointer;
  font-weight: 700;
  color: white;
}

.consent-body {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.checkbox-row {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin-bottom: 0;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.5;
  flex-wrap: wrap;
}

.checkbox-row span {
  min-width: 0;
  flex: 1 1 220px;
}

.checkbox-row input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--accent-2);
}

.checkbox-row span {
  display: block;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 0.95rem 1rem;
  color: white;
  outline: none;
  font: inherit;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

input:focus,
textarea:focus {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(36, 199, 255, 0.15);
}

.contact-info a {
  color: var(--text);
  text-decoration: none;
}

.footer {
  padding: 2rem 5vw 3rem;
  color: var(--muted);
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

@media (max-width: 900px) {
  .hero,
  .about-section,
  .contact-wrap,
  .cards-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }
}

@media (max-width: 760px) {
  .header {
    padding: 1rem 1.2rem;
  }

  .section {
    padding: 3.5rem 1.2rem;
  }

  .menu-toggle {
    display: inline-block;
  }

  .nav {
    position: absolute;
    top: 100%;
    right: 1rem;
    flex-direction: column;
    padding: 0.8rem;
    border-radius: 16px;
    background: rgba(5, 8, 22, 0.95);
    border: 1px solid var(--border);
    display: none;
    min-width: 170px;
  }

  .nav.open {
    display: flex;
  }

  .section {
    padding: 3.5rem 1.2rem;
  }

  .hero-actions,
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    display: grid;
  }

  .hero-actions {
    flex-direction: column;
  }
}
