/* ═══════════════════════════════════════════════════════════
   octopus Site — Design System
   Warm, literary, premium. Matches the app's reading engine.
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Inter:wght@300;400;500;600&display=swap');

:root {
    /* Brand palette — derived from logo */
    --bg:             #FDFAF6;
    --bg-warm:        #F8F3EB;
    --bg-deep:        #1C1410;

    --ink:            #1C1917;
    --ink-soft:       #57534E;
    --ink-ghost:      #A8A29E;

    --brand:          #E06C2B;
    --brand-deep:     #9B3D12;
    --brand-glow:     rgba(224, 108, 43, 0.12);
    --brand-glow-strong: rgba(224, 108, 43, 0.25);

    --amber:          #C4A35A;
    --rule:           rgba(0, 0, 0, 0.06);

    /* Typography */
    --serif:          'Cormorant Garamond', 'Georgia', serif;
    --sans:           'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Motion */
    --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring:    cubic-bezier(0.25, 1, 0.5, 1);
}

/* ═══════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════ */

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

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

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--serif);
    font-size: 18px;
    line-height: 1.7;
    overflow-x: hidden;
}

::selection {
    background: var(--brand-glow-strong);
    color: var(--ink);
}

/* ═══════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════ */

.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    text-align: center;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(
        circle,
        rgba(224, 108, 43, 0.08) 0%,
        rgba(224, 108, 43, 0.03) 40%,
        transparent 70%
    );
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

/* Start hero elements hidden — JS reveals them with staggered delays */
.logo-container,
.hero-title,
.hero-tagline,
.hero-ctas,
.scroll-indicator {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

.logo-container {
    margin-bottom: 1.5rem;
}

.logo-img {
    width: 300px;
    height: auto;
    filter: drop-shadow(0px 10px 15px rgba(224, 108, 43, 0.15));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50%      { transform: translateY(-10px); }
}

.hero-title {
    font-family: 'Georgia', serif;
    font-size: 2rem;
    font-weight: normal;
    letter-spacing: 0.05em;
    color: var(--brand-deep);
    margin-bottom: 1rem;
}

.hero-tagline {
    font-family: 'Georgia', serif;
    font-size: 1.12rem;
    font-style: italic;
    color: var(--brand);
    line-height: 2.4;
    margin-bottom: 2.5rem;
}

.hero-tagline em {
    font-style: italic;
    color: var(--brand);
}

.hero-tagline-hero {
    display: inline-block;
    font-size: 125%;
    font-weight: normal;
    color: var(--brand);
    font-style: italic;
    margin: 0.6rem 0;
}

.hero-tagline-closer {
    display: block;
    margin-top: 0.8rem;
}

/* ─── CTA Buttons ─── */

.hero-ctas {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--sans);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-decoration: none;
    padding: 0.65rem 1.4rem;
    border-radius: 10px;
    transition: all 0.3s var(--ease-out-expo);
    cursor: pointer;
    border: none;
}

.btn-icon {
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--brand-deep);
    color: #FDF8F4;
    box-shadow: 0 4px 20px rgba(155, 61, 18, 0.2), 
                0 1px 3px rgba(155, 61, 18, 0.1);
}

.btn-primary:hover {
    background: var(--brand);
    box-shadow: 0 8px 32px rgba(224, 108, 43, 0.3), 
                0 2px 8px rgba(224, 108, 43, 0.15);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 12px rgba(155, 61, 18, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--brand-deep);
    border: 1.5px solid rgba(155, 61, 18, 0.25);
}

.btn-secondary:hover {
    background: var(--brand-glow);
    border-color: var(--brand);
    transform: translateY(-2px);
}

.btn-large {
    padding: 0.75rem 1.8rem;
    font-size: 0.85rem;
}

/* ─── Scroll Indicator ─── */

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    font-family: var(--sans);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink-ghost);
}

/* Only animate after revealed */
.scroll-indicator[style*="opacity: 1"] {
    animation: gentleBounce 2.5s ease-in-out infinite;
    animation-delay: 1s;
}

@keyframes gentleBounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(6px); }
}

/* ═══════════════════════════════════════
   PITCH SECTION
   ═══════════════════════════════════════ */

.pitch {
    padding: 6rem 2rem;
    background: var(--bg);
}

.pitch-container {
    max-width: 620px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.pitch-block {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.pitch-block.revealed {
    opacity: 1;
    transform: translateY(0);
}

.pitch-block:nth-child(2) { transition-delay: 0.15s; }
.pitch-block:nth-child(3) { transition-delay: 0.3s; }

.pitch-accent-line {
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--amber));
    border-radius: 2px;
    margin-bottom: 1.5rem;
}

