:root {
    /* Colors */
    --bg-dark: #131316;
    --bg-card: #1e1e24;
    --bg-card-hover: #25252b;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-primary: #3b82f6;
    /* Blue-ish accent based on the logo hint */
    --accent-glow: rgba(59, 130, 246, 0.5);
    --border-color: #2a2a30;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Typography */
    --font-family: 'Inter', sans-serif;
    --font-size-base: 16px;
    --font-size-h1: 3.5rem;
    --font-size-h2: 2.5rem;
    --font-size-h3: 1.5rem;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul {
    list-style: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--text-primary);
    color: var(--bg-dark);
}

.btn-primary:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-secondary);
}

.btn-secondary:hover {
    color: var(--text-primary);
}

.btn-outline {
    border-color: var(--border-color);
    background: transparent;
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--text-primary);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1rem 0;
    background: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
}

.logo img {
    height: 32px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.email-link {
    font-size: 0.9rem;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    transition: transform 0.3s, opacity 0.3s;
}

/* Hero */
.hero {
    padding-top: calc(var(--spacing-xl) + 60px);
    padding-bottom: var(--spacing-xl);
    background: radial-gradient(circle at 50% 0%, #1e1e2e 0%, var(--bg-dark) 60%);
}

.hero-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.hero-content h1 {
    font-size: var(--font-size-h1);
    line-height: 1.1;
    margin-bottom: var(--spacing-sm);
    background: linear-gradient(to right, #fff, #a5a5a5);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content .subtext {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    max-width: 500px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: var(--spacing-md);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-text {
    color: var(--text-primary);
    font-weight: 500;
}

.btn-text:hover {
    text-decoration: underline;
}

.support-points {
    display: flex;
    gap: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.support-points span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.support-points svg {
    width: 18px;
    height: 18px;
}

/* Visual Grid */
.feature-grid-visual {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1rem;
}

.visual-card {
    background: rgba(22, 22, 26, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
}

.visual-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 30px -10px rgba(59, 130, 246, 0.3);
    background: rgba(22, 22, 26, 0.8);
}

/* Removed staggered margins for cleaner alignment */
.visual-card:nth-child(2),
.visual-card:nth-child(3) {
    margin-top: 0;
}

.icon-box {
    margin-bottom: 0.75rem;
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-box svg {
    stroke-width: 2;
    width: 32px;
    height: 32px;
}

.visual-card h3 {
    font-size: 1rem;
    font-weight: 500;
}

/* Sections */
.section {
    padding: var(--spacing-xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: var(--font-size-h2);
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}


/* Our Story */
.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.story-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.story-header {
    text-align: left;
    margin-bottom: var(--spacing-sm);
}

.story-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.story-content .highlight-text {
    color: var(--text-primary);
    font-size: 1.2rem;
    display: block;
    margin-top: 1rem;
}

@media (max-width: 900px) {
    .story-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .story-image {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }

    .story-header {
        text-align: center;
    }
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    /* Slightly wider min width */
    gap: 2rem;
}

.feature-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
    background-color: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.feature-card.wide-card {
    grid-column: 1 / -1;
    /* default to full width on mobile or desktop if in grid */
}

@media (min-width: 1024px) {
    .feature-card.wide-card {
        grid-row: span 2;
        /* If we want it to be tall on the side, or just wide */
        /* For 3 items (1 big, 2 small), standard auto-fit grid might put big one on its own row 
           if we force full width. Let's make the grid flexible. */
    }
}

.feature-card:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transform: translateY(-5px);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    color: var(--accent-primary);
}

.feature-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    margin-top: 1rem;
    display: grid;
    gap: 0.75rem;
}

.feature-list li {
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.feature-list li::before {
    content: "•";
    color: var(--accent-primary);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.pricing-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card.popular {
    background: linear-gradient(to bottom, #1c1c25, var(--bg-card));
    border-color: rgba(255, 255, 255, 0.15);
}

.badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-primary);
    color: var(--bg-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-card .price {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 1rem 0 0.5rem;
}

.pricing-card .price span {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.pricing-features {
    margin: 2rem 0 auto;
}

.pricing-features li {
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
}

.pricing-features li::before {
    content: "✓";
    color: var(--text-primary);
    margin-right: 0.75rem;
}

.full-width {
    width: 100%;
}

.pricing-note {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.pricing-note a {
    color: var(--text-primary);
    text-decoration: underline;
}

/* CTA & Footer */
.cta-section {
    background: linear-gradient(to top, #16161a, transparent);
    text-align: center;
}

.cta-content {
    max-width: 600px;
}

.cta-content h2 {
    margin-bottom: 1rem;
}

.cta-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

footer {
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-top: 2rem;
}

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

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

/* Responsive */
@media (max-width: 768px) {
    :root {
        --font-size-h1: 2.5rem;
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }

    .nav-links,
    .header-actions {
        display: none;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 72px;
        /* Approx header height */
        left: 0;
        width: 100%;
        background: var(--bg-dark);
        padding: 1.5rem;
        border-bottom: 1px solid var(--border-color);
        gap: 1.5rem;
        align-items: center;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    }

    .header-actions.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 240px;
        /* Offset from nav links */
        left: 0;
        width: 100%;
        padding: 0 1.5rem 1.5rem;
        background: var(--bg-dark);
        border-bottom: 1px solid var(--border-color);
        align-items: center;
        gap: 1rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    }

    /* Ensure there's no gap if we use a single container, but with current html structure this is a quick fix */
    /* Better solution: Wrap everything in a mobile container in HTML, but CSS-only fix for now: */

    .nav-links.active,
    .header-actions.active {
        background: #0a0a0ce6;
        /* High opacity for readability */
        backdrop-filter: blur(12px);
    }

    .header-actions.active {
        top: auto;
        position: static;
        /* Let JS append or handle layout, or just use fixed positioning */
    }

    /* Let's use a simpler full-screen overlay approach driven by a parent class on nav */
    nav.mobile-open .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-dark);
        padding: 2rem;
        gap: 2rem;
        font-size: 1.2rem;
        align-items: center;
        border-bottom: 1px solid var(--border-color);
        z-index: 100;
    }

    nav.mobile-open .header-actions {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 280px;
        /* Push down below links */
        left: 0;
        right: 0;
        padding: 0 2rem;
        gap: 1rem;
        align-items: center;
        z-index: 100;
    }

    .mobile-menu-toggle {
        display: flex;
        z-index: 101;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .support-points {
        justify-content: center;
        flex-wrap: wrap;
    }

    .feature-grid-visual {
        max-width: 400px;
        margin: 2rem auto 0;
    }

    .visual-card:nth-child(2),
    .visual-card:nth-child(3) {
        margin-top: 0;
    }
}