/*
Theme Name: TRB Custom
Author: The Runtime Blueprint
Version: 3.0
Text Domain: trb
*/

/* ═══ RESET ═══ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #0C0A09;
    color: #FAFAF9;
    line-height: 1.7;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.01em;
}
a { color: #E7E5E4; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: #DC2626; }
img { max-width: 100%; height: auto; display: block; }

/* ═══ TYPOGRAPHY ═══ */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.035em;
    text-wrap: balance;
}
h1 { font-size: clamp(44px, 7vw, 92px); }
h2 { font-size: clamp(30px, 4vw, 52px); }
h3 { font-size: clamp(20px, 2.2vw, 26px); }
.text-secondary { color: #A8A29E; }
.text-large { font-size: clamp(17px, 1.8vw, 20px); line-height: 1.65; }
.text-small { font-size: 14px; color: #78716C; }
.mono { font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace; }

/* ═══ LAYOUT ═══ */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 28px;
}
.container-narrow { max-width: 680px; }
.section { padding: 100px 0; position: relative; }
@media (max-width: 768px) { .section { padding: 72px 0; } }

/* ═══ NOISE TEXTURE ═══ */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    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)' opacity='0.025'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    opacity: 0.4;
}

/* ═══ BUTTONS ═══ */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 16px 28px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.2;
    transition: all 0.15s ease;
    letter-spacing: -0.01em;
}
.btn-primary {
    background: #DC2626;
    color: #FAFAF9;
}
.btn-primary:hover { background: #B91C1C; color: #FAFAF9; opacity: 1; }
.btn-outline {
    background: transparent;
    color: #FAFAF9;
    border: 1.5px solid #44403C;
    text-decoration: none;
}
.btn-outline:hover { border-color: #DC2626; color: #DC2626; opacity: 1; }
.btn-large { padding: 20px 36px; font-size: 16px; }
.btn-block { width: 100%; display: flex; justify-content: center; }

/* ═══ FORMS ═══ */
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #78716C;
    margin-bottom: 8px;
}
input, textarea, select {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #292524;
    background: #1C1917;
    color: #FAFAF9;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.15s;
    border-radius: 0;
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #DC2626;
}
input::placeholder { color: #57534E; }

/* ═══ CARDS (minimal, not bubbly) ═══ */
.card {
    background: #1C1917;
    border: 1px solid #292524;
    padding: 32px;
    transition: border-color 0.2s;
}
.card:hover { border-color: #44403C; }

/* ═══ UTILITY ═══ */
.text-center { text-align: center; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 768px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.mt-16 { margin-top: 64px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.pt-8 { padding-top: 32px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }
.hidden { display: none; }

/* ═══ HEADER ═══ */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 18px 0;
    border-bottom: 1px solid transparent;
    transition: all 0.2s;
}
.site-header.scrolled {
    background: rgba(12, 10, 9, 0.92);
    border-bottom-color: #292524;
    backdrop-filter: blur(8px);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.site-logo {
    font-size: 16px;
    font-weight: 700;
    color: #FAFAF9;
    letter-spacing: -0.02em;
    text-decoration: none;
}
.site-logo:hover { color: #FAFAF9; opacity: 1; }
.site-logo span { color: #DC2626; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
    color: #A8A29E;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 14px;
    text-decoration: none;
}
.nav-links a:hover { color: #FAFAF9; }
.nav-links a.btn-primary {
    padding: 10px 18px;
    color: #FAFAF9;
    text-decoration: none;
}

/* ═══ HERO — left aligned, not centered ═══ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 90px;
    padding-bottom: 60px;
}
.hero .eyebrow {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #78716C;
    margin-bottom: 24px;
}
.hero h1 { margin-bottom: 28px; max-width: 900px; }
.hero p { max-width: 560px; }
.hero-form { display: flex; gap: 10px; margin-top: 32px; max-width: 480px; }
.hero-form input { flex: 1; }
@media (max-width: 520px) { .hero-form { flex-direction: column; } }

/* ═══ COUNTDOWN — raw, not polished ═══ */
.countdown-wrap { display: flex; gap: 12px; margin-top: 28px; }
.countdown-box {
    background: #1C1917;
    border: 1px solid #292524;
    padding: 14px 12px;
    min-width: 64px;
    text-align: center;
}
.countdown-number { font-size: 28px; font-weight: 700; color: #FAFAF9; line-height: 1; font-family: ui-monospace, monospace; }
.countdown-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: #57534E; margin-top: 6px; }
.countdown-sep { font-size: 24px; color: #44403C; align-self: center; font-family: ui-monospace, monospace; }

/* ═══ SECTION DIVIDER ═══ */
.rule {
    width: 40px;
    height: 2px;
    background: #DC2626;
    margin: 20px 0;
}
.rule-light { background: #44403C; }

/* ═══ TIMELINE ═══ */
.timeline-item {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 28px;
    padding: 28px 0;
    border-bottom: 1px solid #292524;
}
.timeline-item:first-child { padding-top: 0; }
.timeline-item:last-child { border-bottom: none; padding-bottom: 0; }
.timeline-date {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #DC2626;
    font-family: ui-monospace, monospace;
}
.timeline-title { font-size: 20px; font-weight: 600; margin-bottom: 6px; }
@media (max-width: 640px) { .timeline-item { grid-template-columns: 1fr; gap: 6px; } }

/* ═══ FOR WHO ═══ */
.for-who-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 768px) { .for-who-grid { grid-template-columns: 1fr; } }
.for-who-box { padding: 32px; border: 1px solid #292524; }
.for-who-yes { border-left: 3px solid #DC2626; }
.for-who-no { border-left: 3px solid #44403C; }
.for-who-box h3 { margin-bottom: 16px; font-size: 18px; }
.for-who-box ul { list-style: none; }
.for-who-box li { padding: 8px 0; padding-left: 20px; position: relative; color: #A8A29E; font-size: 15px; }
.for-who-box li::before { position: absolute; left: 0; top: 8px; }
.for-who-yes li::before { content: "→"; color: #DC2626; }
.for-who-no li::before { content: "—"; color: #57534E; }

/* ═══ PRICE ═══ */
.price-box {
    background: #1C1917;
    border: 1px solid #292524;
    padding: 48px 40px;
    max-width: 580px;
    margin: 0 auto;
}
.price-amount { font-size: clamp(48px, 7vw, 96px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.price-amount .currency { font-size: 0.35em; vertical-align: super; font-weight: 600; color: #78716C; }
.price-note { font-size: 16px; color: #78716C; margin-top: 8px; }
.price-strikethrough { text-decoration: line-through; color: #57534E; font-size: 0.45em; margin-right: 8px; }
.price-badge {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid #292524;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #DC2626;
    margin-bottom: 16px;
}

/* ═══ FAQ ═══ */
.faq-item { border-bottom: 1px solid #292524; }
.faq-question {
    width: 100%; text-align: left; background: none; border: none;
    color: #FAFAF9; font-size: 17px; font-weight: 600;
    padding: 24px 0; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
    font-family: inherit;
}
.faq-question::after { content: "+"; color: #57534E; font-size: 20px; font-weight: 400; }
.faq-item.open .faq-question::after { content: "−"; color: #DC2626; }
.faq-answer {
    max-height: 0; overflow: hidden;
    transition: max-height 0.25s ease, padding 0.25s ease;
    color: #A8A29E; font-size: 15px; line-height: 1.7;
}
.faq-item.open .faq-answer { max-height: 400px; padding-bottom: 24px; }

/* ═══ AGENT ITEMS (list style, not cards) ═══ */
.agent-item {
    padding: 32px 0;
    border-bottom: 1px solid #292524;
}
.agent-item:last-child { border-bottom: none; }
.agent-item h3 { font-size: 20px; margin-bottom: 8px; }
.agent-item p { color: #A8A29E; font-size: 15px; max-width: 600px; }
.agent-result {
    margin-top: 10px;
    font-size: 14px;
    color: #DC2626;
    font-weight: 500;
}

/* ═══ SCROLL REVEAL ═══ */
.reveal { opacity: 0; transform: translateY(20px); transition: all 0.5s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ═══ ORDER FORM ═══ */
.order-form-box {
    background: #1C1917;
    border: 1px solid #292524;
    padding: 40px;
}
.order-summary {
    background: #0C0A09;
    border: 1px solid #292524;
    padding: 20px;
    margin-bottom: 28px;
}
.order-summary-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 15px; color: #A8A29E; }
.order-summary-row.total { border-top: 1px solid #292524; padding-top: 14px; margin-top: 8px; font-weight: 700; font-size: 17px; color: #FAFAF9; }

.affiliate-input-row { display: flex; gap: 10px; align-items: stretch; flex-wrap: nowrap; margin-top: 8px; }
.affiliate-input-row input { flex: 1 1 auto; min-width: 0; }
.affiliate-input-row .btn { flex: 0 0 auto; padding: 14px 20px; font-size: 13px; white-space: nowrap; }

/* ═══ THANK YOU ═══ */
.thankyou-icon {
    width: 64px; height: 64px;
    background: #1C1917;
    border: 1px solid #292524;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; margin: 0 auto 28px;
}
.wise-box {
    background: #1C1917;
    border: 1px solid #292524;
    padding: 32px;
    text-align: center;
}

/* ═══ TELEGRAM FLOAT ═══ */
.telegram-float {
    position: fixed; bottom: 20px; right: 20px; z-index: 200;
    width: 52px; height: 52px;
    background: #1C1917;
    border: 1px solid #292524;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s ease; cursor: pointer;
}
.telegram-float:hover { border-color: #DC2626; }
.telegram-float svg { width: 24px; height: 24px; fill: #A8A29E; }
.telegram-float:hover svg { fill: #229ED9; }

/* ═══ IMPRESSUM ═══ */
.impressum-section { padding-top: 140px; padding-bottom: 80px; }
.impressum-section h1 { margin-bottom: 40px; }
.impressum-section h3 { margin: 32px 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: #78716C; }
.impressum-section p { color: #A8A29E; margin-bottom: 8px; font-size: 15px; }

/* ═══ FOOTER ═══ */
.site-footer {
    border-top: 1px solid #292524;
    padding: 40px 0;
}
.site-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-links a { color: #57534E; font-size: 13px; margin-left: 20px; text-decoration: none; }
.footer-links a:hover { color: #A8A29E; }

/* ═══ LEAD MAGNET BOX ═══ */
.lead-box {
    background: #1C1917;
    border: 1px solid #292524;
    padding: 40px;
    max-width: 540px;
}
.lead-box .lead-icon {
    font-size: 24px;
    margin-bottom: 16px;
}

/* ═══ AFFILIATE BOX ═══ */
.affiliate-box {
    background: #1C1917;
    border: 1px solid #292524;
    padding: 32px;
}

/* ═══ GAP STATEMENTS ═══ */
.gap-statement {
    font-size: clamp(20px, 2.8vw, 28px);
    font-weight: 600;
    line-height: 1.3;
    padding: 28px 0;
    border-bottom: 1px solid #292524;
}
.gap-statement:last-child { border-bottom: none; }

/* ═══ FINAL CTA ═══ */
.final-cta { border-top: 1px solid #292524; }

/* ═══ MOBILE FIXES ═══ */
@media (max-width: 640px) {
    .site-header .container {
        flex-wrap: wrap;
        gap: 10px;
    }
    .site-logo {
        font-size: 14px;
    }
    .nav-links a.btn-primary {
        padding: 8px 14px;
        font-size: 12px;
    }
    .countdown-wrap {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    .countdown-box {
        min-width: 56px;
        padding: 10px 8px;
    }
    .countdown-number {
        font-size: 22px;
    }
    .countdown-label {
        font-size: 9px;
    }
    .countdown-sep {
        font-size: 18px;
    }
    .hero h1 {
        font-size: clamp(32px, 9vw, 44px);
    }
    .hero .grid-2 {
        grid-template-columns: 1fr;
    }
}
