/* ============================================
   SMS Knowledge Assistant - Landing Page Styles
   Aesthetic: Editorial Minimalism with Ink & Paper
   ============================================ */

/* ============================================
   CSS Variables & Design Tokens
   ============================================ */
:root {
    /* Color Palette - Ink & Paper */
    --color-ink: #1a1f36;
    --color-ink-light: #2d3348;
    --color-paper: #faf8f5;
    --color-paper-dark: #f0ede6;
    --color-accent: #e07a5f;
    --color-accent-dark: #c66850;
    --color-text: #2d3348;
    --color-text-light: #6b7280;
    --color-border: #e5e3dd;

    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing Scale */
    --space-xs: 0.5rem;    /* 8px */
    --space-sm: 1rem;      /* 16px */
    --space-md: 1.5rem;    /* 24px */
    --space-lg: 2.5rem;    /* 40px */
    --space-xl: 4rem;      /* 64px */
    --space-2xl: 6rem;     /* 96px */
    --space-3xl: 8rem;     /* 128px */

    /* Layout */
    --container-max: 1200px;
    --content-max: 720px;
    --border-radius: 0.5rem;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(26, 31, 54, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(26, 31, 54, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(26, 31, 54, 0.1);
}

/* ============================================
   Reset & Base Styles
   ============================================ */
*, *::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: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-paper);
    overflow-x: hidden;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-ink);
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

p {
    margin-bottom: 1rem;
}

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

a:hover, a:focus {
    color: var(--color-accent-dark);
    text-decoration: underline;
}

a:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* ============================================
   Skip Link (Accessibility)
   ============================================ */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--color-ink);
    color: var(--color-paper);
    padding: var(--space-sm) var(--space-md);
    z-index: 1000;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid var(--color-accent);
}

/* ============================================
   Layout & Container
   ============================================ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--space-lg);
    }
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--space-xl) 0;
    background: linear-gradient(135deg, var(--color-paper) 0%, var(--color-paper-dark) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: radial-gradient(ellipse at top right, rgba(224, 122, 95, 0.08), transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    max-width: var(--content-max);
    animation: fadeInUp 0.8s ease forwards;
}

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

.ink-accent {
    width: 60px;
    height: 4px;
    background: var(--color-accent);
    margin-bottom: var(--space-lg);
    animation: expandWidth 0.6s ease 0.3s both;
}

@keyframes expandWidth {
    from { width: 0; }
    to { width: 60px; }
}

.hero-title {
    margin-bottom: var(--space-md);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.hero-title .highlight {
    color: var(--color-accent);
    position: relative;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--color-text-light);
    margin-bottom: var(--space-xl);
    max-width: 600px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-paper);
    background: var(--color-ink);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    box-shadow: var(--shadow-md);
    animation: fadeInUp 0.8s ease 0.4s both;
    min-height: 56px;
}

.cta-button:hover, .cta-button:focus {
    background: var(--color-ink-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
}

.cta-button .arrow {
    transition: transform var(--transition-base);
}

.cta-button:hover .arrow {
    transform: translateX(4px);
}

/* ============================================
   Section Styles
   ============================================ */
section {
    padding: var(--space-2xl) 0;
}

.section-title {
    margin-bottom: var(--space-xl);
    font-weight: 700;
    text-align: left;
}

.section-title.centered {
    text-align: center;
}

/* ============================================
   Benefits Section
   ============================================ */
.benefits {
    background: var(--color-paper);
}

.benefits-grid {
    display: grid;
    gap: var(--space-lg);
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .benefits-grid {
        gap: var(--space-xl);
    }
}

.benefit-card {
    padding: var(--space-lg);
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    transition: all var(--transition-base);
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent);
}

.benefit-icon {
    color: var(--color-accent);
    margin-bottom: var(--space-md);
}

.benefit-title {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
    font-weight: 600;
}

.benefit-description {
    color: var(--color-text-light);
    line-height: 1.7;
}

/* ============================================
   How It Works Section
   ============================================ */
.how-it-works {
    background: white;
}

.steps {
    display: grid;
    gap: var(--space-2xl);
    max-width: 800px;
    margin: 0 auto;
}

.step {
    position: relative;
    padding-left: var(--space-xl);
}

.step::before {
    content: '';
    position: absolute;
    left: 1.5rem;
    top: 4rem;
    bottom: -3rem;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-accent), transparent);
}

