:root {
  --bg: #f6f8ff;
  --bg-soft: #e9efff;
  --surface: #ffffff;
  --surface-2: #f1f4ff;
  --text: #101a32;
  --text-muted: #526184;
  --primary: #235cff;
  --secondary: #5a8bff;
  --accent: #00b9d9;
  --line: rgba(35, 92, 255, 0.16);
  --hero-glow-a: rgba(35, 92, 255, 0.2);
  --hero-glow-b: rgba(0, 185, 217, 0.18);
  --shadow: 0 18px 55px rgba(35, 92, 255, 0.12);
}

html[data-theme="dark"] {
  --bg: #070b14;
  --bg-soft: #101a30;
  --surface: #101728;
  --surface-2: #18243d;
  --text: #eff5ff;
  --text-muted: #a2b3d4;
  --primary: #84e8ff;
  --secondary: #9490ff;
  --accent: #36d3ff;
  --line: rgba(132, 232, 255, 0.24);
  --hero-glow-a: rgba(132, 232, 255, 0.25);
  --hero-glow-b: rgba(148, 144, 255, 0.2);
  --shadow: 0 20px 70px rgba(7, 11, 20, 0.55);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 650px at 85% -8%, var(--hero-glow-a), transparent 60%),
    radial-gradient(900px 500px at 0% 10%, var(--hero-glow-b), transparent 45%),
    var(--bg);
  line-height: 1.55;
  transition: background-color 0.35s ease, color 0.35s ease;
}

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

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

