/* ==========================================================================
   Steer Landing Page - Radiant Gold Theme (Light)
   Colors extracted from steer-app/src/themes/themeVariants.ts
   ========================================================================== */

:root {
    /* Primary Colors - Radiant Gold */
    --primary: #D4A84B;
    --primary-light: #E6C866;
    --primary-container: #FFF3D6;
    --primary-dark: #3D2E00;

    /* Secondary - Taupe */
    --secondary: #6B5B4F;
    --secondary-container: #F5EDE6;

    /* Tertiary - Sage Green */
    --tertiary: #4A7C59;
    --tertiary-container: #CCE8D4;

    /* Backgrounds */
    --background: #FBF8F3;
    --surface: #FFFFFF;
    --surface-variant: #F5EDE6;

    /* Text */
    --text-primary: #1D1B18;
    --text-secondary: #4A4641;
    --text-muted: #767873;
    --text-on-primary: #FFFFFF;

    /* Semantic */
    --success: #4A7C59;
    --warning: #D4A84B;
    --error: #BA1A1A;
    --error-light: #FFDAD6;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(29, 27, 24, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(29, 27, 24, 0.07), 0 2px 4px -1px rgba(29, 27, 24, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(29, 27, 24, 0.08), 0 4px 6px -2px rgba(29, 27, 24, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(29, 27, 24, 0.1), 0 10px 10px -5px rgba(29, 27, 24, 0.04);

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

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 350ms ease;
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: var(--text-on-primary);
    padding: var(--space-sm) var(--space-md);
    z-index: 10000;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 0;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ==========================================================================
   Layout
   ========================================================================== */

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

section {
    padding: var(--space-4xl) 0;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    letter-spacing: -0.01em;
    text-align: center;
    margin-bottom: var(--space-xl);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
}

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

.highlight {
    color: var(--primary);
}

/* ==========================================================================
   Components
   ========================================================================== */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
}

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

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--surface);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary-container);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    width: 100%;
}

/* Badge */
.badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: var(--primary-container);
    color: var(--primary-dark);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-lg);
}

