/* ═══════════════════════════════════════════════════════════
   Gather Marketing — Design Tokens
   ═══════════════════════════════════════════════════════════ */

:root {
    /* Brand Colors */
    --color-primary: #1a4a3a;
    --color-primary-deep: #0f2e24;
    --color-secondary: #4a7c64;
    --color-accent: #c9a84c;
    --color-accent-hover: #b8963f;
    --color-accent-muted: rgba(201, 168, 76, 0.6);

    /* Surfaces */
    --color-bg: #f7f4ef;
    --color-surface: #fdfaf6;
    --color-text: #1c1a18;
    --color-text-muted: #6b6560;
    --color-text-light: rgba(255, 255, 255, 0.85);
    --color-text-light-muted: rgba(255, 255, 255, 0.6);

    /* Warm tones */
    --color-border: rgba(28, 26, 24, 0.08);
    --color-shadow: rgba(28, 26, 24, 0.06);

    /* Typography */
    --font-heading: 'Cormorant Garamond', 'Georgia', serif;
    --font-body: 'DM Sans', 'Helvetica Neue', sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    --space-3xl: 8rem;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-gentle: 200ms var(--ease-out);
    --transition-hover: 150ms var(--ease-out);
}


/* ═══════════════════════════════════════════════════════════
   Reset & Base
   ═══════════════════════════════════════════════════════════ */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 64px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
}

a {
    color: var(--color-accent);
    text-decoration: none;
}

img, svg {
    display: block;
    max-width: 100%;
}


/* ═══════════════════════════════════════════════════════════
   Layout
   ═══════════════════════════════════════════════════════════ */

.container {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.container--narrow {
    max-width: 640px;
}

.container--wide {
    max-width: 1100px;
}


/* ═══════════════════════════════════════════════════════════
   Decorative Dividers
   ═══════════════════════════════════════════════════════════ */

.divider-line {
    display: block;
    width: 48px;
    height: 1px;
    background: var(--color-accent-muted);
}

.divider-line--dark {
    background: rgba(28, 26, 24, 0.12);
}

.diamond {
    display: block;
    width: 7px;
    height: 7px;
    background: var(--color-accent);
    transform: rotate(45deg);
    opacity: 0.8;
    flex-shrink: 0;
}

.diamond--dark {
    background: var(--color-accent);
    opacity: 0.5;
}

.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0;
    background: var(--color-surface);
}


/* ═══════════════════════════════════════════════════════════
   Nav
   ═══════════════════════════════════════════════════════════ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0 var(--space-md);
    transition: background var(--transition-gentle), box-shadow var(--transition-gentle);
}

.nav.is-scrolled {
    background: var(--color-primary-deep);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 960px;
    margin: 0 auto;
    height: 56px;
}

.nav__brand {
    font-family: var(--font-heading);
    font-weight: 300;
    font-size: 1.25rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-light);
    text-decoration: none;
    transition: color var(--transition-hover);
}

.nav__brand:hover {
    color: var(--color-accent);
}

.nav__links {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav__link {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-light-muted);
    text-decoration: none;
    transition: color var(--transition-hover);
}

.nav__link:hover {
    color: var(--color-text-light);
}

.nav__link--cta {
    color: var(--color-primary-deep);
    background: var(--color-accent);
    padding: 0.4rem 1rem;
    border-radius: 6px;
    transition: background var(--transition-hover), color var(--transition-hover);
}

.nav__link--cta:hover {
    background: var(--color-accent-hover);
    color: var(--color-primary-deep);
}


/* ═══════════════════════════════════════════════════════════
   Section Heading
   ═══════════════════════════════════════════════════════════ */

.section-heading {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    line-height: 1.25;
    text-align: center;
    margin-bottom: var(--space-xl);
    color: var(--color-text);
}

.section-heading--light {
    color: var(--color-text-light);
}


