/* ========================================
   TRIAD — Design System v2
   ======================================== */

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

:root {
    --bg: #08080c;
    --bg-card: rgba(255, 255, 255, 0.025);
    --bg-card-hover: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.14);
    --text: #e8e8ed;
    --text-dim: #8b8b9e;
    --text-muted: #55556a;
    --text-faint: #33334a;
    --green: #5eead4;
    --red: #f87171;
    --blue: #7dd3fc;
    --green-glow: rgba(94, 234, 212, 0.12);
    --red-glow: rgba(248, 113, 113, 0.12);
    --blue-glow: rgba(125, 211, 252, 0.12);
    --mono: "SF Mono", "Fira Code", "JetBrains Mono", Menlo, Consolas, monospace;
    --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --radius: 16px;
    --radius-sm: 10px;
}

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-weight: 400;
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ---------- Grain ---------- */

.grain {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 180px;
}

/* ---------- Selection ---------- */
::selection { background: rgba(94, 234, 212, 0.2); color: #fff; }

a { color: var(--text-dim); transition: color 0.2s; }
a:hover { color: var(--text); }

.hidden { display: none !important; }
.view { display: none; }
.view.active { display: block; }

/* ---------- Scroll reveal ---------- */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--delay, 0s);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Nav ---------- */

nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 28px;
    background: rgba(8, 8, 12, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

.nav-brand {
    font-family: var(--mono);
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    color: #fff;
    cursor: pointer;
}

.nav-right { display: flex; align-items: center; gap: 20px; }

.nav-credits { font-size: 0.8rem; color: var(--text-muted); cursor: pointer; }
.nav-credits:hover { color: var(--text-dim); }

.nav-link { font-size: 0.8rem; color: var(--text-faint); cursor: pointer; transition: color 0.2s; }
.nav-link:hover { color: var(--text-dim); }

/* ========================================
   LANDING PAGE
   ======================================== */

.landing { position: relative; }

/* ---------- Hero ---------- */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 24px;
    position: relative;
    overflow: hidden;
}

/* Interactive gradient that follows mouse */
.hero-glow {
    position: absolute;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(94, 234, 212, 0.07) 0%, rgba(125, 211, 252, 0.03) 40%, transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: left 0.3s ease, top 0.3s ease;
    left: 50%;
    top: 50%;
    z-index: 0;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 40% at 50% 10%, rgba(94, 234, 212, 0.05) 0%, transparent 60%),
        radial-gradient(ellipse 30% 30% at 85% 70%, rgba(248, 113, 113, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse 30% 30% at 15% 70%, rgba(125, 211, 252, 0.04) 0%, transparent 50%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

/* Triangle */

.tri-container {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
}

.tri-mark {
    width: 140px;
    height: 122px;
    animation: float 8s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-6px) rotate(0.5deg); }
    66% { transform: translateY(-3px) rotate(-0.5deg); }
}

.tri-line {
    animation: line-pulse 4s ease-in-out infinite;
}

@keyframes line-pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

.tri-halo {
    animation: halo-breathe 4s ease-in-out infinite;
}

@keyframes halo-breathe {
    0%, 100% { r: 18; opacity: 0.6; }
    50% { r: 24; opacity: 1; }
}

.tri-node {
    animation: node-pulse 3s ease-in-out infinite;
}

.n1 { animation-delay: 0s; }
.n2 { animation-delay: 1s; }
.n3 { animation-delay: 2s; }

@keyframes node-pulse {
    0%, 100% { r: 5; opacity: 0.8; }
    50% { r: 7; opacity: 1; }
}

/* Title */

.hero-title {
    font-family: var(--mono);
    font-size: 5.5rem;
    font-weight: 800;
    letter-spacing: 0.35em;
    color: #fff;
    margin-bottom: 16px;
    background: linear-gradient(180deg, #ffffff 0%, rgba(255,255,255,0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-tagline {
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--text-dim);
    margin-bottom: 24px;
    letter-spacing: 0.04em;
}