/* Feature Tag */
.feature-tag {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: var(--tertiary-container);
    color: var(--tertiary);
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Phone Mockup */
.phone-mockup {
    position: relative;
    width: 280px;
    background: var(--text-primary);
    border-radius: 2rem;
    padding: 6px;
    box-shadow: var(--shadow-xl);
}

.phone-mockup img {
    border-radius: 1.75rem;
    width: 100%;
}

.phone-mockup.small {
    width: 240px;
    padding: 5px;
    border-radius: 1.75rem;
}

.phone-mockup.small img {
    border-radius: 1.5rem;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(251, 248, 243, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(29, 27, 24, 0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-md) var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
}

.footer-logo {
    filter: brightness(0) invert(1);
}

.nav-cta {
    padding: var(--space-sm) var(--space-lg);
    background: var(--primary);
    color: var(--text-on-primary);
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
}

.nav-cta:hover {
    background: var(--primary-light);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: linear-gradient(180deg, var(--background) 0%, var(--primary-container) 100%);
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-2xl) var(--space-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.hero-text h1 {
    margin-bottom: var(--space-lg);
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    max-width: 500px;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
}

.cta-note {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.hero-image {
    display: flex;
    justify-content: center;
}

/* ==========================================================================
   Why Steer Section
   ========================================================================== */

.why-steer {
    background: var(--background);
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto var(--space-3xl);
}

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

.diff-card {
    background: var(--surface);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.diff-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.diff-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-container);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
}

.diff-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.diff-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

.diff-card p {
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* ==========================================================================
   Features Section
   ========================================================================== */

.features {
    background: var(--background);
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
    margin-bottom: var(--space-4xl);
}

.feature-row:last-child {
    margin-bottom: 0;
}

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

.feature-row.reverse > * {
    direction: ltr;
}

.feature-content h3 {
    font-size: 1.75rem;
}

.feature-content p {
    font-size: 1.0625rem;
    margin-bottom: var(--space-lg);
}

.feature-list {
    list-style: none;
}

.feature-list li {
    position: relative;
    padding-left: var(--space-lg);
    margin-bottom: var(--space-sm);
    color: var(--text-secondary);
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--tertiary);
    font-weight: 700;
}

.feature-image {
    display: flex;
    justify-content: center;
}

/* ==========================================================================
   Mode Showcase
   ========================================================================== */

.mode-showcase {
    background: linear-gradient(135deg, var(--surface) 0%, var(--primary-container) 100%);
    padding: var(--space-3xl) 0;
}

.mode-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3xl);
}

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

.phone-mockup.mini {
    width: 160px;
    padding: 4px;
    border-radius: 1.25rem;
}

.phone-mockup.mini img {
    border-radius: 1rem;
}

.light-phone {
    background: var(--text-primary);
}

.dark-phone {
    background: #1a1a1a;
}

.mode-text {
    max-width: 300px;
}

.mode-text h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

.mode-text p {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   Timing Section
   ========================================================================== */

.timing {
    background: var(--surface);
}

.timing-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.timing-text h3 {
    font-size: 1.75rem;
}

.timing-text p {
    font-size: 1.0625rem;
    margin-bottom: var(--space-xl);
}

.timing-examples {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.timing-example {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.timing-dot {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

.timing-example.good .timing-dot {
    background: var(--tertiary);
}

.timing-example.caution .timing-dot {
    background: var(--error);
}

/* ==========================================================================
   How It Works
   ========================================================================== */

.how-it-works {
    background: var(--primary-container);
}

.steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: var(--space-lg);
}

.step {
    flex: 1;
    max-width: 300px;
    text-align: center;
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: var(--text-on-primary);
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
}

.step h3 {
    font-size: 1.125rem;
    margin-bottom: var(--space-sm);
}

.step p {
    font-size: 0.9375rem;
    color: var(--text-muted);
}

.step-arrow {
    font-size: 1.5rem;
    color: var(--primary);
    padding-top: 10px;
}

/* ==========================================================================
   Waitlist Section
   ========================================================================== */

.waitlist {
    background: var(--surface);
    scroll-margin-top: 20px;
}

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

.waitlist-content h2 {
    margin-bottom: var(--space-md);
}

.waitlist-content > p {
    font-size: 1.0625rem;
    margin-bottom: var(--space-xl);
}

.waitlist-form {
    background: var(--background);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    text-align: left;
}

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

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

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.form-group input,
.form-group select {
    width: 100%;
    height: 48px;
    padding: 0 1rem;
    font-size: 1rem;
    border: 2px solid var(--surface-variant);
    border-radius: var(--radius-md);
    background: var(--surface);
    color: var(--text-primary);
    transition: border-color var(--transition-fast);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23767873' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.waitlist-form .btn {
    margin-top: var(--space-md);
}

/* Spinner */
.spinner {
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

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

/* Success State */
.waitlist-success {
    background: var(--tertiary-container);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
}

.success-icon {
    width: 64px;
    height: 64px;
    background: var(--tertiary);
    color: white;
    font-size: 2rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
}

.waitlist-success h3 {
    color: var(--tertiary);
    margin-bottom: var(--space-sm);
}

.waitlist-success p {
    color: var(--text-secondary);
}

/* Error State */
.waitlist-error {
    background: var(--error-light);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
}

.waitlist-error p {
    color: var(--error);
    margin-bottom: var(--space-md);
}

/* ==========================================================================
   Footer
   ========================================================================== */

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

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-xl);
}

.footer-brand .logo {
    margin-bottom: var(--space-md);
}

.footer-brand p {
    color: var(--text-muted);
    max-width: 300px;
    font-size: 0.9375rem;
}

.footer-links {
    display: flex;
    gap: var(--space-xl);
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9375rem;
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-xl);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        order: 1;
    }

    .hero-image {
        order: 2;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        align-items: center;
    }

    .differentiators {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .feature-row,
    .feature-row.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        text-align: center;
    }

    .feature-content {
        order: 1;
    }

    .feature-image {
        order: 2;
    }

    .feature-list {
        display: inline-block;
        text-align: left;
    }

    .timing-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .timing-image {
        order: 2;
        display: flex;
        justify-content: center;
    }

    .timing-text {
        order: 1;
    }

    .timing-examples {
        align-items: center;
    }

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

    .step-arrow {
        transform: rotate(90deg);
        padding: 0;
    }
}

@media (max-width: 768px) {
    .mode-content {
        flex-direction: column;
        text-align: center;
    }

    .mode-text {
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    section {
        padding: var(--space-3xl) 0;
    }

    .phone-mockup {
        width: 240px;
    }

    .phone-mockup.small {
        width: 200px;
    }

    .phone-mockup.mini {
        width: 130px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: var(--space-xl);
    }

    .footer-links {
        flex-direction: column;
        gap: var(--space-md);
    }
}
