/* ============================================================
   Pulse Edit — Premium Design System v2
   Inspired by Linear.app / Raycast.com
   Drop-in replacement: keeps all existing class names
   ============================================================ */

/* ----------------------------------------------------------
   0. Design Tokens (CSS Custom Properties)
   ---------------------------------------------------------- */
:root {
    /* Colors — Core */
    --color-primary: #7c6ff7;
    --color-primary-light: #9d93fa;
    --color-primary-dark: #5b4fd4;
    --color-primary-glow: rgba(124, 111, 247, 0.35);

    --color-green: #22c55e;
    --color-green-light: #4ade80;
    --color-green-dark: #16a34a;
    --color-green-glow: rgba(34, 197, 94, 0.25);

    --color-amber: #f59e0b;

    /* Colors — Neutrals */
    --color-bg: #0a0a0a;
    --color-bg-raised: #111111;
    --color-bg-elevated: #161616;
    --color-bg-glass: rgba(17, 17, 17, 0.6);
    --color-bg-glass-hover: rgba(24, 24, 24, 0.7);

    --color-border: rgba(255, 255, 255, 0.06);
    --color-border-hover: rgba(124, 111, 247, 0.3);
    --color-border-subtle: rgba(255, 255, 255, 0.04);

    --color-text: #e0e0e0;
    --color-text-muted: #888888;
    --color-text-faint: #555555;
    --color-text-white: #ffffff;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --letter-tight: -0.02em;
    --letter-tighter: -0.03em;

    /* Spacing */
    --section-padding: 120px;
    --section-padding-sm: 80px;
    --container-max: 1000px;
    --container-padding: 24px;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-card: 0 0 0 1px var(--color-border), 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-card-hover: 0 0 0 1px var(--color-border-hover), 0 8px 40px rgba(124, 111, 247, 0.08);
    --shadow-glow-primary: 0 0 30px rgba(124, 111, 247, 0.15);
    --shadow-glow-green: 0 0 30px rgba(34, 197, 94, 0.12);
    --shadow-button-primary: 0 0 20px rgba(124, 111, 247, 0.25);
    --shadow-button-green: 0 0 20px rgba(34, 197, 94, 0.2);

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 0.2s;
    --duration-normal: 0.3s;
    --duration-slow: 0.5s;

    /* Glass */
    --glass-blur: blur(16px);
    --glass-blur-strong: blur(24px);
}


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

html {
    scroll-behavior: smooth;
}

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

/* Grid background — subtle dot pattern */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    z-index: 0;
}

/* Ensure all content sits above the grid */
body > * {
    position: relative;
    z-index: 1;
}

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


/* ----------------------------------------------------------
   2. Focus States
   ---------------------------------------------------------- */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}


/* ----------------------------------------------------------
   3. Navigation — Glassmorphism
   ---------------------------------------------------------- */
nav {
    padding: 16px 0;
    position: sticky;
    top: 0;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: var(--glass-blur-strong);
    -webkit-backdrop-filter: var(--glass-blur-strong);
    border-bottom: 1px solid var(--color-border);
    z-index: 100;
    transition: border-color var(--duration-normal) ease,
                box-shadow var(--duration-normal) ease;
}

/* Scroll glow effect — add .nav-scrolled via JS */
nav.nav-scrolled {
    border-bottom-color: rgba(124, 111, 247, 0.15);
    box-shadow: 0 1px 30px rgba(124, 111, 247, 0.06);
}

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

.nav-brand {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text-white);
    text-decoration: none;
    letter-spacing: var(--letter-tight);
}

.nav-brand span {
    color: var(--color-primary);
}

.nav-links {
    display: flex;
    gap: 28px;
}

.nav-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color var(--duration-fast) ease;
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-primary);
    transition: width var(--duration-normal) var(--ease-out);
}

.nav-links a:hover::after {
    width: 100%;
}


/* ----------------------------------------------------------
   4. Hero Section — with glow orb
   ---------------------------------------------------------- */
.hero {
    text-align: center;
    padding: var(--section-padding) 0 var(--section-padding-sm);
    position: relative;
    overflow: hidden;
}