.hero-sub {
    font-size: 1.05rem;
    font-weight: 300;
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto 12px;
}

.hero-sub2 {
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--text-dim);
    margin: 0 auto 40px;
}

.hero-note {
    margin-top: 16px;
    font-size: 0.78rem;
    color: var(--text-faint);
    letter-spacing: 0.04em;
}

/* ---------- CTA button ---------- */

.cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--green), #38bdf8);
    color: #08080c;
    border: none;
    font-family: var(--sans);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 15px 36px;
    border-radius: 50px;
    cursor: pointer;
    letter-spacing: 0.01em;
    transition: all 0.3s ease;
    box-shadow:
        0 0 20px rgba(94, 234, 212, 0.2),
        0 0 60px rgba(94, 234, 212, 0.08);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.15) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.cta:hover::before {
    transform: translateX(100%);
}

.cta:hover {
    box-shadow:
        0 0 30px rgba(94, 234, 212, 0.3),
        0 0 80px rgba(94, 234, 212, 0.12);
    transform: translateY(-2px);
    color: #08080c;
    border: none;
}

.cta svg { transition: transform 0.2s; }
.cta:hover svg { transform: translateX(3px); }

/* ---------- Sections ---------- */

.section {
    max-width: 820px;
    margin: 0 auto;
    padding: 64px 24px;
    position: relative;
}

.section-label {
    font-family: var(--mono);
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    color: var(--text-dim);
    text-align: center;
    margin-bottom: 44px;
}

/* ---------- Agent cards ---------- */

.agents-row {
    display: flex;
    gap: 28px;
}

.agent-card {
    flex: 1;
    text-align: center;
    padding: 44px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.agent-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.agent-card-optimist::before { background: linear-gradient(90deg, transparent, var(--green), transparent); }
.agent-card-pessimist::before { background: linear-gradient(90deg, transparent, var(--red), transparent); }
.agent-card-realist::before { background: linear-gradient(90deg, transparent, var(--blue), transparent); }

.agent-card:hover::before { opacity: 1; }

.agent-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
}

.agent-card-optimist:hover { box-shadow: 0 20px 60px -10px rgba(94, 234, 212, 0.12); }
.agent-card-pessimist:hover { box-shadow: 0 20px 60px -10px rgba(248, 113, 113, 0.12); }
.agent-card-realist:hover { box-shadow: 0 20px 60px -10px rgba(125, 211, 252, 0.12); }

.agent-icon {
    margin-bottom: 20px;
}

.agent-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 auto;
}

.dot-optimist  { background: var(--green); box-shadow: 0 0 16px var(--green-glow), 0 0 4px var(--green); }
.dot-pessimist { background: var(--red); box-shadow: 0 0 16px var(--red-glow), 0 0 4px var(--red); }
.dot-realist   { background: var(--blue); box-shadow: 0 0 16px var(--blue-glow), 0 0 4px var(--blue); }

.agent-card-name {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    color: var(--text-dim);
    margin-bottom: 16px;
}

.agent-card-desc {
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--text-muted);
    line-height: 1.75;
}

/* ---------- Demo window ---------- */

.section-demo {
    max-width: 720px;
}

.demo-window {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.5);
}

.demo-chrome {
    display: flex;
    gap: 6px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border);
}

.demo-chrome .demo-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.demo-body {
    padding: 28px;
    min-height: 320px;
}

.demo-question {
    font-size: 1rem;
    color: var(--text-dim);
    font-style: italic;
    margin-bottom: 20px;
    min-height: 1.6em;
}

.demo-transcript {
    margin-bottom: 20px;
}

.demo-entry {
    margin-bottom: 14px;
    padding-left: 14px;
    border-left: 2px solid var(--border);
    animation: fade-slide-in 0.4s ease forwards;
}

@keyframes fade-slide-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.demo-agent {
    font-family: var(--mono);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    margin-bottom: 3px;
}

.demo-agent-text {
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--text-dim);
    line-height: 1.6;
}

