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

:root {
    --color-bg: #ffffff;
    --color-surface: #f5f5f8;
    --color-surface-hover: #eeeef2;
    --color-border: #e0e0e8;
    --color-text: #1a1a2e;
    --color-text-muted: #6b6b80;
    --color-primary: #6c5ce7;
    --color-primary-hover: #5a4bd6;
    --color-primary-glow: rgba(108, 92, 231, 0.18);
    --color-accent: #009fa0;
    --color-danger: #e74c3c;
    --color-success: #27ae60;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius: 12px;
    --radius-sm: 8px;
    --max-width: 1100px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

/* ---- Navbar ---- */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-border);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-text);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-cta {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    padding: 8px 20px;
    border: 1px solid var(--color-primary);
    border-radius: var(--radius-sm);
    transition: background 0.2s, color 0.2s;
}

.nav-cta:hover {
    background: var(--color-primary);
    color: #fff;
}

/* ---- Buttons ---- */

.btn {
    display: inline-block;
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
    padding: 14px 32px;
}

.btn-primary:hover {
    background: var(--color-primary-hover);
    box-shadow: 0 0 24px var(--color-primary-glow);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-lg {
    font-size: 1.1rem;
    padding: 16px 40px;
}

/* ---- Hero ---- */

.hero {
    padding: 160px 0 100px;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    background: rgba(108, 92, 231, 0.08);
    border: 1px solid rgba(108, 92, 231, 0.2);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 32px;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    color: var(--color-text);
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

/* ---- Section shared ---- */

section {
    padding: 100px 0;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    text-align: center;
    margin-bottom: 12px;
}

.section-sub {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto 56px;
}

/* ---- Problem Section ---- */

.problem {
    background: var(--color-surface);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.problem-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 36px 28px;
}

.problem-card.highlight {
    border-color: var(--color-primary);
    background: rgba(108, 92, 231, 0.05);
}

.problem-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 20px;
    background: rgba(231, 76, 60, 0.08);
    color: var(--color-danger);
}

.problem-icon.check {
    background: rgba(39, 174, 96, 0.08);
    color: var(--color-success);
}

.problem-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.problem-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ---- How It Works ---- */

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.step {
    text-align: center;
    padding: 20px;
}

.step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-size: 1.25rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 0 32px var(--color-primary-glow);
}

.step h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.step p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    max-width: 320px;
    margin: 0 auto;
}

/* ---- Personalization Callout ---- */

.personalization {
    background: var(--color-bg);
}

.personalization-content {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}

.personalization-content h2 {
    margin-bottom: 20px;
}

.personalization-content > p {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 32px;
}

.personalization-steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    text-align: left;
}

.personalization-step {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 24px;
}

.personalization-step h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.personalization-step p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .personalization-steps {
        grid-template-columns: 1fr;
    }
}

/* ---- Features ---- */

.features {
    background: var(--color-surface);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--color-text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* ---- Comparison ---- */

.comparison-table-wrap {
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.comparison-table th,
.comparison-table td {
    padding: 14px 20px;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
}

.comparison-table th {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-text-muted);
    padding-bottom: 18px;
}

.comparison-table th.highlight-col {
    color: var(--color-primary);
}

.comparison-table td.highlight-col {
    background: rgba(108, 92, 231, 0.05);
}

.comparison-table .row-label {
    text-align: left;
    font-weight: 600;
    color: var(--color-text);
}

.comparison-table .yes {
    color: var(--color-success);
}

.comparison-table .no {
    color: var(--color-text-muted);
}

/* ---- FAQ ---- */

.faq {
    background: var(--color-surface);
}

.faq-list {
    max-width: 680px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: none;
    border: none;
    padding: 20px 0;
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    text-align: left;
}

.faq-icon {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--color-text-muted);
    flex-shrink: 0;
    transition: transform 0.2s;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    padding-bottom: 20px;
}

/* ---- Waitlist ---- */

.waitlist {
    text-align: center;
    padding: 120px 0;
}

.waitlist-form {
    display: flex;
    gap: 12px;
    max-width: 460px;
    margin: 0 auto 16px;
    justify-content: center;
}

.waitlist-form input[type="email"] {
    flex: 1;
    padding: 14px 20px;
    font-family: var(--font-main);
    font-size: 1rem;
    color: var(--color-text);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color 0.2s;
}

.waitlist-form input[type="email"]:focus {
    border-color: var(--color-primary);
}

.waitlist-form input[type="email"]::placeholder {
    color: var(--color-text-muted);
}

.waitlist-note {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.form-success {
    display: none;
    margin-top: 20px;
}

.form-success.visible {
    display: block;
}

.form-success p {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-success);
}

/* ---- Footer ---- */

.footer {
    border-top: 1px solid var(--color-border);
    padding: 48px 0 32px;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.footer-brand {
    text-align: center;
}

.footer-brand p {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    margin-top: 4px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--color-text);
}

.footer-copy {
    color: var(--color-text-muted);
    font-size: 0.8rem;
    margin-top: 8px;
}

/* ---- Responsive ---- */

@media (max-width: 768px) {
    .hero {
        padding: 130px 0 70px;
    }

    section {
        padding: 70px 0;
    }

    .waitlist-form {
        flex-direction: column;
    }

    .waitlist-form input[type="email"],
    .waitlist-form .btn {
        width: 100%;
    }

    .problem-grid,
    .steps-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
}
