/**
 * ============================================================================
 * PROPRIETARY NOTICE — © 2024-2025 Nyra Tech Corporation
 * NYRA Tech™ Corporate Website Theme
 * ============================================================================
 *
 * Copyright © 2024-2025 Nyra Tech Corporation
 * All Rights Reserved Worldwide.
 *
 * PATENTS: U.S. Patent No. 19288980 | International Patents (PCT/WIPO)
 * Protected under U.S. Law, TRIPS Agreement, Berne Convention & Indian IP Laws
 *
 * CONFIDENTIAL: Unauthorized use, copying, or distribution is prohibited
 * and may result in severe civil and criminal penalties ($550K+ per violation).
 * Enforceable in U.S., India, EU, and 180+ WIPO member countries.
 *
 * BINDING AGREEMENT: By accessing this file, you agree to all terms in
 * LICENSE_STARDOCKET.txt. If you do not agree, you must IMMEDIATELY:
 *   1. Close all files and stop accessing this repository
 *   2. Delete all local copies (git, backups, cloud storage)
 *   3. Notify admin@nyracorp.com confirming deletion
 *
 * Legal: rnagrajan@serottelaw.com | Licensing: admin@nyracorp.com
 * ============================================================================
 */

/* ============================================================
   BortleBuddy — Deep Space Product Page
   Aesthetic: Obsidian void + aurora nebula accents
   Fonts: Syne (display) + DM Sans (body)
   ============================================================ */

/* --- Tokens --- */
.bb-page {
    --void: #07060b;
    --surface: #0c0b12;
    --raised: #13121b;
    --border: rgba(255,255,255,0.06);
    --border-hi: rgba(255,255,255,0.1);
    --purple: #7c3aed;
    --blue: #3b82f6;
    --teal: #14b8a6;
    --lilac: #a78bfa;
    --sky: #60a5fa;
    --mint: #2dd4bf;
    --txt: #c8cdd5;
    --txt-muted: #6e7681;
    --txt-dim: #3d444d;
    --grad: linear-gradient(135deg, var(--lilac), var(--sky), var(--mint));
    --glow-purple: rgba(124,58,237,.25);
    --glow-blue: rgba(59,130,246,.18);
    --glow-teal: rgba(20,184,166,.15);
    --radius: 12px;
    --font-display: 'Syne', sans-serif;
    --font-body: 'DM Sans', sans-serif;
}

/* --- Base --- */
.bb-page {
    background: var(--void);
    color: var(--txt);
    font-family: var(--font-body);
    overflow-x: hidden;
}
.bb-page h1, .bb-page h2, .bb-page h3 {
    font-family: var(--font-display);
    color: var(--white);
}
.bb-page p { color: var(--txt-muted); }

.bb-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 var(--space-7);
}

