/* biptest.com shared styles — dark theme, matches Bippsi visual language */

:root {
    --bg:      #060a10;
    --bg-2:    #0b1220;
    --card:    #0f172a;
    --bord:    #1e293b;
    --bord-2:  #334155;
    --fg:      #e2e8f0;
    --fg-dim:  #94a3b8;
    --muted:   #64748b;
    --acc:     #3b82f6;
    --pur:     #a855f7;
    --green:   #22c55e;
    --amber:   #f59e0b;
    --red:     #ef4444;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    background: var(--bg);
    color: var(--fg);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.65;
    font-size: 16px;
    min-height: 100vh;
    /* Subtle dot-grid so pages never feel blank */
    background-image:
        radial-gradient(circle at 25% 10%, rgba(59,130,246,.05), transparent 40%),
        radial-gradient(circle at 80% 90%, rgba(168,85,247,.05), transparent 40%),
        radial-gradient(rgba(148,163,184,0.04) 1px, transparent 1px);
    background-size: auto, auto, 28px 28px;
    background-attachment: fixed;
}

a { color: var(--acc); text-decoration: none; }
a:hover { text-decoration: underline; }
code, pre, .mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
code { background: rgba(59,130,246,.08); color: #93c5fd; padding: 2px 6px; border-radius: 4px; font-size: .88em; }

/* ── Top nav ──────────────────────────────────────── */
.bt-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(12px);
    background: rgba(6,10,16,0.75);
    border-bottom: 1px solid var(--bord);
}
.bt-nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.bt-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 18px;
    color: var(--fg);
    text-decoration: none;
}
.bt-logo:hover { text-decoration: none; }
.bt-logo-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: linear-gradient(135deg, var(--acc), var(--pur));
    box-shadow: 0 0 12px rgba(59,130,246,0.6);
    animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%,100% { opacity: .6; transform: scale(1); }
    50%     { opacity: 1;  transform: scale(1.15); }
}
.bt-logo-dim { color: var(--muted); font-weight: 600; }
.bt-nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.bt-nav-links a {
    color: var(--fg-dim);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all .15s;
    text-decoration: none;
}
.bt-nav-links a:hover { color: var(--fg); background: rgba(255,255,255,0.04); }
.bt-nav-links a.bt-cta {
    color: var(--fg);
    background: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(168,85,247,0.15));
    border: 1px solid rgba(59,130,246,0.25);
}
.bt-nav-links a.bt-cta:hover {
    background: linear-gradient(135deg, rgba(59,130,246,0.25), rgba(168,85,247,0.25));
}

.bt-paid-banner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px 24px;
    background: rgba(34,197,94,0.08);
    border-top: 1px solid rgba(34,197,94,0.2);
    color: #86efac;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: paid-slide .4s ease-out;
}
@keyframes paid-slide {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.bt-paid-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px rgba(34,197,94,0.6);
    animation: pulse-dot 1.5s ease-in-out infinite;
}
.bt-paid-banner code {
    background: rgba(34,197,94,0.1);
    color: #86efac;
    font-size: 12px;
}

