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

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

:root {
    --color-bg: #ffffff;
    --color-bg-card: #f9f9f9;
    --color-text: #211918;
    --color-text-muted: #3d3d3d;
    --color-text-light: rgba(24, 20, 20, 0.5);
    --color-border: #000000;
    --font-serif: 'Instrument Serif', Georgia, serif;
    --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0;
    background: transparent;
    transition: all 0.3s ease;
}

.nav.scrolled .nav-logo-blur {
    padding: 12px 40px;
}

.nav.scrolled {
    background: transparent;
}

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

.nav-container-with-back {
    position: relative;
}

.nav-back {
    position: absolute;
    left: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    color: var(--color-text);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.nav-back:hover {
    opacity: 1;
}

.nav-logo-blur {
    width: 100%;
    padding: 20px 40px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.nav.nav-visible .nav-logo-blur {
    opacity: 1;
    pointer-events: auto;
}

.nav-logo {
    font-family: var(--font-serif);
    font-size: 35px;
    font-weight: 400;
    color: var(--color-text);
    text-decoration: none;
    letter-spacing: 1.05px;
    opacity: 1;
}

.nav-visible {
    background: transparent;
}

/* Hero Section */
.hero-wrapper {
    height: 100vh;
    position: relative;
    background: #e8e8e8;
}

.hero-wrapper.animation-complete {
    height: auto;
    min-height: 100vh;
}

.hero {
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 120px 40px 80px;
    overflow: hidden;
    background: #e8e8e8; /* gray extends edge-to-edge, no white bars */
    z-index: 5;
}

.hero-wrapper.animation-complete .hero {
    position: relative;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 1400px;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(180px, 35vw, 500px);
    font-weight: 400;
    letter-spacing: 15px;
    line-height: 0.85;
    color: var(--color-text);
    will-change: transform, opacity;
    transform-origin: center center;
}

.hero-bottom {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 900px;
    padding: 0 40px;
    z-index: 50;
    transition: opacity 0.3s ease;
}

.hero-bottom.hidden {
    display: none;
}

.hero-tagline {
    font-family: var(--font-sans);
    font-size: 20px;
    font-weight: 400;
    color: var(--color-text-light);
    letter-spacing: 0.02em;
}

.hero-tagline em {
    font-style: italic;
}

.hero-cta {
    font-family: var(--font-sans);
    font-size: 20px;
    font-weight: 400;
    padding: 14px 36px;
    background: transparent;
    border: 0.4px solid var(--color-border);
    border-radius: 20px;
    color: #565454;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.hero-cta:hover {
    background: var(--color-text);
    color: var(--color-bg);
}

/* Intro Section */
.intro {
    padding: 80px 24px 100px;
    text-align: center;
    background: var(--color-bg);
    position: relative;
    z-index: 10;
}

.intro-content {
    max-width: 1100px;
    margin: 0 auto;
}

.intro-title {
    font-family: var(--font-sans);
    font-size: 40px;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 16px;
}

.intro-text {
    font-family: var(--font-sans);
    font-size: 20px;
    font-weight: 400;
    color: var(--color-text-muted);
    margin-bottom: 32px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.intro-cta {
    font-family: var(--font-sans);
    font-size: 20px;
    font-weight: 400;
    padding: 12px 48px;
    background: transparent;
    border: 0.4px solid var(--color-border);
    border-radius: 20px;
    color: #565454;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.intro-cta:hover {
    background: var(--color-text);
    color: var(--color-bg);
}

/* Shared Section Styles */
.section-title {
    font-family: var(--font-serif);
    font-size: 56px;
    font-weight: 400;
    color: #212121;
    letter-spacing: 1.68px;
}

.section-description {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 400;
    color: var(--color-text-muted);
    line-height: 1.7;
    text-align: justify;
}

.section-description strong {
    font-weight: 600;
}

.card-title {
    font-family: var(--font-serif);
    font-size: 56px;
    font-weight: 400;
    color: #212121;
    letter-spacing: 1.68px;
}

.card-text {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 400;
    color: var(--color-text-muted);
    line-height: 1.65;
    text-align: justify;
}

.card-text em {
    font-style: italic;
}

/* Section Card Base */
.section-card {
    position: relative;
    border-radius: 40px;
    overflow: hidden;
}

.section-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.section-card-overlay {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.text-card {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 31px;
    padding: 36px 40px;
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.04);
}

/* Insulated Independently Section */
.insulated {
    padding: 25px 24px;
    background: var(--color-bg);
    position: relative;
    z-index: 10;
}

.insulated-card {
    max-width: 1400px;
    margin: 0 auto;
    height: 569px;
}

.insulated-card .section-card-bg {
    object-position: right center; /* Figma: image (bottle) on right */
}

.insulated-overlay {
    padding: 40px;
    max-width: 50%;
}

.insulated .text-card {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.04);
    padding: 36px 40px;
}

/* Cleanest Section - all within gray curved box, bottle left (bigger), text right */
.cleanest {
    padding: 25px 24px;
    background: var(--color-bg);
    position: relative;
    z-index: 10;
}

.cleanest-box {
    max-width: 1400px;
    margin: 0 auto;
    background: #f5f5f5;
    border-radius: 40px;
    overflow: hidden;
    padding: 48px 56px;
}

.cleanest-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: center;
    min-height: 480px;
}

.cleanest-image-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 420px;
    overflow: visible;
    background: transparent;
    border: none;
    box-shadow: none;
}

