:root {
    --color-sage: #7b9371;
    --color-cream: #fbf7f3;
    --color-gray: #6f6f6f;
    --color-gold: #c9a962;
    --color-gold-light: #e8d5a3;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
}

body {
    font-family: 'Libre Baskerville', Georgia, serif;
    background-color: var(--color-cream);
    color: var(--color-gray);
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--color-cream); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--color-gold), var(--color-sage));
    border-radius: 3px;
}

/* Section Base */
.section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    scroll-snap-align: start;
}

/* ===== HERO SECTION ===== */
.section-hero {
    background: #000;
}

/* Video Background */
.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at center, rgba(0, 0, 0, 0.5) 0%, transparent 70%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, transparent 30%, transparent 70%, rgba(0, 0, 0, 0.3) 100%);
}

/* Hero Content */
.hero-content {
    text-align: center;
    z-index: 10;
    padding: 3rem 4rem;
    position: relative;
}

.hero-content::before,
.hero-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid rgba(255, 255, 255, 0);
    pointer-events: none;
}

.hero-content::before {
    animation: borderReveal 1.2s ease 0.2s forwards, borderPulse 4s ease-in-out 2s infinite;
}

.hero-content::after {
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    animation: borderReveal 1.2s ease 0.4s forwards, borderPulse 4s ease-in-out 2.2s infinite;
}

@keyframes borderReveal {
    0% {
        border-color: rgba(255, 255, 255, 0);
        clip-path: polygon(0 0, 0 0, 0 0, 0 0);
    }
    25% {
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    }
    50% {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 100% 100%);
    }
    75% {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    100% {
        border-color: rgba(255, 255, 255, 0.4);
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
}

@keyframes borderPulse {
    0%, 100% {
        border-color: rgba(255, 255, 255, 0.3);
    }
    50% {
        border-color: rgba(255, 255, 255, 0.5);
    }
}

/* Logo Animation */
.logo-wrapper {
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.logo {
    font-family: 'DM Serif Text', serif;
    font-size: clamp(3.5rem, 12vw, 8rem);
    color: var(--color-cream);
    letter-spacing: 0.12em;
    opacity: 0;
    transform: translateY(100%);
    animation: logoReveal 1s var(--ease-out-expo) 0.6s forwards;
}

@keyframes logoReveal {
    to { opacity: 1; transform: translateY(0); }
}

/* Tagline */
.tagline-wrapper {
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.tagline {
    font-size: clamp(0.85rem, 2.5vw, 1.1rem);
    font-weight: 400;
    font-style: italic;
    color: var(--color-gold-light);
    letter-spacing: 0.2em;
    text-transform: lowercase;
    opacity: 0;
    transform: translateY(100%);
    animation: taglineReveal 1s var(--ease-out-expo) 0.9s forwards;
}

@keyframes taglineReveal {
    to { opacity: 1; transform: translateY(0); }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    opacity: 0;
    animation: scrollIndicatorReveal 1s ease 2.2s forwards;
}

@keyframes scrollIndicatorReveal {
    to { opacity: 1; }
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(180deg, var(--color-cream), transparent);
    margin: 0 auto 12px;
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: rgba(0, 0, 0, 0.5);
    animation: scrollLinePulse 2s ease-in-out infinite;
}

@keyframes scrollLinePulse {
    0%, 100% { transform: translateY(-100%); }
    50% { transform: translateY(400%); }
}

.scroll-text {
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-cream);
    transition: all 0.3s ease;
}

.scroll-indicator:hover .scroll-text {
    letter-spacing: 0.3em;
    color: var(--color-gold-light);
}

/* ===== PHILOSOPHY SECTION ===== */
.section-philosophy {
    background: linear-gradient(180deg, var(--color-sage) 0%, #6a8261 100%);
    color: var(--color-cream);
}

/* Falling Leaves */
.falling-leaves {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.leaf {
    position: absolute;
    top: -50px;
    width: 20px;
    height: 20px;
    opacity: 0.15;
    animation: leafFall linear infinite;
}

.leaf::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--color-cream);
    border-radius: 50% 0 50% 50%;
    transform: rotate(-45deg);
}

.leaf::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 20%;
    width: 60%;
    height: 1px;
    background: rgba(123, 147, 113, 0.3);
    transform: rotate(-45deg);
}

.leaf-1 { left: 5%; width: 18px; height: 18px; animation-duration: 15s; animation-delay: 0s; }
.leaf-2 { left: 15%; width: 14px; height: 14px; animation-duration: 18s; animation-delay: -2s; }
.leaf-3 { left: 30%; width: 22px; height: 22px; animation-duration: 14s; animation-delay: -5s; }
.leaf-4 { left: 45%; width: 16px; height: 16px; animation-duration: 20s; animation-delay: -8s; }
.leaf-5 { left: 60%; width: 20px; height: 20px; animation-duration: 16s; animation-delay: -3s; }
.leaf-6 { left: 75%; width: 12px; height: 12px; animation-duration: 22s; animation-delay: -10s; }
.leaf-7 { left: 85%; width: 18px; height: 18px; animation-duration: 17s; animation-delay: -6s; }
.leaf-8 { left: 95%; width: 15px; height: 15px; animation-duration: 19s; animation-delay: -12s; }

@keyframes leafFall {
    0% {
        top: -50px;
        transform: translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.15;
    }
    90% {
        opacity: 0.15;
    }
    100% {
        top: 100%;
        transform: translateX(30px) rotate(360deg);
        opacity: 0;
    }
}

/* Animated Pattern Background */
.pattern-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    background-image:
        radial-gradient(circle at 25% 25%, var(--color-gold-light) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, var(--color-cream) 1px, transparent 1px);
    background-size: 50px 50px, 40px 40px;
    animation: patternMove 30s linear infinite;
}