/* --- Gradient text utility --- */
.bb-grad {
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Nav dark override --- */
.bb-page .nav {
    background: rgba(7,6,11,.75);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border-bottom: 1px solid var(--border);
    opacity: 0;
    transform: translateY(-100%);
    transition: opacity .4s ease, transform .4s ease;
}
.bb-page .nav.nav--visible {
    opacity: 1;
    transform: translateY(0);
}
.bb-page .nav .logo { color: var(--white); }
.bb-page .nav .logo span { color: var(--sky); }
.bb-page .nav .nav-links a { color: var(--txt-muted); }
.bb-page .nav .nav-links a:hover,
.bb-page .nav .nav-links a.nav-active,
.bb-page .nav .nav-dropdown > a:hover,
.bb-page .nav .nav-dropdown > a.nav-active { color: var(--white); }
.bb-page .dropdown-menu {
    background: var(--raised);
    border: 1px solid var(--border-hi);
    box-shadow: 0 20px 60px rgba(var(--black-rgb), .6);
}
.bb-page .dropdown-menu::before { border-bottom-color: var(--raised); }
.bb-page .dropdown-menu a { color: var(--txt-muted); }
.bb-page .dropdown-menu a:hover { background: rgba(var(--accent-blue-rgb), .08); color: var(--white); }
.bb-page .mobile-menu { background: var(--surface); }
.bb-page .mobile-menu a { color: var(--txt-muted); border-bottom-color: var(--border); }
.bb-page .mobile-menu a:hover { color: var(--white); }

/* Back-to-top dark override */
.bb-page .back-to-top {
    background: rgba(var(--accent-blue-rgb), .12);
    border-color: rgba(var(--accent-blue-rgb), .25);
    box-shadow: 0 4px 20px rgba(var(--black-rgb), .4);
}
.bb-page .back-to-top svg { color: var(--sky); }
.bb-page .back-to-top:hover {
    background: var(--sky);
    border-color: var(--sky);
    box-shadow: 0 8px 25px rgba(var(--accent-blue-rgb), .35);
}
.bb-page .back-to-top:hover svg { color: var(--white); }

/* ============================================================
   STARS – fixed layer behind everything
   ============================================================ */
#bb-stars {
    position: fixed;
    top: -60px;
    left: -60px;
    right: -60px;
    bottom: -60px;
    z-index: var(--z-above);
    pointer-events: none;
    will-change: transform;
    transform: translate3d(0,0,0);
}
.bb-star {
    position: absolute;
    border-radius: var(--radius-round);
    background: var(--white);
    width: var(--s,1.5px);
    height: var(--s,1.5px);
    opacity: var(--o,.4);
    animation: twk var(--d,4s) ease-in-out infinite var(--del,0s);
}
@keyframes twk {
    0%,100% { opacity: var(--o,.4); }
    50% { opacity: .15; }
}
.bb-shoot {
    position: absolute;
    width: 90px;
    height: 3px;
    border-radius: 3px 0 0 3px;
    background: linear-gradient(90deg, rgba(var(--white-rgb), .9) 0%, rgba(var(--white-rgb), .4) 30%, transparent 100%);
    clip-path: polygon(0 10%, 100% 40%, 100% 60%, 0 90%);
    transform: scaleX(var(--sx, 1)) rotate(var(--sa, 32deg));
    opacity: 0;
    animation: shoot var(--sd,9s) linear infinite var(--sdel,0s);
}
.bb-shoot--long {
    width: 160px;
    height: 4px;
    background: linear-gradient(90deg, rgba(var(--white-rgb), 1) 0%, rgba(var(--white-rgb), .5) 25%, transparent 100%);
    clip-path: polygon(0 5%, 100% 42%, 100% 58%, 0 95%);
}
@keyframes shoot {
    0%   { transform: scaleX(var(--sx, 1)) rotate(var(--sa, 32deg)) translateX(-160px); opacity: 0; }
    2%   { opacity: .85; }
    7%   { opacity: 0; }
    100% { transform: scaleX(var(--sx, 1)) rotate(var(--sa, 32deg)) translateX(800px); opacity: 0; }
}

/* ============================================================
   HERO
   ============================================================ */
.bb-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-25) var(--space-6) var(--space-20);
    overflow: hidden;
}

/* Background */
.bb-hero__bg {
    position: absolute;
    inset: 0;
}
.bb-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    filter: contrast(1.1) saturate(1.15);
    image-rendering: auto;
}
.bb-hero__bg-fade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(7,6,11,.45) 0%, rgba(7,6,11,.08) 35%, rgba(7,6,11,.05) 65%, rgba(7,6,11,.55) 100%);
}

/* Hero shooting stars */
.bb-hero__shoots {
    position: absolute;
    inset: 0;
    z-index: var(--z-raised);
    pointer-events: none;
    overflow: hidden;
}

/* Content */
.bb-hero__inner {
    position: relative;
    z-index: var(--z-above);
    max-width: 680px;
}

/* Coming Soon pill */
.bb-pill {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-6);
    border-radius: var(--radius-pill);
    border: 1px solid rgba(var(--accent-blue-light-rgb), .2);
    background: rgba(var(--accent-blue-rgb), .08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-size: var(--text-size-sm);
    font-weight: 600;
    font-family: var(--font-body);
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--sky);
    margin-bottom: var(--space-7);
}
.bb-pill__dot {
    width: 14px;
    height: 14px;
    display: inline-block;
    position: relative;
    animation: star-blink 2s ease-in-out infinite;
}
.bb-pill__dot svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 4px rgba(var(--white-rgb), .7));
}
@keyframes star-blink {
    0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); }
    50% { opacity: .35; transform: scale(.6) rotate(15deg); }
}
@keyframes pulse-dot {
    0%,100% { opacity: 1; box-shadow: 0 0 8px var(--glow-purple); }
    50% { opacity: .4; box-shadow: 0 0 3px var(--glow-purple); }
}

