/* ==========================================
   RESET & BASE
   ========================================== */

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

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', 'Roboto', sans-serif;
    background: #F5F3F0;
    color: #2C2416;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==========================================
   SITE HEADER
   ========================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 107, 53, 0.1);
    padding: 1rem 2rem;
    animation: slideDown 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand-title:hover {
    transform: scale(1.05);
}

.brand-icon {
    font-size: 2rem;
    filter: drop-shadow(0 2px 8px rgba(255, 107, 53, 0.3));
}

.brand-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2C2416;
    letter-spacing: -0.02em;
    margin: 0;
}

/* ==========================================
   AISLE SECTIONS - SHARED STRUCTURE
   ========================================== */

.aisle-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

/* First section gets extra top padding for header */
.entrance-section {
    padding-top: 8rem;
}

.aisle-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.narrative-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.screen-column {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* ==========================================
   PHONE CONTAINERS & SCREENS
   ========================================== */

.phone-container {
    width: 380px;
    max-width: 100%;
    position: relative;
    will-change: transform, opacity;
}

.app-screen {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0;
    transform: translateX(-30%) scale(0.95);
    transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1),
                transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity;
    filter: drop-shadow(0 30px 80px rgba(44, 36, 22, 0.2));
}

.app-screen.active {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.app-screen.visible {
    opacity: 1;
    transform: translateX(0) scale(1);
}

/* All screens have consistent animations */

/* ==========================================
   SECTION 1: ENTRANCE
   ========================================== */

.entrance-section {
    background: linear-gradient(135deg, #FFF5E8 0%, #FFE9CC 100%);
}

.entrance-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 140, 60, 0.12) 0%, transparent 60%);
    animation: gentle-pulse 12s ease-in-out infinite;
}

@keyframes gentle-pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.7; }
}

/* Salt shaker logo removed from hero - now in header */

.anchor-headline {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.1;
    color: #2C2416;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
}

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

.cta-preview {
    margin-top: 2rem;
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 3s forwards;
}

.cta-hint {
    font-size: 0.95rem;
    color: #807568;
    font-weight: 500;
}

/* ==========================================
   SECTION 2: HABIT
   ========================================== */

.habit-section {
    background: linear-gradient(135deg, #FFE9CC 0%, #FFDAB3 100%);
}

/* ==========================================
   SECTION 3: OVERLOAD
   ========================================== */

.overload-section {
    background: linear-gradient(135deg, #FFDAB3 0%, #FFC999 100%);
}

/* Horizontal shelf parallax */
.shelf-parallax {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
}

.shelf-layer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 300%;
    height: 100%;
    background-repeat: repeat-x;
    background-position: 0 center;
    opacity: 0.15;
}

.shelf-layer-1 {
    background-image: linear-gradient(90deg,
        transparent 0%,
        rgba(86, 114, 94, 0.1) 10%,
        transparent 20%,
        rgba(86, 114, 94, 0.1) 30%,
        transparent 40%);
    animation: shelf-slide-1 40s linear infinite;
}

.shelf-layer-2 {
    background-image: linear-gradient(90deg,
        transparent 5%,
        rgba(139, 105, 77, 0.12) 15%,
        transparent 25%,
        rgba(139, 105, 77, 0.12) 35%,
        transparent 45%);
    animation: shelf-slide-2 55s linear infinite;
}

.shelf-layer-3 {
    background-image: linear-gradient(90deg,
        transparent 10%,
        rgba(62, 52, 41, 0.08) 20%,
        transparent 30%,
        rgba(62, 52, 41, 0.08) 40%,
        transparent 50%);
    animation: shelf-slide-3 70s linear infinite;
}

@keyframes shelf-slide-1 {
    from { transform: translateX(0); }
    to { transform: translateX(33.33%); }
}

@keyframes shelf-slide-2 {
    from { transform: translateX(0); }
    to { transform: translateX(-33.33%); }
}

@keyframes shelf-slide-3 {
    from { transform: translateX(0); }
    to { transform: translateX(16.66%); }
}

/* ==========================================
   SECTION 4: DISCOVERY
   ========================================== */

.discovery-section {
    background: linear-gradient(135deg, #FFB780 0%, #FF9F5C 100%);
}

.discovery-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 60% 50%, rgba(255, 107, 0, 0.18) 0%, transparent 60%);
}

/* ==========================================
   SECTION 5: STANDOUTS / CONFIDENCE
   ========================================== */

.standouts-section {
    background: linear-gradient(135deg, #FF9F5C 0%, #FF8C3D 100%);
}

.phone-container-final {
    animation: confident-entrance 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes confident-entrance {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* ==========================================
   SECTION 6: INVITATION
   ========================================== */

.invitation-section {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #1A1A2E 0%, #16213E 100%);
    color: #FFFFFF;
    position: relative;
}

.invitation-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 107, 53, 0.18) 0%, transparent 65%);
    animation: gentle-pulse 10s ease-in-out infinite;
}