@keyframes patternMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Philosophy Content */
.philosophy-content {
    max-width: 900px;
    text-align: center;
    padding: 2rem;
    z-index: 10;
}

.philosophy-title {
    font-family: 'DM Serif Text', serif;
    font-size: clamp(2.2rem, 6vw, 4rem);
    margin-bottom: 2.5rem;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(60px);
    transition: all 1.2s var(--ease-out-expo);
}

.philosophy-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.philosophy-text {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    font-weight: 400;
    line-height: 1.9;
    letter-spacing: 0.01em;
    max-width: 650px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(50px);
    transition: all 1.2s var(--ease-out-expo) 0.2s;
}

.philosophy-text.visible {
    opacity: 0.9;
    transform: translateY(0);
}

/* Philosophy Values */
.philosophy-values {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 4rem 0;
    opacity: 0;
    transform: translateY(40px);
    transition: all 1.2s var(--ease-out-expo) 0.3s;
}

.philosophy-values.visible {
    opacity: 1;
    transform: translateY(0);
}

.value-item {
    text-align: center;
    max-width: 200px;
}

.value-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.2rem;
    color: var(--color-gold-light);
    transition: all 0.4s ease;
}

.value-item:hover .value-icon {
    transform: scale(1.1);
    color: var(--color-cream);
}

.value-item h3 {
    font-family: 'DM Serif Text', serif;
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
    color: var(--color-cream);
}

.value-item p {
    font-size: 0.85rem;
    line-height: 1.6;
    opacity: 0.75;
}

/* Philosophy Quote */
.philosophy-quote {
    margin-top: 3rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s var(--ease-out-expo) 0.4s;
}

.philosophy-quote.visible {
    opacity: 1;
    transform: translateY(0);
}

.philosophy-quote blockquote {
    font-family: 'DM Serif Text', serif;
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    font-style: italic;
    color: var(--color-gold-light);
    position: relative;
    padding: 0 2rem;
}

.philosophy-quote blockquote::before,
.philosophy-quote blockquote::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-gold));
}

.philosophy-quote blockquote::before {
    left: -30px;
    background: linear-gradient(90deg, transparent, var(--color-gold));
}

.philosophy-quote blockquote::after {
    right: -30px;
    background: linear-gradient(90deg, var(--color-gold), transparent);
}


/* Signup Section */
.signup-container {
    margin-top: 4rem;
    opacity: 0;
    transform: translateY(40px);
    transition: all 1.2s var(--ease-out-expo) 0.4s;
}

.signup-container.visible {
    opacity: 1;
    transform: translateY(0);
}

.signup-text {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    opacity: 0.7;
}

.signup-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.signup-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 1px solid rgba(201, 169, 98, 0.4);
    background: rgba(251, 247, 243, 0.05);
    backdrop-filter: blur(10px);
    color: var(--color-cream);
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    outline: none;
    transition: all 0.4s ease;
}