/* Hero glow orb */
.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(
        ellipse at center,
        rgba(124, 111, 247, 0.2) 0%,
        rgba(88, 80, 200, 0.12) 30%,
        rgba(60, 50, 180, 0.05) 55%,
        transparent 75%
    );
    filter: blur(60px);
    pointer-events: none;
    animation: heroGlowPulse 6s ease-in-out infinite;
    z-index: -1;
}

@keyframes heroGlowPulse {
    0%, 100% {
        transform: translateX(-50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translateX(-50%) scale(1.08);
        opacity: 0.65;
    }
}

.hero-badge {
    display: inline-block;
    background: rgba(124, 111, 247, 0.1);
    color: var(--color-primary-light);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 28px;
    border: 1px solid rgba(124, 111, 247, 0.2);
    letter-spacing: 0.02em;
}

.hero h1 {
    font-size: 56px;
    font-weight: 700;
    color: var(--color-text-white);
    line-height: 1.08;
    margin-bottom: 20px;
    letter-spacing: var(--letter-tighter);
}

.hero h1 span {
    color: var(--color-primary);
    text-shadow: 0 0 40px rgba(124, 111, 247, 0.3);
}

.hero p {
    font-size: 18px;
    color: var(--color-text-muted);
    max-width: 640px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-cta {
    display: inline-flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-trust {
    margin-top: 20px;
    font-size: 13px;
    color: var(--color-text-faint);
}

.hero-trust strong {
    color: var(--color-text);
}


/* ----------------------------------------------------------
   5. Buttons
   ---------------------------------------------------------- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--duration-normal) var(--ease-out);
    cursor: pointer;
    border: none;
    position: relative;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-text-white);
    box-shadow: 0 0 0 1px rgba(124, 111, 247, 0.3);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-button-primary);
}

.btn-secondary {
    background: var(--color-bg-raised);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    border-color: var(--color-border-hover);
    color: var(--color-text-white);
    transform: translateY(-1px);
}

.btn-small {
    padding: 10px 24px;
    font-size: 14px;
}

.btn-green {
    background: var(--color-green);
    color: var(--color-text-white);
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.3);
}

.btn-green:hover {
    background: var(--color-green-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-button-green);
}

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

.btn-outline:hover {
    border-color: var(--color-border-hover);
    color: var(--color-text-white);
    transform: translateY(-1px);
}

.btn-disabled {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-faint);
    cursor: default;
    pointer-events: none;
}


/* ----------------------------------------------------------
   6. Section Styling — titles, dividers, rhythm
   ---------------------------------------------------------- */
.section-title {
    text-align: center;
    font-size: 38px;
    color: var(--color-text-white);
    margin-bottom: 16px;
    letter-spacing: var(--letter-tight);
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 17px;
    margin-bottom: 56px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Gradient line dividers between sections */
.how-it-works,
.features,
.patterns,
.compare,
.pricing,
.faq,
.notify-section {
    position: relative;
}

.how-it-works::before,
.features::before,
.patterns::before,
.compare::before,
.pricing::before,
.faq::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(400px, 80%);
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(124, 111, 247, 0.2) 30%,
        rgba(124, 111, 247, 0.3) 50%,
        rgba(124, 111, 247, 0.2) 70%,
        transparent 100%
    );
}

/* Alternating subtle background variation */
.how-it-works {
    background: linear-gradient(180deg, var(--color-bg) 0%, rgba(15, 15, 26, 0.3) 50%, var(--color-bg) 100%);
}

.patterns {
    background: linear-gradient(180deg, var(--color-bg) 0%, rgba(15, 15, 26, 0.2) 50%, var(--color-bg) 100%);
}

.pricing {
    background: linear-gradient(180deg, var(--color-bg) 0%, rgba(15, 15, 26, 0.25) 50%, var(--color-bg) 100%);
}


/* ----------------------------------------------------------
   7. How It Works
   ---------------------------------------------------------- */
.how-it-works {
    padding: var(--section-padding-sm) 0;
}

.steps {
    max-width: 700px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 20px;
    margin-bottom: 36px;
    align-items: flex-start;
}

.step-number {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 0 20px rgba(124, 111, 247, 0.2);
}

.step-content h3 {
    color: var(--color-text-white);
    font-size: 17px;
    margin-bottom: 6px;
    letter-spacing: var(--letter-tight);
}

.step-content p {
    color: var(--color-text-muted);
    font-size: 14px;
    line-height: 1.6;
}


/* ----------------------------------------------------------
   8. Features — Glassmorphism Cards
   ---------------------------------------------------------- */
.features {
    padding: var(--section-padding) 0;
}

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

.feature-card {
    background: var(--color-bg-glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 28px;
    transition: transform var(--duration-normal) var(--ease-out),
                border-color var(--duration-normal) ease,
                box-shadow var(--duration-normal) ease,
                background var(--duration-normal) ease;
}

.feature-card:hover {
    transform: scale(1.02);
    border-color: var(--color-border-hover);
    box-shadow: var(--shadow-card-hover);
    background: var(--color-bg-glass-hover);
}

.feature-icon {
    width: 44px;
    height: 44px;
    background: rgba(124, 111, 247, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border: 1px solid rgba(124, 111, 247, 0.1);
}

.feature-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--color-primary);
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feature-card h3 {
    color: var(--color-text-white);
    font-size: 17px;
    margin-bottom: 8px;
    letter-spacing: var(--letter-tight);
}

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

.feature-new {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-text-white);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
}

.feature-coming-soon {
    display: inline-block;
    background: var(--color-amber);
    color: #000;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
}

.feature-card.coming-soon-card {
    border-color: rgba(255, 255, 255, 0.04);
    opacity: 0.8;
}

.feature-card.coming-soon-card:hover {
    opacity: 0.95;
}

.free-updates-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.15);
    color: var(--color-green-light);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    margin-top: 12px;
}