/* Title */
.bb-hero__title {
    font-size: clamp(38px, 6vw, 74px);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -.045em;
    margin-bottom: var(--space-6);
}
@media (min-width: 481px) {
    .bb-hero__title { white-space: nowrap; }
}
/* Accent the "r" in Bortle */
.bb-r {
    color: var(--sky);
    font-style: italic;
    letter-spacing: .02em;
}

.bb-hero__tagline {
    font-family: var(--font-body);
    font-size: clamp(20px, 2.8vw, 28px);
    font-weight: 500;
    letter-spacing: .05em;
    margin-bottom: var(--space-9);
    background: linear-gradient(
        90deg,
        var(--grad-6),
        var(--primary-light),
        var(--accent-blue-light),
        var(--success-light),
        var(--white),
        var(--grad-6),
        var(--primary-light),
        var(--accent-blue-light)
    );
    background-size: 400% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: bb-shimmer 6s linear infinite;
    filter: drop-shadow(0 0 12px rgba(var(--accent-blue-rgb), .25));
}
@keyframes bb-shimmer {
    0%   { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.bb-hero__ctas {
    display: flex;
    gap: 14px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* Buttons */
.bb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 14px 30px;
    font-family: var(--font-body);
    font-size: var(--text-size-md);
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all .3s cubic-bezier(.4,0,.2,1);
}
.bb-btn--primary {
    background: var(--purple);
    color: var(--white);
    box-shadow: 0 0 20px var(--glow-purple), 0 0 60px rgba(var(--accent-violet-dark-rgb), .08);
}
.bb-btn--primary:hover {
    background: #6d28d9;
    box-shadow: 0 0 32px var(--glow-purple), 0 0 90px rgba(var(--accent-violet-dark-rgb), .14);
    transform: translateY(-2px);
}
.bb-btn--ghost {
    background: transparent;
    color: var(--txt);
    border: 1px solid var(--border);
}
.bb-btn--ghost:hover {
    border-color: var(--border-hi);
    background: rgba(var(--white-rgb), .03);
    color: var(--white);
}
.bb-btn--ghost .arrow { transition: transform .3s ease; }
.bb-btn--ghost:hover .arrow { transform: translateX(3px); }
.bb-btn--full { width: 100%; }

/* ============================================================
   FEATURES – sticky scroll with floating text
   ============================================================ */
.bb-features {
    position: relative;
    z-index: var(--z-raised);
    padding: 130px 0 var(--space-15);
    background: var(--surface);
}

/* Kept for waitlist section */
.bb-has-bg { position: relative; }
.bb-section-bg {
    position: absolute;
    inset: 0;
    z-index: var(--z-base);
    overflow: hidden;
}
.bb-section-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .55;
}
.bb-section-bg__fade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, var(--surface) 0%, rgba(15,15,23,.4) 15%, rgba(15,15,23,.4) 85%, var(--surface) 100%);
}
.bb-waitlist .bb-section-bg__fade {
    background:
        linear-gradient(180deg, var(--void) 0%, rgba(7,6,11,.82) 15%, rgba(7,6,11,.82) 85%, var(--void) 100%);
}
.bb-has-bg > .bb-container,
.bb-has-bg > .bb-waitlist__inner {
    position: relative;
    z-index: var(--z-raised);
}

.bb-section-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: var(--text-size-xs);
    font-weight: 600;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--sky);
    margin-bottom: var(--space-4);
    opacity: .8;
}

.bb-section-title {
    font-size: clamp(26px, 3.5vw, 40px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.03em;
    margin-bottom: var(--space-3);
}

.bb-features__head {
    text-align: center;
    margin-bottom: var(--space-20);
}

/* Sticky scroll layout */
.bb-scroll-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-15);
    align-items: start;
}

/* Sticky image */
.bb-scroll-img {
    position: sticky;
    top: 120px;
    height: fit-content;
}
.bb-scroll-img__inner {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(var(--black-rgb), .4);
}
.bb-scroll-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .6s ease, transform .6s ease;
    transform: scale(1.04);
}
.bb-scroll-photo.active {
    opacity: 1;
    transform: scale(1);
}

/* Scrolling text steps */
.bb-scroll-text {
    display: flex;
    flex-direction: column;
    padding-bottom: 40vh;
}

.bb-scroll-step {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-10) 0;
    opacity: .25;
    transform: translateY(20px);
    transition: opacity .5s ease, transform .5s ease;
}
.bb-scroll-step.active {
    opacity: 1;
    transform: translateY(0);
}

