:root {
  --paper: #f5f3ee;          /* warm page background */
  --paper-2: #ece8e0;
  --card: #ffffff;
  --night: #0b1020;          /* dark premium sections */
  --night-2: #141a2e;
  --ink: #141a26;
  --body: #3d4656;
  --muted: #6b7385;
  --line: #e2ddd3;
  --accent: #e5322d;
  --accent-dark: #c4231f;
  --accent-glow: #ff6b5e;
  --accent-soft: #fdecec;
  --ok: #027a48;
  --ok-soft: #ecfdf3;
  --on-dark: #f4f6fb;
  --on-dark-2: #aeb6c7;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(16,24,40,.06), 0 12px 32px rgba(16,24,40,.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--body);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background-color: var(--paper);
  background-image: radial-gradient(rgba(20,26,38,.055) 1px, transparent 1px);
  background-size: 22px 22px;
}
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* Dark premium surface: deep navy with red and indigo glows and a faint grid */
.night {
  position: relative; isolation: isolate; color: var(--on-dark-2);
  background:
    radial-gradient(900px 520px at 88% -8%, rgba(229,50,45,.38), transparent 62%),
    radial-gradient(760px 480px at -6% 30%, rgba(88,101,242,.28), transparent 60%),
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%);
}
.night::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 85%);
}
.night h1, .night h2, .night h3 { color: #fff; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; font-weight: 650; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; font-size: 16px; transition: background .15s, transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 20px rgba(229,50,45,.35); }
.btn-primary:hover { background: var(--accent-dark); box-shadow: 0 8px 26px rgba(229,50,45,.45); }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: #faf9f6; }
.night .btn-ghost { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.22); }
.night .btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-small { padding: 8px 16px; font-size: 14.5px; }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; box-shadow: none; }