/* ── Main content area ───────────────────────────── */
.bt-main {
    max-width: 820px;
    margin: 0 auto;
    padding: 48px 24px 120px;
}
.bt-hero h1 {
    font-size: clamp(2em, 5vw, 3em);
    font-weight: 900;
    margin: 0 0 12px;
    line-height: 1.1;
    background: linear-gradient(90deg, var(--acc), var(--pur));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.bt-hero p {
    color: var(--fg-dim);
    font-size: 1.1em;
    margin: 0 0 32px;
}

h1, h2, h3 { color: var(--fg); font-weight: 700; line-height: 1.25; }
h2 { font-size: 1.5em; margin: 36px 0 12px; }
h3 { font-size: 1.15em; margin: 24px 0 8px; }
p  { margin: 0 0 16px; color: #cbd5e1; }
ul, ol { color: #cbd5e1; padding-left: 22px; }
li { margin: 6px 0; }

/* Cards (priced-route tiles on home) */
.bt-card {
    background: var(--card);
    border: 1px solid var(--bord);
    border-radius: 14px;
    padding: 20px 22px;
    margin: 0 0 14px;
    transition: all .2s;
    position: relative;
}
.bt-card:hover { border-color: var(--bord-2); transform: translateY(-2px); }
.bt-card h3 { margin: 0 0 6px; font-size: 1.1em; }
.bt-card h3 a { color: var(--fg); }
.bt-card h3 a:hover { color: var(--acc); text-decoration: none; }
.bt-card p { margin: 0; font-size: .95em; color: var(--fg-dim); }

.bt-price {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(59,130,246,0.1);
    color: var(--acc);
    padding: 2px 10px;
    border-radius: 999px;
    font-size: .78em;
    font-weight: 700;
    margin-left: 8px;
    vertical-align: middle;
    border: 1px solid rgba(59,130,246,0.18);
}
.bt-price.bt-price-lg { background: rgba(168,85,247,0.1); color: var(--pur); border-color: rgba(168,85,247,0.22); }
.bt-price.bt-price-premium {
    background: linear-gradient(135deg, rgba(245,158,11,0.12), rgba(239,68,68,0.12));
    color: var(--amber);
    border-color: rgba(245,158,11,0.3);
}
.bt-price-coin {
    width: 12px; height: 12px; border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #fde68a, #f59e0b 70%);
    display: inline-block;
    box-shadow: inset -1px -1px 2px rgba(0,0,0,0.3), 0 0 6px rgba(245,158,11,0.4);
}

/* Tiny pulse-glow dot next to priced-route links on home */
.bt-route-led {
    display: inline-block;
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--muted);
    margin-left: 6px;
    vertical-align: middle;
    transition: all .3s;
}
.bt-route-led.led-402 { background: var(--amber); box-shadow: 0 0 10px rgba(245,158,11,0.7); }
.bt-route-led.led-paid { background: var(--green); box-shadow: 0 0 10px rgba(34,197,94,0.7); }

/* Article body */
article.bt-article {
    background: var(--card);
    border: 1px solid var(--bord);
    border-radius: 16px;
    padding: 40px 44px;
    font-family: Georgia, 'Iowan Old Style', serif;
    font-size: 17.5px;
    line-height: 1.85;
    color: #cbd5e1;
}
article.bt-article h1, article.bt-article h2, article.bt-article h3 {
    font-family: 'Inter', sans-serif;
}
article.bt-article .dropcap::first-letter {
    font-size: 3.2em;
    float: left;
    line-height: .9;
    padding: 6px 12px 0 0;
    color: var(--pur);
    font-weight: 800;
    font-family: 'Inter', sans-serif;
}
article.bt-article blockquote {
    border-left: 3px solid var(--acc);
    padding: 6px 20px;
    margin: 26px 0;
    background: rgba(59,130,246,0.05);
    color: #e2e8f0;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}
article.bt-article .bt-article-meta {
    color: var(--muted);
    font-size: .8em;
    font-family: 'Inter', sans-serif;
    margin-bottom: 32px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}
article.bt-article .bt-article-meta .sep { color: var(--bord-2); }
article.bt-article .bt-endmark {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px dashed var(--bord);
    color: var(--muted);
    font-style: italic;
    font-size: .9em;
    font-family: 'Inter', sans-serif;
}

/* Generic note / callout block */
.bt-note {
    border-left: 3px solid var(--acc);
    padding: 14px 18px;
    background: rgba(59,130,246,0.05);
    color: #cbd5e1;
    font-size: .9em;
    margin: 24px 0;
    border-radius: 0 8px 8px 0;
}
.bt-note strong { color: var(--fg); }
.bt-note-amber { border-left-color: var(--amber); background: rgba(245,158,11,0.06); }
.bt-note-amber strong { color: #fde68a; }

/* Form (contact page) */
form.bt-form {
    background: var(--card);
    border: 1px solid var(--bord);
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0;
}
form.bt-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--fg-dim);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .03em;
}
form.bt-form input,
form.bt-form textarea {
    width: 100%;
    margin-bottom: 16px;
    padding: 12px 14px;
    background: var(--bg);
    border: 1px solid var(--bord);
    border-radius: 8px;
    color: var(--fg);
    font-family: inherit;
    font-size: 15px;
    transition: border-color .15s;
}
form.bt-form input:focus,
form.bt-form textarea:focus { outline: none; border-color: var(--acc); }

.bt-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--acc), var(--pur));
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all .15s;
    text-decoration: none;
}
.bt-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(59,130,246,0.25); text-decoration: none; }
.bt-btn-ghost {
    background: transparent;
    border: 1px solid var(--bord);
    color: var(--fg-dim);
}
.bt-btn-ghost:hover { border-color: var(--acc); color: var(--fg); box-shadow: none; }