.bb-scroll-step__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-5);
    background: rgba(var(--accent-blue-rgb), .08);
    border: 1px solid rgba(var(--accent-blue-rgb), .12);
}
.bb-scroll-step:nth-child(3) .bb-scroll-step__icon { background: rgba(var(--accent-teal-rgb), .08); border-color: rgba(var(--accent-teal-rgb), .12); }
.bb-scroll-step:nth-child(4) .bb-scroll-step__icon { background: rgba(45,212,191,.08); border-color: rgba(45,212,191,.12); }

.bb-scroll-step__icon svg {
    width: 24px;
    height: 24px;
    stroke-width: 1.5;
    fill: none;
}

.bb-scroll-step h3 {
    font-size: var(--text-size-2xl);
    font-weight: 700;
    letter-spacing: -.02em;
    margin-bottom: var(--space-3);
}
.bb-scroll-step p {
    font-size: var(--text-size-base);
    line-height: 1.75;
    color: var(--txt-muted);
    max-width: 420px;
}

/* ============================================================
   WAITLIST
   ============================================================ */
.bb-waitlist {
    position: relative;
    z-index: var(--z-raised);
    padding: var(--space-30) 0 130px;
    background: var(--void);
    overflow: hidden;
}
.bb-waitlist::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(var(--accent-blue-rgb), .05), transparent 70%);
    pointer-events: none;
}

.bb-waitlist__inner {
    max-width: 540px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: var(--z-above);
}

.bb-waitlist__inner .bb-section-title { margin-bottom: 10px; }

/* Social proof */
.bb-proof {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: var(--space-5) 0 var(--space-9);
    font-size: var(--text-size-sm-plus);
    color: var(--txt-muted);
    font-family: var(--font-body);
}
.bb-proof__avatars {
    display: flex;
    margin-right: 2px;
}
.bb-proof__avatars span {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-round);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-size-sm);
    font-weight: 600;
    color: var(--white);
    border: 2px solid var(--void);
    margin-left: -8px;
}
.bb-proof__avatars span:first-child { margin-left: 0; }
.bb-proof__avatar--violet { background: var(--accent-violet-dark); }
.bb-proof__avatar--blue { background: var(--accent-blue); }
.bb-proof__avatar--teal { background: var(--accent-teal); }
.bb-proof__avatar--indigo { background: var(--accent-indigo); }
.bb-proof__avatar--purple { background: var(--accent-violet); }
.bb-proof__dot {
    width: 6px;
    height: 6px;
    border-radius: var(--radius-round);
    background: var(--teal);
    box-shadow: 0 0 8px var(--glow-teal);
    animation: pulse-dot 2.5s ease-in-out infinite;
}
.bb-proof__text { color: var(--txt-muted); }

/* Glass form card */
.bb-form-card {
    background: rgba(10,10,18,.65);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-hi);
    border-radius: 20px;
    padding: var(--space-9) var(--space-8);
    box-shadow: 0 24px 80px rgba(var(--black-rgb), .45), inset 0 1px 0 rgba(var(--white-rgb), .04);
}

/* Form */
.bb-form { text-align: left; }

.bb-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.bb-field { display: flex; flex-direction: column; gap: 6px; }
.bb-field--span { grid-column: 1 / -1; }

.bb-field label {
    font-size: var(--text-size-sm);
    font-weight: 500;
    color: var(--txt-muted);
    letter-spacing: .4px;
    font-family: var(--font-body);
}

.bb-field input,
.bb-field select {
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-size-md);
    font-family: var(--font-body);
    border-radius: 10px;
    border: 1px solid rgba(var(--white-rgb), .1);
    background: rgba(var(--white-rgb), .06);
    color: var(--white);
    outline: none;
    transition: border-color .3s, box-shadow .3s, background .3s;
    -webkit-appearance: none;
    appearance: none;
}
.bb-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%236e7681' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-color: rgba(var(--white-rgb), .06);
    padding-right: var(--space-9);
}
.bb-field input::placeholder { color: rgba(var(--white-rgb), .25); font-style: italic; }
.bb-field input:focus, .bb-field select:focus {
    border-color: rgba(var(--accent-violet-dark-rgb), .5);
    background: rgba(var(--white-rgb), .08);
    box-shadow: 0 0 0 3px rgba(var(--accent-violet-dark-rgb), .12);
}
.bb-field select option { background: var(--raised); color: var(--txt); }