.step:last-child::before {
    display: none;
}

.step-number {
    position: absolute;
    left: 0;
    top: 0;
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-accent);
    opacity: 0.3;
    line-height: 1;
}

.step-title {
    font-size: 1.75rem;
    margin-bottom: var(--space-sm);
    font-weight: 600;
}

.step-description {
    color: var(--color-text-light);
    margin-bottom: var(--space-md);
}

.message-example {
    margin-top: var(--space-md);
    padding: var(--space-md);
    background: var(--color-paper-dark);
    border-radius: var(--border-radius);
}

.message-example.response {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
}

.message-bubble {
    background: white;
    padding: var(--space-md);
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    max-width: 400px;
}

.message-bubble p {
    margin: 0;
    color: var(--color-text);
    font-size: 0.9375rem;
}

.message-example.response .message-bubble {
    background: var(--color-ink);
    color: var(--color-paper);
}

.message-example.response .message-bubble p {
    color: var(--color-paper);
}

/* ============================================
   Waitlist Section
   ============================================ */
.waitlist {
    background: linear-gradient(135deg, var(--color-ink) 0%, var(--color-ink-light) 100%);
    color: var(--color-paper);
}

.waitlist .section-title {
    color: var(--color-paper);
}

.waitlist-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: rgba(250, 248, 245, 0.9);
    max-width: 600px;
    margin: 0 auto var(--space-xl);
}

.form-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--color-paper);
    padding: var(--space-lg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.form-container iframe {
    border-radius: var(--border-radius);
    min-height: 600px;
}

.privacy-note {
    margin-top: var(--space-md);
    font-size: 0.875rem;
    color: var(--color-text-light);
    text-align: center;
    line-height: 1.6;
}

.privacy-link {
    color: var(--color-accent);
    font-weight: 500;
}

/* ============================================
   Social Proof Section
   ============================================ */
.social-proof {
    background: var(--color-paper-dark);
    text-align: center;
}

.coming-soon {
    color: var(--color-text-light);
    font-style: italic;
    font-size: 1.125rem;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--color-ink);
    color: var(--color-paper);
    padding: var(--space-xl) 0 var(--space-lg);
}

.footer-content {
    text-align: center;
}

.footer-tagline {
    margin-bottom: var(--space-lg);
}

.tagline {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-paper);
    margin: 0;
}

.footer-nav {
    margin-bottom: var(--space-lg);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
}

.footer-links a {
    color: rgba(250, 248, 245, 0.8);
    font-weight: 500;
    transition: color var(--transition-fast);
    padding: var(--space-xs) var(--space-sm);
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer-links a:hover, .footer-links a:focus {
    color: var(--color-accent);
}

.footer-copyright {
    font-size: 0.875rem;
    color: rgba(250, 248, 245, 0.6);
    margin: 0;
}

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

/* Mobile (375px+) - Base styles above */

/* Tablet (768px+) */
@media (min-width: 768px) {
    .hero {
        padding: var(--space-2xl) 0;
    }

    .hero-subtitle {
        font-size: 1.375rem;
    }

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

    .step {
        padding-left: 5rem;
    }

    .step-number {
        font-size: 4rem;
    }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    .hero-content {
        max-width: 700px;
    }

    .footer-content {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        text-align: left;
    }

    .footer-tagline {
        margin-bottom: 0;
        text-align: left;
    }

    .footer-nav {
        margin-bottom: 0;
    }

    .footer-copyright {
        text-align: right;
    }
}

/* Large Desktop (1440px+) */
@media (min-width: 1440px) {
    .benefits-grid {
        gap: var(--space-2xl);
    }
}

/* ============================================
   Accessibility & Print Styles
   ============================================ */

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --color-accent: #d46850;
    }

    .benefit-card {
        border-width: 2px;
    }
}

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

/* Print Styles */
@media print {
    .hero,
    .waitlist,
    .footer {
        background: white !important;
        color: black !important;
    }

    .cta-button,
    .form-container {
        display: none;
    }
}

/* Focus Visible Polyfill Support */
.js-focus-visible :focus:not(.focus-visible) {
    outline: none;
}

/* ============================================
   Animation Performance Optimizations
   ============================================ */
.hero-content,
.benefit-card,
.cta-button {
    will-change: transform, opacity;
}

@media (hover: hover) {
    .benefit-card:hover,
    .cta-button:hover {
        will-change: transform;
    }
}