/* ═══════════════════════════════════════════════════════════
   Animations
   ═══════════════════════════════════════════════════════════ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

[data-animate] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}

[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
[data-animate].is-visible .feature-card:nth-child(1),
[data-animate].is-visible .difference__item:nth-child(1) { transition-delay: 0ms; }
[data-animate].is-visible .feature-card:nth-child(2),
[data-animate].is-visible .difference__item:nth-child(2) { transition-delay: 100ms; }
[data-animate].is-visible .feature-card:nth-child(3),
[data-animate].is-visible .difference__item:nth-child(3) { transition-delay: 200ms; }
[data-animate].is-visible .feature-card:nth-child(4) { transition-delay: 300ms; }
[data-animate].is-visible .feature-card:nth-child(5) { transition-delay: 400ms; }
[data-animate].is-visible .feature-card:nth-child(6) { transition-delay: 500ms; }

.feature-card,
.difference__item {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
}

[data-animate].is-visible .feature-card,
[data-animate].is-visible .difference__item {
    opacity: 1;
    transform: translateY(0);
}


/* ═══════════════════════════════════════════════════════════
   Section 1: Hero
   ═══════════════════════════════════════════════════════════ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    overflow: hidden;
}

/* Layered depth — warm radial gradient with light rays */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 75% 20%, rgba(74, 124, 100, 0.4) 0%, transparent 70%),
        radial-gradient(ellipse 50% 80% at 20% 80%, rgba(15, 46, 36, 0.6) 0%, transparent 60%),
        radial-gradient(ellipse 40% 40% at 50% 50%, rgba(201, 168, 76, 0.03) 0%, transparent 50%),
        linear-gradient(170deg, rgba(74, 124, 100, 0.15) 0%, transparent 40%);
    pointer-events: none;
}

/* Richer light rays from top-right */
.hero__light-rays {
    position: absolute;
    top: -30%;
    right: -15%;
    width: 90%;
    height: 90%;
    background:
        radial-gradient(ellipse 60% 60% at 60% 40%, rgba(201, 168, 76, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 40% 80% at 70% 30%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
    transform: rotate(-15deg);
    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: var(--space-xl) var(--space-md);
    animation: fadeInUp 800ms var(--ease-out) both;
}

.hero__crest {
    margin: 0 auto var(--space-lg);
}

.hero__crest svg {
    margin: 0 auto;
}

.hero__wordmark {
    font-family: var(--font-heading);
    font-weight: 300;
    font-size: clamp(3.5rem, 10vw, 6rem);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-text-light);
    margin-bottom: var(--space-md);
}

.hero__divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: var(--space-lg);
}

.hero__tagline {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 400;
    color: var(--color-text-light-muted);
    max-width: 520px;
    margin: 0 auto var(--space-sm);
    line-height: 1.6;
}

.hero__tagline-secondary {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.125rem, 2.5vw, 1.375rem);
    color: var(--color-accent);
    margin: 0 auto;
}

.hero__scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-accent-muted);
    transition: color var(--transition-hover);
    animation: scrollBounce 2.4s var(--ease-out) infinite;
    z-index: 1;
}

.hero__scroll:hover {
    color: var(--color-accent);
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}


/* ═══════════════════════════════════════════════════════════
   Section 2: The Problem
   ═══════════════════════════════════════════════════════════ */

.problem {
    padding: var(--space-3xl) 0 var(--space-2xl);
    background: var(--color-bg);
}

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