/* Checkbox chips */
.bb-checks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2);
    margin-top: 2px;
}
@media (max-width: 480px) {
    .bb-checks { grid-template-columns: repeat(2, 1fr); }
}
.bb-check {
    display: flex;
    align-items: center;
    cursor: pointer;
}
.bb-check input {
    display: none;
}
.bb-check span {
    display: block;
    width: 100%;
    text-align: center;
    padding: 9px 14px;
    font-size: var(--text-size-sm-plus);
    font-family: var(--font-body);
    color: var(--txt-muted);
    border: 1px solid rgba(var(--white-rgb), .1);
    border-radius: var(--radius-pill);
    background: rgba(var(--white-rgb), .03);
    transition: all .25s ease;
    user-select: none;
}
.bb-check:hover span {
    border-color: rgba(var(--accent-blue-rgb), .3);
    color: var(--txt);
}
.bb-check input:checked + span {
    background: rgba(var(--accent-violet-dark-rgb), .15);
    border-color: rgba(var(--accent-violet-dark-rgb), .4);
    color: var(--white);
    box-shadow: 0 0 12px rgba(var(--accent-violet-dark-rgb), .1);
}

/* Bot-check notice under the waitlist form (Cloudflare Turnstile) */
/* --- Role selector cards --- */
.bb-role-section { margin-bottom: 14px; }
.bb-roles { display: flex; flex-direction: column; gap: var(--space-2); margin-top: var(--space-1); }
.bb-role { cursor: pointer; }
.bb-role input { display: none; }
.bb-role__card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: var(--space-3) var(--space-4);
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(var(--white-rgb), .02);
    transition: all .25s ease;
}
.bb-role__card:hover {
    border-color: var(--border-hi);
    background: rgba(var(--white-rgb), .04);
}
.bb-role input:checked + .bb-role__card {
    border-color: rgba(var(--accent-violet-dark-rgb), .45);
    background: rgba(var(--accent-violet-dark-rgb), .08);
    box-shadow: 0 0 20px rgba(var(--accent-violet-dark-rgb), .08), inset 0 0 0 1px rgba(var(--accent-violet-dark-rgb), .1);
}
.bb-role__emoji { font-size: var(--text-size-xl-plus); flex-shrink: 0; line-height: 1; }
.bb-role__text { display: flex; flex-direction: column; gap: 2px; }
.bb-role__title {
    font-size: var(--text-size-md);
    font-weight: 600;
    font-family: var(--font-body);
    color: var(--white);
    letter-spacing: -.01em;
}
.bb-role__sub {
    font-size: var(--text-size-sm);
    font-family: var(--font-body);
    color: var(--txt-muted);
    line-height: 1.3;
}
.bb-role input:checked + .bb-role__card .bb-role__title { color: var(--lilac); }
.bb-role input:checked + .bb-role__card .bb-role__sub { color: var(--txt); }

/* --- Creator social handle reveal --- */
.bb-creator-reveal {
    display: none;
    margin-top: 10px;
    padding: var(--space-3) 14px;
    background: rgba(var(--accent-teal-rgb), .06);
    border: 1px solid rgba(var(--accent-teal-rgb), .12);
    border-radius: 10px;
    animation: bbRevealIn .3s ease;
}
.bb-creator-reveal.active { display: block; }
.bb-creator-reveal__note {
    font-size: 12.5px;
    line-height: 1.55;
    font-family: var(--font-body);
    color: var(--txt);
    margin: 0 0 var(--space-3);
}
.bb-creator-reveal__label {
    display: block;
    font-size: var(--text-size-sm-plus);
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--mint);
    margin-bottom: var(--space-2);
}
.bb-creator-reveal__label span { font-weight: 400; color: var(--txt-dim); }
.bb-creator-reveal input[type="text"] {
    width: 100%;
    padding: 9px 14px;
    font-size: var(--text-size-sm-plus);
    font-family: var(--font-body);
    color: var(--white);
    background: rgba(var(--black-rgb), .3);
    border: 1px solid rgba(var(--accent-teal-rgb), .2);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color .2s;
}
.bb-creator-reveal input[type="text"]:focus { border-color: var(--mint); }
.bb-creator-reveal input[type="text"]::placeholder { color: var(--txt-dim); }
@keyframes bbRevealIn { from { opacity:0; transform: translateY(-6px); } to { opacity:1; transform: translateY(0); } }

