/* ── Reset & Base ────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg-dark: #0b1120;
    --bg-section: #0f172a;
    --bg-card: #1e293b;
    --bg-card-hover: #293548;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --accent-glow: rgba(59,130,246,.25);
    --green: #22c55e;
    --purple: #a855f7;
    --orange: #f97316;
    --red: #ef4444;
    --teal: #14b8a6;
    --border: #1e293b;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 24px rgba(0,0,0,.3);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration: none; }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: inherit; font-weight: 600; font-size: .95rem;
    padding: 12px 24px; border-radius: var(--radius-sm);
    border: 2px solid transparent; cursor: pointer;
    transition: all .2s ease;
}
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); box-shadow: 0 0 20px var(--accent-glow); }
.btn-outline { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-ghost { background: transparent; color: var(--text-muted); border-color: #334155; }
.btn-ghost:hover { color: var(--text); border-color: #475569; }
.btn-sm { padding: 8px 16px; font-size: .85rem; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn-block { width: 100%; justify-content: center; }

/* ── Navbar ──────────────────────────────────────────── */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(11,17,32,.85); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}
.nav-content { display: flex; align-items: center; justify-content: space-between; }
.nav-brand { display: flex; align-items: center; }
.nav-logo { height: 36px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--text-muted); font-size: .9rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-links .btn { color: #fff; }

/* ── Hero ────────────────────────────────────────────── */
.hero {
    padding: 160px 0 100px;
    background: radial-gradient(ellipse 80% 60% at 50% -20%, rgba(59,130,246,.15), transparent);
    text-align: center;
}
.hero-badge {
    display: inline-block; padding: 6px 16px; border-radius: 20px;
    background: rgba(59,130,246,.12); color: var(--accent);
    font-size: .8rem; font-weight: 600; margin-bottom: 24px;
    border: 1px solid rgba(59,130,246,.2);
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.15; margin-bottom: 20px; }
.gradient-text {
    background: linear-gradient(135deg, var(--accent), var(--purple));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle { font-size: 1.15rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 36px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 60px; }
.hero-stats { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.stat { text-align: center; }
.stat-number { display: block; font-size: 1.3rem; font-weight: 700; color: var(--text); }
.stat-label { font-size: .8rem; color: var(--text-muted); }
.stat-divider { width: 1px; background: #334155; }

/* ── Section Headers ─────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 56px; }
.section-badge {
    display: inline-block; padding: 4px 14px; border-radius: 16px;
    background: rgba(59,130,246,.1); color: var(--accent);
    font-size: .75rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: .08em; margin-bottom: 16px;
}
.section-header h2 { font-size: 2rem; font-weight: 800; margin-bottom: 12px; }
.section-header p { color: var(--text-muted); font-size: 1.05rem; max-width: 540px; margin: 0 auto; }

/* ── Features ────────────────────────────────────────── */
.features { padding: 100px 0; background: var(--bg-section); }
.features-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.feature-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 32px;
    transition: transform .2s, box-shadow .2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon {
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-icon.blue   { background: rgba(59,130,246,.15); color: var(--accent); }
.feature-icon.green  { background: rgba(34,197,94,.15);  color: var(--green); }
.feature-icon.purple { background: rgba(168,85,247,.15); color: var(--purple); }
.feature-icon.orange { background: rgba(249,115,22,.15); color: var(--orange); }
.feature-icon.red    { background: rgba(239,68,68,.15);  color: var(--red); }
.feature-icon.teal   { background: rgba(20,184,166,.15); color: var(--teal); }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: .92rem; }

/* ── How it works ────────────────────────────────────── */
.how-it-works { padding: 100px 0; }
.steps { display: flex; align-items: flex-start; justify-content: center; gap: 24px; flex-wrap: wrap; }
.step {
    flex: 1; min-width: 220px; max-width: 300px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 32px; text-align: center;
}
.step-number {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--accent); color: #fff; font-weight: 800; font-size: 1.2rem;
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: .9rem; }
.step-arrow { display: flex; align-items: center; padding-top: 48px; color: #475569; }

/* ── Pricing ─────────────────────────────────────────── */
.pricing { padding: 100px 0; background: var(--bg-section); }
.pricing-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px; max-width: 920px; margin: 0 auto;
}
.price-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 36px;
    position: relative; transition: transform .2s;
}
.price-card:hover { transform: translateY(-4px); }
.price-card.popular {
    border-color: var(--accent);
    box-shadow: 0 0 30px var(--accent-glow);
}
.popular-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--accent); color: #fff; padding: 4px 16px;
    border-radius: 20px; font-size: .75rem; font-weight: 600;
}
.price-header { text-align: center; margin-bottom: 28px; }
.price-header h3 { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 8px; }
.price { font-size: 2.8rem; font-weight: 800; line-height: 1; }
.price-currency { font-size: 1rem; font-weight: 500; color: var(--text-muted); margin-left: 4px; }
.price-period { color: var(--text-muted); font-size: .85rem; }
.price-save { color: var(--green); font-weight: 600; font-size: .8rem; }
.price-features { list-style: none; margin-bottom: 28px; }
.price-features li {
    padding: 8px 0; color: var(--text-muted); font-size: .9rem;
    border-bottom: 1px solid rgba(255,255,255,.05);
    padding-left: 20px; position: relative;
}
.price-features li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.price-alt { text-align: center; margin-top: 12px; font-size: .85rem; color: var(--text-muted); }
.price-alt a { color: var(--accent); text-decoration: underline; cursor: pointer; }
.price-alt a:hover { color: #60a5fa; }

/* ── ROI Calculator Section ──────────────────────────── */
.roi-section { padding: 100px 0; background: var(--bg-section); }
.roi-data-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 24px; margin-bottom: 48px;
}
.roi-data-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 28px; text-align: center;
}
.roi-data-icon {
    width: 48px; height: 48px; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
}
.roi-data-icon svg { width: 24px; height: 24px; }
.roi-data-icon.blue   { background: rgba(59,130,246,.15); color: var(--accent); }
.roi-data-icon.green  { background: rgba(34,197,94,.15);  color: var(--green); }
.roi-data-icon.orange { background: rgba(249,115,22,.15); color: var(--orange); }
.roi-data-icon.purple { background: rgba(168,85,247,.15); color: var(--purple); }
.roi-data-number { font-size: 1.8rem; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.roi-data-label { font-size: .9rem; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; }
.roi-data-source { font-size: .75rem; color: #64748b; line-height: 1.4; }

.roi-calculator {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 16px; padding: 40px;
}
.roi-calc-title {
    display: flex; align-items: center; gap: 12px;
    font-size: 1.3rem; margin-bottom: 32px; color: var(--text);
}
.roi-calc-title svg { color: var(--accent); }
.roi-calc-inputs {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 20px; margin-bottom: 36px;
}
.roi-input-group { display: flex; flex-direction: column; gap: 6px; }
.roi-input-group label { font-size: .85rem; font-weight: 600; color: var(--text-muted); }
.roi-input-group input,
.roi-input-group select {
    padding: 12px 14px; border-radius: var(--radius-sm);
    background: var(--bg-section); border: 1px solid #334155;
    color: var(--text); font-size: 1rem; font-family: inherit;
    transition: border-color .2s;
}
.roi-input-group input:focus,
.roi-input-group select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.roi-input-hint { font-size: .75rem; color: #64748b; }

.roi-results {
    display: flex; align-items: center; justify-content: center;
    gap: 20px; flex-wrap: wrap; margin-bottom: 28px;
}
.roi-result-card {
    flex: 1; min-width: 200px; padding: 24px;
    border-radius: var(--radius); text-align: center;
}
.roi-result-card.manual { background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.2); }
.roi-result-card.app { background: rgba(59,130,246,.08); border: 1px solid rgba(59,130,246,.2); }
.roi-result-card.savings { background: rgba(34,197,94,.08); border: 1px solid rgba(34,197,94,.2); }
.roi-result-label { font-size: .85rem; color: var(--text-muted); margin-bottom: 8px; }
.roi-result-value { font-size: 1.6rem; font-weight: 800; }
.roi-result-card.manual .roi-result-value { color: var(--red); }
.roi-result-card.app .roi-result-value { color: var(--accent); }
.roi-result-card.savings .roi-result-value { color: var(--green); }
.roi-result-sub { font-size: .8rem; color: var(--text-muted); margin-top: 4px; }
.roi-result-arrow { color: #475569; flex-shrink: 0; }

.roi-payback {
    text-align: center; padding: 20px;
    border-radius: var(--radius-sm);
    background: rgba(59,130,246,.06); border: 1px solid rgba(59,130,246,.15);
    color: var(--text-muted); font-size: .95rem; line-height: 1.6;
}
.roi-payback strong { color: var(--accent); }

/* ── Sectors Section ─────────────────────────────────── */
.sectors-section { padding: 100px 0; }
.sectors-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 24px; margin-bottom: 40px;
}
.sector-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 32px;
    transition: transform .2s, box-shadow .2s;
}
.sector-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.sector-icon { font-size: 2rem; margin-bottom: 16px; }
.sector-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.sector-stat {
    font-size: .8rem; font-weight: 600; color: var(--accent);
    margin-bottom: 12px; padding: 4px 12px;
    background: rgba(59,130,246,.08); border-radius: 4px;
    display: inline-block;
}
.sector-card p { color: var(--text-muted); font-size: .9rem; line-height: 1.5; margin-bottom: 16px; }
.sector-card .btn { margin-top: 8px; }

/* ── Download / Trial ────────────────────────────────── */
.download { padding: 100px 0; }
.download-card {
    display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 16px; padding: 48px;
}
.download-info h2 { font-size: 1.8rem; margin-bottom: 12px; }
.download-info p { color: var(--text-muted); margin-bottom: 24px; }
.download-checklist { list-style: none; }
.download-checklist li {
    display: flex; align-items: center; gap: 10px;
    color: var(--text-muted); font-size: .9rem; padding: 6px 0;
}
.download-checklist svg { color: var(--green); flex-shrink: 0; }

.download-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: .85rem; font-weight: 600; color: var(--text-muted); }
.form-group input {
    padding: 14px 16px; border-radius: var(--radius-sm);
    background: var(--bg-section); border: 1px solid #334155;
    color: var(--text); font-size: 1rem; font-family: inherit;
    transition: border-color .2s;
}
.form-group input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }

.form-message { padding: 12px 16px; border-radius: var(--radius-sm); font-size: .9rem; margin-top: 4px; }
.form-message.error { background: rgba(239,68,68,.1); color: var(--red); border: 1px solid rgba(239,68,68,.3); }
.form-message.success { background: rgba(34,197,94,.1); color: var(--green); border: 1px solid rgba(34,197,94,.3); }

.download-result { text-align: center; }
.result-icon { color: var(--green); margin-bottom: 16px; }
.download-result h3 { margin-bottom: 16px; font-size: 1.3rem; }
.license-key {
    display: inline-block; padding: 12px 24px; border-radius: var(--radius-sm);
    background: var(--bg-section); border: 1px solid var(--accent);
    font-family: 'Courier New', monospace; font-size: 1.4rem; font-weight: 700;
    letter-spacing: .08em; color: var(--accent); margin-bottom: 12px;
    user-select: all; cursor: pointer;
}
.result-hint { color: var(--text-muted); font-size: .85rem; margin-bottom: 24px; }

/* ── FAQ Section ─────────────────────────────────────── */
.faq-section { padding: 100px 0; }
.faq-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.faq-item {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 28px;
}
.faq-item h3 { font-size: 1rem; margin-bottom: 8px; color: var(--text); }
.faq-item p { color: var(--text-muted); font-size: .9rem; }

