/* AESTHETIC REDESIGN: Editorial, Organic, Minimalist */

:root {
    /* Colors */
    --bg-base: #fcfbf7;
    --primary-dark: #121614;
    --primary-black: #0a0a0a;
    --accent-lavender: #dbe4ff;
    --accent-lavender-hover: #c9d6ff;
    --accent-green: #084033;
    --accent-green-light: #e8f3ef;
    
    /* Text */
    --text-dark: #121614;
    --text-medium: rgba(18, 22, 20, 0.65);
    --text-light: #ffffff;
    --text-light-dim: rgba(255,255,255,0.7);
    
    /* Typography */
    --font-serif: 'Newsreader', serif;
    --font-sans: 'Outfit', sans-serif;
    
    /* Layout */
    --radius-pill: 100px;
    --radius-lg: 32px;
    --radius-md: 20px;
    --radius-sm: 12px;
}

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

body {
    background-color: var(--bg-base);
    color: var(--text-dark);
    font-family: var(--font-sans);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

/* DECORATIVE SVG BACKGROUND */
.bg-ornament {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1200px; /* limits to top section */
    z-index: -1;
    pointer-events: none;
    opacity: 0.6;
}

/* TYPOGRAPHY */
h1, h2, h3, .logo, em {
    font-family: var(--font-serif);
    font-weight: 400;
}

em {
    font-style: italic;
    letter-spacing: -0.02em;
}

h1.headline {
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    line-height: 0.95;
    letter-spacing: -0.03em;
    color: var(--primary-dark);
}

.sub-headline {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-medium);
    max-width: 600px;
    margin: 1.5rem auto 3rem;
}

/* NAVBAR */
header.navbar {
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10;
}

.logo {
    font-size: 1.75rem;
    font-weight: 500;
    letter-spacing: -0.04em;
    color: var(--primary-dark);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-cta {
    padding: 0.5rem 1.25rem;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: var(--radius-pill);
    transition: all 0.2s ease;
}

.nav-cta:hover {
    background: var(--primary-dark);
    color: var(--text-light) !important;
}

/* MAIN CONTAINERS */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

section {
    padding: 8rem 0;
}

/* HERO SECTION */
.hero {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 4rem;
}

/* FORMS (Pill Input + Inner Button) */
.waitlist-form {
    display: flex;
    background: white;
    padding: 0.5rem;
    border-radius: var(--radius-pill);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03), 0 1px 3px rgba(0,0,0,0.02);
    border: 1px solid rgba(0,0,0,0.05);
    max-width: 450px;
    margin: 0 auto;
    position: relative;
    transition: box-shadow 0.3s ease;
}

.waitlist-form:focus-within {
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

.email-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.5rem 1.5rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--text-dark);
    outline: none;
}

.email-input::placeholder {
    color: #999;
}

.cta-button {
    border: none;
    padding: 0.8rem 1.75rem;
    border-radius: var(--radius-pill);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.btn-lavender {
    background: var(--accent-lavender);
    color: var(--primary-dark);
}

.btn-lavender:hover {
    background: var(--accent-lavender-hover);
}

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

.btn-dark:hover {
    background: #000;
}

.form-success {
    margin-top: 1rem;
    color: var(--accent-green);
    font-weight: 500;
    font-size: 0.95rem;
}

.hidden {
    display: none !important;
}

/* PROBLEM/SOLUTION COMPARISON */
.comparison-grid {
    display: flex;
    gap: 3rem;
    align-items: center;
    justify-content: center;
    position: relative;
}

.comparison-connector {
    font-size: 2rem;
    color: rgba(0,0,0,0.2);
}

.elegant-card {
    flex: 1;
    background: white;
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0,0,0,0.02);
    border: 1px solid rgba(0,0,0,0.04);
}

.card-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-pill);
    background: #f0f0f0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-medium);
    margin-bottom: 1.5rem;
}

.tag-green {
    background: var(--accent-green-light);
    color: var(--accent-green);
}

.elegant-card h3 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    line-height: 1.1;
    color: var(--primary-dark);
}

.elegant-card p {
    color: var(--text-medium);
    font-size: 1.05rem;
}

/* DARK SECTION & BENTO GRID */
.dark-section {
    background-color: var(--primary-black);
    border-radius: var(--radius-lg);
    padding: 6rem 4rem;
    margin: 2rem 0;
    color: var(--text-light);
    position: relative;
}

.section-title.dark-title {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 4rem;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.bento-item {
    background: var(--primary-dark);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    overflow: hidden;
}

.bento-large {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.bento-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    line-height: 1.1;
    word-break: break-word;
}

.bento-content p {
    color: var(--text-light-dim);
    font-size: 1.05rem;
    max-width: 100%;
}

.highlight-lavender {
    background: var(--accent-lavender);
    border: none;
}

/* BENTO VISUAL MOCKUP */
.rename-visual {
    background: rgba(255,255,255,0.03);
    padding: 2rem;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-family: monospace;
    font-size: 0.9rem;
    border: 1px solid rgba(255,255,255,0.05);
    min-width: 0;
    overflow: hidden;
}

.mock-file {
    padding: 0.75rem;
    border-radius: 6px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-all;
    min-width: 0;
}

.mock-file.old {
    background: rgba(255,255,255,0.05);
    color: var(--text-light-dim);
}

.mock-arrow {
    text-align: center;
    color: rgba(255,255,255,0.3);
}

.mock-file.new {
    background: var(--accent-lavender);
    color: var(--primary-dark);
    font-weight: 600;
}

/* APPS SCRIPT NOTE */
.apps-script-note {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: var(--text-light-dim);
    font-size: 1rem;
}

/* FINAL CTA */
.final-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 10rem;
}

.huge-cta-text {
    font-size: clamp(4rem, 10vw, 7rem);
    line-height: 1;
    margin-bottom: 1rem;
}

.final-sub {
    font-size: 1.25rem;
    color: var(--text-medium);
    margin-bottom: 3rem;
}

.final-form {
    border: 1px solid rgba(0,0,0,0.1);
}

/* FOOTER */
footer {
    padding: 4rem 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

footer a {
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 500;
}

.copyright {
    margin-top: 2rem;
    color: var(--text-medium);
    font-size: 0.85rem;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .comparison-grid {
        flex-direction: column;
    }
    .comparison-connector {
        transform: rotate(90deg);
    }
    .bento-large {
        grid-template-columns: 1fr;
    }
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .dark-section {
        padding: 4rem 2rem;
        border-radius: var(--radius-md);
    }
    .section-title.dark-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    h1.headline {
        font-size: 3rem;
    }
    section {
        padding: 4rem 0;
    }
    .elegant-card {
        padding: 2rem;
    }
    .dark-section {
        padding: 3rem 1.5rem;
    }
    .bento-item {
        padding: 1.5rem;
    }
    .huge-cta-text {
        font-size: 3rem;
    }
    .waitlist-form {
        flex-direction: column;
        background: transparent;
        box-shadow: none;
        border: none;
        gap: 1rem;
        padding: 0;
    }
    .email-input {
        background: white;
        border-radius: var(--radius-pill);
        padding: 1rem 1.5rem;
        border: 1px solid rgba(0,0,0,0.05);
        width: 100%;
    }
    .cta-button {
        width: 100%;
    }
    header.navbar {
        padding: 1rem 5%;
        flex-direction: column;
        gap: 1rem;
    }
    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ANIMATIONS */
.slide-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in {
    opacity: 0;
    transition: opacity 1s ease-out;
}

.in-view {
    opacity: 1;
    transform: translateY(0);
}
