:root {
  --bg-dark: #0b132b;
  --bg-dark-2: #1c2541;
  --accent: #5bc0be;
  --accent-ink: #0b132b;
  --ink: #0b132b;
  --muted: #546e7a;
  --card: #ffffff;
  --border: rgba(255, 255, 255, 0.16);
  --max: 1120px;
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
  background: var(--card);
  color: var(--ink);
  line-height: 1.5;
}

a {
  color: inherit;
}

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Top nav ---------- */
.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 19, 43, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.topnav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
}

.brand img {
  height: 30px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: #d0d8ff;
  font-size: 15px;
  font-weight: 500;
}

.nav-links a:hover {
  color: #fff;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-switch {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 3px;
}

.lang-switch a {
  text-decoration: none;
  color: #b9c2e6;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 9px;
  border-radius: 8px;
}

.lang-switch a.active {
  background: var(--accent);
  color: var(--accent-ink);
}

.nav-toggle {
  display: none;
}

/* ---------- Buttons ---------- */
.btn {
  appearance: none;
  border: none;
  border-radius: 14px;
  padding: 13px 22px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.btn.primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 10px 24px rgba(91, 192, 190, 0.35);
}

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

.btn.primary:disabled {
  opacity: 0.7;
  cursor: default;
  transform: none;
}

.btn.ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.btn.ghost-dark {
  background: transparent;
  color: var(--ink);
  border: 2px solid #dde2ee;
}

.btn.ghost-dark:hover {
  border-color: var(--accent);
}

.btn.small {
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 10px;
}

.btn.block {
  width: 100%;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, #0b132b 0%, #1c2541 100%);
  color: #fff;
  padding: 64px 0 88px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.badge {
  display: inline-block;
  background: rgba(91, 192, 190, 0.15);
  color: var(--accent);
  border: 1px solid rgba(91, 192, 190, 0.4);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
}

.hero p.lead {
  margin: 0 0 26px;
  color: #d0d8ff;
  font-size: clamp(16px, 1.6vw, 19px);
  max-width: 560px;
}

.hero .cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.hero .trust {
  color: #9fb0e8;
  font-size: 13px;
}

/* ---------- Dashboard mock ---------- */
.mock-window {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  transform: rotate(0.4deg);
}

.mock-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #eef1f8;
  border-bottom: 1px solid #e1e5f0;
}

.mock-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d6dbe8;
}

.mock-dot:nth-child(1) {
  background: #ff5f57;
}

.mock-dot:nth-child(2) {
  background: #febc2e;
}

.mock-dot:nth-child(3) {
  background: #28c840;
}

.mock-titlebar span.title {
  margin-left: 8px;
  font-size: 12px;
  color: #6b7690;
  font-weight: 600;
}

.mock-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 16px;
  background: #f6f8fc;
}

.mock-col h4 {
  margin: 0 0 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #7c88a8;
}

.mock-card {
  background: #fff;
  border: 1px solid #e6e9f3;
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 8px;
  font-size: 12px;
  color: #2a3352;
  box-shadow: 0 2px 6px rgba(20, 30, 60, 0.06);
}

.mock-col:nth-child(2) .mock-card {
  border-left-color: #7c9bff;
}

.mock-col:nth-child(3) .mock-card {
  border-left-color: #38b26a;
}

.mock-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #3a8f8d);
  display: inline-block;
  margin-right: 6px;
  vertical-align: middle;
}

/* ---------- Sections ---------- */
section {
  padding: 76px 0;
}

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 42px;
}

/* ---------- Legal pages ---------- */
.legal-page {
  padding: 56px 0 88px;
}

.wrap.legal-wrap {
  max-width: 760px;
}

.legal-updated {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 4px;
}

.legal-content h2 {
  font-size: clamp(26px, 3.4vw, 32px);
  margin: 0 0 6px;
}

.legal-content h3 {
  font-size: 19px;
  margin: 34px 0 10px;
}

.legal-content p {
  color: #33415c;
  line-height: 1.7;
  margin: 0 0 14px;
}

.legal-content ul {
  margin: 0 0 14px;
  padding-left: 22px;
  color: #33415c;
  line-height: 1.7;
}

.legal-content li {
  margin-bottom: 6px;
}

.legal-content a {
  color: #2a8886;
}

.section-head h2 {
  font-size: clamp(24px, 3vw, 34px);
  margin: 0 0 12px;
}

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