/* ── Page Hero (secondary pages) ─────────────────────── */
.page-hero {
    padding: 140px 0 60px;
    text-align: center;
    background: radial-gradient(ellipse 80% 60% at 50% -20%, rgba(59,130,246,.1), transparent);
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.2; margin-bottom: 16px; max-width: 800px; margin-left: auto; margin-right: auto; }
.page-hero p { color: var(--text-muted); font-size: 1.05rem; max-width: 640px; margin: 0 auto 28px; }
.page-hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.breadcrumbs {
    display: flex; gap: 8px; justify-content: center;
    color: var(--text-muted); font-size: .85rem; margin-bottom: 20px;
}
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--text); }

/* ── Content Section (secondary pages) ───────────────── */
.content-section { padding: 80px 0; }
.content-section:nth-child(even) { background: var(--bg-section); }
.content-grid-2 {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.content-grid-3 {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.content-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 32px;
    transition: transform .2s, box-shadow .2s;
}
.content-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.content-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.content-card p { color: var(--text-muted); font-size: .92rem; }
.content-card .btn { margin-top: 16px; }

/* ── Page CTA (secondary pages) ──────────────────────── */
.page-cta {
    padding: 80px 0; text-align: center;
}
.page-cta h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 12px; }
.page-cta p { color: var(--text-muted); font-size: 1.05rem; max-width: 540px; margin: 0 auto 28px; }
.page-cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Trial form section ──────────────────────────────── */
.trial-section { padding: 80px 0; background: var(--bg-section); }
.trial-split {
    display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 16px; padding: 48px;
}
.trial-checklist { list-style: none; }
.trial-checklist li {
    display: flex; align-items: flex-start; gap: 10px;
    color: var(--text-muted); font-size: .9rem; padding: 8px 0;
}
.trial-checklist svg { color: var(--green); flex-shrink: 0; margin-top: 3px; }

