/* HUG IT (hugit.town) — Bioluminescent Starlight Cozy Dark Theme
   One unified affectionate dark theme for humans ages 6 to 150.
   Powered by the Immutable 256 Sovereign Forge Protocols.
*/
:root {
    --bg-deep: #060714;
    --bg-mid: #0d1028;
    --bg-card: rgba(18, 22, 52, 0.78);
    --bg-card-hover: rgba(26, 32, 74, 0.88);
    --border-glow: rgba(255, 142, 199, 0.25);
    --border-gold: rgba(255, 204, 112, 0.35);
    --text-main: #f8f6ff;
    --text-soft: #c5c0e8;
    --text-muted: #8e88b8;
    --hug-pink: #ff5e9c;
    --hug-amber: #ffb347;
    --hug-gold: #ffe066;
    --hug-mint: #38ef7d;
    --hug-cyan: #5ce1e6;
    --hug-violet: #a87ffb;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', 'Quicksand', system-ui, -apple-system, sans-serif;
    background:
        radial-gradient(circle at 18% 15%, rgba(255, 94, 156, 0.14), transparent 38%),
        radial-gradient(circle at 82% 20%, rgba(92, 225, 230, 0.12), transparent 40%),
        radial-gradient(circle at 50% 80%, rgba(168, 127, 251, 0.14), transparent 45%),
        linear-gradient(180deg, #050611 0%, #0b0e26 50%, #070818 100%);
    color: var(--text-main);
    min-height: 100vh;
    line-height: 1.55;
    overflow-x: hidden;
}

.starfield {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        radial-gradient(1.5px 1.5px at 40px 60px, rgba(255,255,255,0.75), transparent),
        radial-gradient(1px 1px at 140px 180px, rgba(255,224,102,0.7), transparent),
        radial-gradient(2px 2px at 260px 90px, rgba(255,142,199,0.65), transparent),
        radial-gradient(1.5px 1.5px at 380px 240px, rgba(92,225,230,0.7), transparent);
    background-size: 420px 320px;
    opacity: 0.65;
}

.container {
    position: relative;
    z-index: 2;
    max-width: 1220px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem 4rem;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(13, 16, 40, 0.82);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glow);
    border-radius: 999px;
    margin-bottom: 2.2rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.logo {
    font-size: 1.65rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #ff7eb3, #ffb347, #5ce1e6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.age-pill {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.22rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 179, 71, 0.16);
    border: 1px solid var(--border-gold);
    color: var(--hug-gold);
    letter-spacing: 0.4px;
}

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

.nav-links a {
    color: var(--text-soft);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.94rem;
    transition: color 0.2s, transform 0.2s;
}

.nav-links a:hover {
    color: var(--hug-gold);
    transform: translateY(-1px);
}

.btn, .btn-primary, .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font-weight: 800;
    text-decoration: none;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
    border: none;
    font-family: inherit;
}

.btn-outline {
    padding: 0.55rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid var(--border-glow);
    color: var(--text-main);
    font-size: 0.9rem;
}

.btn-primary {
    padding: 0.6rem 1.35rem;
    background: linear-gradient(135deg, var(--hug-pink), var(--hug-amber));
    color: #14081e;
    font-size: 0.92rem;
    box-shadow: 0 6px 22px rgba(255, 94, 156, 0.35);
}

.btn:hover, .btn-primary:hover, .btn-outline:hover {
    transform: translateY(-2px) scale(1.02);
    filter: brightness(1.07);
}

/* Hero Section */
.hero-main {
    text-align: center;
    padding: 3.5rem 2rem;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 94, 156, 0.22), transparent 60%),
        var(--bg-card);
    backdrop-filter: blur(18px);
    border: 1.5px solid var(--border-glow);
    border-radius: 40px;
    margin-bottom: 2rem;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
    position: relative;
    overflow: hidden;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1.1rem;
    border-radius: 999px;
    background: rgba(56, 239, 125, 0.12);
    border: 1px solid rgba(56, 239, 125, 0.35);
    color: #82ffaf;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
}

.hero-main h1 {
    font-size: clamp(2.2rem, 5.5vw, 4.1rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #ffb6d9 35%, #ffd27d 70%, #7ef4f8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tagline {
    font-size: clamp(1.05rem, 2.2vw, 1.35rem);
    color: var(--text-soft);
    max-width: 740px;
    margin: 0 auto 1.8rem;
}

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

.btn-big-primary {
    padding: 1.05rem 2.4rem;
    font-size: 1.12rem;
    background: linear-gradient(135deg, #ff5e9c 0%, #ffb347 100%);
    color: #16071f;
    box-shadow: 0 10px 35px rgba(255, 94, 156, 0.45);
}

.btn-big-secondary {
    padding: 1.02rem 2rem;
    font-size: 1.05rem;
    background: rgba(92, 225, 230, 0.1);
    border: 1.5px solid rgba(92, 225, 230, 0.45);
    color: var(--hug-cyan);
}

/* Interactive Hug Pulse Preview Bar */
.pulse-preview-box {
    max-width: 780px;
    margin: 1.4rem auto 0;
    padding: 1.1rem 1.4rem;
    border-radius: 24px;
    background: rgba(8, 10, 28, 0.72);
    border: 1px solid var(--border-gold);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    text-align: left;
}

.pulse-btn-mini {
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff6b9d, #ffd269);
    color: #190824;
    font-weight: 900;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 22px rgba(255, 107, 157, 0.45);
    transition: transform 0.15s;
}

.pulse-btn-mini:active { transform: scale(0.95); }

/* Stats Banner */
.stats-banner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.2rem;
    margin-bottom: 2.5rem;
}

.stat {
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: 28px;
    padding: 1.5rem 1.2rem;
    text-align: center;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.stat-number {
    font-size: 2.35rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ff85b3, #ffd269, #5ce1e6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: block;
}

.stat-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-soft);
    letter-spacing: 0.8px;
    margin-top: 0.3rem;
    display: block;
}

