:root {
    --bg-color: #0A0A0A;
    --surface-color: rgba(255, 255, 255, 0.05);
    --surface-border: rgba(255, 255, 255, 0.1);
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --accent-focus: #FF453A;
    --accent-success: #32D74B;
    --nav-height: 80px;
    --container-max-width: 1100px;
    --font-brand: 'DM Sans', sans-serif;
    --font-ui: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-ui);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

/* Film Grain Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3%3Cfilter id='noiseFilter'%3%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3%3C/filter%3%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3%3C/svg%3");
    opacity: 0.03;
    pointer-events: none;
    z-index: 9999;
}

h1, h2, h3 {
    font-family: var(--font-brand);
    font-weight: 800;
    letter-spacing: -0.02em;
}

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

/* Navigation - Floating Navbar */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    max-width: calc(100% - 48px);
    height: 52px;
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    padding: 0 8px 0 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.navbar:hover {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-width: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 800;
    font-family: var(--font-brand);
    letter-spacing: -0.02em;
    color: var(--text-primary);
    flex-shrink: 0;
}

.logo-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 100px;
    transition: color 0.2s, background-color 0.2s;
}

.nav-links a:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.05);
}

/* Hero */
.hero {
    padding-top: 140px;
    padding-bottom: 100px;
    text-align: center;
    background: radial-gradient(circle at 50% 0%, rgba(255, 69, 58, 0.1) 0%, rgba(10, 10, 10, 0) 50%);
}

.badge {
    display: inline-block;
    background: rgba(255, 69, 58, 0.1);
    color: var(--accent-focus);
    padding: 5px 12px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 69, 58, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.hero h1 {
    font-size: 56px;
    line-height: 1.08;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: -0.025em;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.hero-ctas {
    display: flex;
    justify-content: center;
    margin-bottom: 64px;
}

.cta-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.cta-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.onboarding-tip {
    width: 100%;
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.onboarding-tip a {
    color: var(--text-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
}

.onboarding-tip a:hover {
    opacity: 0.9;
}

/* Product Hunt Badge - Floating corner */
.ph-badge {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
    opacity: 0.9;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.ph-badge:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.ph-badge a {
    display: block;
}

.ph-badge img {
    height: 40px;
    width: auto;
    display: block;
}

@media (max-width: 600px) {
    .ph-badge {
        bottom: 12px;
        right: 12px;
    }

    .ph-badge img {
        height: 36px;
    }
}

.btn {
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 15px;
}

.btn-primary {
    background-color: var(--text-primary);
    color: var(--bg-color);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
}

.btn-icon {
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}

.btn-icon-download {
    width: 20px;
    height: 20px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: transparent;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 12px 20px;
}

.btn-secondary:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.18);
}

.btn-nav {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 100px;
    background-color: var(--text-primary);
    color: var(--bg-color) !important;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-nav:hover,
.nav-links a.btn-nav:hover {
    background-color: rgba(255, 255, 255, 0.95) !important;
    color: var(--bg-color) !important;
}

.hero-image-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.hero-image {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--surface-border);
}

/* Sections */
section {
    padding: 120px 0;
}

.section-alt {
    background-color: rgba(255, 255, 255, 0.02);
}

#setup {
    scroll-margin-top: 100px;
}

.section-title {
    font-size: 40px;
    text-align: center;
    margin-bottom: 24px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 64px;
}

/* Philosophy */
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.philosophy-item {
    text-align: center;
}

.philosophy-item h3 {
    margin-bottom: 12px;
}

.philosophy-item p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* Feature Rows */
.feature-row {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-bottom: 120px;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
}

.feature-text .badge {
    margin-bottom: 16px;
}

.feature-text h2 {
    font-size: 36px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.feature-text p {
    font-size: 18px;
    color: var(--text-secondary);
}

.feature-visual {
    flex: 1.2;
    perspective: 1000px;
}

.feature-img {
    width: 100%;
}

/* Removed hover effect on feature images */

/* Setup Steps */
.setup-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 64px;
}

.setup-step {
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    padding: 40px;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: border-color 0.3s ease;
    height: 100%;
}

.setup-step:hover {
    border-color: var(--accent-focus);
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--accent-focus);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    font-variant-numeric: tabular-nums;
}

.step-content h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.step-content p {
    color: var(--text-secondary);
    font-size: 15px;
}

.setup-note {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    max-width: 600px;
    margin: 0 auto;
}

/* FAQ */
.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    gap: 40px;
}

