:root {
  --bg: #0b0f1e;
  --bg-soft: #12172b;
  --surface: #ffffff;
  --surface-soft: #f6f7fb;
  --ink: #0b0f1e;
  --ink-soft: #4b5263;
  --ink-mute: #7a8199;
  --line: #e4e7f0;
  --brand: #5b6cff;
  --brand-2: #8b5cf6;
  --brand-ink: #ffffff;
  --success: #10b981;
  --danger: #ef4444;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 40px -10px rgba(11, 15, 30, .12);
  --shadow-lg: 0 30px 60px -20px rgba(11, 15, 30, .35);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav__inner { display: flex; justify-content: space-between; align-items: center; height: 68px; }
.nav__brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); font-size: 16px; }
.nav__brand:hover { text-decoration: none; }
.nav__logo {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: white; display: grid; place-items: center; font-weight: 800;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px; line-height: 1;
  text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: all .15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: var(--brand-ink);
  box-shadow: 0 8px 20px -8px rgba(91, 108, 255, .6);
}
.btn--primary:hover { box-shadow: 0 14px 30px -8px rgba(91, 108, 255, .75); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--sm { padding: 8px 14px; font-size: 13px; }
.btn--lg { padding: 16px 30px; font-size: 16px; }

/* Hero */
.hero {
  background:
    radial-gradient(1000px 500px at 20% -10%, rgba(91, 108, 255, .15), transparent 60%),
    radial-gradient(800px 400px at 90% 10%, rgba(139, 92, 246, .12), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #fbfbff 100%);
  padding: 70px 0 80px;
  border-bottom: 1px solid var(--line);
}
.hero__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.hero__text h1 {
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.08; letter-spacing: -0.02em;
  margin: 16px 0 18px; font-weight: 800;
}
.accent {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: 18px; color: var(--ink-soft); max-width: 560px; margin: 0 0 28px; }
.hero__cta { display: flex; gap: 12px; margin-bottom: 40px; flex-wrap: wrap; }
.hero__meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 520px; }
.hero__meta > div { display: flex; flex-direction: column; gap: 4px; }
.hero__meta strong { font-size: 22px; font-weight: 700; color: var(--ink); }
.hero__meta span { font-size: 13px; color: var(--ink-mute); }

.badge {
  display: inline-block;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(91, 108, 255, .1); color: var(--brand);
  font-size: 13px; font-weight: 600;
}
.badge--light { background: rgba(255, 255, 255, .15); color: white; }

/* Hero visual */
.hero__visual { position: relative; }
.mail-card {
  background: white; border-radius: 18px;
  box-shadow: var(--shadow-lg);
  overflow: hidden; transform: rotate(-1.5deg);
  border: 1px solid var(--line);
}
.mail-card__bar {
  display: flex; gap: 8px; padding: 14px 18px;
  background: var(--surface-soft); border-bottom: 1px solid var(--line);
}
.mail-card__bar span { width: 12px; height: 12px; border-radius: 50%; background: #d0d4e0; }
.mail-card__bar span:first-child { background: #ff6b6b; }
.mail-card__bar span:nth-child(2) { background: #ffd166; }
.mail-card__bar span:nth-child(3) { background: #06d6a0; }
.mail-card__row {
  display: grid; grid-template-columns: 20px 1fr auto; gap: 10px 14px;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
  align-items: center;
}
.mail-card__row:last-child { border-bottom: 0; }
.mail-card__row .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}
.mail-card__row .dot--read { background: var(--line); }
.mail-card__row .from { font-weight: 600; font-size: 14px; }
.mail-card__row .time { font-size: 12px; color: var(--ink-mute); }
.mail-card__row .subject {
  grid-column: 2 / 4; font-size: 13px; color: var(--ink-soft);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mail-card__row--unread .from, .mail-card__row--unread .subject { color: var(--ink); font-weight: 600; }

/* Features */
.features { padding: 80px 0; }
.features h2 {
  text-align: center; font-size: clamp(26px, 3.5vw, 38px);
  margin: 0 0 48px; letter-spacing: -0.01em;
}
.features__grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.feature {
  background: var(--surface-soft);
  padding: 28px; border-radius: var(--radius);
  border: 1px solid var(--line);
  transition: all .2s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); background: white; }
.feature__icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: white; color: var(--brand);
  display: grid; place-items: center; font-size: 20px; font-weight: 700;
  margin-bottom: 18px; border: 1px solid var(--line);
}
.feature h3 { margin: 0 0 8px; font-size: 18px; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* Pricing */
.pricing {
  background: linear-gradient(135deg, #0b0f1e 0%, #1a1740 50%, #2a1f5c 100%);
  padding: 90px 0;
  position: relative; overflow: hidden;
}
.pricing::before {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(139, 92, 246, .3), transparent 60%);
}
.pricing__card {
  max-width: 640px; margin: 0 auto; text-align: center;
  color: white; position: relative; z-index: 1;
}
.pricing__card h2 {
  font-size: clamp(30px, 4vw, 44px); margin: 20px 0 16px;
  letter-spacing: -0.02em; font-weight: 800;
}
.pricing__card .lead { color: rgba(255, 255, 255, .75); margin: 0 auto 32px; }
.pricing__list {
  list-style: none; padding: 0; margin: 0 0 36px;
  display: grid; gap: 12px;
  text-align: left; max-width: 420px; margin-left: auto; margin-right: auto;
}
.pricing__list li {
  padding: 12px 18px; background: rgba(255, 255, 255, .07);
  border-radius: 10px; font-size: 15px;
  border: 1px solid rgba(255, 255, 255, .1);
}
.pricing__list li::before { content: '✓  '; color: var(--success); font-weight: 700; }

/* Register form */
.register { padding: 90px 0; background: var(--surface-soft); }
.register h2 { font-size: clamp(26px, 3.5vw, 38px); margin: 0 0 14px; text-align: center; }
.register .lead { text-align: center; margin: 0 auto 48px; }
.form {
  background: white; padding: 36px; border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid var(--line);
  max-width: 760px; margin: 0 auto;
}
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; color: var(--ink-soft); }
.form__full { grid-column: 1 / -1; }
.form__check { flex-direction: row !important; align-items: flex-start; gap: 10px; font-size: 13px; }
.form__check input { margin-top: 3px; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"] {
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 15px; color: var(--ink); background: white;
  font-family: inherit; transition: border .15s ease;
}
.form input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(91, 108, 255, .15); }
.form__inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.form__inline input { flex: 1; min-width: 180px; }
.form__suffix { color: var(--ink-mute); font-weight: 500; font-size: 15px; }
.form__hint { font-size: 13px; margin-top: 6px; display: block; min-height: 18px; }
.form__hint.ok { color: var(--success); }
.form__hint.err { color: var(--danger); }
.form__actions { display: flex; justify-content: center; margin-top: 32px; }
.form__status {
  margin-top: 20px; padding: 14px 18px; border-radius: var(--radius-sm);
  font-size: 15px; display: none;
}
.form__status.ok { display: block; background: rgba(16, 185, 129, .1); color: var(--success); border: 1px solid rgba(16, 185, 129, .3); }
.form__status.err { display: block; background: rgba(239, 68, 68, .08); color: var(--danger); border: 1px solid rgba(239, 68, 68, .3); }

/* FAQ */
.faq { padding: 80px 0; }
.faq h2 { text-align: center; font-size: clamp(26px, 3.5vw, 38px); margin: 0 0 40px; }
.faq details {
  max-width: 740px; margin: 0 auto 12px;
  background: var(--surface-soft); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 20px 24px;
  cursor: pointer;
}
.faq details[open] { background: white; box-shadow: var(--shadow); }
.faq summary {
  font-weight: 600; font-size: 16px; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; color: var(--brand); font-weight: 300; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 14px 0 0; color: var(--ink-soft); }

/* Footer */
.footer {
  padding: 40px 0; background: var(--bg); color: rgba(255, 255, 255, .7);
  font-size: 14px;
}
.footer a { color: rgba(255, 255, 255, .85); }
.footer__inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.footer__links { display: flex; gap: 22px; }

/* Nav pills (cross-nav) */
.nav__pills { display: flex; gap: 4px; }
.nav__pill { padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.nav__pill:hover { text-decoration: none; color: var(--ink); }
.nav__pill--active { background: var(--surface-soft); color: var(--ink); }
@media (max-width: 720px) { .nav__pills { display: none; } }

/* Responsive */
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; }
  .hero__meta { grid-template-columns: 1fr 1fr; max-width: none; }
  .form__grid { grid-template-columns: 1fr; }
  .form { padding: 24px; }
}
@media (max-width: 560px) {
  .hero { padding: 50px 0 60px; }
  .features, .register, .faq { padding: 60px 0; }
  .pricing { padding: 70px 0; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}