/* ----------------------------------------------------------
   9. Cut Patterns
   ---------------------------------------------------------- */
.patterns {
    padding: var(--section-padding-sm) 0;
    text-align: center;
}

.pattern-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    max-width: 700px;
    margin: 0 auto;
}

.pattern-tag {
    background: rgba(124, 111, 247, 0.08);
    color: var(--color-primary-light);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid rgba(124, 111, 247, 0.12);
    transition: all var(--duration-fast) ease;
}

.pattern-tag:hover {
    background: rgba(124, 111, 247, 0.15);
    border-color: rgba(124, 111, 247, 0.25);
}


/* ----------------------------------------------------------
   10. Comparison Table
   ---------------------------------------------------------- */
.compare {
    padding: var(--section-padding) 0;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    max-width: 750px;
    margin: 0 auto;
}

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

.compare-table th {
    color: var(--color-text-faint);
    font-weight: 500;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.compare-table td {
    font-size: 15px;
}

.compare-table tbody tr {
    transition: background var(--duration-fast) ease;
}

.compare-table tbody tr:hover {
    background: rgba(124, 111, 247, 0.03);
}

.compare-table .check {
    color: var(--color-green-light);
}

.compare-table .cross {
    color: var(--color-text-faint);
}

.compare-table .highlight {
    color: var(--color-primary);
    font-weight: 600;
}


/* ----------------------------------------------------------
   11. Pricing — Premium Glassmorphism Cards
   ---------------------------------------------------------- */
.pricing {
    padding: var(--section-padding) 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 960px;
    margin: 0 auto;
}

.price-card {
    background: var(--color-bg-glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    position: relative;
    transition: transform var(--duration-normal) var(--ease-out),
                border-color var(--duration-normal) ease,
                box-shadow var(--duration-normal) ease;
}

.price-card:hover {
    transform: scale(1.02);
    border-color: var(--color-border-hover);
    box-shadow: var(--shadow-card-hover);
}

/* Featured card — animated gradient border */
.price-card.featured {
    background: rgba(15, 15, 30, 0.6);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: none;
    position: relative;
    z-index: 1;
}

/* Animated gradient border via pseudo-element */
.price-card.featured::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 1px;
    background: conic-gradient(
        from var(--angle, 0deg),
        var(--color-primary) 0%,
        rgba(124, 111, 247, 0.3) 25%,
        var(--color-primary-light) 50%,
        rgba(124, 111, 247, 0.3) 75%,
        var(--color-primary) 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    z-index: -1;
    animation: borderRotate 4s linear infinite;
}

@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes borderRotate {
    to {
        --angle: 360deg;
    }
}

/* Fallback for browsers without @property */
@supports not (background: conic-gradient(from 0deg, red, blue)) {
    .price-card.featured::after {
        background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light), var(--color-primary));
    }
}