.faq-item h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.faq-item p {
    color: var(--text-secondary);
}

/* Final CTA */
.final-cta {
    text-align: center;
}

.final-cta .section-subtitle {
    margin-bottom: 40px;
}

.final-cta-buttons {
    display: flex;
    justify-content: center;
}

/* Maker */
.maker {
    padding: 80px 0;
}

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

.maker-info h3 {
    font-size: 24px;
    margin-bottom: 16px;
}

.maker-info p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.maker-links {
    display: flex;
    gap: 24px;
    justify-content: center;
}

.maker-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-focus);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: opacity 0.2s;
}

.maker-link svg {
    flex-shrink: 0;
}

.maker-link:hover {
    opacity: 0.8;
}

/* Mobile CTA Bar */
.mobile-cta-bar {
    display: none;
}

/* Footer */
.footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--surface-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 64px;
}

.footer-info p {
    margin-top: 16px;
    color: var(--text-secondary);
    max-width: 300px;
}

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

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--surface-border);
    color: rgba(255, 255, 255, 0.2);
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

/* Download Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal.is-open {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    cursor: pointer;
}

.modal-content {
    position: relative;
    max-width: 480px;
    width: 100%;
    background-color: var(--bg-color);
    border: 1px solid var(--surface-border);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 8px;
    transition: color 0.2s, background-color 0.2s;
}

.modal-close:hover {
    color: var(--text-primary);
    background-color: var(--surface-color);
}

.modal-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 12px;
    padding-right: 36px;
}

.modal-thanks {
    font-size: 16px;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 28px;
    padding-right: 36px;
}

.modal-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.modal-step {
    display: flex;
    gap: 20px;
    position: relative;
}

.modal-step:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 19px;
    top: 44px;
    bottom: -16px;
    width: 2px;
    background: var(--surface-border);
}

.modal-step-marker {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--accent-focus);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    font-variant-numeric: tabular-nums;
    position: relative;
    z-index: 1;
}

.modal-step-body {
    flex: 1;
    padding-bottom: 24px;
}

.modal-step-body h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    font-family: var(--font-brand);
}

.modal-step-body p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.modal-download-btn {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
    padding: 16px 32px;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
    .hero h1 { font-size: 48px; }
    .philosophy-grid, .setup-steps { grid-template-columns: 1fr; }
    .feature-row, .feature-row.reverse { flex-direction: column; gap: 40px; text-align: center; }
    .footer-content { flex-direction: column; gap: 40px; }
}

@media (max-width: 600px) {
    /* Floating navbar adjustments for mobile */
    .navbar {
        top: 12px;
        left: 12px;
        right: 12px;
        width: auto;
        max-width: none;
        transform: none;
        height: 48px;
        padding: 0 16px;
        border-radius: 100px;
    }

    .navbar .container {
        padding: 0;
        max-width: none;
    }

    .nav-content {
        width: 100%;
    }

    .nav-links a:not(.btn-nav) { display: none; }

    .nav-links {
        gap: 0;
    }

    .btn-nav {
        padding: 8px 16px;
        font-size: 13px;
    }

    .logo {
        font-size: 16px;
    }

    .logo-icon {
        width: 22px;
        height: 22px;
    }

    .hero {
        padding-top: 100px;
    }

    .hero h1 { font-size: 32px; }
    .hero-ctas { flex-direction: column; }
    .cta-row { flex-direction: column; width: 100%; }
    .cta-row .btn { width: 100%; justify-content: center; text-align: center; }
    section { padding: 80px 0; }

    /* Sticky mobile download bar */
    .mobile-cta-bar {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 12px 16px;
        background-color: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(20px);
        border-top: 1px solid var(--surface-border);
        z-index: 1000;
    }

    .btn-mobile-download {
        width: 100%;
        justify-content: center;
        text-align: center;
        padding: 12px 24px;
        font-size: 15px;
    }

    /* Add bottom padding to body so content isn't hidden behind mobile bar */
    body { padding-bottom: 70px; }

    .maker-info p { font-size: 15px; }

    /* Modal adjustments for mobile */
    .modal-content {
        padding: 24px;
        border-radius: 20px;
    }

    .modal-title {
        font-size: 20px;
    }

    .modal-thanks {
        font-size: 15px;
    }
}