/* ---------- Features ---------- */
.features {
  background: #f6f8fc;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: 0 10px 30px rgba(20, 30, 60, 0.06);
  border: 1px solid #eef0f7;
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(91, 192, 190, 0.14);
  color: #2a8886;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

/* ---------- How it works ---------- */
.how {
  background: var(--card, #ffffff);
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step {
  text-align: center;
  padding: 0 10px;
}

.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-dark, #0b132b);
  color: var(--accent, #5bc0be);
  font-weight: 700;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  border: 2px solid var(--accent, #5bc0be);
  box-shadow: 0 6px 16px rgba(11, 19, 43, 0.25);
}

.step h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

/* ---------- Pricing ---------- */
.pricing {
  background: #f6f8fc;
}

.trial-badge {
  display: inline-block;
  margin-top: 14px;
  background: rgba(91, 192, 190, 0.14);
  color: #2a8886;
  border: 1px solid rgba(91, 192, 190, 0.35);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.price-card {
  position: relative;
  background: var(--card);
  border: 1px solid #eef0f7;
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: 0 10px 30px rgba(20, 30, 60, 0.06);
  display: flex;
  flex-direction: column;
}

.price-card.popular {
  border: 2px solid var(--accent);
  box-shadow: 0 16px 40px rgba(91, 192, 190, 0.22);
  transform: translateY(-6px);
}

.price-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.price-card h3 {
  margin: 4px 0 6px;
  font-size: 20px;
}

.price-desc {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  min-height: 40px;
}

.price-value {
  font-size: 38px;
  font-weight: 800;
  margin-bottom: 20px;
}

.price-period {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
}

.price-features {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  flex: 1;
}

.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: #33415c;
  margin-bottom: 12px;
}

.price-features li svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #2a8886;
  margin-top: 1px;
}

/* ---------- Registration form ---------- */
.register {
  background: linear-gradient(180deg, #0b132b 0%, #1c2541 100%);
  color: #fff;
}

.register-card {
  max-width: 480px;
  margin: 0 auto;
  background: #fff;
  color: var(--ink);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.register-card h2 {
  margin: 0 0 6px;
  font-size: 24px;
}

.register-card .subtitle {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14.5px;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #33415c;
}

.field input {
  width: 100%;
  border: 1.5px solid #dde2ee;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease;
}

.field input:focus {
  border-color: var(--accent);
}

.field.has-error input {
  border-color: #e5484d;
}

.field-error {
  display: none;
  color: #e5484d;
  font-size: 12.5px;
  margin-top: 6px;
}

.field.has-error .field-error {
  display: block;
}

.subdomain-group {
  display: flex;
  align-items: stretch;
  border: 1.5px solid #dde2ee;
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.subdomain-group:focus-within {
  border-color: var(--accent);
}

.field.has-error .subdomain-group {
  border-color: #e5484d;
}

.subdomain-group input {
  border: none;
  border-radius: 0;
  flex: 1;
  min-width: 0;
}

.subdomain-group input:focus {
  border: none;
}

.subdomain-suffix {
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: #f2f4f9;
  color: #6b7690;
  font-size: 14px;
  white-space: nowrap;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  font-size: 12.5px;
  color: var(--muted);
  margin: 14px 0 0;
  line-height: 1.5;
}

.form-banner {
  display: none;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13.5px;
  margin-bottom: 16px;
}

.form-banner.error {
  display: block;
  background: #fdecea;
  color: #b3261e;
  border: 1px solid #f6c8c5;
}

.form-banner.success {
  display: block;
  background: #e9f8f1;
  color: #14804a;
  border: 1px solid #b9ecd3;
}

.existing-account {
  text-align: center;
  color: #9fb0e8;
  font-size: 13.5px;
  margin: 22px auto 0;
  max-width: 480px;
}

.existing-account strong {
  color: #fff;
}

.spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(11, 19, 43, 0.25);
  border-top-color: var(--accent-ink);
  animation: jc-spin 0.7s linear infinite;
  display: none;
}

.is-loading .spinner {
  display: inline-block;
}

.is-loading .btn-label {
  opacity: 0.85;
}

@keyframes jc-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--bg-dark);
  color: #c6d2ff;
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand img {
  height: 26px;
  width: auto;
}

.footer-tagline {
  font-size: 13px;
  color: #8b98cc;
  margin-top: 4px;
}

.footer-meta {
  font-size: 13px;
  color: #8b98cc;
  text-align: right;
}

.footer-legal {
  margin-top: 8px;
  font-size: 13px;
}

.footer-legal a {
  color: #8b98cc;
  text-decoration: none;
}

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

.footer-legal .sep {
  margin: 0 6px;
  color: #545f8c;
}

.footer-lang {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 8px;
}

.footer-lang a {
  text-decoration: none;
  color: #8b98cc;
  font-size: 13px;
}

.footer-lang a.active {
  color: var(--accent);
  font-weight: 700;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }

  .mock-window {
    max-width: 460px;
    margin: 0 auto;
  }

  .feature-grid,
  .how-grid,
  .pricing-grid {
    grid-template-columns: 1fr 1fr;
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 480px) {
  .topnav .wrap {
    gap: 8px;
  }

  .nav-right {
    gap: 8px;
  }

  .lang-switch a {
    padding: 6px 7px;
    font-size: 12px;
  }

  .nav-right .btn.small {
    padding: 8px 10px;
    font-size: 13px;
  }
}

@media (max-width: 640px) {
  .feature-grid,
  .how-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .price-card.popular {
    transform: none;
  }

  .mock-board {
    grid-template-columns: 1fr;
  }

  .register-card {
    padding: 24px 18px;
  }

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

  .footer-meta {
    text-align: center;
  }

  .footer-lang {
    justify-content: center;
  }
}