.invitation-container {
    max-width: 700px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.invitation-narrative {
    margin-bottom: 3rem;
}

.invitation-headline {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.invitation-subheadline {
    font-size: 1.5rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.invitation-supporting {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-top: 2rem;
}

/* ==========================================
   TYPED NARRATIVE SYSTEM
   ========================================== */

.typed-narrative {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.typed-line {
    font-size: 1.8rem;
    line-height: 1.5;
    color: #2C2416;
    font-weight: 400;
    opacity: 0;
    will-change: opacity;
}

/* Sections 2-5 have different text styles */
.habit-section .typed-line,
.overload-section .typed-line,
.discovery-section .typed-line,
.standouts-section .typed-line {
    font-size: 2.2rem;
    font-weight: 500;
}

/* Overload section gets more intense styling */
.overload-section .typed-line {
    font-weight: 600;
}

/* Standouts section gets confident styling */
.standouts-section .typed-line {
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* Invitation section typing */
.invitation-section .typed-line {
    color: #FFFFFF;
}

/* Typing animation */
@keyframes type-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.typed-line.typing {
    animation: type-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* ==========================================
   WAITLIST FORM
   ========================================== */

.waitlist-form {
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.email-input {
    width: 100%;
    padding: 1.2rem 1.5rem;
    font-size: 1.1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    color: #2C2416;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-family: inherit;
}

.email-input:focus {
    outline: none;
    border-color: #FF6B35;
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.15),
                0 8px 24px rgba(255, 107, 53, 0.25);
    transform: translateY(-2px) scale(1.01);
    background: #FFFFFF;
}

.email-input::placeholder {
    color: #999;
    transition: opacity 0.3s ease;
}

.email-input:focus::placeholder {
    opacity: 0.5;
}

.cta-button {
    width: 100%;
    padding: 1.4rem 2rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: #FFFFFF;
    background: linear-gradient(135deg, #FF6B35 0%, #FF4500 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 24px rgba(255, 69, 0, 0.35);
    font-family: inherit;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 12px 48px rgba(255, 69, 0, 0.5);
}

.cta-button:active {
    transform: translateY(-1px) scale(0.98);
}

.trust-line {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    text-align: center;
    margin-top: 0.75rem;
}

/* ==========================================
   FOOTER
   ========================================== */

.footer {
    background: #1A1610;
    padding: 3rem 2rem 2rem;
    color: rgba(245, 243, 240, 0.7);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    font-size: 2rem;
}

.footer-tagline {
    font-size: 0.95rem;
    color: rgba(245, 243, 240, 0.6);
}

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

.footer-links a {
    color: rgba(245, 243, 240, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #56725E;
    transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.footer-links a:hover {
    color: #8BA888;
    transform: translateY(-2px);
}

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

/* ==========================================
   RESPONSIVE: MOBILE-FIRST
   ========================================== */

@media (max-width: 1024px) {
    .aisle-container {
        gap: 4rem;
    }

    .anchor-headline {
        font-size: 3.5rem;
    }

    .typed-line {
        font-size: 1.5rem;
    }

    .habit-section .typed-line,
    .overload-section .typed-line,
    .discovery-section .typed-line,
    .standouts-section .typed-line {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 0.75rem 1.5rem;
    }

    .brand-name {
        font-size: 1.5rem;
    }

    .brand-icon {
        font-size: 1.5rem;
    }

    .aisle-section {
        padding: 3rem 1.5rem;
    }

    .entrance-section {
        padding-top: 6rem;
    }

    .aisle-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .narrative-column {
        order: 1;
    }

    .screen-column {
        order: 2;
    }

    .anchor-headline {
        font-size: 2.8rem;
    }

    .typed-line {
        font-size: 1.3rem;
    }

    .habit-section .typed-line,
    .overload-section .typed-line,
    .discovery-section .typed-line,
    .standouts-section .typed-line {
        font-size: 1.6rem;
    }

    .phone-container {
        width: 320px;
    }

    .invitation-headline {
        font-size: 2.2rem;
    }

    .invitation-subheadline {
        font-size: 1.25rem;
    }

    .invitation-supporting {
        font-size: 1rem;
    }

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

    .footer-brand {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .brand-name {
        font-size: 1.3rem;
    }

    .brand-icon {
        font-size: 1.3rem;
    }

    .anchor-headline {
        font-size: 2.2rem;
    }

    .typed-line {
        font-size: 1.15rem;
    }

    .habit-section .typed-line,
    .overload-section .typed-line,
    .discovery-section .typed-line,
    .standouts-section .typed-line {
        font-size: 1.35rem;
    }

    .phone-container {
        width: 280px;
    }

    .shaker-icon {
        font-size: 3rem;
    }

    .email-input,
    .cta-button {
        font-size: 1rem;
    }
}

/* ==========================================
   ACCESSIBILITY
   ========================================== */

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

/* Focus states for keyboard navigation */
a:focus,
button:focus,
input:focus {
    outline: 2px solid #56725E;
    outline-offset: 2px;
}
