:root {
    --color-bg: #f8fafc;
    --color-surface: #ffffff;
    --color-primary: #2563eb;
    --color-primary-hover: #1d4ed8;
    --color-text: #0f172a;
    --color-text-dim: #64748b;
    --color-border: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --font-stack: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-stack);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 20px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background-color: var(--color-primary);
    border-radius: 8px;
    /* Simplified icon visual */
    position: relative;
}

.logo-icon::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a:not(.btn-primary) {
    color: var(--color-text-dim);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:not(.btn-primary):hover {
    color: var(--color-primary);
}

/* Typography & Common */
h1,
h2,
h3 {
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.highlight {
    color: var(--color-primary);
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s, transform 0.1s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.btn-large svg {
    width: 24px;
    height: 24px;
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-1px);
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
    border-radius: 12px;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 0;
    gap: 64px;
}

.hero-content {
    flex: 1;
    max-width: 540px;
}

.hero-title {
    font-size: 56px;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--color-text-dim);
    margin-bottom: 40px;
}

.sub-cta {
    font-size: 14px;
    color: var(--color-text-dim);
    margin-top: 12px;
    display: block;
}

/* Hero Visual (Mockup) */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.app-mockup {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 480px;
    overflow: hidden;
    position: relative;
    /* Tilt effect */
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.5s ease-out;
}

.app-mockup:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.mockup-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    gap: 8px;
    background: #f1f5f9;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.red {
    background: #ef4444;
}

.yellow {
    background: #fbbf24;
}

.green {
    background: #22c55e;
}

.mockup-screen {
    padding: 40px;
    background: #f8fafc;
    /* Keep strict resemblance to actual app bg */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Recreating the App UI in CSS for the mockup */
.intent-card {
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    text-align: center;
    width: 100%;
}

.site-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 24px;
}

.site-badge::before {
    content: '';
    width: 16px;
    height: 16px;
    background-color: #ef4444;
    /* Generic red favicon */
    border-radius: 4px;
}

.intent-card h2 {
    font-size: 24px;
    margin-bottom: 8px;
}

.intent-card p {
    color: var(--color-text-dim);
    margin-bottom: 24px;
}