.problem__body p {
    font-size: clamp(1.0625rem, 2vw, 1.1875rem);
    line-height: 1.75;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.problem__body p:last-child {
    margin-bottom: 0;
}

/* Pull-quote emphasis */
.problem__highlight {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.15em;
    color: var(--color-primary);
    font-weight: 500;
}


/* ═══════════════════════════════════════════════════════════
   Section 3: Features
   ═══════════════════════════════════════════════════════════ */

.features {
    padding: var(--space-2xl) 0 var(--space-3xl);
    background: var(--color-surface);
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

/* Stagger: offset the middle column */
.features__grid .feature-card:nth-child(3n + 2) {
    transform: translateY(16px);
}

[data-animate].is-visible .features__grid .feature-card:nth-child(3n + 2) {
    transform: translateY(16px);
}

.feature-card {
    background: var(--color-bg);
    border-radius: 12px;
    padding: var(--space-lg);
    border: 1px solid var(--color-border);
    box-shadow: 0 2px 8px var(--color-shadow);
    transition: box-shadow var(--transition-hover), transform var(--transition-hover);
    position: relative;
}

/* Subtle paper texture via CSS noise */
.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.015'/%3E%3C/svg%3E");
    pointer-events: none;
}

.feature-card:hover {
    box-shadow: 0 6px 24px rgba(28, 26, 24, 0.1);
    transform: translateY(-3px);
}

.features__grid .feature-card:nth-child(3n + 2):hover {
    transform: translateY(13px);
}

.feature-card__icon {
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
}

.feature-card__icon svg {
    width: 32px;
    height: 32px;
}

.feature-card__title {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-bottom: var(--space-xs);
}

.feature-card__text {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--color-text-muted);
}


/* ═══════════════════════════════════════════════════════════
   Section 3b: Screenshot Showcase
   ═══════════════════════════════════════════════════════════ */

.showcase {
    padding: 0 0 var(--space-3xl);
    background: var(--color-surface);
}

.showcase__label {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.125rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-bottom: var(--space-xl);
}

.showcase__browser {
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
        0 8px 40px rgba(28, 26, 24, 0.12),
        0 2px 8px rgba(28, 26, 24, 0.06);
    border: 1px solid var(--color-border);
    margin-bottom: var(--space-xl);
    background: var(--color-surface);
}

.showcase__browser--offset {
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0;
}

.showcase__toolbar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
}

.showcase__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(28, 26, 24, 0.1);
}

.showcase__dot:first-child {
    background: rgba(220, 80, 80, 0.4);
}

.showcase__dot:nth-child(2) {
    background: rgba(220, 180, 60, 0.4);
}

.showcase__dot:nth-child(3) {
    background: rgba(80, 180, 80, 0.4);
}

.showcase__url {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--color-text-muted);
    opacity: 0.6;
    margin-left: 8px;
    background: rgba(28, 26, 24, 0.04);
    padding: 2px 12px;
    border-radius: 4px;
}

.showcase__image {
    display: block;
    width: 100%;
    height: auto;
}


/* ═══════════════════════════════════════════════════════════
   Section 4: The Difference
   ═══════════════════════════════════════════════════════════ */

.difference {
    padding: var(--space-3xl) 0;
    background: var(--color-primary);
    position: relative;
}

/* Subtle texture */
.difference::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 30% 70%, rgba(74, 124, 100, 0.2) 0%, transparent 60%);
    pointer-events: none;
}

.difference .container {
    position: relative;
    z-index: 1;
}

.difference__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.difference__item h3 {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1.25rem;
    color: var(--color-accent);
    margin-bottom: var(--space-xs);
}

.difference__item p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--color-text-light-muted);
}

/* Big price callout */
.difference__price {
    font-family: var(--font-heading);
    font-weight: 300;
    font-size: clamp(3rem, 6vw, 4.5rem);
    color: var(--color-text-light);
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.difference__price span {
    font-size: 0.4em;
    color: var(--color-text-light-muted);
    font-weight: 400;
}


/* ═══════════════════════════════════════════════════════════
   Section 5: Email Capture / CTA
   ═══════════════════════════════════════════════════════════ */

.cta {
    padding: var(--space-3xl) 0;
    background: var(--color-bg);
    text-align: center;
}

.cta__subtext {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.cta__form {
    margin-bottom: var(--space-md);
}

.cta__form-row {
    display: flex;
    gap: var(--space-sm);
    max-width: 480px;
    margin: 0 auto;
}

.cta__input {
    flex: 1;
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 0.875rem 1.25rem;
    background: var(--color-surface);
    border: 1px solid rgba(28, 26, 24, 0.12);
    border-radius: 8px;
    color: var(--color-text);
    outline: none;
    transition: border-color var(--transition-hover), box-shadow var(--transition-hover);
}

.cta__input::placeholder {
    color: var(--color-text-muted);
    opacity: 0.6;
}

.cta__input:focus {
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(74, 124, 100, 0.15);
}

.cta__input.has-error {
    border-color: #b45309;
    box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.1);
}

.cta__button {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 0.875rem 1.75rem;
    background: var(--color-accent);
    color: var(--color-primary-deep);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--transition-hover), transform var(--transition-hover);
    position: relative;
}

