:root {
  --bg-0: #0e171b;
  --bg-1: #12242b;
  --bg-2: #17323c;
  --card: #122129;
  --card-soft: #1a2e37;
  --line: rgba(191, 211, 205, 0.22);
  --line-strong: rgba(191, 211, 205, 0.42);
  --text: #e8f0ec;
  --muted: #afc2bc;
  --accent: #3fb4a2;
  --accent-2: #cc7a52;
  --success: #5dc48c;
  --danger: #f18282;
  --shadow-xl: 0 18px 50px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 10px 28px rgba(0, 0, 0, 0.28);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

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

body.site-body {
  background:
    radial-gradient(900px 540px at 8% 6%, rgba(63, 180, 162, 0.2), transparent 56%),
    radial-gradient(1000px 560px at 92% 12%, rgba(204, 122, 82, 0.2), transparent 54%),
    linear-gradient(165deg, #0b1417 0%, #12242b 48%, #0d1b21 100%);
  color: var(--text);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  line-height: 1.5;
  min-height: 100vh;
}

body.drawer-open {
  overflow: hidden;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.container {
  width: min(1240px, 94vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 300;
  /* Keep header simple: filtered ancestors can break fixed mobile drawers on some mobile browsers. */
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background: linear-gradient(180deg, rgba(14, 23, 27, 0.88), rgba(14, 23, 27, 0.76));
  border-bottom: 1px solid var(--line);
  overflow: visible;
}

.nav-shell {
  min-height: 78px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  color: #f5fbf8;
  background: linear-gradient(135deg, #2f9f95, #c5704e);
  box-shadow: var(--shadow-lg);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-copy strong {
  font-family: "Sora", sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.74rem;
}

.nav-desktop {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.nav-desktop a {
  text-decoration: none;
  color: #d9e8e2;
  font-weight: 500;
  font-size: 0.94rem;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-desktop a:hover {
  color: #ffffff;
  border-bottom-color: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  width: 44px;
  height: 38px;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  color: #f3f9f6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
}

.btn {
  border-radius: 999px;
  padding: 11px 18px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

button.btn {
  font-family: inherit;
  color: inherit;
}

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

.btn-primary {
  background: linear-gradient(135deg, #2f9f95, #2a7f79);
  border-color: rgba(122, 229, 208, 0.3);
  color: #f5fffb;
  box-shadow: var(--shadow-lg);
}

.btn-soft {
  background: rgba(22, 38, 46, 0.7);
  border-color: var(--line-strong);
  color: #e9f2ef;
}

.btn-outline {
  background: transparent;
  border-color: var(--line-strong);
  color: #ecf4f1;
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: #e3f0eb;
  padding: 10px 12px;
}

.btn-full {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  width: 44px;
  height: 38px;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #dce8e3;
  margin: 3px 0;
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(2, 6, 8, 0.82);
  backdrop-filter: blur(2px);
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(84vw, 360px);
  z-index: 1210;
  background: #0f1b23;
  border-left: 1px solid var(--line-strong);
  box-shadow: -18px 0 34px rgba(0, 0, 0, 0.42);
  transform: translateX(100%);
  transition: transform 0.22s ease;
  padding: 18px 18px 24px;
}

.mobile-drawer[aria-hidden="false"] {
  transform: translateX(0%);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.mobile-nav a {
  text-decoration: none;
  border: 1px solid var(--line);
  background: #172a33;
  border-radius: 10px;
  padding: 12px 14px;
  color: #ecf5f2;
}

.mobile-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.mobile-drawer-title {
  font-family: "Sora", sans-serif;
  font-size: 0.96rem;
  letter-spacing: 0.02em;
}

.mobile-drawer-close {
  border: 1px solid var(--line-strong);
  background: #1d3440;
  color: #f1f8f5;
  border-radius: 10px;
  min-width: 84px;
  min-height: 36px;
  padding: 6px 12px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

.site-main {
  padding: 20px 0 0;
}

.section {
  padding: 56px 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(17, 36, 42, 0.62), rgba(18, 34, 41, 0.28));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-header {
  max-width: 860px;
  margin-bottom: 30px;
}

.eyebrow {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(63, 180, 162, 0.2);
  border: 1px solid rgba(123, 235, 214, 0.32);
  color: #dff7ef;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 14px;
}

h1,
h2,
h3,
h4 {
  font-family: "Sora", sans-serif;
  line-height: 1.2;
  margin: 0 0 12px;
  color: #f6f9f8;
}

h1 {
  font-size: clamp(2rem, 4.6vw, 3.45rem);
}

h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.45rem);
}

h3 {
  font-size: clamp(1.02rem, 1.7vw, 1.35rem);
}

p,
li,
label {
  color: #d5e4de;
}

small,
.muted,
.text-muted {
  color: var(--muted);
}

.hero {
  padding-top: 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
  align-items: stretch;
}

.hero-panel,
.hero-side {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(20, 39, 46, 0.95), rgba(15, 27, 33, 0.95));
  box-shadow: var(--shadow-xl);
}

.hero-panel {
  padding: 34px;
}

.hero-side {
  padding: 24px;
}

.hero-copy p {
  margin-top: 0;
  margin-bottom: 18px;
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.kpi {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(16, 29, 36, 0.68);
  padding: 11px;
}

.kpi strong {
  display: block;
  color: #f4faf8;
  margin-bottom: 4px;
}

.side-list {
  margin: 0;
  padding-left: 18px;
}

.side-list li {
  margin-bottom: 10px;
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 14px;
}

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

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

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

.feature-card,
.info-card,
.pricing-card,
.account-card,
.contact-card,
.faq-card,
.legal-card,
.form-card {
  background: linear-gradient(165deg, rgba(24, 41, 49, 0.9), rgba(18, 33, 40, 0.9));
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-lg);
}

.feature-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  font-family: "Sora", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: #f0fbf8;
  background: linear-gradient(135deg, #2f9f95, #c5704e);
  margin-bottom: 10px;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.pill-list li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 0.84rem;
  color: #dbebe6;
  background: rgba(24, 43, 50, 0.66);
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  background: rgba(17, 30, 36, 0.72);
}

.timeline-num {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(63, 180, 162, 0.24);
  border: 1px solid rgba(122, 237, 214, 0.36);
  display: grid;
  place-items: center;
  font-family: "Sora", sans-serif;
  font-weight: 700;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.pricing-price {
  font-family: "Sora", sans-serif;
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 4px 0 10px;
}

.pricing-price span {
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--muted);
}

.pricing-features {
  margin: 0 0 18px;
  padding-left: 18px;
}

.callout {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: 16px;
  background: linear-gradient(145deg, rgba(26, 46, 55, 0.94), rgba(20, 36, 43, 0.94));
}

.callout strong {
  color: #f4fbf8;
}

.form-card,
.auth-card {
  max-width: 860px;
}

.form-shell {
  display: grid;
  gap: 14px;
}

.field-grid {
  display: grid;
  gap: 12px;
}

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

.field {
  display: grid;
  gap: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: rgba(15, 27, 33, 0.9);
  color: #edf6f2;
  padding: 12px 12px;
  font: inherit;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.form-radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.form-radio-row label {
  display: inline-flex;
  gap: 7px;
  align-items: center;
}

.input-with-toggle {
  position: relative;
}

.input-with-toggle input {
  padding-right: 94px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  border: 1px solid var(--line-strong);
  background: rgba(21, 39, 47, 0.96);
  color: #ecf4f1;
  border-radius: 8px;
  height: 32px;
  min-width: 64px;
  font: inherit;
  font-size: 0.84rem;
  cursor: pointer;
}

.alert {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 12px;
}

.alert-success {
  border-color: rgba(126, 226, 167, 0.42);
  background: rgba(42, 106, 68, 0.34);
}

.alert-error {
  border-color: rgba(243, 139, 139, 0.48);
  background: rgba(108, 43, 43, 0.38);
}

.alert-warning {
  border-color: rgba(232, 176, 120, 0.48);
  background: rgba(111, 69, 34, 0.34);
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.inline-links a {
  color: #bde8de;
}

.spacer-top-12 {
  margin-top: 12px;
}

.spacer-top-14 {
  margin-top: 14px;
}

.spacer-top-16 {
  margin-top: 16px;
}

.section-compact {
  padding: 24px 0 0;
}

.account-grid {
  display: grid;
  gap: 14px;
}

.account-card p {
  margin: 0 0 8px;
}

.countdown {
  border: 1px solid rgba(114, 219, 201, 0.4);
  background: rgba(42, 94, 87, 0.32);
  border-radius: 10px;
  padding: 10px 12px;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-card h3 {
  margin-bottom: 8px;
}

.legal-wrap {
  display: grid;
  gap: 14px;
}

.legal-card h3 {
  margin-bottom: 6px;
}

.legal-card ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.site-footer {
  margin-top: 34px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(11, 18, 23, 0.92), rgba(11, 17, 21, 0.96));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 18px;
  padding: 30px 0;
}

.footer-grid section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-grid h4 {
  margin-bottom: 4px;
  font-size: 1rem;
}

.footer-grid a {
  text-decoration: none;
  color: #d2e4dd;
}

.footer-grid a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 12px 0 22px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.stat {
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 12px;
  text-align: center;
  background: rgba(17, 31, 38, 0.7);
}

.stat strong {
  font-family: "Sora", sans-serif;
  font-size: 1.2rem;
  display: block;
}

.billing-type-panels {
  display: grid;
  gap: 14px;
}

.billing-panel[hidden] {
  display: none;
}

.policy-note {
  font-size: 0.95rem;
  color: var(--muted);
}

code,
.code-chip {
  font-family: "IBM Plex Sans", monospace;
  background: rgba(17, 31, 38, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2px 6px;
  color: #dff6ef;
}

@media (max-width: 1180px) {
  .nav-desktop {
    gap: 12px;
  }

  .nav-desktop a {
    font-size: 0.87rem;
  }

  .hero-grid,
  .grid-4,
  .grid-3,
  .pricing-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .nav-toggle {
    display: inline-block;
    justify-self: end;
  }

  .nav-shell {
    grid-template-columns: auto 1fr auto;
  }

  .hero-grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .pricing-grid,
  .field-grid.cols-2,
  .about-stats,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel,
  .hero-side {
    padding: 22px;
  }

  .section {
    padding: 42px 0;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(1240px, 95vw);
  }

  .hero-actions .btn,
  .inline-links a,
  .btn {
    width: 100%;
  }

  .form-radio-row {
    flex-direction: column;
    gap: 10px;
  }

  .timeline-step {
    grid-template-columns: 1fr;
  }

  .timeline-num {
    width: 34px;
    height: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