.container {
  width: min(1120px, calc(100% - 2.2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
}

.nav-wrap {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.16rem;
  white-space: nowrap;
}

.brand-logo {
  width: 56px;
  height: auto;
  display: block;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #ffffff;
  padding: 0.12rem;
  flex-shrink: 0;
}

.brand-text {
  line-height: 1;
}

.desktop-nav {
  display: flex;
  gap: 1.5rem;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.95rem;
}

.desktop-nav a:hover,
.footer-nav a:hover,
.mobile-nav a:hover {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.theme-toggle,
.menu-toggle {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  color: var(--text);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
}

.theme-toggle {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.52rem 0.82rem;
}

.theme-icon {
  font-size: 0.92rem;
}

.menu-toggle {
  display: none;
  padding: 0.52rem 0.95rem;
}

.mobile-nav {
  display: none;
  gap: 0.35rem;
  padding: 0.4rem 1.1rem 1rem;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
}

.mobile-nav:not([hidden]) {
  display: grid;
}

.mobile-nav a {
  padding: 0.7rem 0.4rem;
  font-weight: 700;
  color: var(--text-muted);
}

.hero {
  position: relative;
  overflow: clip;
  padding: clamp(3.2rem, 8vw, 6.5rem) 0 4.8rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.07fr 0.93fr;
  gap: clamp(1.6rem, 4vw, 3.2rem);
  align-items: center;
}

.hero-copy h1 {
  margin: 0.65rem 0 1.2rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 6vw, 4.45rem);
  line-height: 0.93;
  letter-spacing: -0.04em;
}

.hero-copy h1 span {
  color: var(--primary);
}

.hero-copy p {
  margin: 0;
  max-width: 56ch;
  color: var(--text-muted);
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.hero-actions {
  margin-top: 1.8rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.88rem 1.25rem;
  font-weight: 800;
  font-size: 0.93rem;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease, background-color 0.2s ease;
}

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  box-shadow: var(--shadow);
}

html[data-theme="dark"] .btn-primary {
  color: #061224;
}

.btn-ghost {
  border-color: var(--line);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  color: var(--text);
}

.hero-metrics {
  margin: 2.15rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-metrics li {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.9rem 0.8rem;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
}

.hero-metrics strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
}

.hero-metrics span {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.hero-visual {
  position: relative;
  isolation: isolate;
}

.preview-main {
  border: 1px solid var(--line);
  border-radius: 30px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: var(--shadow);
  padding: clamp(0.9rem, 2vw, 1.2rem);
  max-width: min(100%, 440px);
  margin-left: auto;
}

.preview-image {
  border-radius: 20px;
  width: 100%;
  aspect-ratio: 4 / 4;
  object-fit: cover;
  object-position: top;
}

.preview-photo {
  aspect-ratio: 16 / 10;
  object-position: center;
}

.floating-note {
  position: absolute;
  right: clamp(0.2rem, 2vw, 0.8rem);
  bottom: -1.2rem;
  display: grid;
  gap: 0.1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.75rem 0.85rem;
  min-width: 122px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
}

.note-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-family: "Space Grotesk", sans-serif;
}

.note-value {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  color: var(--primary);
  font-size: 1.1rem;
}

.hero-blob {
  position: absolute;
  pointer-events: none;
  filter: blur(80px);
  border-radius: 999px;
}

.hero-blob-a {
  width: 360px;
  height: 320px;
  right: 2%;
  top: 10%;
  background: var(--hero-glow-a);
}

.hero-blob-b {
  width: 320px;
  height: 280px;
  left: -6%;
  bottom: -10%;
  background: var(--hero-glow-b);
}

section {
  padding: clamp(3.6rem, 8vw, 6.3rem) 0;
}

.comparison,
.testimonials {
  background: color-mix(in srgb, var(--bg-soft) 66%, transparent);
}

.section-head {
  margin-bottom: 1.8rem;
  max-width: 650px;
}

.section-head.centered {
  text-align: center;
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.74rem;
  color: var(--primary);
}

.section-head h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.03;
  letter-spacing: -0.03em;
  font-size: clamp(1.6rem, 4.7vw, 3.25rem);
}

.section-head p {
  margin: 0.8rem 0 0;
  color: var(--text-muted);
}

.process-grid,
.testimonial-grid,
.contact-grid {
  display: grid;
  gap: 1.1rem;
}

.comparison-showcase {
  display: grid;
  gap: 1rem;
}

.comparison-table-wrap,
.step-card,
.quote-card,
.contact-form {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: 0 8px 32px rgba(10, 15, 30, 0.06);
}

html[data-theme="dark"] .comparison-table-wrap,
html[data-theme="dark"] .step-card,
html[data-theme="dark"] .quote-card,
html[data-theme="dark"] .contact-form {
  box-shadow: none;
}

.comparison-table-wrap {
  overflow-x: auto;
  padding: 0.35rem;
}

.comparison-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem 1.1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.comparison-table thead th {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  background: color-mix(in srgb, var(--surface-2) 80%, transparent);
}

.comparison-table tbody th {
  width: 18%;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
}

.comparison-table tbody td {
  color: var(--text-muted);
}

.comparison-table tbody tr:last-child th,
.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table tbody tr:nth-child(even) {
  background: color-mix(in srgb, var(--surface-2) 36%, transparent);
}

.process-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.step-card {
  padding: 1.2rem;
}

.step-number {
  display: inline-block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.73rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.58rem;
  color: var(--primary);
}

.step-card h3 {
  margin: 0.9rem 0 0.35rem;
  font-size: 1.24rem;
  line-height: 1.15;
  font-family: "Space Grotesk", sans-serif;
}

.step-card p {
  margin: 0;
  color: var(--text-muted);
}

.testimonial-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quote-card {
  padding: 1.2rem;
  display: grid;
  gap: 0.9rem;
}

.quote-card p {
  margin: 0;
}

.quote-card span {
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.contact-grid {
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.contact h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.03em;
  line-height: 1.03;
  font-size: clamp(1.6rem, 4.5vw, 2.8rem);
}

.contact-copy {
  margin: 0.8rem 0 1rem;
  color: var(--text-muted);
  max-width: 46ch;
}

.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
  font-weight: 700;
}

.contact-form {
  padding: 1.15rem;
  display: grid;
  gap: 0.45rem;
}

.contact-form label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-2) 68%, transparent);
  color: var(--text);
  border-radius: 12px;
  padding: 0.78rem 0.85rem;
  font: inherit;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: color-mix(in srgb, var(--text-muted) 70%, transparent);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--primary) 55%, transparent);
  outline-offset: 1px;
}

.form-feedback {
  min-height: 1.15rem;
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: var(--primary);
  font-weight: 700;
}

.form-feedback.is-loading {
  color: var(--text-muted);
}

.form-feedback.is-error {
  color: #d14b73;
}

.contact-form .btn[disabled] {
  cursor: wait;
  opacity: 0.8;
  transform: none;
}

.site-footer {
  padding: 1.7rem 0 2.1rem;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
}

.footer-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.4rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-brand {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.footer-logo {
  width: 44px;
  height: auto;
  display: block;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #ffffff;
  padding: 0.1rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 980px) {
  .hero-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .preview-main {
    margin-inline: auto;
  }

  .floating-note {
    right: 0.5rem;
    bottom: -0.8rem;
  }

  .process-grid,
  .testimonial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    justify-content: center;
    align-items: center;
  }

  .theme-label {
    display: none;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .process-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .comparison-table-wrap {
    margin-inline: -0.2rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 0.9rem;
  }

  .footer-wrap {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .brand-logo {
    width: 50px;
  }

  .brand-text {
    display: none;
  }
}