.signup-input::placeholder {
    color: rgba(251, 247, 243, 0.4);
    transition: opacity 0.3s ease;
}

.signup-input:focus {
    border-color: var(--color-gold);
    background: rgba(251, 247, 243, 0.1);
    box-shadow: 0 0 20px rgba(201, 169, 98, 0.15);
}

.signup-input:focus::placeholder {
    opacity: 0;
}

.signup-button {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
    color: var(--color-gray);
    border: none;
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.signup-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.signup-button:hover::before {
    left: 100%;
}

.signup-button span {
    position: relative;
    z-index: 1;
}

.signup-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(201, 169, 98, 0.3);
}

/* ===== DEVELOPMENT SECTION ===== */
.section-development {
    background: linear-gradient(180deg, var(--color-cream) 0%, #f0ebe3 100%);
    color: var(--color-gray);
}

.dev-bg-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    background-image:
        linear-gradient(45deg, var(--color-sage) 1px, transparent 1px),
        linear-gradient(-45deg, var(--color-sage) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Rising Particles */
.rising-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.bubble {
    position: absolute;
    bottom: -20px;
    width: 8px;
    height: 8px;
    background: rgba(201, 169, 98, 0.5);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(201, 169, 98, 0.3);
    animation: bubbleRise linear infinite;
}

.bubble-1 { left: 5%; width: 6px; height: 6px; animation-duration: 12s; animation-delay: 0s; }
.bubble-2 { left: 15%; width: 10px; height: 10px; animation-duration: 15s; animation-delay: -2s; }
.bubble-3 { left: 25%; width: 5px; height: 5px; animation-duration: 18s; animation-delay: -5s; }
.bubble-4 { left: 38%; width: 8px; height: 8px; animation-duration: 14s; animation-delay: -8s; }
.bubble-5 { left: 50%; width: 6px; height: 6px; animation-duration: 16s; animation-delay: -3s; }
.bubble-6 { left: 62%; width: 12px; height: 12px; animation-duration: 20s; animation-delay: -10s; }
.bubble-7 { left: 72%; width: 7px; height: 7px; animation-duration: 13s; animation-delay: -6s; }
.bubble-8 { left: 82%; width: 9px; height: 9px; animation-duration: 17s; animation-delay: -12s; }
.bubble-9 { left: 90%; width: 5px; height: 5px; animation-duration: 19s; animation-delay: -4s; }
.bubble-10 { left: 95%; width: 8px; height: 8px; animation-duration: 14s; animation-delay: -9s; }

@keyframes bubbleRise {
    0% {
        bottom: -20px;
        opacity: 0;
        transform: translateX(0) scale(1);
    }
    10% {
        opacity: 0.7;
    }
    50% {
        transform: translateX(15px) scale(1.1);
        opacity: 0.6;
    }
    90% {
        opacity: 0.5;
    }
    100% {
        bottom: 100%;
        opacity: 0;
        transform: translateX(-10px) scale(0.8);
    }
}

.development-content {
    max-width: 900px;
    text-align: center;
    padding: 2rem;
    z-index: 10;
}

/* Icon */
.dev-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    color: var(--color-gold);
    opacity: 0;
    transform: scale(0.8);
    transition: all 1s var(--ease-out-expo);
}

.dev-icon.visible {
    opacity: 1;
    transform: scale(1);
}

.dev-icon svg {
    width: 100%;
    height: 100%;
    animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Title */
.dev-title {
    font-family: 'DM Serif Text', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
    color: var(--color-gray);
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s var(--ease-out-expo) 0.1s;
}

.dev-title.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Divider */
.dev-divider {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 2rem;
    opacity: 0;
    transition: opacity 0.8s ease 0.3s;
}

.dev-divider.visible {
    opacity: 1;
}

.dev-divider span {
    width: 6px;
    height: 6px;
    background: var(--color-gold);
    border-radius: 50%;
    animation: dividerDots 2s ease-in-out infinite;
}

.dev-divider span:nth-child(2) {
    animation-delay: 0.2s;
}

.dev-divider span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dividerDots {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
}

/* Text */
.dev-text {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    line-height: 1.9;
    max-width: 650px;
    margin: 0 auto 3rem;
    color: var(--color-gray);
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s var(--ease-out-expo) 0.2s;
}

.dev-text.visible {
    opacity: 0.85;
    transform: translateY(0);
}

/* Features */
.dev-features {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s var(--ease-out-expo) 0.3s;
}

.dev-features.visible {
    opacity: 1;
    transform: translateY(0);
}

.dev-feature {
    text-align: center;
    max-width: 180px;
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    color: var(--color-sage);
    transition: all 0.3s ease;
}

.dev-feature:hover .feature-icon {
    color: var(--color-gold);
    transform: scale(1.1);
}

.dev-feature h3 {
    font-family: 'DM Serif Text', serif;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--color-gray);
}

.dev-feature p {
    font-size: 0.8rem;
    opacity: 0.7;
    line-height: 1.5;
}

/* Note */
.dev-note {
    font-style: italic;
    font-size: 0.9rem;
    color: var(--color-gold);
    opacity: 0;
    transition: opacity 1s ease 0.5s;
}

.dev-note.visible {
    opacity: 0.8;
}

/* ===== SIGNUP SECTION ===== */
.section-signup {
    background: linear-gradient(180deg, var(--color-sage) 0%, #6a8261 100%);
    color: var(--color-cream);
}

.signup-bg-gradient {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 50% 30%, rgba(201, 169, 98, 0.1) 0%, transparent 50%);
}

/* Decorative leaves */
.signup-decor {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.signup-leaf {
    position: absolute;
    width: 150px;
    height: 150px;
    border: 1px solid rgba(251, 247, 243, 0.1);
    border-radius: 50% 0 50% 50%;
    animation: leafFloat 20s ease-in-out infinite;
}

.signup-leaf-1 {
    top: 15%;
    left: -30px;
    transform: rotate(-30deg);
}

.signup-leaf-2 {
    bottom: 20%;
    right: -40px;
    width: 120px;
    height: 120px;
    transform: rotate(150deg);
    animation-delay: -10s;
}

@keyframes leafFloat {
    0%, 100% { opacity: 0.3; transform: rotate(-30deg) translateY(0); }
    50% { opacity: 0.5; transform: rotate(-25deg) translateY(-15px); }
}

.signup-content {
    max-width: 600px;
    text-align: center;
    padding: 2rem;
    z-index: 10;
}

/* Ornament */
.signup-ornament {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 2rem;
    opacity: 0;
    transition: opacity 1s ease;
}

.signup-ornament.visible {
    opacity: 1;
}

.signup-ornament span {
    width: 8px;
    height: 8px;
    background: var(--color-gold);
    transform: rotate(45deg);
}

.signup-ornament span:nth-child(2) {
    width: 10px;
    height: 10px;
    animation: ornamentPulse 2s ease-in-out infinite;
}

@keyframes ornamentPulse {
    0%, 100% { transform: rotate(45deg) scale(1); opacity: 1; }
    50% { transform: rotate(45deg) scale(1.2); opacity: 0.8; }
}

/* Title */
.signup-title {
    font-family: 'DM Serif Text', serif;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s var(--ease-out-expo) 0.1s;
}

.signup-title.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Description */
.signup-desc {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s var(--ease-out-expo) 0.2s;
}

.signup-desc.visible {
    opacity: 0.85;
    transform: translateY(0);
}

/* Signup container in this section */
.section-signup .signup-container {
    margin-top: 0;
}

/* Promise text */
.signup-promise {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    font-style: italic;
    opacity: 0;
    transition: opacity 1s ease 0.5s;
    color: var(--color-gold-light);
}

.signup-promise.visible {
    opacity: 0.7;
}

/* Footer Note */
.footer-note {
    position: absolute;
    bottom: 30px;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    opacity: 0.5;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    html { scroll-snap-type: none; }
    .hero-content { padding: 2rem; }
    .signup-form { flex-direction: column; gap: 1rem; }
    .signup-input, .signup-button { width: 100%; }
    .dev-features { flex-direction: column; gap: 2rem; align-items: center; }
    .rising-particles { display: none; }
    .signup-leaf { display: none; }
    .falling-leaves { display: none; }
    .philosophy-values { flex-direction: column; gap: 2.5rem; align-items: center; }
    .philosophy-quote blockquote::before,
    .philosophy-quote blockquote::after { display: none; }
}

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