.demo-typing {
    display: inline-flex;
    gap: 4px;
    padding: 4px 0;
}

.demo-typing span {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text-muted);
    animation: typing-dot 1.4s ease-in-out infinite;
}

.demo-typing span:nth-child(2) { animation-delay: 0.2s; }
.demo-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-dot {
    0%, 80%, 100% { opacity: 0.3; transform: scale(1); }
    40% { opacity: 1; transform: scale(1.2); }
}

.demo-verdict-box {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: rgba(94, 234, 212, 0.03);
    display: none;
    animation: fade-slide-in 0.5s ease forwards;
}

.demo-verdict-box.show { display: block; }

.demo-verdict-label {
    font-family: var(--mono);
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    color: var(--green);
    margin-bottom: 10px;
    opacity: 0.7;
}

.demo-verdict {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text);
    line-height: 1.7;
}

/* ---------- How it works ---------- */

.how-it-works {
    max-width: 520px;
    margin: 0 auto;
}

.how-step {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 40px;
    padding: 24px;
    border-radius: var(--radius-sm);
    transition: background 0.3s;
}

.how-step:hover { background: var(--bg-card); }

.how-step:last-child { margin-bottom: 0; }

.how-num {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--green);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(94, 234, 212, 0.2);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 2px;
}

.how-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.how-desc {
    font-size: 0.92rem;
    font-weight: 300;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ---------- Sample verdicts ---------- */

.sample-card {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 16px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.sample-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 20%;
    bottom: 20%;
    width: 2px;
    background: linear-gradient(180deg, var(--green), var(--blue));
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.3s;
}

.sample-card:hover::before { opacity: 1; }

.sample-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-hover);
    box-shadow: 0 16px 50px -12px rgba(0, 0, 0, 0.4);
}

.sample-question {
    font-size: 0.95rem;
    color: var(--text-dim);
    font-style: italic;
    margin-bottom: 16px;
    font-weight: 400;
}

.sample-verdict {
    font-size: 0.92rem;
    font-weight: 300;
    color: #aaa;
    line-height: 1.8;
}

/* ---------- Final CTA ---------- */

.section-final {
    text-align: center;
    padding-bottom: 80px;
}

.final-card {
    padding: 64px 40px;
    border-radius: 24px;
    border: 1px solid var(--border);
    background:
        radial-gradient(ellipse at 30% 0%, rgba(94, 234, 212, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 100%, rgba(125, 211, 252, 0.04) 0%, transparent 50%),
        var(--bg-card);
    position: relative;
    overflow: hidden;
}

.final-card::before {
    content: "";
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--green), var(--blue), transparent);
    opacity: 0.5;
}

.final-heading {
    font-size: 2.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.final-sub {
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.pricing-chips {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.chip {
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--text-dim);
    padding: 7px 18px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--bg-card);
    transition: border-color 0.2s;
}

.chip:hover { border-color: var(--border-hover); }

.landing-signin {
    margin-top: 20px;
    font-size: 0.82rem;
    color: var(--text-faint);
}

.landing-signin a { color: var(--text-muted); }
.landing-signin a:hover { color: var(--text); }

/* ---------- Footer ---------- */

.landing-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 40px 24px;
    border-top: 1px solid var(--border);
    font-size: 0.75rem;
    color: var(--text-faint);
}

.footer-brand {
    font-family: var(--mono);
    letter-spacing: 0.15em;
}

/* ========================================
   AUTH
   ======================================== */

.auth-box {
    max-width: 380px;
    margin: 0 auto;
    padding: 120px 24px 60px;
}

.auth-box h2 {
    font-family: var(--mono);
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    color: var(--text-dim);
    margin-bottom: 28px;
}

.auth-box input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text);
    font-family: var(--sans);
    font-size: 0.95rem;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    outline: none;
    margin-bottom: 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-box input:focus {
    border-color: rgba(94, 234, 212, 0.3);
    box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.05);
}
.auth-box input::placeholder { color: var(--text-faint); }
.auth-box button { width: 100%; margin-top: 8px; }