/* Header (dark glass) */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11,16,32,.82); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 750; color: #fff; text-decoration: none; font-size: 17px; }
.logo img { width: 30px; height: 30px; }
.nav { display: flex; gap: 24px; margin-left: auto; font-size: 15px; }
.nav a { text-decoration: none; color: var(--on-dark-2); }
.nav a:hover { color: #fff; }
.lang { font-size: 14px; color: var(--on-dark-2); text-decoration: none; border: 1px solid rgba(255,255,255,.2); border-radius: 8px; padding: 4px 10px; }
.lang:hover { color: #fff; }

/* Hero */
.hero { padding: 88px 0 96px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: rgba(18,183,106,.14); color: #6ce9a6; border: 1px solid rgba(108,233,166,.25);
  font-size: 13.5px; font-weight: 600; margin-bottom: 22px;
}
.badge svg { width: 16px; height: 16px; }
.hero h1 { font-size: clamp(36px, 5.2vw, 56px); margin-bottom: 20px; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--accent-glow), #ffa38f);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { font-size: 19px; margin: 0 0 32px; max-width: 34em; color: var(--on-dark-2); }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 28px 0 0; padding: 0; list-style: none; font-size: 14.5px; }
.checks li { display: flex; align-items: center; gap: 6px; }
.checks li::before { content: "✓"; color: #6ce9a6; font-weight: 800; }

.hero-visual { position: relative; }
.hero-visual::before {
  content: ""; position: absolute; inset: 8% 6%; z-index: -1; border-radius: 40px;
  background: radial-gradient(closest-side, rgba(229,50,45,.45), transparent); filter: blur(30px);
}
.mock {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.08);
  transform: perspective(1400px) rotateY(-7deg) rotateX(3deg);
}
.mock-bar { display: flex; gap: 6px; padding: 10px 14px; border-bottom: 1px solid #eceef2; background: #f6f7f9; }
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: #d0d5dd; }
.mock-bar span:first-child { background: #ff6159; }
.mock-bar span:nth-child(2) { background: #ffbd2e; }
.mock-bar span:nth-child(3) { background: #28c941; }
.mock-body { padding: 22px; background: #eef0f4; }
.mock-page { background: #fff; border-radius: 4px; padding: 28px 30px; box-shadow: 0 1px 3px rgba(16,24,40,.12); }
.mock-page .l { height: 8px; border-radius: 4px; background: #e4e7ec; margin-bottom: 10px; }
.mock-page .title { height: 14px; width: 55%; background: #98a2b3; margin-bottom: 22px; }
.mock-page .hl { background: #ffe666; }
.mock-field { display: flex; align-items: center; gap: 10px; margin: 18px 0; font-size: 13px; color: #697386; }
.mock-field div { flex: 1; border: 1px solid rgba(37,99,235,.4); background: rgba(37,99,235,.07); border-radius: 3px; padding: 4px 8px; color: #141a26; font-family: Helvetica, Arial, sans-serif; }
.mock-sign { display: flex; justify-content: flex-end; margin-top: 16px; }
.mock-sign svg { width: 150px; height: 50px; }
.chip {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 10px 14px; border-radius: 12px; font-size: 13.5px; font-weight: 650; color: var(--ink);
  background: rgba(255,255,255,.96); box-shadow: 0 14px 34px rgba(0,0,0,.35);
}
.chip b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; font-size: 13px; color: #fff; }
.chip-a { left: -26px; bottom: 54px; }
.chip-a b { background: #12b76a; }
.chip-b { right: -18px; top: 70px; }
.chip-b b { background: var(--accent); }

/* Sections */
section { padding: 92px 0; }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 52px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 14px; }
.section-head p { margin: 0; font-size: 18px; color: var(--muted); }
.night .section-head p { color: var(--on-dark-2); }
.alt { background: rgba(236,232,224,.6); border-block: 1px solid var(--line); }

/* Comparison */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 920px; margin: 0 auto; }
.compare .card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.compare .card.bad { background: rgba(255,255,255,.55); }
.compare .card.good { border: 2px solid var(--accent); box-shadow: 0 18px 50px rgba(229,50,45,.14); }
.compare h3 { font-size: 19px; margin-bottom: 16px; }
.compare ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.compare li { display: flex; gap: 10px; }
.compare .bad li::before { content: "✕"; color: #b42318; font-weight: 800; }
.compare .good li::before { content: "✓"; color: var(--ok); font-weight: 800; }

/* Features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: relative;
  transition: transform .2s, box-shadow .2s;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature .ic { width: 46px; height: 46px; border-radius: 12px; background: linear-gradient(135deg, #ff6b5e, var(--accent)); color: #fff; display: grid; place-items: center; margin-bottom: 16px; box-shadow: 0 6px 16px rgba(229,50,45,.3); }
.feature .ic svg { width: 22px; height: 22px; }
.feature h3 { font-size: 17px; margin-bottom: 6px; }
.feature p { margin: 0; font-size: 15px; color: var(--muted); }
.tag { position: absolute; top: 18px; right: 18px; font-size: 11px; font-weight: 750; padding: 3px 8px; border-radius: 999px; background: #f2f4f7; color: var(--muted); letter-spacing: .02em; }
.tag.pro { background: var(--ink); color: #fff; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { text-align: center; padding: 30px 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 46px; height: 46px; margin: 0 auto 16px;
  border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; font-size: 18px;
}
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); }

/* Pricing (on the dark surface) */
.billing { display: flex; justify-content: center; margin-bottom: 36px; }
.billing-toggle { display: inline-flex; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15); border-radius: 999px; padding: 4px; }
.billing-toggle button { border: 0; background: none; padding: 8px 18px; border-radius: 999px; font: inherit; font-size: 15px; cursor: pointer; color: var(--on-dark-2); }
.billing-toggle button[aria-pressed="true"] { background: #fff; color: var(--ink); }
.billing-toggle .save { color: #6ce9a6; font-weight: 700; font-size: 13px; margin-left: 4px; }
.billing-toggle button[aria-pressed="true"] .save { color: var(--ok); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.plan { color: var(--body); background: var(--card); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.plan.featured { outline: 2px solid var(--accent); position: relative; transform: translateY(-10px); box-shadow: 0 30px 70px rgba(229,50,45,.3); }
.plan .ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: 12.5px; font-weight: 700; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.plan h3, .night .plan h3 { font-size: 20px; margin-bottom: 4px; color: var(--ink); }
.plan .desc { color: var(--muted); font-size: 15px; margin: 0 0 18px; min-height: 48px; }
.price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.price strong { font-size: 44px; color: var(--ink); letter-spacing: -0.03em; }
.price span { color: var(--muted); }
.price-note { font-size: 13.5px; color: var(--muted); min-height: 22px; margin: 0 0 20px; }
.plan ul { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 9px; font-size: 15px; }
.plan li { display: flex; gap: 9px; }
.plan li::before { content: "✓"; color: var(--ok); font-weight: 800; }
.plan .btn { margin-top: auto; width: 100%; }
.price-foot { text-align: center; color: var(--on-dark-2); font-size: 14px; margin-top: 30px; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 28px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 4px; }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; font-weight: 650; color: var(--ink); font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 10px 0 0; }

/* Final CTA */
.final { text-align: center; }
.final h2 { font-size: clamp(28px, 3.6vw, 42px); margin-bottom: 12px; }
.final p { margin: 0 0 30px; font-size: 18px; }

/* Footer */
.site-footer { padding: 32px 0; font-size: 14px; color: var(--on-dark-2); background: var(--night); border-top: 1px solid rgba(255,255,255,.08); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.site-footer nav { display: flex; gap: 18px; margin-left: auto; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }

/* Legal pages */
.legal { padding: 56px 0 80px; }
.legal .wrap { max-width: 800px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 44px 48px; }
.legal h1 { font-size: 36px; margin-bottom: 8px; }
.legal h2 { font-size: 21px; margin: 34px 0 8px; }
.legal .updated { color: var(--muted); margin: 0 0 24px; }

/* Responsive */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 56px; }
  .mock { transform: none; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; }
  .plan.featured { transform: none; }
  .plan .desc { min-height: 0; }
}
@media (max-width: 680px) {
  .nav, .site-header .lang { display: none; }
  .site-header .wrap { gap: 12px; }
  .logo, .site-header .btn { white-space: nowrap; }
  .site-header .btn { margin-left: auto; }
  .hero { padding: 56px 0 64px; }
  section { padding: 64px 0; }
  .compare, .steps, .features { grid-template-columns: 1fr; }
  .chip-a { left: 8px; bottom: -18px; }
  .chip-b { right: 8px; top: -18px; }
  .legal .wrap { padding: 28px 20px; }
  .site-footer nav { margin-left: 0; }
}