/* --- Expandable optional field --- */
.bb-expandable { margin-bottom: 14px; }
.bb-expandable__toggle {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(var(--white-rgb), .02);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: var(--space-3) var(--space-4);
    width: 100%;
    cursor: pointer;
    font-size: var(--text-size-md);
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--txt-muted);
    transition: all .25s ease;
}
.bb-expandable__toggle:hover {
    border-color: var(--border-hi);
    background: rgba(var(--white-rgb), .04);
    color: var(--txt);
}
.bb-expandable__toggle span { font-weight: 400; color: var(--txt-dim); }
.bb-expandable__icon {
    margin-left: auto;
    flex-shrink: 0;
    transition: transform .25s ease;
    opacity: .5;
}
.bb-expandable.open .bb-expandable__icon { transform: rotate(45deg); opacity: .8; }
.bb-expandable.open .bb-expandable__toggle {
    border-color: rgba(var(--accent-violet-dark-rgb), .45);
    background: rgba(var(--accent-violet-dark-rgb), .08);
    color: var(--white);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-color: rgba(var(--accent-violet-dark-rgb), .15);
}
.bb-expandable__body {
    display: none;
    padding: var(--space-3) var(--space-4) 14px;
    background: rgba(var(--accent-violet-dark-rgb), .04);
    border: 1px solid rgba(var(--accent-violet-dark-rgb), .45);
    border-top: none;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    animation: bbRevealIn .25s ease;
}
.bb-expandable.open .bb-expandable__body { display: block; }
.bb-expandable__body textarea {
    width: 100%;
    padding: 10px 14px;
    font-size: var(--text-size-sm-plus);
    font-family: var(--font-body);
    color: var(--white);
    background: rgba(var(--black-rgb), .25);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color .2s;
    resize: vertical;
    min-height: 40px;
    max-height: 160px;
    overflow-y: auto;
    line-height: 1.5;
}
.bb-expandable__body textarea:focus { border-color: var(--lilac); }
.bb-expandable__body textarea::placeholder { color: var(--txt-dim); }



.bb-form-error {
    display: none;
    background: rgba(var(--rose-rgb), .1);
    border: 1px solid rgba(var(--rose-rgb), .3);
    border-radius: var(--radius);
    padding: 14px 18px;
    margin-bottom: 14px;
    font-size: var(--text-size-sm-plus);
    line-height: 1.5;
    color: #fda4af;
    font-family: var(--font-body);
    text-align: center;
}
.bb-form-error.active { display: block; }
.bb-form-error a {
    color: #f9a8d4;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.bb-form-error a:hover { color: var(--white); }

.bb-form__submit {
    margin-top: 10px;
    font-size: var(--text-size-md-plus);
    padding: 15px 30px;
    position: relative;
    overflow: hidden;
}
.bb-form__submit::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(var(--white-rgb), .1), transparent);
    transform: translateX(-100%);
    transition: transform .6s ease;
}
.bb-form__submit:hover::after {
    transform: translateX(100%);
}
.bb-form__submit:disabled {
    opacity: .5;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
}
.bb-form__submit:disabled::after { display: none; }

.bb-form__note {
    text-align: center;
    font-size: var(--text-size-sm);
    color: var(--txt-dim);
    margin-top: var(--space-4);
    font-family: var(--font-body);
}

/* Success */
.bb-success {
    display: none;
    text-align: center;
    padding: var(--space-10) 0;
    position: relative;
    animation: fade-up .5s ease forwards;
}
.bb-success.active { display: block; }

