/* ================================================================
   StoryCamp Web — Landing Page Styles
   ================================================================ */

:root {
    --night:      #060d07;
    --forest:     #0b1510;
    --forest-mid: #112016;
    --wood:       #1e2f20;
    --amber:      #f39c12;
    --fire-1:     #ff6b1a;
    --fire-2:     #ffb347;
    --ember:      #ffe082;
    --text-main:  #f2ece2;
    --text-muted: #96a88c;
    --radius:     12px;
    --transition: .3s cubic-bezier(.4,0,.2,1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
    background-color: var(--night);
    color: var(--text-main);
    font-family: 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ================================================================
   NAVBAR
   ================================================================ */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 900;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 5%;
    height: 68px;
    background: rgba(6,13,7,.88);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(243,156,18,.1);
    transition: transform var(--transition), box-shadow var(--transition);
}
.navbar.hidden  { transform: translateY(-100%); }
.navbar.scrolled{ box-shadow: 0 4px 24px rgba(0,0,0,.6); }

.nav-logo {
    display: flex; align-items: center; gap: 10px;
    font-size: 1.25rem; font-weight: 800; color: var(--amber);
    text-decoration: none; letter-spacing: -.3px;
}
.nav-logo .logo-icon { font-size: 1.4rem; }

.nav-links {
    display: flex; align-items: center; gap: 32px;
}
.nav-links a {
    color: var(--text-muted); text-decoration: none; font-size: .88rem;
    transition: color var(--transition);
}
.nav-links a:hover { color: var(--text-main); }

.nav-ctas { display: flex; align-items: center; gap: 12px; }

.btn-ghost {
    background: none; border: 1px solid rgba(243,156,18,.32);
    color: var(--amber); padding: 8px 18px; border-radius: 7px;
    font-size: .86rem; cursor: pointer; text-decoration: none;
    transition: all var(--transition);
}
.btn-ghost:hover { background: rgba(243,156,18,.08); border-color: var(--amber); }

.btn-fire {
    background: linear-gradient(135deg, var(--fire-1), var(--amber));
    border: none; color: #fff; padding: 9px 20px; border-radius: 7px;
    font-size: .86rem; font-weight: 700; cursor: pointer; text-decoration: none;
    box-shadow: 0 4px 16px rgba(243,156,18,.28);
    transition: all var(--transition);
}
.btn-fire:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(243,156,18,.45);
}

