:root {
  --bg: #050711;
  --bg-alt: #090d1a;
  --card: rgba(20, 26, 48, 0.75);
  --border: rgba(255, 255, 255, 0.06);
  --accent: #4fd1c5;
  --accent-soft: rgba(79, 209, 197, 0.12);
  --accent-strong: #38b2ac;
  --text: #ffffff;
  --muted: #a0aec0;
  --danger: #f56565;
  --shadow-soft: 0 22px 50px rgba(0, 0, 0, 0.55);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-pill: 999px;
  --spacing: 1rem;
  --max-width: 1120px;
  --transition: all 0.18s ease-out;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  background: radial-gradient(circle at top, #15192c 0, #050711 55%, #000 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* Layout */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

.section.alt {
  background: radial-gradient(circle at top left, #10152b 0, #050711 55%);
}

.section-title {
  font-size: clamp(2rem, 3vw, 2.4rem);
  margin-bottom: 0.5rem;
}

.section-sub {
  max-width: 640px;
  color: var(--muted);
  margin-bottom: 2rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(5, 7, 17, 0.9), transparent);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 40%;
  background: conic-gradient(from 120deg, #4fd1c5, #63b3ed, #4fd1c5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #050711;
}

.logo-text {
  font-weight: 600;
  letter-spacing: 0.03em;
  font-size: 0.95rem;
}

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

.nav-link {
  font-size: 0.9rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid transparent;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.nav-link.active {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(79, 209, 197, 0.12);
}

.nav-cta {
  background: var(--accent);
  color: #050711;
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-weight: 600;
}

.nav-cta:hover {
  background: var(--accent-strong);
}

/* Hero */

.hero {
  padding: 4.5rem 0 4rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(2.4rem, 4vw, 3.1rem);
  line-height: 1.05;
  margin-bottom: 1rem;
}

.hero-sub {
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 1.5rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.trust-bar {
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.flow-card {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: radial-gradient(circle at top left, rgba(79, 209, 197, 0.12), rgba(10, 14, 33, 0.9));
  box-shadow: var(--shadow-soft);
}

.flow-item {
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(5, 7, 17, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
}

.flow-arrow {
  font-size: 1.1rem;
  opacity: 0.7;
}

.flow-caption {
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 320px;
}

/* Cards / Glass */

.glass {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(
    135deg,
    rgba(13, 18, 39, 0.9),
    rgba(13, 18, 39, 0.65)
  );
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-soft);
}

.card {
  padding: 1.6rem 1.5rem;
}

.mt-lg {
  margin-top: 2.5rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  padding: 0.7rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #050711;
}

.btn.primary:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.02);
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.06);
}

.btn.small {
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
}

/* Grid */

.grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.grid.two {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
}

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

.list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.list li {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.list.numbered {
  counter-reset: step;
}

.list.numbered li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.7rem;
}

.list.numbered li::before {
  counter-increment: step;
  content: counter(step) ".";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 600;
}

.badge {
  display: inline-flex;
  margin-top: 0.7rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8rem;
}

/* Pricing */

.pricing-grid .featured {
  border-color: var(--accent);
  background: linear-gradient(
    145deg,
    rgba(79, 209, 197, 0.12),
    rgba(13, 18, 39, 0.9)
  );
}

.price {
  font-size: 1.6rem;
  margin: 0.4rem 0 0.1rem;
}

.price span {
  font-size: 0.9rem;
  color: var(--muted);
}

.price-sub {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Timeline */

.timeline {
  margin-top: 2rem;
  border-left: 1px dashed rgba(255, 255, 255, 0.18);
  padding-left: 1.5rem;
}

.timeline-item {
  position: relative;
  margin-bottom: 1.7rem;
}

.timeline-step {
  position: absolute;
  left: -2.2rem;
  top: 0.1rem;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  background: var(--accent);
  color: #050711;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

/* Demo wizard */

.demo-output {
  min-height: 260px;
}

.demo-plan,
.demo-estimate {
  margin-top: 0.75rem;
}

.demo-plan p,
.demo-estimate p {
  font-size: 0.9rem;
  color: var(--muted);
}

.demo-cta {
  margin-top: 1.2rem;
}

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.7rem 0 1.4rem;
}

.pill-group label {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.3rem 0.7rem;
  font-size: 0.85rem;
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  cursor: pointer;
  background: rgba(5, 7, 17, 0.7);
}

.pill-group input {
  accent-color: var(--accent);
}

/* Form */

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.field span {
  font-size: 0.85rem;
  color: var(--muted);
}

input,
select,
textarea {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(5, 7, 17, 0.8);
  color: var(--text);
  outline: none;
  transition: var(--transition);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(79, 209, 197, 0.4);
}

textarea {
  resize: vertical;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.8rem;
}

/* FAQ */

.faq {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.faq-item h3 {
  margin-bottom: 0.25rem;
}

/* Final CTA + footer */

.final-cta {
  padding: 2rem 1.8rem;
  text-align: center;
}

.site-footer {
  padding: 1.5rem 0 2rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.8rem;
}

.footer-links a:hover {
  color: var(--text);
}

/* Responsive */

@media (max-width: 880px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

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

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

  .header-inner {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .nav {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .timeline {
    border-left: none;
    padding-left: 0;
  }

  .timeline-step {
    position: static;
    margin-right: 0.5rem;
  }

  .timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
  }
}

@media (max-width: 520px) {
  .hero {
    padding-top: 3.6rem;
  }

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

  .nav {
    justify-content: center;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