@keyframes fade-up {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Confetti container */
.bb-confetti {
    position: relative;
    width: 100%;
    height: 80px;
    margin-bottom: var(--space-2);
    overflow: visible;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bb-confetti__icon {
    font-size: var(--text-size-7xl);
    line-height: 1;
    opacity: 0;
    transform: scale(0);
    animation: confetti-icon .5s cubic-bezier(.34,1.56,.64,1) .6s forwards;
}
@keyframes confetti-icon {
    to { opacity: 1; transform: scale(1); }
}
.bb-confetti__piece {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: var(--w, 8px);
    height: var(--h, 14px);
    border-radius: var(--br, 2px);
    background: var(--c, var(--accent-violet-dark));
    opacity: 0;
    animation: confetti-burst var(--dur, 1.2s) cubic-bezier(.2,.8,.4,1) var(--del, 0s) forwards;
}
@keyframes confetti-burst {
    0%   { transform: translate(0, 0) rotate(0deg) scale(1); opacity: 1; }
    60%  { opacity: 1; }
    100% { transform: translate(var(--tx, 0px), var(--ty, -120px)) rotate(var(--tr, 360deg)) scale(.3); opacity: 0; }
}

.bb-success h3 { font-size: var(--text-size-2xl); margin-bottom: var(--space-2); }
.bb-success p { font-size: var(--text-size-md-plus); color: var(--txt-muted); margin-bottom: 0; }

/* Share section */
.bb-share {
    margin-top: var(--space-7);
    padding-top: var(--space-6);
    border-top: 1px solid var(--border);
}
.bb-share__label {
    display: block;
    font-size: var(--text-size-md-plus);
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0;
    text-transform: none;
    margin-bottom: 18px;
}
.bb-share__star {
    display: inline-block;
    color: var(--mint);
    font-size: var(--text-size-lg);
    filter: drop-shadow(0 0 6px rgba(45,212,191,.5));
    animation: star-blink 2s ease-in-out infinite;
    vertical-align: middle;
    margin-left: 2px;
}
.bb-share__buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}
.bb-share__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    font-size: var(--text-size-sm-plus);
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--txt);
    text-decoration: none;
    border: 1px solid rgba(var(--accent-teal-rgb), .15);
    border-radius: 10px;
    background: rgba(var(--white-rgb), .03);
    cursor: pointer;
    transition: all .25s ease;
}
.bb-share__btn:hover {
    background: rgba(var(--accent-teal-rgb), .08);
    border-color: rgba(var(--accent-teal-rgb), .35);
    color: var(--white);
    box-shadow: 0 0 20px rgba(var(--accent-teal-rgb), .08);
}
.bb-share__btn--copy { border-color: rgba(var(--accent-teal-rgb), .3); color: var(--mint); }
.bb-share__btn--copy:hover { background: rgba(var(--accent-teal-rgb), .12); border-color: rgba(var(--accent-teal-rgb), .5); box-shadow: 0 0 20px rgba(var(--accent-teal-rgb), .12); }
.bb-share__btn--copy.copied { border-color: rgba(var(--accent-teal-rgb), .5); background: rgba(var(--accent-teal-rgb), .15); }
.bb-share__btn--x:hover { background: rgba(var(--white-rgb), .08); border-color: rgba(var(--white-rgb), .2); }
.bb-share__btn--fb:hover { background: rgba(24,119,242,.12); border-color: rgba(24,119,242,.35); color: #4599FF; }
.bb-share__btn--linkedin:hover { background: rgba(10,102,194,.12); border-color: rgba(10,102,194,.35); color: #5B9BD5; }
.bb-share__btn--reddit:hover { background: rgba(255,69,0,.1); border-color: rgba(255,69,0,.3); color: #FF6634; }
.bb-share__btn--wa:hover { background: rgba(37,211,102,.1); border-color: rgba(37,211,102,.3); color: #25D366; }
.bb-share__btn--tg:hover { background: rgba(0,136,204,.1); border-color: rgba(0,136,204,.3); color: #29B6F6; }

/* Toast notification */
.bb-toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-size-sm-plus);
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--white);
    background: rgba(var(--accent-teal-rgb), .9);
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(var(--black-rgb), .4);
    opacity: 0;
    transition: opacity .3s ease, transform .3s ease;
    z-index: var(--z-toast);
    pointer-events: none;
}
.bb-toast.active {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 480px) {
    .bb-share__buttons { flex-wrap: wrap; }
    .bb-share__btn--copy { width: 100%; }
}

/* ============================================================
   FOOTER / BACK LINK
   ============================================================ */
.bb-foot {
    position: relative;
    z-index: var(--z-raised);
    text-align: center;
    padding: 44px var(--space-6);
    border-top: 1px solid var(--border);
    background: var(--void);
}
.bb-foot a {
    font-family: var(--font-body);
    font-size: var(--text-size-sm-plus);
    color: var(--txt-dim);
    text-decoration: none;
    transition: color .3s;
}
.bb-foot a:hover { color: var(--txt-muted); }
.bb-foot__patent {
    display: block;
    margin-top: 6px;
    font-size: var(--text-size-sm);
    color: var(--txt-dim);
    opacity: .45;
    font-family: var(--font-body);
    letter-spacing: .3px;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.bb-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .75s cubic-bezier(.16,1,.3,1), transform .75s cubic-bezier(.16,1,.3,1);
}
.bb-reveal.vis {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   FREE LIGHT POLLUTION MAP SECTION  §16.2.1
   ============================================================ */
.bb-lp-section {
    position: relative;
    z-index: var(--z-raised);
    padding: var(--space-25) 0 var(--space-20);
    background: linear-gradient(180deg, transparent, rgba(var(--accent-blue-light-rgb), .04), transparent);
    border-top: 1px solid var(--border);
    text-align: center;
}
.bb-lp-lead {
    max-width: 680px;
    margin: var(--space-5) auto 52px;
    font-size: clamp(15px, 1.6vw, 17px);
    line-height: 1.7;
    color: var(--txt-muted);
    font-family: var(--font-body);
}
.bb-lp-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    max-width: 860px;
    margin: 0 auto 52px;
}
.bb-lp-feature {
    background: rgba(var(--white-rgb), .03);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-8) var(--space-6);
    transition: border-color .3s, background .3s;
}
.bb-lp-feature:hover {
    border-color: rgba(var(--accent-blue-light-rgb), .35);
    background: rgba(var(--accent-blue-light-rgb), .05);
}
.bb-lp-icon {
    display: block;
    font-size: var(--text-size-4xl);
    margin-bottom: 14px;
}
.bb-lp-feature h3 {
    font-family: inherit; /* was var(--font-head), never defined, so it always inherited */
    font-size: var(--text-size-md-plus);
    font-weight: 600;
    color: var(--txt);
    margin: 0 0 var(--space-2);
}
.bb-lp-feature p {
    font-size: var(--text-size-sm-plus);
    color: var(--txt-dim);
    line-height: 1.5;
    margin: 0;
    font-family: var(--font-body);
}
.bb-lp-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
}
.bb-lp-meta {
    font-size: 12.5px;
    color: var(--txt-dim);
    font-family: var(--font-body);
    margin: 0;
    letter-spacing: .2px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .bb-scroll-wrap { gap: var(--space-10); }
    .bb-scroll-step { min-height: 60vh; }
}