.intent-pills {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.intent-pills span {
    border: 1px solid var(--color-border);
    padding: 6px 12px;
    border-radius: 99px;
    font-size: 13px;
    color: var(--color-text-dim);
}

.timer-options {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.timer-btn {
    width: 48px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

.timer-btn.active {
    background: #eff6ff;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.mockup-btn {
    width: 100%;
    padding: 12px;
    background: #e2e8f0;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    color: #94a3b8;
}

/* Features Section */
.features-section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    font-size: 36px;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 18px;
    color: var(--color-text-dim);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.feature-card {
    padding: 32px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    transition: transform 0.2s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.icon-box {
    font-size: 32px;
    margin-bottom: 24px;
    display: inline-block;
    padding: 12px;
    background: #f1f5f9;
    border-radius: 12px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--color-text-dim);
}

/* Privacy Section */
.privacy-section {
    padding: 80px 0;
    background: #f1f5f9;
    background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
    background-size: 24px 24px;
    border-radius: 24px;
    text-align: center;
    margin: 80px 0;
}

.privacy-content {
    max-width: 600px;
    margin: 0 auto;
}

.privacy-content h2 {
    font-size: 32px;
    margin-bottom: 24px;
}

.privacy-content p {
    margin-bottom: 32px;
    color: var(--color-text-dim);
    font-size: 18px;
}

.privacy-badges {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.badge {
    background: white;
    padding: 8px 16px;
    border-radius: 99px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    color: var(--color-text);
}

/* Footer */
footer {
    padding: 48px 0;
    border-top: 1px solid var(--color-border);
    text-align: center;
    color: var(--color-text-dim);
}

.footer-brand {
    font-weight: 800;
    font-size: 24px;
    color: var(--color-text);
    margin-bottom: 24px;
}

.footer-links {
    margin-bottom: 24px;
}

.footer-links a {
    color: var(--color-text-dim);
    text-decoration: none;
    margin: 0 12px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--color-primary);
}

.copyright {
    font-size: 13px;
}

/* Gamification Section */
.gamification-section {
    padding: 80px 0;
}

.gamification-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.gamification-card {
    padding: 32px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.gamification-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.gamification-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.gamification-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.gamification-card p {
    color: var(--color-text-dim);
    font-size: 15px;
    line-height: 1.6;
}

.score-ring-demo {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.badge-preview {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 28px;
}

.badge-preview span {
    cursor: default;
    transition: transform 0.15s;
}

.badge-preview span:hover {
    transform: scale(1.3);
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 80px 0;
}

.cta-section h2 {
    font-size: 36px;
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 18px;
    color: var(--color-text-dim);
}

.cta-section .cta-group {
    margin-top: 32px;
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.cta-section .sub-cta {
    margin-top: 16px;
}

.cta-browsers {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.browser-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 24px 36px;
    background: var(--color-surface);
    border: 2px solid var(--color-border);
    border-radius: 16px;
    text-decoration: none;
    color: var(--color-text);
    font-weight: 600;
    font-size: 15px;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.browser-btn:hover {
    transform: translateY(-4px);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.browser-btn svg {
    width: 40px;
    height: 40px;
}

.btn-secondary {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    color: var(--color-text);
    background: var(--color-surface);
    border: 2px solid var(--color-border);
    transition: border-color 0.2s, transform 0.1s;
}

.btn-secondary:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-1px);
}

.btn-secondary.btn-large {
    padding: 16px 32px;
    font-size: 18px;
    border-radius: 12px;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Responsive — Tablet */
@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gamification-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive — Mobile */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    /* Mobile nav */
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--color-bg);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 24px;
        z-index: 1000;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a:not(.btn-primary) {
        font-size: 20px;
    }

    /* Hero */
    .hero {
        flex-direction: column;
        padding: 40px 0;
        text-align: center;
        gap: 40px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .btn-large {
        padding: 14px 24px;
        font-size: 16px;
    }

    .app-mockup {
        transform: none;
        max-width: 100%;
    }

    .mockup-screen {
        padding: 24px;
    }

    .intent-card {
        padding: 24px;
    }

    .intent-card h2 {
        font-size: 20px;
    }

    /* Features */
    .features-section {
        padding: 48px 0;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .section-header p {
        font-size: 16px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card {
        padding: 24px;
    }

    /* Gamification */
    .gamification-section {
        padding: 48px 0;
    }

    .gamification-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .gamification-card {
        padding: 24px;
    }

    /* Privacy */
    .privacy-section {
        padding: 48px 16px;
        margin: 48px 0;
        border-radius: 16px;
    }

    .privacy-content h2 {
        font-size: 26px;
    }

    .privacy-content p {
        font-size: 16px;
    }

    .privacy-badges {
        gap: 10px;
    }

    /* CTA */
    .cta-section {
        padding: 48px 0;
    }

    .cta-section h2 {
        font-size: 26px;
    }

    .cta-section p {
        font-size: 16px;
    }

    .cta-browsers {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .browser-btn {
        flex-direction: row;
        width: 100%;
        max-width: 280px;
        padding: 16px 24px;
        justify-content: center;
    }

    .browser-btn svg {
        width: 28px;
        height: 28px;
    }

    /* Footer */
    footer {
        padding: 32px 0;
    }

    .footer-brand {
        font-size: 20px;
    }

    .footer-links a {
        margin: 0 8px;
        font-size: 14px;
    }
}

/* Responsive — Small phones */
@media (max-width: 400px) {
    .hero-title {
        font-size: 28px;
    }

    .intent-pills {
        flex-wrap: wrap;
    }

    .timer-options {
        flex-wrap: wrap;
    }

    .badge-preview {
        font-size: 24px;
    }
}