.price-card.featured:hover {
    box-shadow: 0 8px 50px rgba(124, 111, 247, 0.15);
    transform: scale(1.03);
}

.price-card.featured::before {
    content: "MOST POPULAR";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-text-white);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    white-space: nowrap;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(124, 111, 247, 0.3);
}

.price-card.entry::before {
    content: "START HERE";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--color-green), var(--color-green-dark));
    color: var(--color-text-white);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    white-space: nowrap;
    box-shadow: 0 4px 15px var(--color-green-glow);
}

.price-card h3 {
    color: var(--color-text-white);
    font-size: 20px;
    margin-bottom: 4px;
    letter-spacing: var(--letter-tight);
}

.price-card .description {
    color: var(--color-text-muted);
    font-size: 13px;
    margin-bottom: 20px;
}

.price-card .price {
    font-size: 42px;
    font-weight: 700;
    color: var(--color-text-white);
    margin-bottom: 4px;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.08);
}

.price-card.featured .price {
    text-shadow: 0 0 40px rgba(124, 111, 247, 0.3);
}

.price-original {
    font-size: 22px;
    color: var(--color-text-faint);
    text-decoration: line-through;
    font-weight: 400;
    margin-right: 6px;
}

.price-card .price-per {
    color: var(--color-text-faint);
    font-size: 12px;
    margin-bottom: 4px;
}

.price-card .price-note {
    color: var(--color-text-faint);
    font-size: 13px;
    margin-bottom: 20px;
}

.price-card ul {
    list-style: none;
    text-align: left;
    margin-bottom: 24px;
}

.price-card ul li {
    padding: 5px 0;
    font-size: 13px;
    color: #bbb;
}

.price-card ul li::before {
    content: "\2713 ";
    color: var(--color-green-light);
    font-weight: 700;
}

.price-card .btn {
    width: 100%;
    text-align: center;
}

/* Coming Soon price card */
.price-card.coming-soon {
    opacity: 0.75;
    position: relative;
}

.badge-coming-soon {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-text-white);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    margin-bottom: 10px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.upgrade-note {
    text-align: center;
    margin-top: 24px;
    padding: 16px;
    background: var(--color-bg-glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(124, 111, 247, 0.15);
    border-radius: 10px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.upgrade-note p {
    color: var(--color-primary-light);
    font-size: 14px;
}

.upgrade-note code {
    background: rgba(124, 111, 247, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--color-primary);
    font-weight: 700;
}


/* ----------------------------------------------------------
   12. FAQ
   ---------------------------------------------------------- */
.faq {
    padding: var(--section-padding) 0;
}

.faq-grid {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
    padding: 24px 0;
    transition: background var(--duration-fast) ease;
}

.faq-item h3 {
    color: var(--color-text-white);
    font-size: 16px;
    margin-bottom: 8px;
    letter-spacing: var(--letter-tight);
}

.faq-item p {
    color: var(--color-text-muted);
    font-size: 14px;
    line-height: 1.6;
}


/* ----------------------------------------------------------
   13. Notify / Waitlist / Download CTA
   ---------------------------------------------------------- */
.notify-section {
    padding: var(--section-padding-sm) 0;
    text-align: center;
    background: linear-gradient(180deg, var(--color-bg-raised) 0%, var(--color-bg) 100%);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    position: relative;
}

/* Subtle glow above CTA */
.notify-section::before {
    content: '';
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 160px;
    background: radial-gradient(ellipse, rgba(124, 111, 247, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.notify-form {
    display: flex;
    gap: 12px;
    max-width: 440px;
    margin: 24px auto 0;
    justify-content: center;
}

.notify-form input[type="email"] {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    background: rgba(26, 26, 26, 0.8);
    color: var(--color-text);
    font-size: 15px;
    flex: 1;
    outline: none;
    font-family: var(--font-sans);
    transition: border-color var(--duration-fast) ease;
}

.notify-form input[type="email"]:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(124, 111, 247, 0.1);
}

.notify-form .btn {
    white-space: nowrap;
}

.notify-msg {
    margin-top: 12px;
    font-size: 14px;
    color: var(--color-green);
    min-height: 20px;
}


/* ----------------------------------------------------------
   14. Footer
   ---------------------------------------------------------- */
footer {
    border-top: 1px solid var(--color-border);
    padding: 48px 0;
    text-align: center;
    color: var(--color-text-faint);
    font-size: 13px;
}

footer a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--duration-fast) ease;
}

footer a:hover {
    color: var(--color-primary-light);
}


/* ----------------------------------------------------------
   15. Scroll Animations
   ---------------------------------------------------------- */

/* Fade up */
.animate-fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease-out),
                transform 0.7s var(--ease-out);
}

