/* ============================================
   SpringStack AI — $1B Unicorn Dark Mode Landing Page
   Aesthetics: Obsidian Glassmorphism, Google Fonts (Outfit & Inter), Glow Ambience
   ============================================ */

:root {
    --bg: #050507;
    --bg-surface: #0a0a0f;
    --bg-card: rgba(18, 18, 26, 0.7);
    --bg-card-hover: rgba(28, 28, 40, 0.85);
    --border: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(99, 102, 241, 0.3);
    --text: #ffffff;
    --text-muted: #94a3b8;
    --accent-indigo: #6366f1;
    --accent-purple: #a855f7;
    --accent-orange: #ff4500;
    --accent-green: #25d366;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --max-w: 1240px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
    font-family: var(--font-body);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Ambient Glow Spheres --- */
.glow-ambience {
    position: fixed;
    border-radius: 50%;
    filter: blur(150px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}
.glow-1 { width: 600px; height: 600px; background: rgba(99, 102, 241, 0.25); top: -200px; left: -100px; }
.glow-2 { width: 500px; height: 500px; background: rgba(255, 69, 0, 0.2); bottom: -100px; right: -100px; }
.glow-3 { width: 450px; height: 450px; background: rgba(168, 85, 247, 0.18); top: 40%; left: 35%; }

/* --- Navigation Header --- */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(5, 5, 7, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}
.nav-container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 1.1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.35rem;
    color: #fff;
}
.logo-icon {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--accent-indigo), var(--accent-purple));
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    font-size: 1.1rem;
}
.logo span { color: var(--accent-indigo); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}
.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}
.nav-links a:hover { color: #fff; }

.btn-nav-cta {
    background: var(--accent-green);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.92rem;
    padding: 0.65rem 1.3rem;
    border-radius: 12px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    transition: var(--transition);
}
.btn-nav-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4); }

/* --- Hero Section --- */
.hero {
    position: relative;
    z-index: 1;
    padding-top: 9rem;
    padding-bottom: 5rem;
    text-align: center;
}
.hero-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 69, 0, 0.12);
    border: 1px solid rgba(255, 69, 0, 0.3);
    color: var(--accent-orange);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: clamp(2.5rem, 5.5vw, 4.2rem);
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
    color: #fff;
}
.gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 50%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.gradient-orange {
    background: linear-gradient(135deg, #ff4500 0%, #ff8c00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: var(--text-muted);
    max-width: 750px;
    margin: 0 auto 2.5rem auto;
    font-weight: 400;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.btn-primary-wa {
    background: var(--accent-green);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    padding: 1rem 2.2rem;
    border-radius: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.35);
    transition: var(--transition);
}
.btn-primary-wa:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(37, 211, 102, 0.5); }

.btn-secondary-monster {
    background: rgba(255, 69, 0, 0.15);
    border: 1px solid rgba(255, 69, 0, 0.4);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    padding: 1rem 1.8rem;
    border-radius: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}
.btn-secondary-monster:hover { background: rgba(255, 69, 0, 0.25); transform: translateY(-2px); }

/* Proof Bar */
.proof-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    color: var(--text-muted);
    font-size: 0.88rem;
    flex-wrap: wrap;
}

/* --- Interactive WhatsApp Simulator Section --- */
.sim-section {
    position: relative;
    z-index: 1;
    padding: 2rem 1.5rem 6rem 1.5rem;
}
.sim-container {
    max-width: 1050px;
    margin: 0 auto;
    background: rgba(15, 15, 23, 0.8);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: 0 25px 60px rgba(0,0,0,0.8);
    backdrop-filter: blur(30px);
}

.sim-header {
    text-align: center;
    margin-bottom: 1.5rem;
}
.sim-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.4rem;
}

/* Prompt Chips */
.chips-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 1.8rem;
}
.chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: #e2e8f0;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
}
.chip:hover, .chip.active {
    background: var(--accent-indigo);
    border-color: var(--accent-indigo);
    color: #fff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}
.chip.chip-monster {
    background: rgba(255, 69, 0, 0.2);
    border-color: rgba(255, 69, 0, 0.4);
    color: #ffaa80;
}
.chip.chip-monster.active, .chip.chip-monster:hover {
    background: var(--accent-orange);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 69, 0, 0.4);
}