.cleanest-image {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
    object-position: left center;
    transform: scale(1.25);
    transform-origin: left center;
    display: block;
}

.cleanest-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 20px 0;
}

.cleanest .text-card {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    padding: 0;
}

/* Modular Section */
.modular {
    padding: 25px 24px;
    background: var(--color-bg);
    position: relative;
    z-index: 10;
}

.modular-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.modular-card {
    height: 569px;
}

.modular-overlay {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.modular-overlay-left {
    align-items: flex-start;
}

.modular-card:first-child .modular-overlay-left {
    align-items: stretch;
}

.modular .text-card {
    height: 200px;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.04);
    padding: 36px 40px;
}

.modular-card .section-card-bg {
    object-position: center;
}

/* Protection Section */
.protection {
    padding: 25px 24px;
    background: var(--color-bg);
    position: relative;
    z-index: 10;
}

.protection-card {
    max-width: 1400px;
    margin: 0 auto;
    height: 569px;
    background: #f5f5f5;
    border-radius: 40px;
    overflow: hidden;
}

.protection-overlay {
    padding: 40px;
    flex-direction: column;
    justify-content: flex-start;
}

.protection-overlay .section-title {
    margin-bottom: 0;
}

.protection-overlay .text-card {
    margin-top: auto;
    transform: translateY(-25px);
}

.protection-card .section-card-bg {
    object-fit: cover;
    object-position: center 55%;
}

.protection .text-card {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.04);
    padding: 36px 40px;
}

.protection-text-card {
    width: 100%;
}

/* Read Enough Section */
.read-enough {
    padding: 80px 24px;
    background: var(--color-bg);
    position: relative;
    z-index: 10;
}

.read-enough-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 0 70px;
}

.read-enough-title {
    font-family: var(--font-serif);
    font-size: 56px;
    font-weight: 400;
    color: #212121;
    letter-spacing: 1.68px;
    flex-shrink: 0;
}

.read-enough-right {
    flex: 1;
}

.read-enough-text {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 400;
    color: var(--color-text-muted);
    line-height: 1.6;
    text-align: justify;
}

.read-enough-subtext {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 400;
    color: rgba(61, 61, 61, 0.6);
    line-height: 1.6;
}

.read-enough-cta {
    font-family: var(--font-sans);
    font-size: 20px;
    font-weight: 400;
    padding: 14px 36px;
    background: transparent;
    border: 0.4px solid var(--color-border);
    border-radius: 20px;
    color: #565454;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    text-decoration: none;
    display: inline-block;
}

.read-enough-cta:hover {
    background: var(--color-text);
    color: var(--color-bg);
}

/* Page transitions */
body.page-exiting .hero-wrapper,
body.page-exiting .hero-bottom,
body.page-exiting .intro,
body.page-exiting .insulated,
body.page-exiting .cleanest,
body.page-exiting .modular,
body.page-exiting .protection,
body.page-exiting .read-enough,
body.page-exiting .waitlist-page,
body.page-exiting .nav {
    opacity: 0;
    transform: translateY(-24px);
    transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

body.page-entering .waitlist-page,
body.page-entering .nav {
    animation: pageRollIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

body.page-entering .nav {
    animation-delay: 0.05s;
    opacity: 0;
}

body.page-entering .waitlist-page {
    animation-delay: 0.1s;
    opacity: 0;
}

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

/* Waitlist Page */
.waitlist-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    background: var(--color-bg);
}

.waitlist-page-content {
    max-width: 480px;
    text-align: center;
}

.waitlist-page-title {
    font-family: var(--font-sans);
    font-size: 40px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--color-text);
}

.waitlist-page-text {
    font-family: var(--font-sans);
    font-size: 12px;
    color: var(--color-text-muted);
    margin-bottom: 2px;
    line-height: 1.6;
}

