:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-soft: #eef2ff;
  --accent: #0ea5e9;
  --gradient: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 20px 50px rgba(79, 70, 229, 0.15);
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.25);
}
.btn-primary:hover { background: var(--primary-hover); }
.btn-outline {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover { border-color: #cbd5e1; background: #f8fafc; }
.btn-ghost { background: transparent; color: var(--text); padding: 10px 14px; }
.btn-ghost:hover { color: var(--primary); }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 247, 251, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { border-bottom-color: var(--border); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.brand img { width: 34px; height: 34px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a { font-size: 15px; font-weight: 500; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: var(--text);
}

/* Hero */
.hero { padding: 80px 0 64px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary);
}
.hero h1 {
  font-size: clamp(38px, 5.5vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  font-weight: 700;
}
.hero h1 .grad {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 520px;
  margin: 0 0 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--muted); }

/* Inbox mock */
.inbox {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.inbox-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: #fafbfe;
}
.inbox-bar span { width: 10px; height: 10px; border-radius: 50%; background: #e2e8f0; }
.inbox-bar span:nth-child(1) { background: #fca5a5; }
.inbox-bar span:nth-child(2) { background: #fcd34d; }
.inbox-bar span:nth-child(3) { background: #86efac; }
.inbox-bar .addr {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 6px;
  width: auto; height: auto;
}
.mail {
  display: flex;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.mail:last-child { border-bottom: 0; }
.avatar {
  flex: 0 0 40px;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700; color: #fff; font-size: 15px;
}
.avatar.a { background: var(--gradient); }
.avatar.b { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.avatar.c { background: linear-gradient(135deg, #10b981, #0ea5e9); }
.mail-body { flex: 1; min-width: 0; }
.mail-top { display: flex; justify-content: space-between; gap: 8px; }
.mail-top strong { font-size: 14px; }
.mail-top time { font-size: 12px; color: var(--muted); }
.mail-subject { font-size: 14px; margin: 2px 0; }
.mail-preview { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.unread .mail-subject { font-weight: 600; }

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head h2 {
  font-size: clamp(30px, 4vw, 40px);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 14px;
  font-weight: 700;
}
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08); }
.card .icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.card .icon svg { width: 24px; height: 24px; }
.card h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* Security */
.security-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar { text-align: center; padding: 16px; }
.pillar .icon {
  width: 64px; height: 64px;
  border-radius: 18px;
  margin: 0 auto 18px;
  background: var(--gradient);
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 24px rgba(99, 102, 241, 0.25);
}
.pillar .icon svg { width: 28px; height: 28px; }
.pillar h3 { margin: 0 0 8px; font-size: 18px; }
.pillar p { margin: 0; color: var(--muted); font-size: 15px; }
.section-cta { text-align: center; margin-top: 44px; }
.link-arrow { color: var(--primary); font-weight: 600; }
.link-arrow:hover { text-decoration: underline; }

/* Pricing */
.pricing-wrap { display: flex; justify-content: center; }
.price-card {
  position: relative;
  background: var(--surface);
  border: 2px solid var(--primary);
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  max-width: 460px;
  box-shadow: var(--shadow-lg);
}
.badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 999px;
  text-transform: uppercase;
}
.price-card h3 { margin: 4px 0 6px; font-size: 22px; text-align: center; }
.price-card .plan-desc { text-align: center; color: var(--muted); margin: 0 0 20px; font-size: 15px; }
.price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin-bottom: 28px;
}
.price .amount { font-size: 56px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.price .period { color: var(--muted); font-size: 15px; }
.benefits { list-style: none; padding: 0; margin: 0 0 28px; }
.benefits li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 9px 0; font-size: 15px;
}
.benefits li .check {
  flex: 0 0 22px; width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--primary-soft); color: var(--primary);
  display: grid; place-items: center;
  margin-top: 1px;
}
.benefits li .check svg { width: 13px; height: 13px; }
.price-note { text-align: center; font-size: 13px; color: var(--muted); margin: 14px 0 0; }
.price-note + .price-note { margin-top: 6px; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 22px;
  margin-bottom: 12px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-weight: 600;
  font-size: 16px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 22px; color: var(--muted); font-weight: 400; line-height: 1;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--muted); font-size: 15px; }

/* Final CTA */
.cta {
  padding: 96px 0;
  background: var(--gradient);
  color: #fff;
  text-align: center;
}
.cta h2 { font-size: clamp(30px, 4vw, 40px); letter-spacing: -0.03em; margin: 0 0 14px; }
.cta p { margin: 0 auto 32px; max-width: 560px; font-size: 17px; opacity: .92; }
.cta .btn-primary { background: #fff; color: var(--primary); box-shadow: 0 10px 30px rgba(0,0,0,.15); }
.cta .btn-primary:hover { background: #f1f5f9; }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 64px 0 32px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand p { color: var(--muted); font-size: 14px; max-width: 320px; margin: 14px 0 0; }
.footer-col h4 {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 14px; color: var(--text); }
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}

/* Sub pages */
.page { padding: 72px 0 96px; }
.page-narrow { max-width: 760px; margin: 0 auto; }
.page h1 { font-size: clamp(32px, 4.5vw, 44px); letter-spacing: -0.03em; margin: 0 0 12px; }
.page .subtitle { color: var(--muted); font-size: 17px; margin: 0 0 40px; }
.page h2 { font-size: 22px; margin: 36px 0 10px; letter-spacing: -0.02em; }
.page p, .page li { color: #334155; font-size: 16px; }
.page .card { margin-top: 24px; }

/* Forms (auth pages) */
.auth { min-height: calc(100vh - 72px); display: grid; place-items: center; padding: 48px 24px; }
.auth-card {
  width: 100%; max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 36px;
  box-shadow: var(--shadow-lg);
}
.auth-card h1 { font-size: 26px; margin: 0 0 6px; letter-spacing: -0.02em; text-align: center; }
.auth-card .subtitle { text-align: center; color: var(--muted); margin: 0 0 28px; font-size: 15px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  font-size: 15px;
  background: #fff;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}
.field .hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.addr-input { display: flex; align-items: stretch; }
.addr-input input { border-radius: 10px 0 0 10px; }
.addr-input .suffix {
  display: flex; align-items: center;
  padding: 0 14px;
  border: 1px solid var(--border); border-left: 0;
  border-radius: 0 10px 10px 0;
  background: #f8fafc; color: var(--muted); font-size: 14px;
}
.auth-alt { text-align: center; font-size: 14px; color: var(--muted); margin-top: 22px; }
.auth-alt a { color: var(--primary); font-weight: 600; }
.plan-summary {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--primary-soft);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 22px;
  font-size: 14px;
}
.plan-summary strong { color: var(--primary); }
.form-msg { display: none; margin-top: 16px; padding: 12px 14px; border-radius: 10px; font-size: 14px; }
.form-msg.ok { display: block; background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-3, .security-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links, .nav-actions .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header.open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 16px;
  }
  .site-header.open .nav-links a { display: block; padding: 10px 0; font-size: 16px; }
  .hero { padding: 48px 0 40px; }
  .section { padding: 64px 0; }
  .grid-3, .security-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .price-card { padding: 30px 24px; }
  .auth-card { padding: 28px 22px; }
}