.pitch-heading {
    font-family: var(--serif);
    font-size: clamp(1.6rem, 4vw, 2rem);
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.pitch-text {
    font-family: var(--serif);
    font-size: 1.15rem;
    line-height: 1.85;
    color: var(--ink-soft);
}

.pitch-text strong {
    color: var(--ink);
    font-weight: 500;
}

.pitch-text em {
    color: var(--brand-deep);
    font-style: italic;
}

.pitch-text-secondary {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--rule);
    font-size: 1.05rem;
    color: var(--ink-ghost);
}

.pitch-cta-row {
    text-align: center;
    padding: 2rem 2rem 0;
}

.pitch-link {
    font-family: var(--sans);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: var(--brand-deep);
    text-decoration: none;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(155, 61, 18, 0.2);
    transition: border-color 0.3s ease, color 0.3s ease;
}

.pitch-link:hover {
    color: var(--brand);
    border-bottom-color: var(--brand);
}

/* ═══════════════════════════════════════
   DEMO TEASER SECTION
   ═══════════════════════════════════════ */

.demo-teaser {
    padding: 5rem 2rem;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-warm) 100%);
}

.demo-teaser-container {
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
    padding: 3rem 2.5rem;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.04),
                0 1px 3px rgba(0, 0, 0, 0.02);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.demo-teaser-container.revealed {
    opacity: 1;
    transform: translateY(0);
}

.demo-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--brand-deep);
    margin-bottom: 1.5rem;
}

.demo-label-dot {
    width: 8px;
    height: 8px;
    background: var(--brand);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

.demo-heading {
    font-family: var(--serif);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 1rem;
}

.demo-description {
    font-family: var(--serif);
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--ink-soft);
    margin-bottom: 2rem;
}

.demo-description em {
    color: var(--brand-deep);
    font-style: italic;
}

/* ═══════════════════════════════════════
   SUBSCRIBE SECTION
   ═══════════════════════════════════════ */

.subscribe-section {
    padding: 5rem 2rem;
    background: var(--bg-warm);
}

.subscribe-container {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;

    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.subscribe-container.revealed {
    opacity: 1;
    transform: translateY(0);
}

.subscribe-logo {
    width: 80px;
    height: auto;
    margin-bottom: 1rem;
    filter: drop-shadow(0px 8px 16px rgba(224, 108, 43, 0.12));
    animation: float 6s ease-in-out infinite;
}

.subscribe-heading {
    font-family: var(--serif);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 0.5rem;
}

.subscribe-text {
    font-family: var(--serif);
    font-size: 1.05rem;
    color: var(--ink-soft);
    margin-bottom: 2rem;
}

.subscribe-embed {
    margin-bottom: 1.5rem;
}

.subscribe-embed iframe {
    border-radius: 8px;
    max-width: 100%;
}

.subscribe-blog-link {
    font-family: var(--sans);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: var(--ink-ghost);
    text-decoration: none;
    transition: color 0.3s ease;
}

.subscribe-blog-link:hover {
    color: var(--brand);
}

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */

.site-footer {
    padding: 3rem 2rem;
    background: var(--bg-deep);
    color: rgba(253, 248, 244, 0.5);
}

.footer-container {
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-motto {
    font-family: var(--serif);
    font-size: 1.2rem;
    font-style: italic;
    color: rgba(253, 248, 244, 0.7);
    letter-spacing: 0.02em;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    font-family: var(--sans);
    font-size: 0.8rem;
}

.footer-links a {
    color: rgba(253, 248, 244, 0.5);
    text-decoration: none;
    transition: color 0.3s ease;
    letter-spacing: 0.03em;
}

.footer-links a:hover {
    color: var(--brand);
}

.footer-dot {
    color: rgba(253, 248, 244, 0.2);
}


.footer-copyright {
    font-family: var(--sans);
    font-size: 0.65rem;
    color: rgba(253, 248, 244, 0.2);
    letter-spacing: 0.05em;
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */

@media (min-width: 640px) {
    .hero-ctas {
        flex-direction: row;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .logo-img {
        width: 220px;
    }

    .hero {
        padding: 1.5rem;
    }

    .pitch {
        padding: 4rem 1.5rem;
    }

    .demo-teaser-container {
        padding: 2rem 1.5rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}
