/* ── Variables ────────────────────────────────────────────────────────── */
:root {
    --primary:      #6366f1;
    --primary-dark: #4338ca;
    --primary-light:#eef2ff;
    --success:      #10b981;
    --warning:      #f59e0b;
    --danger:       #ef4444;
    --dark:         #0f172a;
    --dark-2:       #1e293b;
    --text:         #334155;
    --muted:        #64748b;
    --border:       #e2e8f0;
    --bg:           #f8fafc;
    --white:        #ffffff;
    --radius:       12px;
    --radius-sm:    8px;
    --shadow:       0 4px 24px rgba(0,0,0,.08);
    --shadow-lg:    0 12px 48px rgba(0,0,0,.14);
    --font:         'Inter', system-ui, -apple-system, sans-serif;
}

/* ── Reset & Base ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* ── Container ───────────────────────────────────────────────────────── */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn-primary {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--primary);
    color: var(--white) !important;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    border: none; cursor: pointer;
    transition: background .2s, transform .1s;
    text-decoration: none !important;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }

.btn-ghost {
    display: inline-flex; align-items: center;
    color: var(--text);
    padding: 10px 18px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-weight: 500; font-size: 14px;
    background: var(--white);
    cursor: pointer; transition: border-color .2s;
    text-decoration: none;
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }

.btn-hero {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--white);
    color: var(--primary-dark) !important;
    padding: 16px 32px;
    border-radius: var(--radius-sm);
    font-weight: 700; font-size: 17px;
    border: none; cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,.18);
    transition: transform .15s, box-shadow .15s;
    text-decoration: none !important;
}
.btn-hero:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,.22); text-decoration: none; }

.btn-hero-light {
    background: transparent;
    color: var(--white) !important;
    border: 2px solid rgba(255,255,255,.6);
    box-shadow: none;
}
.btn-hero-light:hover { background: rgba(255,255,255,.1); box-shadow: none; }

