*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:             #ffffff;
  --bg-subtle:      #f8fafc;
  --bg-muted:       #f1f5f9;
  --surface:        #ffffff;
  --border:         #e2e8f0;
  --text:           #0f172a;
  --text-secondary: #334155;
  --text-muted:     #64748b;
  --accent:         #2563eb;
  --accent-dark:    #1d4ed8;
  --accent-light:   #eff6ff;
  --accent-gradient: linear-gradient(135deg, #3b82f6, #7c3aed);
  --green:          #10b981;
  --green-light:    #d1fae5;
  --radius-sm:      8px;
  --radius:         12px;
  --radius-lg:      16px;
  --radius-xl:      24px;
  --shadow-sm:      0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow:         0 4px 16px rgba(0,0,0,.07);
  --shadow-lg:      0 8px 32px rgba(37,99,235,.18);
}

html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; min-height: 100vh; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { opacity: .85; }

/* ── Nav ── */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px; height: 68px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226,232,240,.8);
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.nav-logo { font-size: 19px; font-weight: 800; color: var(--text); letter-spacing: -.5px; }
.nav-logo span { background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-link { font-size: 14px; font-weight: 500; color: var(--text-muted); padding: 8px 14px; border-radius: var(--radius-sm); transition: color .15s, background .15s; }
.nav-link:hover { color: var(--text); background: var(--bg-muted); opacity: 1; }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: 16px; }
.nav-burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; border-radius: var(--radius-sm); border: none; background: none; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--text-muted); border-radius: 2px; }
.nav-mobile-menu { display: none; flex-direction: column; gap: 2px; padding: 12px 16px 20px; position: fixed; top: 68px; left: 0; right: 0; z-index: 99; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: 0 8px 24px rgba(0,0,0,.07); }
.nav-mobile-menu.open { display: flex; }
.nav-mobile-link { font-size: 15px; font-weight: 500; color: var(--text-secondary); padding: 11px 14px; border-radius: var(--radius-sm); }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 22px; border-radius: var(--radius); font-size: 15px; font-weight: 600; cursor: pointer; border: none; transition: all .15s; white-space: nowrap; text-decoration: none; font-family: inherit; }
.btn-primary { background: var(--accent-gradient); color: #fff; box-shadow: 0 4px 20px rgba(37,99,235,.3); }
.btn-primary:hover { opacity: .92; transform: translateY(-1px); box-shadow: 0 8px 28px rgba(37,99,235,.35); }
.btn-outline { background: var(--surface); color: var(--text-secondary); border: 1.5px solid var(--border); }
.btn-outline:hover { background: var(--bg-subtle); border-color: #bfdbfe; color: var(--accent); opacity: 1; transform: translateY(-1px); }
.btn-tg { background: #0ea5e9; color: #fff; box-shadow: 0 4px 16px rgba(14,165,233,.25); }
.btn-tg:hover { background: #0284c7; opacity: 1; transform: translateY(-1px); }
.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-full { width: 100%; }
.btn-large { padding: 14px 28px; font-size: 16px; }

/* ── Layout ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 480px; margin: 0 auto; padding: 0 20px; }
.section { padding: 96px 0; }
.section-title { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; color: var(--text); margin-bottom: 14px; }
.section-sub { font-size: 17px; color: var(--text-muted); line-height: 1.65; max-width: 520px; margin: 0 auto; }
.text-center { text-align: center; }

/* ── Hero ── */
.hero { position: relative; overflow: hidden; padding: 100px 24px 80px; text-align: center; background: linear-gradient(180deg, #eff6ff 0%, #ffffff 60%); }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 50% at 50% -10%, rgba(37,99,235,.1) 0%, transparent 70%); pointer-events: none; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid #bfdbfe; border-radius: 100px; padding: 6px 18px; font-size: 13px; font-weight: 600; color: var(--accent-dark); margin-bottom: 28px; box-shadow: 0 2px 8px rgba(37,99,235,.1); }
.hero-badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(16,185,129,.2); animation: pulse-green 2s infinite; }
@keyframes pulse-green { 0%,100%{box-shadow:0 0 0 3px rgba(16,185,129,.2)} 50%{box-shadow:0 0 0 6px rgba(16,185,129,.05)} }
.hero h1 { font-size: clamp(36px, 6vw, 62px); font-weight: 800; line-height: 1.08; margin-bottom: 20px; letter-spacing: -.03em; color: var(--text); }
.hero h1 .grad { background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-sub { font-size: clamp(16px, 2.5vw, 18px); color: var(--text-muted); line-height: 1.65; max-width: 540px; margin: 0 auto 36px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.hero-trust-item { font-size: 13px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.hero-trust-item svg { color: var(--green); flex-shrink: 0; }
.hero-stats { display: flex; justify-content: center; margin-top: 64px; flex-wrap: wrap; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 28px 40px; max-width: 640px; margin-left: auto; margin-right: auto; box-shadow: var(--shadow-sm); }
.hero-stat { text-align: center; flex: 1; min-width: 140px; padding: 4px 16px; }
.hero-stat + .hero-stat { border-left: 1px solid var(--border); }
.hero-stat strong { display: block; font-size: 28px; font-weight: 800; color: var(--text); letter-spacing: -.02em; }
.hero-stat span { font-size: 13px; color: var(--text-muted); }

/* ── Features ── */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; transition: border-color .2s, box-shadow .2s, transform .2s; }
.feature-card:hover { border-color: #bfdbfe; box-shadow: var(--shadow); transform: translateY(-3px); }
.feature-icon { width: 48px; height: 48px; border-radius: var(--radius); background: var(--accent-light); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.65; }
.feature-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--green); background: var(--green-light); padding: 3px 10px; border-radius: 20px; margin-top: 12px; }

/* ── Steps ── */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; }
.steps-grid::before { content: ''; position: absolute; top: 32px; left: calc(16.67% + 16px); right: calc(16.67% + 16px); height: 2px; background: repeating-linear-gradient(90deg, #bfdbfe 0, #bfdbfe 8px, transparent 8px, transparent 16px); }
.step { text-align: center; padding: 0 24px; }
.step-num { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 20px; background: var(--accent-gradient); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; color: #fff; box-shadow: 0 4px 20px rgba(37,99,235,.3); position: relative; z-index: 1; }
.step h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.step p { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

/* ── Pricing ── */
.pricing-period-tabs { display: inline-flex; background: var(--bg-muted); border-radius: var(--radius); padding: 4px; gap: 2px; margin-bottom: 48px; }
.period-tab { padding: 8px 22px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--text-muted); cursor: pointer; transition: all .15s; border: none; background: none; font-family: inherit; white-space: nowrap; }
.period-tab.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.period-tab .save-tag { font-size: 11px; font-weight: 700; color: var(--green); background: var(--green-light); padding: 2px 7px; border-radius: 20px; margin-left: 6px; }
.plans-grid { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }
.tier-card { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-xl); padding: 32px; width: 340px; position: relative; transition: border-color .2s, box-shadow .2s, transform .2s; box-shadow: var(--shadow-sm); }
.tier-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tier-card.pro { border-color: #93c5fd; background: linear-gradient(180deg, #eff6ff 0%, #ffffff 60%); box-shadow: 0 4px 32px rgba(37,99,235,.12); }
.tier-card.pro:hover { box-shadow: 0 8px 48px rgba(37,99,235,.2); }
.tier-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--accent-gradient); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 20px; border-radius: 100px; white-space: nowrap; box-shadow: 0 4px 12px rgba(37,99,235,.35); }
.tier-header { margin-bottom: 24px; }
.tier-name { font-size: 22px; font-weight: 800; margin-bottom: 4px; color: var(--text); }
.tier-chats { font-size: 14px; color: var(--text-muted); }
.tier-price-main { font-size: 40px; font-weight: 800; color: var(--text); letter-spacing: -.03em; line-height: 1; }
.tier-price-main span { font-size: 18px; font-weight: 600; color: var(--text-muted); }
.tier-price-period { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.tier-price-save { font-size: 12px; font-weight: 700; color: var(--green); background: var(--green-light); padding: 3px 10px; border-radius: 20px; display: inline-block; margin-top: 6px; }
.tier-features { list-style: none; margin: 20px 0 24px; display: flex; flex-direction: column; gap: 10px; }
.tier-features li { font-size: 14px; color: var(--text-secondary); display: flex; align-items: flex-start; gap: 10px; line-height: 1.4; }
.tier-features li::before { content: ''; width: 18px; height: 18px; border-radius: 50%; background: var(--green-light); flex-shrink: 0; background-image: url("data:image/svg+xml,%3Csvg width='10' height='8' viewBox='0 0 10 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4L3.5 6.5L9 1' stroke='%2310b981' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center; margin-top: 1px; }
.pricing-trust { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin-top: 32px; padding: 20px 24px; background: var(--bg-subtle); border-radius: var(--radius-lg); }
.pricing-trust-item { font-size: 13px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }

/* ── FAQ ── */
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q { width: 100%; text-align: left; padding: 20px 4px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 16px; font-weight: 600; color: var(--text); cursor: pointer; background: none; border: none; font-family: inherit; transition: color .15s; }
.faq-q:hover { color: var(--accent); }
.faq-q svg { flex-shrink: 0; color: var(--text-muted); transition: transform .2s; }
.faq-item.open .faq-q svg { transform: rotate(180deg); color: var(--accent); }
.faq-a { display: none; padding: 0 4px 20px; font-size: 15px; color: var(--text-muted); line-height: 1.7; }
.faq-item.open .faq-a { display: block; }

/* ── CTA final ── */
.cta-final { background: #0f172a; padding: 96px 24px; text-align: center; }
.cta-final h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; color: #fff; margin-bottom: 16px; letter-spacing: -.02em; }
.cta-final p { font-size: 17px; color: #64748b; margin-bottom: 36px; max-width: 480px; margin-left: auto; margin-right: auto; }

/* ── Footer ── */
footer { background: #0f172a; color: #94a3b8; padding: 64px 24px 32px; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.8fr 1fr 1fr; gap: 56px; }
.footer-brand-name { font-size: 19px; font-weight: 800; color: #fff; margin-bottom: 12px; letter-spacing: -.5px; }
.footer-brand-name span { background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.footer-desc { font-size: 14px; line-height: 1.75; color: #64748b; max-width: 260px; }
.footer-col-title { font-size: 12px; font-weight: 700; color: #475569; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 11px; }
.footer-links a { font-size: 14px; color: #64748b; transition: color .15s; }
.footer-links a:hover { color: #e2e8f0; opacity: 1; }
.footer-bottom { max-width: 1100px; margin: 48px auto 0; padding-top: 24px; border-top: 1px solid #1e293b; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #475569; flex-wrap: wrap; gap: 8px; }
.footer-legal { font-size: 12px; color: #334155; margin-top: 8px; line-height: 1.7; }

/* ── Pay page ── */
.pay-page { padding: 60px 0; min-height: 80vh; display: flex; align-items: center; background: var(--bg-subtle); }
.pay-box { max-width: 480px; margin: 0 auto; background: #fff; border-radius: var(--radius-xl); padding: 40px; box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.pay-box h1 { font-size: 1.5rem; font-weight: 800; margin-bottom: 28px; text-align: center; letter-spacing: -.02em; }
.pay-summary { border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 28px; background: var(--bg-subtle); }
.pay-row { display: flex; justify-content: space-between; padding: 8px 0; color: var(--text-muted); font-size: 14px; }
.pay-row.total { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 16px; font-size: 1.1rem; color: var(--text); font-weight: 700; }
.pay-note { font-size: 13px; color: var(--text-muted); text-align: center; line-height: 1.6; margin-bottom: 16px; }

/* ── Legal pages ── */
.legal-page { padding: 60px 0; max-width: 780px; margin: 0 auto; }
.legal-page h1 { font-size: 2rem; font-weight: 800; margin-bottom: 8px; letter-spacing: -.02em; }
.date { color: var(--text-muted); margin-bottom: 40px; font-size: 14px; }
.legal-page h2 { font-size: 1.15rem; font-weight: 700; margin: 32px 0 12px; color: var(--text); }
.legal-page p { color: var(--text-secondary); margin-bottom: 10px; font-size: 15px; line-height: 1.7; }
.legal-page ul { padding-left: 20px; margin-bottom: 16px; }
.legal-page li { color: var(--text-secondary); margin-bottom: 6px; font-size: 15px; line-height: 1.7; }

/* ── Responsive ── */
@media (max-width: 1024px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
  .nav { padding: 0 20px; }
  .nav-links, .nav-actions { display: none; }
  .nav-burger { display: flex; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-inner > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .hero { padding: 72px 20px 56px; }
  .hero-stats { flex-direction: column; max-width: 320px; padding: 20px 24px; }
  .hero-stat + .hero-stat { border-left: none; border-top: 1px solid var(--border); padding-top: 16px; margin-top: 16px; }
  .steps-grid { grid-template-columns: 1fr; gap: 32px; }
  .steps-grid::before { display: none; }
  .tier-card { width: 100%; }
  .pricing-period-tabs { width: 100%; }
  .period-tab { flex: 1; text-align: center; padding: 9px 8px; font-size: 13px; }
  .features-grid { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 480px) { .footer-inner { grid-template-columns: 1fr; gap: 32px; } }