.animate-fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Scale in */
.animate-scale-in {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.6s var(--ease-out),
                transform 0.6s var(--ease-out);
}

.animate-scale-in.is-visible {
    opacity: 1;
    transform: scale(1);
}

/* Slide left */
.animate-slide-left {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.7s var(--ease-out),
                transform 0.7s var(--ease-out);
}

.animate-slide-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger delays for grid children */
.animate-stagger > *:nth-child(1) { transition-delay: 0ms; }
.animate-stagger > *:nth-child(2) { transition-delay: 60ms; }
.animate-stagger > *:nth-child(3) { transition-delay: 120ms; }
.animate-stagger > *:nth-child(4) { transition-delay: 180ms; }
.animate-stagger > *:nth-child(5) { transition-delay: 240ms; }
.animate-stagger > *:nth-child(6) { transition-delay: 300ms; }
.animate-stagger > *:nth-child(7) { transition-delay: 360ms; }
.animate-stagger > *:nth-child(8) { transition-delay: 420ms; }
.animate-stagger > *:nth-child(9) { transition-delay: 480ms; }
.animate-stagger > *:nth-child(10) { transition-delay: 540ms; }


/* ----------------------------------------------------------
   16. Responsive
   ---------------------------------------------------------- */
@media (max-width: 900px) {
    :root {
        --section-padding: 80px;
        --section-padding-sm: 60px;
    }

    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    :root {
        --section-padding: 60px;
        --section-padding-sm: 48px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero p {
        font-size: 16px;
    }

    .section-title {
        font-size: 28px;
    }

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

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        gap: 16px;
    }

    .nav-links a {
        font-size: 13px;
    }

    /* Hide underline on mobile nav */
    .nav-links a::after {
        display: none;
    }

    .step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .notify-form {
        flex-direction: column;
        padding: 0 20px;
    }

    /* Reduce glow orb on mobile */
    .hero::before {
        width: 400px;
        height: 300px;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .animate-fade-up,
    .animate-scale-in,
    .animate-slide-left {
        opacity: 1;
        transform: none;
    }
}


/* ============================================================
   17. IntersectionObserver Script
   ============================================================

   Add this <script> block before </body> in index.html:

   <script>
   (function() {
     // Scroll animations
     const observer = new IntersectionObserver(function(entries) {
       entries.forEach(function(entry) {
         if (entry.isIntersecting) {
           entry.target.classList.add('is-visible');
           observer.unobserve(entry.target);
         }
       });
     }, { threshold: 0.1, rootMargin: '0px 0px -40px 0px' });

     document.querySelectorAll('.animate-fade-up, .animate-scale-in, .animate-slide-left').forEach(function(el) {
       observer.observe(el);
     });

     // Nav scroll state
     var nav = document.querySelector('nav');
     window.addEventListener('scroll', function() {
       if (window.scrollY > 20) {
         nav.classList.add('nav-scrolled');
       } else {
         nav.classList.remove('nav-scrolled');
       }
     }, { passive: true });
   })();
   </script>

   Then add these classes to HTML elements:
   - .animate-fade-up on: .section-title, .section-subtitle, .step, .faq-item, .upgrade-note
   - .animate-scale-in on: .feature-card, .price-card, .hero-badge, .hero h1
   - .animate-slide-left on: .pattern-tag
   - .animate-stagger on: .features-grid, .pricing-grid, .pattern-list

   ============================================================ */