/* ================================================================
   HERO
   ================================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 72%, #17260e 0%, var(--night) 65%);
}

.hero-bg-glow {
    position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 600px; height: 300px;
    background: radial-gradient(ellipse, rgba(243,156,18,.1) 0%, transparent 70%);
    pointer-events: none;
}

.ember-container {
    position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.ember-particle {
    position: absolute;
    border-radius: 50%;
    background: var(--amber);
    animation: ember-rise linear infinite;
    opacity: 0;
}
@keyframes ember-rise {
    0%   { transform: translateY(0)    translateX(0)               scale(1);   opacity: .9; }
    35%  { opacity: .8; }
    70%  { transform: translateY(-55vh) translateX(var(--drift))   scale(.5);  opacity: .4; }
    100% { transform: translateY(-90vh) translateX(calc(var(--drift)*1.3)) scale(.08); opacity: 0; }
}

.hero-content {
    position: relative; z-index: 10;
    text-align: center;
    padding: 100px 24px 0;
    max-width: 820px;
    animation: fade-up .9s ease forwards;
}
@keyframes fade-up {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* CSS campfire */
.campfire-wrap {
    margin: 0 auto 44px;
    width: 160px; height: 140px;
    position: relative;
    display: flex; align-items: flex-end; justify-content: center;
}
.fire-base {
    position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 90px; height: 18px;
    background: linear-gradient(180deg, #6b3510, #3a1c08);
    border-radius: 50%;
    box-shadow: 0 4px 18px rgba(0,0,0,.6);
}
.fire-base::before, .fire-base::after {
    content: ''; position: absolute; bottom: 3px;
    height: 9px; border-radius: 4px;
    background: linear-gradient(180deg, #8b5020, #4a2010);
}
.fire-base::before { width: 55px; left: -12px; transform: rotate(-22deg); }
.fire-base::after  { width: 55px; right:-12px; transform: rotate(22deg);  }

.flame { position: absolute; bottom: 14px; left: 50%; transform-origin: bottom center; }
.flame-outer {
    width: 64px; height: 96px; transform: translateX(-50%);
    background: radial-gradient(ellipse at 50% 100%, #ff5500 0%, #f39c12 55%, transparent 90%);
    border-radius: 50% 50% 30% 30% / 60% 60% 40% 40%;
    animation: flicker-outer 2.1s ease-in-out infinite;
    filter: blur(5px);
}
.flame-mid {
    width: 42px; height: 72px; transform: translateX(-50%); bottom: 10px;
    background: radial-gradient(ellipse at 50% 100%, #ffd700 0%, #ff8c00 60%, transparent 90%);
    border-radius: 50% 50% 30% 30% / 60% 60% 40% 40%;
    animation: flicker-mid 1.7s ease-in-out infinite reverse;
    filter: blur(2px);
}
.flame-inner {
    width: 22px; height: 48px; transform: translateX(-50%); bottom: 16px;
    background: radial-gradient(ellipse at 50% 100%, #fffde7 0%, #fff176 70%, transparent 100%);
    border-radius: 50% 50% 30% 30% / 60% 60% 40% 40%;
    animation: flicker-inner 1.3s ease-in-out infinite;
    filter: blur(1px);
}

@keyframes flicker-outer {
    0%,100% { transform: translateX(-50%) scaleX(1)    scaleY(1);    }
    30%      { transform: translateX(-53%) scaleX(.91)  scaleY(1.09); }
    65%      { transform: translateX(-47%) scaleX(1.07) scaleY(.95);  }
}
@keyframes flicker-mid {
    0%,100% { transform: translateX(-50%) scaleX(1)    scaleY(1);    }
    40%      { transform: translateX(-47%) scaleX(1.09) scaleY(.93);  }
    80%      { transform: translateX(-53%) scaleX(.91)  scaleY(1.06); }
}
@keyframes flicker-inner {
    0%,100% { transform: translateX(-50%) scaleY(1);    }
    50%      { transform: translateX(-50%) scaleY(1.14); }
}

.fire-glow {
    position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
    width: 130px; height: 65px;
    background: radial-gradient(ellipse, rgba(243,156,18,.38) 0%, transparent 70%);
    animation: glow-pulse 2.2s ease-in-out infinite;
    pointer-events: none;
}
@keyframes glow-pulse {
    0%,100% { opacity: .65; transform: translateX(-50%) scaleX(1);    }
    50%      { opacity: 1;   transform: translateX(-50%) scaleX(1.18); }
}

.hero-tag {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(243,156,18,.09); border: 1px solid rgba(243,156,18,.28);
    color: var(--amber); padding: 6px 16px; border-radius: 20px;
    font-size: .76rem; font-weight: 700; letter-spacing: 1px;
    text-transform: uppercase; margin-bottom: 22px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900; line-height: 1.08;
    margin-bottom: 20px;
    letter-spacing: -2px;
}
.hero-title em {
    font-style: normal;
    background: linear-gradient(135deg, var(--fire-2) 0%, var(--amber) 60%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 1.07rem; color: var(--text-muted);
    max-width: 500px; margin: 0 auto 38px; line-height: 1.75;
}

.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-fire-lg {
    background: linear-gradient(135deg, var(--fire-1), var(--amber));
    border: none; color: #fff; padding: 14px 34px; border-radius: 9px;
    font-size: .98rem; font-weight: 700; cursor: pointer; text-decoration: none;
    box-shadow: 0 6px 28px rgba(243,156,18,.38);
    transition: all var(--transition); display: inline-block;
}
.btn-fire-lg:hover { transform: translateY(-3px); box-shadow: 0 10px 36px rgba(243,156,18,.55); }

.btn-outline-lg {
    background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.14);
    color: var(--text-main); padding: 14px 34px; border-radius: 9px;
    font-size: .98rem; cursor: pointer; text-decoration: none; display: inline-block;
    transition: all var(--transition);
}
.btn-outline-lg:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.28); }

.hero-stats {
    display: flex; gap: 48px; justify-content: center; flex-wrap: wrap;
    margin-top: 60px; padding-top: 44px;
    border-top: 1px solid rgba(255,255,255,.06);
}
.stat-item { text-align: center; }
.stat-num  { font-size: 1.9rem; font-weight: 800; color: var(--amber); display: block; }
.stat-label{ font-size: .78rem; color: var(--text-muted); margin-top: 2px; display: block; }

.scroll-hint {
    position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    color: var(--text-muted); font-size: .72rem; letter-spacing: .5px;
    animation: bob 2.4s ease-in-out infinite;
}
.scroll-hint svg { opacity: .5; }
@keyframes bob {
    0%,100% { transform: translateX(-50%) translateY(0);  }
    50%      { transform: translateX(-50%) translateY(8px);}
}

/* ================================================================
   SHARED SECTION STYLES
   ================================================================ */
section { padding: 96px 5%; }

.section-eyebrow {
    display: inline-block;
    font-size: .72rem; font-weight: 700; letter-spacing: 2.5px;
    text-transform: uppercase; color: var(--amber);
    margin-bottom: 10px;
}
.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800; letter-spacing: -1px; line-height: 1.18;
    margin-bottom: 14px;
}
.section-sub {
    font-size: .98rem; color: var(--text-muted);
    max-width: 500px; margin: 0 auto 52px; line-height: 1.75;
}
.text-center { text-align: center; }

.reveal {
    opacity: 0; transform: translateY(26px);
    transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ================================================================
   FEATURES
   ================================================================ */
.features { background: var(--forest); }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 20px; max-width: 1120px; margin: 0 auto;
}
.feature-card {
    background: var(--forest-mid);
    border: 1px solid rgba(255,255,255,.05);
    border-radius: 14px; padding: 28px 22px;
    transition: all var(--transition);
    position: relative; overflow: hidden;
}
.feature-card::after {
    content: ''; position: absolute;
    inset: 0; border-radius: 14px;
    background: linear-gradient(135deg, rgba(243,156,18,.05) 0%, transparent 55%);
    opacity: 0; transition: opacity var(--transition);
}
.feature-card:hover { transform: translateY(-5px); border-color: rgba(243,156,18,.22); }
.feature-card:hover::after { opacity: 1; }

.feature-icon {
    font-size: 2.1rem; margin-bottom: 14px; display: block;
    filter: drop-shadow(0 0 8px rgba(243,156,18,.35));
}
.feature-card h3 { font-size: .97rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p  { font-size: .85rem; color: var(--text-muted); line-height: 1.65; }

/* ================================================================
   PRICING
   ================================================================ */
.pricing { background: var(--night); }

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px; max-width: 1080px; margin: 0 auto;
    align-items: start;
}
.price-card {
    background: var(--forest-mid);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 16px; padding: 30px 22px;
    position: relative; transition: all var(--transition);
}
.price-card:hover { transform: translateY(-5px); }

.price-card.recommended {
    border-color: var(--amber);
    background: linear-gradient(160deg, rgba(243,156,18,.07) 0%, var(--forest-mid) 55%);
    box-shadow: 0 0 42px rgba(243,156,18,.16), 0 8px 42px rgba(0,0,0,.4);
    margin-top: -10px;
    padding-top: 40px;
}

.badge-recommended {
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, var(--fire-1), var(--amber));
    color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: 1px;
    padding: 5px 18px; border-radius: 20px; text-transform: uppercase;
    white-space: nowrap;
}
.price-name {
    font-size: .75rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
    color: var(--text-muted); margin-bottom: 14px;
}
.price-amount {
    display: flex; align-items: baseline; gap: 3px; margin-bottom: 4px;
}
.price-amount .currency { font-size: 1.25rem; font-weight: 700; color: var(--amber); align-self: flex-start; margin-top: 6px; }
.price-amount .amount   { font-size: 2.8rem; font-weight: 900; line-height: 1; color: #fff; }
.price-amount .period   { font-size: .82rem; color: var(--text-muted); }
.price-amount .free-txt { font-size: 2.5rem; font-weight: 900; color: #fff; }

.price-note { font-size: .76rem; color: var(--text-muted); margin-bottom: 20px; min-height: 18px; }

.price-divider { height: 1px; background: rgba(255,255,255,.07); margin-bottom: 18px; }

.price-features { list-style: none; margin-bottom: 26px; }
.price-features li {
    display: flex; align-items: flex-start; gap: 9px;
    font-size: .83rem; padding: 4px 0; color: var(--text-muted); line-height: 1.5;
}
.price-features li .check { color: var(--amber); flex-shrink: 0; }
.price-features li.na      { opacity: .35; }
.price-features li.na .check { color: var(--text-muted); }

.btn-price {
    width: 100%; padding: 11px; border-radius: 8px; font-size: .88rem;
    font-weight: 600; cursor: pointer; text-decoration: none;
    display: block; text-align: center; transition: all var(--transition);
    border: none;
}
.btn-price-outline {
    background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14) !important;
    color: var(--text-main);
}
.btn-price-outline:hover { background: rgba(255,255,255,.1); }
.btn-price-fire {
    background: linear-gradient(135deg, var(--fire-1), var(--amber));
    color: #fff; box-shadow: 0 4px 22px rgba(243,156,18,.38);
    border: none !important;
}
.btn-price-fire:hover { box-shadow: 0 7px 30px rgba(243,156,18,.6); transform: translateY(-2px); }

/* ================================================================
   WHY US
   ================================================================ */
.why-us { background: var(--forest); }

.why-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
    gap: 24px; max-width: 940px; margin: 0 auto;
}
.why-card {
    display: flex; flex-direction: column; gap: 14px;
    padding: 28px 22px;
    background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.05);
    border-radius: 14px; transition: border-color var(--transition);
}
.why-card:hover { border-color: rgba(243,156,18,.18); }
.why-icon {
    width: 48px; height: 48px; border-radius: 11px;
    background: rgba(243,156,18,.09); border: 1px solid rgba(243,156,18,.18);
    display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
.why-card h3 { font-size: .96rem; font-weight: 700; }
.why-card p  { font-size: .85rem; color: var(--text-muted); line-height: 1.7; }

/* ================================================================
   FINAL CTA
   ================================================================ */
.cta-final {
    background: radial-gradient(ellipse at 50% 100%, rgba(243,156,18,.07) 0%, var(--night) 60%);
    text-align: center; padding: 120px 5%;
    border-top: 1px solid rgba(255,255,255,.04);
}
.cta-final .section-title { max-width: 580px; margin: 0 auto 14px; }
.cta-final .section-sub   { margin-bottom: 38px; }

/* ================================================================
   FOOTER
   ================================================================ */
footer {
    background: var(--forest);
    border-top: 1px solid rgba(255,255,255,.05);
    padding: 44px 5%;
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
    gap: 20px;
}
.footer-logo { font-size: 1.1rem; font-weight: 800; color: var(--amber); }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a {
    color: var(--text-muted); font-size: .82rem; text-decoration: none;
    transition: color var(--transition);
}
.footer-links a:hover { color: var(--text-main); }
.footer-copy { font-size: .78rem; color: var(--text-muted); }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 960px) {
    .pricing-grid { grid-template-columns: 1fr 1fr; }
    .price-card.recommended { margin-top: 0; }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-stats { gap: 24px; }
    section { padding: 68px 5%; }
}
@media (max-width: 560px) {
    .pricing-grid { grid-template-columns: 1fr; }
    .hero-ctas { flex-direction: column; align-items: stretch; }
    .hero-ctas a { text-align: center; }
}