/* Features Grid */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.4rem;
    margin-bottom: 2.8rem;
}

.feature {
    padding: 1.8rem;
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: 28px;
    transition: transform 0.25s, border-color 0.25s;
}

.feature:hover {
    transform: translateY(-5px);
    border-color: var(--hug-amber);
}

.feature-icon { font-size: 2.6rem; margin-bottom: 0.8rem; }
.feature h3 { font-size: 1.18rem; margin-bottom: 0.5rem; color: var(--hug-gold); }
.feature p { color: var(--text-soft); font-size: 0.94rem; }

/* How Section & Waitlist */
.how-section, .hero-waitlist, .cta-banner {
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: 34px;
    padding: 2.5rem 2rem;
    margin-bottom: 2.5rem;
    text-align: center;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1.5rem;
    margin-top: 1.6rem;
}

.step {
    background: rgba(8, 10, 28, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 1.4rem;
}

.step-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--hug-pink), var(--hug-amber));
    color: #16071f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    font-weight: 900;
    margin: 0 auto 0.8rem;
}

.waitlist-form {
    display: flex;
    justify-content: center;
    gap: 0.7rem;
    margin-top: 1.1rem;
    flex-wrap: wrap;
}

.waitlist-input {
    padding: 0.85rem 1.4rem;
    border-radius: 999px;
    border: 1.5px solid var(--border-glow);
    background: rgba(6, 7, 20, 0.85);
    color: var(--text-main);
    min-width: 280px;
    font-size: 0.95rem;
}

.waitlist-btn {
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--hug-pink), var(--hug-amber));
    color: #14081e;
    font-weight: 800;
    border: none;
    cursor: pointer;
}

.footer {
    text-align: center;
    padding: 2rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    font-size: 0.88rem;
}

@media (max-width: 768px) {
    .header { border-radius: 24px; justify-content: center; text-align: center; }
    .hero-main { padding: 2.2rem 1.2rem; }
    .pulse-preview-box { text-align: center; justify-content: center; }
}

/* JJRave-Style Multi-Column Footer & Legal/Parent Pages */
.jj-footer {
    margin-top: 3.2rem;
    padding: 2.8rem 2rem 2.2rem;
    background: rgba(10, 12, 32, 0.92);
    border: 1px solid rgba(255, 142, 199, 0.25);
    border-radius: 36px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
    color: var(--text-soft);
    position: relative;
    z-index: 20;
    text-align: left;
}
.jj-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.15fr;
    gap: 2rem;
    max-width: 1180px;
    margin: 0 auto;
}
.jj-footer-brand .jj-brand-title {
    font-size: 1.45rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ff7eb3, #ffb347, #5ce1e6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 0.5rem;
}
.jj-footer-motto {
    color: #ffffff;
    font-weight: 700;
    font-size: 0.98rem;
    margin-bottom: 0.85rem;
    line-height: 1.45;
}
.jj-ai-disclosure-box {
    background: rgba(255, 224, 102, 0.1);
    border: 1px solid rgba(255, 224, 102, 0.4);
    border-radius: 18px;
    padding: 0.85rem 1rem;
    font-size: 0.84rem;
    color: #ffe8a3;
    line-height: 1.45;
    font-weight: 600;
}
.jj-footer-col h4 {
    color: var(--hug-gold);
    font-size: 0.92rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 0 0 0.85rem;
}
.jj-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.52rem;
}
.jj-footer-links a {
    color: #d6d0f5;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.18s, transform 0.18s;
    display: inline-block;
}
.jj-footer-links a:hover {
    color: var(--hug-gold);
    transform: translateX(2px);
}
.jj-footer-bottom {
    max-width: 1180px;
    margin: 2rem auto 0;
    padding-top: 1.3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}
.prose-card {
    background: rgba(16, 19, 46, 0.86);
    border: 1px solid var(--border-glow);
    border-radius: 32px;
    padding: 2.4rem 2.2rem;
    margin-bottom: 1.8rem;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}
.prose-card h2 {
    color: var(--hug-gold);
    font-size: 1.45rem;
    margin: 1.4rem 0 0.6rem;
}
.prose-card h2:first-child { margin-top: 0; }
.prose-card h3 {
    color: #88ffff;
    font-size: 1.12rem;
    margin: 1.1rem 0 0.4rem;
}
.prose-card p, .prose-card li {
    color: var(--text-soft);
    font-size: 0.97rem;
    line-height: 1.65;
}
.prose-card ul {
    margin: 0.5rem 0 1rem 1.3rem;
}
.prose-card a {
    color: var(--hug-gold);
    font-weight: 700;
}
@media (max-width: 900px) {
    .jj-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .jj-footer-grid { grid-template-columns: 1fr; }
    .jj-footer { padding: 2rem 1.3rem; }
}