.waitlist-page-subtext {
    font-family: var(--font-sans);
    font-size: 12px;
    color: rgba(61, 61, 61, 0.6);
    margin-bottom: 32px;
    line-height: 1.6;
}

.waitlist-page-form {
    width: 100%;
    max-width: 470px;
    margin: 0 auto;
}

.form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 0;
}

.form-row input {
    flex: 1;
    margin-bottom: 10px;
}

.waitlist-page-form input {
    width: 100%;
    padding: 10px 20px;
    font-family: var(--font-sans);
    font-size: 12px;
    background: transparent;
    border: 0.4px solid var(--color-border);
    border-radius: 52px;
    color: var(--color-text);
    outline: none;
    transition: all 0.3s ease;
    margin-bottom: 12px;
    text-align: center;
}

.waitlist-page-form input::placeholder {
    color: rgba(0, 0, 0, 0.3);
}

.waitlist-page-form input:focus {
    border-color: rgba(0, 0, 0, 0.6);
}

.waitlist-page-submit {
    width: 100%;
    padding: 10px 32px;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 500;
    background: var(--color-text);
    border: none;
    border-radius: 52px;
    color: var(--color-bg);
    cursor: pointer;
    transition: all 0.3s ease;
}

.waitlist-page-submit:hover {
    background: #3d3d3d;
}

.waitlist-page-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.waitlist-consent {
    font-family: var(--font-sans);
    font-size: 8px;
    color: rgba(0, 0, 0, 0.6);
    text-align: center;
    margin-top: 16px;
    line-height: 1.5;
}

.spinner {
    width: 18px;
    height: 18px;
    animation: spin 1s linear infinite;
}

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

.waitlist-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
}

.waitlist-success-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
}

.waitlist-success-text {
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-text-muted);
}

/* Responsive */
@media (max-width: 1024px) {
    .insulated-card,
    .protection-card {
        height: 450px;
    }

    .cleanest-box {
        padding: 36px 40px;
    }

    .cleanest-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .cleanest-image-wrap {
        min-height: 350px;
    }

    .cleanest-image {
        min-height: 350px;
        object-position: center;
    }

    .insulated-overlay {
        max-width: 60%;
    }

    .modular-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .modular-card {
        height: 450px;
    }

    .section-title,
    .card-title,
    .read-enough-title {
        font-size: 40px;
    }

    .hero-title {
        font-size: clamp(100px, 25vw, 300px);
        letter-spacing: 8px;
    }
}

@media (max-width: 768px) {
    .nav {
        padding: 14px 20px;
    }

    .nav.scrolled {
        padding: 10px 20px;
    }

    .nav-logo {
        font-size: 28px;
    }

    .hero {
        padding: 100px 20px 60px;
    }

    .hero-bottom {
        flex-direction: column;
        gap: 32px;
        text-align: center;
        padding: 0 20px;
    }

    .hero-title {
        font-size: clamp(80px, 20vw, 180px);
        letter-spacing: 5px;
    }

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

    .intro-text {
        font-size: 16px;
    }

    .intro-cta {
        font-size: 16px;
        padding: 10px 32px;
    }

    .insulated-card,
    .protection-card {
        height: 400px;
    }

    .cleanest-image-wrap,
    .cleanest-image {
        min-height: 300px;
    }

    .insulated-overlay {
        max-width: 70%;
    }

    .modular-card {
        height: 400px;
    }

    .section-title,
    .card-title,
    .read-enough-title {
        font-size: 32px;
    }

    .text-card {
        padding: 28px 32px;
    }

    .section-description,
    .card-text {
        font-size: 12px;
    }

    .read-enough-content {
        flex-direction: column;
        text-align: center;
        padding: 0;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .cleanest-box {
        padding: 28px 24px;
    }

    .insulated, .cleanest, .modular, .protection, .read-enough {
        padding: 20px 20px;
    }

    .intro {
        padding: 40px 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 60px;
        letter-spacing: 3px;
    }

    .hero-cta,
    .intro-cta {
        font-size: 14px;
        padding: 10px 20px;
    }

    .section-title,
    .card-title,
    .read-enough-title {
        font-size: 28px;
    }

    .insulated-card,
    .protection-card {
        height: 350px;
    }

    .cleanest-box {
        padding: 24px 20px;
    }

    .cleanest-image-wrap,
    .cleanest-image {
        min-height: 250px;
    }

    .insulated-overlay {
        max-width: 80%;
        padding: 24px;
    }

    .modular-card {
        height: 350px;
    }

    .modular-overlay {
        padding: 24px;
    }

    .protection-overlay {
        padding: 24px;
    }

    .text-card {
        padding: 24px 32px;
    }

    .section-description,
    .card-text {
        font-size: 11px;
    }
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}