/* Product card (buy page) */
.bt-product {
    background: var(--card);
    border: 1px solid var(--bord);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    margin: 24px 0;
    position: relative;
    overflow: hidden;
}
.bt-product::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; right: -50%; bottom: -50%;
    background: radial-gradient(circle, rgba(168,85,247,0.08), transparent 60%);
    pointer-events: none;
}
.bt-product-price {
    font-size: 3em;
    font-weight: 900;
    background: linear-gradient(135deg, var(--acc), var(--pur));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 12px 0;
    position: relative;
}
.bt-product-image {
    width: 72px; height: 72px;
    margin: 0 auto 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(59,130,246,0.2), rgba(168,85,247,0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
}

/* ── Footer ──────────────────────────────────────── */
.bt-footer {
    border-top: 1px solid var(--bord);
    padding: 32px 0;
    background: rgba(11,18,32,0.5);
}
.bt-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}
.bt-footer-brand {
    color: var(--muted);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.bt-footer-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}
.bt-footer-links a {
    color: var(--fg-dim);
    font-size: 13px;
    text-decoration: none;
}
.bt-footer-links a:hover { color: var(--fg); }

/* ── Server-side terminal (bottom strip) ───────────── */
.bt-terminal {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #000;
    border-top: 1px solid var(--bord);
    color: #86efac;
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 11px;
    line-height: 1.55;
    z-index: 40;
    transition: height .2s;
    /* Open by default: ~9 visible lines (header + 8 lines of content). User
       can still click to collapse. Previous default of 36px was barely
       visible and visitors missed it. */
    height: 180px;
    overflow: hidden;
}
.bt-terminal.collapsed { height: 36px; }
.bt-terminal.open { height: 260px; }
.bt-terminal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    cursor: pointer;
    user-select: none;
}
.bt-terminal-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #6ee7b7;
    font-size: 11px;
}
.bt-terminal-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 6px rgba(34,197,94,0.7);
    animation: pulse-dot 2s ease-in-out infinite;
}
.bt-terminal-expand {
    color: var(--muted);
    font-size: 11px;
    transition: transform .2s;
}
.bt-terminal.open .bt-terminal-expand { transform: rotate(180deg); }
.bt-terminal-body {
    padding: 8px 16px;
    overflow-y: auto;
    /* Default state: 180px - ~32px header = ~148px visible body (~9 lines) */
    height: calc(100% - 32px);
}
.bt-terminal-body .line { white-space: pre-wrap; word-break: break-all; }
.bt-terminal-body .line-402 { color: #fcd34d; }
.bt-terminal-body .line-200 { color: #86efac; }
.bt-terminal-body .line-403 { color: #fca5a5; }
.bt-terminal-body .line-info { color: #93c5fd; }
.bt-terminal-body .ts { color: var(--muted); margin-right: 8px; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}

/* Narrow screens */
@media (max-width: 640px) {
    .bt-nav-inner { padding: 12px 16px; }
    .bt-main { padding: 28px 16px 120px; }
    .bt-nav-links a { padding: 6px 8px; font-size: 13px; }
    article.bt-article { padding: 24px 22px; font-size: 16px; }
    .bt-terminal { font-size: 10px; }
}