/* Chat Mockup Screen */
.chat-window {
    background: #0b141a;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
    min-height: 380px;
    display: flex;
    flex-direction: column;
}
.chat-topbar {
    background: #1f2c34;
    padding: 1rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 12px;
}
.chat-avatar {
    width: 38px; height: 38px;
    background: linear-gradient(135deg, var(--accent-indigo), var(--accent-purple));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    font-weight: bold;
}
.chat-info h4 { font-family: var(--font-heading); font-size: 1rem; color: #fff; }
.chat-info p { font-size: 0.78rem; color: #8696a0; }

.chat-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
}
.msg {
    max-width: 80%;
    padding: 0.9rem 1.2rem;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
    position: relative;
}
.msg-user {
    align-self: flex-end;
    background: #005c4b;
    color: #e9edef;
    border-bottom-right-radius: 2px;
}
.msg-bot {
    align-self: flex-start;
    background: #202c33;
    color: #d1d7db;
    border-bottom-left-radius: 2px;
    white-space: pre-wrap;
}

.sim-preview-box {
    margin-top: 0.8rem;
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem;
}

/* --- Bento Grid Features Section --- */
.features-section {
    position: relative;
    z-index: 1;
    padding: 5rem 1.5rem;
}
.section-head {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3.5rem auto;
}
.section-tag {
    color: var(--accent-indigo);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: block;
}
.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 900;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 0.8rem;
}
.section-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.bento-grid {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.bento-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.bento-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-glow);
    transform: translateY(-4px);
}
.bento-card.wide { grid-column: span 2; }
.bento-card.featured {
    border: 1px solid rgba(255, 69, 0, 0.4);
    background: linear-gradient(135deg, rgba(255,69,0,0.1), rgba(18,18,26,0.9));
}

.bento-icon {
    width: 50px; height: 50px;
    border-radius: 14px;
    background: rgba(255,255,255,0.05);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
}
.bento-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.6rem;
}
.bento-card p {
    color: var(--text-muted);
    font-size: 0.98rem;
}

/* --- How It Works Section --- */
.steps-section {
    padding: 5rem 1.5rem;
    background: rgba(10, 10, 15, 0.5);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.steps-grid {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.step-card {
    text-align: center;
    padding: 2rem;
}
.step-num {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    color: var(--accent-indigo);
    opacity: 0.6;
    margin-bottom: 0.5rem;
}
.step-card h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
}
.step-card p { color: var(--text-muted); font-size: 0.95rem; }

/* --- Pricing Section --- */
.pricing-section {
    padding: 6rem 1.5rem;
}
.pricing-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
    align-items: stretch;
}
.price-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition);
}
.price-card:hover { transform: translateY(-5px); border-color: var(--border-glow); }
.price-card.popular {
    border-color: var(--accent-indigo);
    box-shadow: 0 0 35px rgba(99, 102, 241, 0.25);
}
.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-indigo);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 14px;
    border-radius: 20px;
    text-transform: uppercase;
}

.price-title { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 800; color: #fff; margin-bottom: 0.4rem; }
.price-val { font-family: var(--font-heading); font-size: 2.8rem; font-weight: 900; color: #fff; margin-bottom: 1.5rem; }
.price-val span { font-size: 1rem; color: var(--text-muted); font-weight: 400; }

.price-features {
    list-style: none;
    margin-bottom: 2rem;
    flex: 1;
}
.price-features li {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.price-features li::before { content: "✓"; color: var(--accent-green); font-weight: bold; }

.btn-price {
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 0.9rem;
    border-radius: 12px;
    text-decoration: none;
    text-align: center;
    transition: var(--transition);
}
.btn-price:hover { background: #fff; color: #000; }
.btn-price.primary { background: var(--accent-indigo); }
.btn-price.primary:hover { background: var(--accent-purple); color: #fff; }

/* --- Footer --- */
.footer {
    border-top: 1px solid var(--border);
    padding: 4rem 1.5rem 2rem 1.5rem;
    background: #030305;
}
.footer-container {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;

    border-bottom: 1px solid var(--border);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}
.footer-copy { text-align: center; color: var(--text-muted); font-size: 0.88rem; }

/* --- Mobile Responsiveness --- */
@media (max-width: 992px) {
    .bento-grid { grid-template-columns: 1fr; }
    .bento-card.wide { grid-column: span 1; }
    .steps-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; }
}