.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.auth-error { color: var(--red); font-size: 0.85rem; margin-bottom: 16px; }
.auth-toggle { margin-top: 20px; font-size: 0.82rem; color: var(--text-muted); text-align: center; }

/* ========================================
   MAIN APP VIEWS
   ======================================== */

.main-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse 50% 40% at 50% 20%, rgba(94, 234, 212, 0.03) 0%, transparent 60%),
        radial-gradient(ellipse 30% 30% at 80% 80%, rgba(248, 113, 113, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

.main-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 100px 24px 60px;
}

.main-header {
    text-align: center;
    margin-bottom: 40px;
}

.main-tri {
    width: 48px;
    height: 42px;
    margin-bottom: 20px;
    opacity: 0.7;
}

.main-prompt {
    font-family: var(--sans);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.main-hint {
    font-size: 0.88rem;
    font-weight: 300;
    color: var(--text-muted);
}

.main-input-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: border-color 0.3s;
}

.main-input-wrap:focus-within {
    border-color: rgba(94, 234, 212, 0.15);
}

.main-input-wrap textarea {
    background: transparent;
    border: none;
    padding: 0;
    font-size: 1.05rem;
    line-height: 1.8;
    resize: none;
    min-height: 120px;
}

.main-input-wrap textarea:focus {
    border: none;
    box-shadow: none;
}

.cta-ask {
    padding: 12px 28px;
    font-size: 0.88rem;
}

textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text);
    font-family: var(--sans);
    font-size: 1rem;
    padding: 16px;
    border-radius: var(--radius-sm);
    resize: vertical;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

textarea:focus {
    border-color: rgba(94, 234, 212, 0.3);
    box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.05);
}
textarea::placeholder { color: var(--text-faint); }

.main-row { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
.char-hint { font-size: 0.7rem; color: var(--text-faint); }

button {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text);
    font-family: var(--sans);
    font-size: 0.9rem;
    padding: 10px 28px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

button:hover { border-color: rgba(255, 255, 255, 0.2); color: #fff; }
button:disabled { opacity: 0.35; cursor: default; }

.no-credits { margin-top: 24px; color: var(--text-muted); font-size: 0.9rem; }
.no-credits button { margin-top: 8px; }

/* ---------- Deliberating ---------- */

.status { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 24px; }

#live-transcript .round-label {
    font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.15em;
    color: var(--text-faint); margin: 24px 0 10px;
}

#live-transcript .debate-entry {
    margin-bottom: 14px; padding-left: 14px;
    border-left: 2px solid rgba(255,255,255,0.05); opacity: 0.5;
}

/* ---------- Result ---------- */

.verdict-box {
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
}

.verdict-label {
    font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.2em;
    color: var(--text-muted); margin-bottom: 16px;
}

#verdict-text { color: #f0f0f0; font-size: 1.05rem; line-height: 1.8; font-weight: 300; }

.result-actions { display: flex; gap: 12px; margin-top: 24px; }

.toggle-debate { color: var(--text-faint); border-color: transparent; }
.toggle-debate:hover { color: var(--text-dim); border-color: transparent; }

/* ---------- Debate transcript ---------- */

#debate-transcript { margin-top: 24px; }

.round-label {
    font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.15em;
    color: var(--text-faint); margin: 28px 0 12px;
}
.round-label:first-child { margin-top: 0; }

.debate-entry { margin-bottom: 18px; padding-left: 16px; border-left: 2px solid rgba(255,255,255,0.06); }

.agent-name { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; margin-bottom: 4px; }
.agent-text { font-size: 0.88rem; font-weight: 300; color: var(--text-dim); line-height: 1.7; }

.agent-optimist  { color: var(--green); }
.agent-pessimist { color: var(--red); }
.agent-realist   { color: var(--blue); }

.border-optimist  { border-left-color: var(--green); }
.border-pessimist { border-left-color: var(--red); }
.border-realist   { border-left-color: var(--blue); }