.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; justify-content: center; }
.btn-pricing { width: 100%; justify-content: center; padding: 16px; font-size: 17px; margin: 8px 0; }
.btn-download { width: 100%; justify-content: center; padding: 14px; font-size: 15px; }
.btn-copy {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--primary-light); color: var(--primary-dark);
    border: none; border-radius: var(--radius-sm);
    padding: 8px 14px; font-size: 13px; font-weight: 600; cursor: pointer;
    transition: background .2s;
}
.btn-copy:hover { background: #dde4ff; }

/* ── Header ──────────────────────────────────────────────────────────── */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 0;
}
.header-inner {
    display: flex; align-items: center; gap: 24px;
    height: 64px;
}
.logo {
    display: flex; align-items: center; gap: 8px;
    font-weight: 700; font-size: 15px;
    color: var(--dark) !important;
    text-decoration: none !important;
    white-space: nowrap;
}
.logo:hover { text-decoration: none !important; }
.logo-icon { font-size: 20px; }
.site-nav { display: flex; gap: 24px; margin-left: auto; }
.site-nav a {
    color: var(--muted); font-size: 14px; font-weight: 500;
    text-decoration: none; transition: color .2s;
}
.site-nav a:hover { color: var(--dark); text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle { display: flex; gap: 2px; }
.lang-btn {
    padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 600;
    color: var(--muted); text-decoration: none; transition: all .2s;
}
.lang-btn.active { background: var(--primary-light); color: var(--primary-dark); }
.lang-btn:hover { background: var(--bg); text-decoration: none; }
.nav-toggle { display: none; background: none; border: none; font-size: 20px; cursor: pointer; }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero {
    background: linear-gradient(135deg, var(--dark) 0%, #1a1f3e 50%, #0f2d5e 100%);
    padding: 80px 0 60px;
    overflow: hidden;
}
.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,.1);
    color: rgba(255,255,255,.8);
    padding: 6px 14px; border-radius: 100px;
    font-size: 13px; font-weight: 600; margin-bottom: 24px;
}
.hero-badge span { color: var(--white); }
.hero-title {
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 20px;
}
.hero-sub {
    font-size: 18px; line-height: 1.6;
    color: rgba(255,255,255,.75);
    margin-bottom: 36px;
}
.hero-buy-form {
    display: flex; gap: 8px; margin-bottom: 12px;
}
.hero-email-input {
    flex: 1;
    padding: 14px 18px;
    border: none; border-radius: var(--radius-sm);
    font-size: 15px; outline: none;
}
.hero-email-input::placeholder { color: var(--muted); }
.hero-meta {
    font-size: 13px; color: rgba(255,255,255,.5);
    margin-bottom: 24px;
}
.hero-warning {
    display: flex; align-items: flex-start; gap: 8px;
    background: rgba(245,158,11,.1);
    border: 1px solid rgba(245,158,11,.3);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 13px; color: rgba(255,255,255,.7);
}
.hero-warning a { color: #fbbf24; }
.warning-icon { flex-shrink: 0; }

/* ── Hero screenshot mock ────────────────────────────────────────────── */
.hero-screenshot { display: flex; justify-content: center; align-items: center; }
.screenshot-window {
    background: #1e293b;
    border-radius: 12px;
    box-shadow: 0 24px 80px rgba(0,0,0,.4);
    overflow: hidden;
    width: 100%;
    max-width: 460px;
    border: 1px solid rgba(255,255,255,.08);
}
.screenshot-bar {
    background: #0f172a;
    padding: 10px 16px;
    display: flex; align-items: center; gap: 6px;
}
.screenshot-bar span {
    width: 10px; height: 10px; border-radius: 50%;
    display: inline-block;
}
.screenshot-bar span:nth-child(1) { background: #ef4444; }
.screenshot-bar span:nth-child(2) { background: #f59e0b; }
.screenshot-bar span:nth-child(3) { background: #10b981; }
.screenshot-title {
    width: auto; height: auto; border-radius: 0; background: none;
    font-size: 11px; color: rgba(255,255,255,.4); margin-left: 8px;
}
.screenshot-content { padding: 16px; }
.mock-header {
    display: flex; gap: 8px; margin-bottom: 16px;
    padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.mock-stat {
    flex: 1; text-align: center; background: rgba(255,255,255,.05);
    border-radius: 8px; padding: 10px 6px;
}
.mock-stat strong { display: block; font-size: 20px; color: white; font-weight: 700; }
.mock-stat small  { font-size: 10px; color: rgba(255,255,255,.4); }
.mock-stat.pending   strong { color: #f59e0b; }
.mock-stat.suggested strong { color: #6366f1; }
.mock-stat.resolved  strong { color: #10b981; }
.mock-row {
    display: grid; grid-template-columns: 1fr auto auto auto;
    gap: 8px; align-items: center;
    padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.04);
    font-size: 11px;
}
.mock-row:last-child { border-bottom: none; }
.mock-url  { color: rgba(255,255,255,.7); font-family: monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-score { font-weight: 700; padding: 2px 6px; border-radius: 4px; font-size: 11px; }
.mock-score.high { background: rgba(16,185,129,.15); color: #34d399; }
.mock-score.mid  { background: rgba(99,102,241,.15); color: #a5b4fc; }
.mock-badge { padding: 2px 8px; border-radius: 20px; font-size: 10px; font-weight: 600; }
.mock-badge.suggested { background: rgba(99,102,241,.2); color: #a5b4fc; }
.mock-badge.resolved  { background: rgba(16,185,129,.2); color: #34d399; }
.mock-action { color: #6366f1; font-weight: 700; }
.mock-row.resolved .mock-url { color: rgba(255,255,255,.4); }
.mock-row.resolved .mock-action { color: #10b981; }

/* ── Sections ────────────────────────────────────────────────────────── */
.section         { padding: 80px 0; }
.section-alt     { background: var(--bg); }
.section-dark    { background: var(--dark); text-align: center; }
.section-dark h2 { color: var(--white); font-size: 36px; font-weight: 800; margin-bottom: 12px; }
.section-dark p  { color: rgba(255,255,255,.65); font-size: 18px; margin-bottom: 32px; }
.section-header  { text-align: center; margin-bottom: 56px; }
.section-header h2 { font-size: 36px; font-weight: 800; color: var(--dark); margin-bottom: 12px; }
.section-header p  { font-size: 18px; color: var(--muted); max-width: 520px; margin: 0 auto; }

/* ── Features grid ───────────────────────────────────────────────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.feature-card {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: border-color .2s, transform .2s, box-shadow .2s;
}
.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}
.feature-icon { font-size: 28px; margin-bottom: 14px; }
.feature-card h3 { font-size: 17px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.feature-card p  { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ── Steps ───────────────────────────────────────────────────────────── */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    position: relative;
}
.steps::before {
    content: '';
    position: absolute;
    top: 28px; left: 60px; right: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-light), var(--primary-light));
    z-index: 0;
}
.step { text-align: center; position: relative; z-index: 1; }
.step-num {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    font-weight: 800; font-size: 22px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 4px 16px rgba(99,102,241,.3);
}
.step-label { font-size: 11px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.step-body h3 { font-size: 16px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.step-body p  { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ── Requirements ────────────────────────────────────────────────────── */
.req-box {
    display: flex; gap: 32px; align-items: flex-start;
    background: #fffbeb;
    border: 2px solid #fde68a;
    border-radius: var(--radius);
    padding: 36px 40px;
    max-width: 800px; margin: 0 auto;
}
.req-icon { font-size: 36px; flex-shrink: 0; }
.req-content h2 { font-size: 22px; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.req-content p  { color: var(--text); margin-bottom: 16px; }
.req-list { list-style: none; }
.req-list li {
    padding: 6px 0;
    color: var(--text);
    padding-left: 24px;
    position: relative;
}
.req-list li::before { content: '✅'; position: absolute; left: 0; }
.req-example {
    margin-top: 16px;
    background: rgba(245,158,11,.1);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 14px; color: #92400e;
}

/* ── Pricing ─────────────────────────────────────────────────────────── */
.pricing-card {
    max-width: 440px; margin: 0 auto;
    background: var(--white);
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}
.price-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 4px 14px; border-radius: 100px;
    font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .06em;
    margin-bottom: 20px;
}
.price-amount { margin-bottom: 28px; }
.price-number { font-size: 64px; font-weight: 800; color: var(--dark); line-height: 1; }
.price-per    { font-size: 18px; color: var(--muted); font-weight: 500; }
.price-features { text-align: left; margin-bottom: 28px; }
.price-features li { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 15px; display: flex; align-items: center; gap: 10px; }
.price-features li:last-child { border-bottom: none; }
.check { color: var(--success); font-weight: 700; flex-shrink: 0; }
.price-guarantee { font-size: 14px; color: var(--muted); margin-top: 16px; }
.price-note { font-size: 12px; color: var(--muted); margin-top: 8px; }

/* ── FAQ ─────────────────────────────────────────────────────────────── */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    overflow: hidden;
}
.faq-q {
    width: 100%; text-align: left;
    padding: 18px 20px;
    background: var(--white);
    border: none; cursor: pointer;
    font-size: 15px; font-weight: 600; color: var(--dark);
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    transition: background .2s;
}
.faq-q:hover { background: var(--bg); }
.faq-arrow { flex-shrink: 0; color: var(--muted); transition: transform .2s; font-size: 12px; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 20px 18px; }
.faq-item.open .faq-a { display: block; }
.faq-a p { color: var(--text); font-size: 15px; line-height: 1.7; }

/* ── Simple pages (login, account, etc.) ─────────────────────────────── */
.page-simple .site-header { position: static; }
.simple-main {
    min-height: calc(100vh - 64px - 80px);
    display: flex; align-items: center; justify-content: center;
    padding: 40px 24px;
    background: var(--bg);
}
.auth-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    width: 100%; max-width: 440px;
    box-shadow: var(--shadow);
}
.auth-card h1 { font-size: 24px; font-weight: 800; color: var(--dark); margin-bottom: 24px; }
.auth-sub { color: var(--muted); margin-bottom: 24px; font-size: 15px; margin-top: -16px; }
.auth-footer { text-align: center; font-size: 14px; color: var(--muted); margin-top: 20px; }
.auth-footer a { color: var(--primary); }

/* ── Form elements ───────────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: var(--dark); margin-bottom: 6px; }
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="text"] {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px; color: var(--dark);
    outline: none; transition: border-color .2s;
}
.form-group input:focus { border-color: var(--primary); }

/* ── Alerts ──────────────────────────────────────────────────────────── */
.alert {
    padding: 12px 16px; border-radius: var(--radius-sm);
    font-size: 14px; margin-bottom: 20px;
}
.alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }

/* ── Success page ────────────────────────────────────────────────────── */
.success-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 48px 40px;
    text-align: center;
    max-width: 560px;
    width: 100%;
    box-shadow: var(--shadow);
}
.success-icon { font-size: 56px; margin-bottom: 20px; }
.success-card h1 { font-size: 28px; font-weight: 800; color: var(--dark); margin-bottom: 12px; }
.success-sub { color: var(--muted); font-size: 16px; margin-bottom: 28px; }
.steps-list {
    text-align: left;
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    margin-bottom: 28px;
}
.steps-list h3 { font-size: 15px; font-weight: 700; color: var(--dark); margin-bottom: 12px; }
.steps-list ol { padding-left: 20px; }
.steps-list ol li { padding: 4px 0; font-size: 14px; color: var(--text); }

/* ── Account page ────────────────────────────────────────────────────── */
.account-main { padding: 48px 0; background: var(--bg); min-height: calc(100vh - 64px - 80px); }
.account-header { margin-bottom: 32px; }
.account-header h1 { font-size: 28px; font-weight: 800; color: var(--dark); }
.account-email { color: var(--muted); font-size: 15px; margin-top: 4px; }
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.account-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
}
.account-card h2 { font-size: 18px; font-weight: 700; color: var(--dark); margin-bottom: 20px; }
.account-card h4 { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 20px 0 8px; }
.account-card ol { padding-left: 18px; }
.account-card ol li { font-size: 13px; color: var(--text); padding: 4px 0; line-height: 1.5; }
.account-card p { font-size: 14px; color: var(--muted); margin-bottom: 16px; }

.license-key-box {
    display: flex; align-items: center; gap: 12px;
    background: var(--bg);
    border: 2px dashed var(--primary);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin-bottom: 20px;
}
.license-key-box code {
    flex: 1; font-size: 16px; font-weight: 700;
    letter-spacing: 2px; color: var(--primary-dark);
    word-break: break-all;
}
.license-meta { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.license-meta-item { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.meta-label { color: var(--muted); font-weight: 500; width: 100px; flex-shrink: 0; }
.badge { padding: 3px 10px; border-radius: 100px; font-size: 12px; font-weight: 700; }
.badge-active { background: #f0fdf4; color: #166534; }

.activations-list ul { margin-top: 6px; }
.activations-list li {
    font-size: 13px; color: var(--text);
    padding: 6px 0; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 6px;
}
.activations-list li::before { content: '🌐'; }
.activations-list li:last-child { border-bottom: none; }

.install-steps { margin-top: 24px; }

/* ── Footer ──────────────────────────────────────────────────────────── */
.site-footer {
    background: var(--dark-2);
    padding: 32px 0;
    color: rgba(255,255,255,.5);
    font-size: 14px;
}
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; color: rgba(255,255,255,.8); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: rgba(255,255,255,.5); text-decoration: none; font-size: 13px; }
.footer-links a:hover { color: rgba(255,255,255,.8); }
.footer-copy { color: rgba(255,255,255,.35); font-size: 12px; }
.site-footer .container p { text-align: center; }
.site-footer a { color: rgba(255,255,255,.5); }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .hero .container { grid-template-columns: 1fr; }
    .hero-screenshot { display: none; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .steps::before { display: none; }
    .account-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .site-nav { display: none; }
    .nav-toggle { display: block; }
    .site-nav.open {
        display: flex; flex-direction: column;
        position: fixed; inset: 64px 0 0;
        background: var(--white); z-index: 99;
        padding: 24px; gap: 0;
    }
    .site-nav.open a {
        padding: 16px 0; border-bottom: 1px solid var(--border);
        font-size: 18px;
    }
    .features-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .hero-buy-form { flex-direction: column; }
    .hero-email-input { width: 100%; }
    .req-box { flex-direction: column; }
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; }
    .auth-card { padding: 28px 20px; }
    .pricing-card { padding: 28px 20px; }
    .account-card { padding: 24px 16px; }
}