.cta__button:hover {
    background: var(--color-accent-hover);
    transform: translateY(-1px);
}

.cta__button:active {
    transform: translateY(0);
}

.cta__button-loading {
    display: none;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
}

.cta__button-loading svg {
    animation: spin 800ms linear infinite;
}

.cta__button.is-loading .cta__button-text {
    visibility: hidden;
}

.cta__button.is-loading .cta__button-loading {
    display: flex;
}

.cta__error {
    color: #b45309;
    font-size: 0.875rem;
    min-height: 1.5rem;
    margin-top: var(--space-xs);
}

.cta__success {
    display: none;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: var(--space-md);
    color: var(--color-primary);
}

.cta__success.is-visible {
    display: flex;
}

.cta__success svg {
    color: var(--color-secondary);
    flex-shrink: 0;
}

.cta__success p {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-style: italic;
}

.cta__disclaimer {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    opacity: 0.7;
    margin-top: var(--space-sm);
}


/* ═══════════════════════════════════════════════════════════
   Section 6: Footer
   ═══════════════════════════════════════════════════════════ */

.footer {
    padding: var(--space-xl) 0 var(--space-lg);
    background: var(--color-primary);
}

.footer__brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.footer__crest {
    flex-shrink: 0;
}

.footer__text {
    text-align: left;
}

.footer__tagline {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--color-text-light-muted);
    line-height: 1.5;
}

.footer__tagline strong {
    color: var(--color-text-light);
    font-weight: 500;
}

.footer__hint {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 0.8125rem;
    color: var(--color-accent-muted);
    margin-top: 2px;
}

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.75rem;
    color: var(--color-text-light-muted);
    opacity: 0.6;
}


/* ═══════════════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .nav__links {
        gap: var(--space-sm);
    }

    .nav__link:not(.nav__link--cta) {
        display: none;
    }

    .features__grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    /* Remove stagger on mobile — single column */
    .features__grid .feature-card:nth-child(3n + 2) {
        transform: none;
    }

    [data-animate].is-visible .features__grid .feature-card:nth-child(3n + 2) {
        transform: none;
    }

    .features__grid .feature-card:nth-child(3n + 2):hover {
        transform: translateY(-3px);
    }

    .difference__grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        text-align: center;
    }

    .cta__form-row {
        flex-direction: column;
    }

    .cta__button {
        width: 100%;
    }

    .hero__wordmark {
        letter-spacing: 0.12em;
    }

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

    .footer__text {
        text-align: center;
    }

    .footer__bottom {
        flex-direction: column;
        gap: var(--space-xs);
    }

    .problem {
        padding: var(--space-2xl) 0 var(--space-xl);
    }

    .features {
        padding: var(--space-xl) 0 var(--space-2xl);
    }

    .difference {
        padding: var(--space-2xl) 0;
    }

    .cta {
        padding: var(--space-2xl) 0;
    }

    .showcase {
        padding: 0 0 var(--space-2xl);
    }

    .showcase__browser--offset {
        max-width: 100%;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .features__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Remove 3-col stagger on 2-col layout */
    .features__grid .feature-card:nth-child(3n + 2) {
        transform: none;
    }

    [data-animate].is-visible .features__grid .feature-card:nth-child(3n + 2) {
        transform: none;
    }

    /* Stagger even items instead */
    .features__grid .feature-card:nth-child(2n) {
        transform: translateY(16px);
    }

    [data-animate].is-visible .features__grid .feature-card:nth-child(2n) {
        transform: translateY(16px);
    }
}