/* ---------- History ---------- */

.history-title { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.15em; color: var(--text-muted); margin-bottom: 28px; }
.history-item { padding: 16px 0; border-bottom: 1px solid var(--border); cursor: pointer; transition: background 0.2s; }
.history-item:hover { background: rgba(255,255,255,0.02); }
.history-date { font-size: 0.7rem; color: var(--text-faint); margin-bottom: 4px; }
.history-question { font-size: 0.9rem; color: #aaa; }
.history-verdict { margin-top: 12px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.88rem; color: var(--text-dim); line-height: 1.7; display: none; }
.history-item.expanded .history-verdict { display: block; }
.history-empty { color: var(--text-faint); font-size: 0.9rem; }
.back-btn { margin-top: 24px; font-size: 0.8rem; color: var(--text-faint); border-color: var(--border); }

/* ---------- Buy credits ---------- */

.buy-balance { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 24px; }
.pack-btn { width: 100%; display: flex; justify-content: space-between; padding: 14px 18px; margin-bottom: 10px; font-size: 0.9rem; border-radius: var(--radius-sm); }
.pack-btn .pack-price { color: var(--text-muted); }
.pack-btn:hover .pack-price { color: #aaa; }
.payments-offline { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 20px; }
.method-tabs { display: flex; margin-bottom: 20px; border-bottom: 1px solid var(--border); }
.method-tab { padding: 8px 20px; font-size: 0.8rem; color: var(--text-muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color 0.2s; }
.method-tab:hover { color: var(--text-dim); }
.method-tab.active { color: var(--text); border-bottom-color: var(--green); }
.crypto-pick-label { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 12px; }
.crypto-choose { display: flex; gap: 10px; margin-bottom: 20px; }
.crypto-opt { flex: 1; padding: 10px; font-family: var(--mono); font-size: 0.85rem; letter-spacing: 0.05em; border-radius: var(--radius-sm); }
.crypto-opt.selected { border-color: var(--text-dim); color: #fff; }
.crypto-send-label { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 6px; }
.crypto-address { font-family: var(--mono); font-size: 0.72rem; color: #aaa; background: rgba(255,255,255,0.04); padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); word-break: break-all; cursor: pointer; transition: border-color 0.2s; }
.crypto-address:hover { border-color: var(--border-hover); }
.crypto-hint { font-size: 0.65rem; color: var(--text-faint); margin-top: 4px; margin-bottom: 14px; }
.crypto-amount { font-size: 0.85rem; color: var(--text-dim); margin-bottom: 16px; }
#crypto-form input { width: 100%; background: rgba(255,255,255,0.04); border: 1px solid var(--border); color: var(--text); font-family: var(--mono); font-size: 0.8rem; padding: 10px 12px; border-radius: var(--radius-sm); outline: none; margin-bottom: 12px; }
#crypto-form input:focus { border-color: rgba(94,234,212,0.3); }
#crypto-form input::placeholder { color: var(--text-faint); }
#crypto-form button { width: 100%; }
.crypto-pending-msg { color: var(--green); font-size: 0.9rem; margin-bottom: 16px; }

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 640px) {
    .hero-title { font-size: 3rem; letter-spacing: 0.2em; }
    .hero-tagline { font-size: 1.1rem; }
    .hero-sub { font-size: 0.95rem; }
    .tri-mark { width: 100px; height: 87px; }
    .section { padding: 70px 20px; }
    .agents-row { flex-direction: column; gap: 14px; }
    .agent-card { padding: 32px 24px; }
    .result-actions { flex-direction: column; }
    .final-heading { font-size: 1.8rem; }
    .final-card { padding: 48px 24px; }
    .pricing-chips { gap: 8px; }
    nav { padding: 12px 16px; }
    .nav-right { gap: 14px; }
    .demo-body { padding: 20px; min-height: 280px; }
}

@media (max-width: 380px) {
    .hero-title { font-size: 2.4rem; }
}