@media (max-width: 768px) {
    .bb-hero { padding: 130px var(--space-5) var(--space-20); min-height: auto; }
    .bb-hero__ctas { flex-direction: column; max-width: 280px; margin: 0 auto; }
    .bb-hero__ctas .bb-btn { width: 100%; }
    .bb-features, .bb-waitlist { padding: var(--space-20) 0; }
    .bb-lp-section { padding: 70px 0 var(--space-15); }
    .bb-lp-features { grid-template-columns: 1fr; max-width: 340px; margin-left: auto; margin-right: auto; }
    .bb-scroll-wrap { grid-template-columns: 1fr; }
    .bb-scroll-img { position: relative; top: 0; }
    .bb-scroll-step { min-height: auto; padding: var(--space-8) 0; }
    .bb-form__row { grid-template-columns: 1fr; }
    .bb-form-card { padding: var(--space-7) var(--space-5); }
    .bb-features__head { margin-bottom: 44px; }
}

/* ============================================================
   BB Footer — bortlebuddy.com specific (bb-footer.php)
   ============================================================ */

.bb-footer {
    background: #080c18;
    border-top: 1px solid rgba(var(--white-rgb), 0.07);
}

.bb-footer-grid {
    grid-template-columns: 1.8fr 1fr 1fr 1fr;
}

.bb-footer-logo {
    font-family: 'Syne', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--white) 0%, #a8c5e8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 0.85rem;
}

.bb-footer-parent {
    font-size: 0.78rem;
    color: rgba(232,234,246,0.4);
    margin-top: 0.75rem;
}

.bb-footer-parent a {
    color: rgba(232,234,246,0.55);
    text-decoration: none;
    transition: color 0.15s ease;
}

.bb-footer-parent a:hover { color: var(--white); }

.bb-footer-contact .contact-location {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0;
    font-size: 0.875rem;
    color: rgba(232,234,246,0.6);
}

@media (max-width: 1024px) {
    .bb-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .bb-footer .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {
    .bb-hero__title { font-size: var(--text-size-4xl); }
    .bb-scroll-step h3 { font-size: var(--text-size-xl); }
    .bb-scroll-step p { font-size: var(--text-size-md); }
}