/* ── Footer ──────────────────────────────────────────── */
.footer {
    padding: 32px 0; border-top: 1px solid var(--border);
    background: var(--bg-section);
}
.footer-content { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text); }
.footer-copy { color: var(--text-muted); font-size: .8rem; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--text-muted); font-size: .85rem; }
.footer-links a:hover { color: var(--text); }

/* ── Modal overlay ──────────────────────────────────── */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.7);
    display: flex; align-items: center; justify-content: center;
    z-index: 1000;
    padding: 1rem;
    backdrop-filter: blur(4px);
}

/* ── Loading spinner ─────────────────────────────────── */
.spinner {
    width: 20px; height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .6s linear infinite;
    display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Comparison Table ─────────────────────────────────── */
.comparison-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    font-size: .9rem;
}
.comparison-table th,
.comparison-table td {
    padding: 16px 24px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,.05);
}
.comparison-table thead th {
    background: var(--bg-section);
    font-weight: 700;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-muted);
    padding: 20px 24px;
}
.comparison-table thead th.highlight {
    color: var(--accent);
    background: rgba(59,130,246,.08);
}
.comparison-table td:first-child {
    text-align: left;
    font-weight: 600;
    color: var(--text);
}
.comparison-table td {
    color: var(--text-muted);
}
.comparison-table td.highlight {
    background: rgba(59,130,246,.04);
    color: var(--text);
    font-weight: 500;
}
.comparison-table tbody tr:hover {
    background: rgba(255,255,255,.02);
}
.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

/* ── Utility ─────────────────────────────────────────── */
.pricing-note {
    text-align: center; color: var(--text-muted);
    font-size: .85rem; margin-top: 24px;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 768px) {
    .nav-links a:not(.btn) { display: none; }
    .download-card { grid-template-columns: 1fr; }
    .trial-split { grid-template-columns: 1fr; }
    .step-arrow { display: none; }
    .steps { flex-direction: column; align-items: center; }
    .step { max-width: 100%; }
    .hero-actions { flex-direction: column; align-items: center; }
    .hero-stats { gap: 24px; }
    .stat-divider { display: none; }
    .roi-data-grid { grid-template-columns: repeat(2, 1fr); }
    .roi-calc-inputs { grid-template-columns: 1fr; }
    .roi-results { flex-direction: column; }
    .roi-result-arrow { transform: rotate(90deg); }
    .sectors-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    .comparison-table { font-size: .8rem; }
    .comparison-table th, .comparison-table td { padding: 12px 10px; }
    .content-grid-2 { grid-template-columns: 1fr; }
    .content-grid-3 { grid-template-columns: 1fr; }
    .faq-grid { grid-template-columns: 1fr; }
    .page-hero-actions { flex-direction: column; align-items: center; }
    .page-cta-actions { flex-direction: column; align-items: center; }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .roi-data-grid { grid-template-columns: repeat(2, 1fr); }
    .roi-calc-inputs { grid-template-columns: repeat(2, 1fr); }
    .sectors-grid { grid-template-columns: repeat(2, 1fr); }
    .content-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
