:root {
  --bg0: #08141c;
  --bg1: #0f2433;
  --bg2: #163044;
  --ink: #f2f6f8;
  --muted: #9eb4c2;
  --faint: #6f8796;
  --line: rgba(242, 246, 248, 0.12);
  --accent: #3db8a0;
  --accent-soft: rgba(61, 184, 160, 0.16);
  --accent-ink: #06221c;
  --panel: rgba(12, 28, 40, 0.72);
  --font-display: 'IBM Plex Sans', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --nav-h: 4.25rem;
  --max: 68rem;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 55% at 12% -5%, rgba(61, 184, 160, 0.2), transparent 55%),
    radial-gradient(ellipse 60% 45% at 95% 15%, rgba(48, 120, 170, 0.28), transparent 50%),
    radial-gradient(ellipse 50% 40% at 70% 100%, rgba(61, 184, 160, 0.1), transparent 55%),
    linear-gradient(165deg, var(--bg0), var(--bg1) 45%, #0a1824 100%);
  background-attachment: fixed;
  line-height: 1.5;
}

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

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

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Nav */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(14px);
  background: rgba(8, 20, 28, 0.72);
  border-bottom: 1px solid var(--line);
  animation: navIn 0.55s ease both;
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(var(--max), calc(100% - 2rem));
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
}

.brand-mark {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 0.45rem;
  object-fit: cover;
}

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

.nav-center a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-center a:hover,
.nav-center a[aria-current='page'] {
  color: var(--ink);
}

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

.lang-select {
  appearance: none;
  background: #0f2433;
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.4rem 1.75rem 0.4rem 0.75rem;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 14px) calc(50% - 2px),
    calc(100% - 9px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.lang-select:hover,
.lang-select:focus {
  color: var(--ink);
  border-color: rgba(242, 246, 248, 0.35);
  outline: none;
}

.lang-select option {
  background-color: #0f2433;
  color: #f2f6f8;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.55rem;
  padding: 0 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}

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

.btn-primary {
  background: var(--ink);
  color: #0a1520;
}

.btn-primary:hover {
  background: #fff;
}

.btn-accent {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-accent:hover {
  background: #4ecfb5;
}

.btn-ghost {
  color: var(--ink);
  border-color: rgba(242, 246, 248, 0.28);
  background: transparent;
}

.btn-ghost:hover {
  border-color: rgba(242, 246, 248, 0.55);
  background: rgba(255, 255, 255, 0.05);
}

.btn-sm {
  min-height: 2.2rem;
  padding: 0 0.95rem;
  font-size: 0.88rem;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 0.5rem;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  align-items: center;
  padding: 3rem 0 3.5rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(61, 184, 160, 0.18), transparent 60%),
    linear-gradient(180deg, transparent 40%, rgba(8, 20, 28, 0.55) 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem;
  animation: rise 0.75s ease both;
}

.hero-copy {
  max-width: 38rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0 0 0.75rem;
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin: 0 0 0.9rem;
  color: var(--ink);
}

.hero-sub {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 32rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-visual {
  position: relative;
  min-height: 14rem;
  border-radius: 1.25rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(61, 184, 160, 0.12), transparent 45%),
    linear-gradient(220deg, rgba(40, 110, 160, 0.2), transparent 50%),
    var(--panel);
  overflow: hidden;
}

.hero-visual svg {
  width: 100%;
  height: 100%;
  min-height: 16rem;
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
  }
}

/* Sections */
.section {
  padding: 5rem 0;
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.65rem;
  font-weight: 700;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.feat-grid {
  display: grid;
  gap: 2.25rem 2.75rem;
}

@media (min-width: 800px) {
  .feat-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feat h3 {
  margin: 0 0 0.55rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.feat p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.feat-index {
  display: block;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}

.steps {
  display: grid;
  gap: 1.75rem;
  counter-reset: step;
}

@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.step {
  padding-top: 0.25rem;
  border-top: 2px solid var(--accent);
}

.step h3 {
  margin: 1rem 0 0.5rem;
  font-size: 1.1rem;
}

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

.teaser {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}

.teaser .section-head {
  margin-bottom: 0;
}

.faq-list {
  display: grid;
  gap: 0;
  max-width: 44rem;
}

.faq-item {
  border-top: 1px solid var(--line);
  padding: 1.15rem 0;
}

.faq-item:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  letter-spacing: -0.015em;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin: 0.65rem 0 0;
  color: var(--muted);
}

.final-cta {
  text-align: center;
  padding: 5rem 0 4.5rem;
}

.final-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.8vw, 2.7rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
}

.final-cta p {
  margin: 0 auto 1.5rem;
  color: var(--muted);
  max-width: 28rem;
}

/* Pricing page */
.page-hero {
  padding: 3.5rem 0 2rem;
  animation: rise 0.65s ease both;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  letter-spacing: -0.035em;
  margin: 0 0 0.75rem;
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 34rem;
}

.plans-grid {
  display: grid;
  gap: 1.15rem;
  padding: 1rem 0 3rem;
}

@media (min-width: 720px) {
  .plans-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .plans-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.plan-card {
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  padding: 1.5rem 1.4rem 1.35rem;
  background: var(--panel);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.plan-card:hover {
  border-color: rgba(61, 184, 160, 0.45);
  transform: translateY(-2px);
}

.plan-card.featured {
  border-color: rgba(61, 184, 160, 0.55);
  box-shadow: 0 0 0 1px rgba(61, 184, 160, 0.2);
}

.plan-name {
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: -0.03em;
  margin: 0 0 0.35rem;
}

.plan-price {
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0.4rem 0 0.15rem;
}

.plan-price-note {
  color: var(--faint);
  font-size: 0.85rem;
  margin: 0 0 1.1rem;
}

.plan-limits {
  list-style: none;
  margin: 0 0 1.35rem;
  padding: 0;
  color: var(--muted);
  font-size: 0.95rem;
  flex: 1;
}

.plan-limits li {
  padding: 0.35rem 0;
  border-top: 1px solid var(--line);
}

.plan-limits li:last-child {
  border-bottom: 1px solid var(--line);
}

.plan-card .btn {
  width: 100%;
}

.plans-note {
  color: var(--faint);
  font-size: 0.9rem;
  max-width: 40rem;
  margin: 0 0 4rem;
}

.plans-empty {
  color: var(--muted);
  padding: 2rem 0 4rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.footer-copy {
  color: var(--faint);
  font-size: 0.85rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes navIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

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

  .nav-toggle {
    display: grid;
  }

  .site-nav.open .nav-center {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(8, 20, 28, 0.96);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.25rem;
    gap: 0.85rem;
  }

  .nav-actions .btn-ghost.nav-signin {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero-inner,
  .page-hero,
  .site-nav,
  .btn,
  .plan-card {
    animation: none !important;
    transition: none !important;
  }
}
