/* ═══════════════════════════════════════════════════════════
   WrenchTime V2 — Brutalist Dark Mode
   Space Grotesk + Inter | #0A0A0A | Neon-blue accents
   ═══════════════════════════════════════════════════════════ */

:root {
    --bg:           #0A0A0A;
    --bg-card:      rgba(15, 15, 20, 0.7);
    --accent:       #00f0ff;
    --accent-dim:   rgba(0, 240, 255, 0.12);
    --accent-glow:  rgba(0, 240, 255, 0.35);
    --accent-strong:rgba(0, 240, 255, 0.6);
    --text:         #ffffff;
    --text-dim:     #6a6a80;
    --text-mid:     #9a9ab0;
    --glass-border: rgba(0, 240, 255, 0.12);
    --glass-bg:     rgba(15, 18, 30, 0.6);
    --danger:       #ff4060;
    --success:      #00e676;
    --font-display: 'Space Grotesk', sans-serif;
    --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius:       12px;
    --header-h:     56px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text); min-height: 100vh; overflow-x: hidden; }

/* ── Background Glow ── */
.bg-effects { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg-glow { position: absolute; border-radius: 50%; filter: blur(120px); animation: drift 20s ease-in-out infinite alternate; }
.bg-glow-1 { width: 500px; height: 500px; background: rgba(0, 50, 160, 0.1); top: -150px; right: 5%; }
.bg-glow-2 { width: 350px; height: 350px; background: rgba(0, 180, 255, 0.06); bottom: 10%; left: -80px; animation-delay: -8s; }
@keyframes drift { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(20px,-15px) scale(1.08); } }

/* ── Desktop-only utility ── */
.desktop-only { display: none; }
@media (min-width: 960px) { .desktop-only { display: block; } }

/* ═══════ SECTION 1: Fixed Header ═══════ */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--header-h); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); background: rgba(10,10,10,0.85); border-bottom: 1px solid rgba(255,255,255,0.04); }
.header-inner { max-width: 1280px; margin: 0 auto; height: 100%; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; }
.header-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); }
.header-wrench { width: 22px; height: 22px; color: var(--accent); }
.header-brand { font-family: var(--font-body); font-size: 0.95rem; letter-spacing: 1.5px; }
.brand-dot { color: var(--text-dim); font-weight: 400; }
.header-login { font-size: 0.8rem; font-weight: 600; color: var(--text-dim); text-decoration: none; letter-spacing: 1px; padding: 6px 16px; border: 1px solid rgba(255,255,255,0.1); border-radius: 6px; transition: all 0.2s; }
.header-login:hover { color: var(--accent); border-color: var(--accent); }

/* ═══════ SECTION 2: Hero ═══════ */
.hero { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: calc(var(--header-h) + 40px) 24px 60px; gap: 60px; max-width: 1280px; margin: 0 auto; }
.hero-content { flex: 0 1 520px; text-align: center; }
.hero-title { font-family: var(--font-display); font-size: clamp(2rem, 7vw, 3.2rem); font-weight: 700; line-height: 1.15; margin-bottom: 16px; color: var(--text); animation: fadeUp 0.6s ease both; }
.hero-tagline { font-size: clamp(0.7rem, 2vw, 0.85rem); font-weight: 700; color: var(--accent); letter-spacing: 2px; margin-bottom: 32px; animation: fadeUp 0.6s ease 0.15s both; }
.trust-text { font-size: 0.75rem; color: var(--text-dim); margin-top: 16px; letter-spacing: 0.5px; }

@keyframes fadeUp { 0% { opacity: 0; transform: translateY(20px); } 100% { opacity: 1; transform: translateY(0); } }

/* ── Form ── */
.hero-form { width: 100%; max-width: 420px; margin: 0 auto; animation: fadeUp 0.6s ease 0.3s both; }
.form-step { transition: opacity 0.4s, transform 0.4s, max-height 0.5s; }
.step-hidden { opacity: 0; max-height: 0; overflow: hidden; pointer-events: none; transform: translateY(10px); }
.step-visible { opacity: 1; max-height: 600px; pointer-events: auto; transform: translateY(0); }

.phone-input-group { display: flex; align-items: center; background: rgba(10,10,15,0.9); border: 1.5px solid var(--accent); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; box-shadow: 0 0 15px var(--accent-dim); transition: box-shadow 0.3s; }
.phone-input-group:focus-within { box-shadow: 0 0 25px var(--accent-glow); }
.country-code { font-weight: 700; font-size: 0.9rem; color: var(--text-dim); padding: 15px 12px 15px 16px; white-space: nowrap; letter-spacing: 1px; user-select: none; }
.phone-input-group input { flex: 1; background: transparent; border: none; outline: none; color: var(--text); font-size: 1rem; font-weight: 600; padding: 15px 16px 15px 4px; letter-spacing: 1px; }
.phone-input-group input::placeholder { color: var(--text-dim); font-weight: 500; }

.neon-input { width: 100%; background: rgba(10,10,15,0.9); border: 1.5px solid var(--glass-border); border-radius: var(--radius); padding: 13px 16px; color: var(--text); font-size: 0.9rem; font-weight: 600; letter-spacing: 0.5px; outline: none; margin-bottom: 12px; transition: border-color 0.3s, box-shadow 0.3s; }
.neon-input:focus { border-color: var(--accent); box-shadow: 0 0 12px var(--accent-dim); }
.neon-input::placeholder { color: var(--text-dim); text-transform: uppercase; font-weight: 500; }

.services-wrap { margin-bottom: 14px; }
.services-wrap .choices { color: var(--text); }
.services-wrap .choices__inner { background: #0e0e18 !important; border: 1.5px solid var(--glass-border); border-radius: var(--radius); padding: 10px 14px; min-height: 46px; color: var(--text); font-size: 0.85rem; }
.services-wrap .choices.is-focused .choices__inner { border-color: var(--accent); box-shadow: 0 0 12px var(--accent-dim); }
.services-wrap .choices__input { background: transparent !important; color: var(--text) !important; }
.services-wrap .choices__input::placeholder { color: var(--text-dim) !important; }
.services-wrap .choices__list--dropdown,
.services-wrap .choices .choices__list--dropdown { background: #111118 !important; border: 1px solid var(--glass-border) !important; border-radius: 8px; }
.services-wrap .choices__list--dropdown .choices__item,
.services-wrap .choices__list--dropdown .choices__item--selectable { color: var(--text) !important; background: #111118 !important; padding: 10px 14px; font-size: 0.85rem; }
.services-wrap .choices__list--dropdown .choices__item--selectable.is-highlighted { background: var(--accent-dim) !important; color: var(--accent) !important; }
.services-wrap .choices__list--multiple .choices__item { background: var(--accent-dim); border: 1px solid var(--accent); border-radius: 6px; color: var(--accent); font-weight: 600; font-size: 0.78rem; }
.services-wrap .choices__list--dropdown .choices__item--selectable::after { display: none; }
.services-wrap .choices[data-type*=select-multiple] .choices__button { border-left-color: var(--accent); }

/* ── CTA Button ── */
.cta-btn { display: block; width: 100%; padding: 16px 24px; background: var(--accent); color: #0A0A0A; border: none; border-radius: var(--radius); font-family: var(--font-body); font-size: 1.05rem; font-weight: 800; letter-spacing: 1.5px; cursor: pointer; position: relative; overflow: hidden; transition: transform 0.2s, box-shadow 0.3s; box-shadow: 0 0 20px var(--accent-glow); }
.cta-btn:hover { transform: translateY(-1px); box-shadow: 0 0 35px var(--accent-strong); }
.cta-btn:active { transform: translateY(1px); }
.cta-btn:disabled { opacity: 0.5; cursor: not-allowed; }
#ping-btn, #ping-btn-footer { animation: pulse 2.5s ease-in-out infinite; }
#ping-btn:hover, #ping-btn-footer:hover { animation: none; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 20px var(--accent-glow); } 50% { box-shadow: 0 0 40px var(--accent-strong); } }
.cta-btn.loading { pointer-events: none; color: transparent; }
.cta-btn.loading::after { content: ''; position: absolute; top: 50%; left: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border: 3px solid #0A0A0A; border-top-color: transparent; border-radius: 50%; animation: spin 0.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.step2-lead { font-size: 0.85rem; color: var(--text-mid); margin-bottom: 14px; }
.step2-back { text-align: center; color: var(--text-dim); font-size: 0.8rem; margin-top: 10px; cursor: pointer; transition: color 0.2s; }
.step2-back:hover { color: var(--accent); }

/* Success */
.success-check { width: 56px; height: 56px; border-radius: 50%; background: var(--success); color: #0A0A0A; font-size: 1.8rem; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; animation: pop 0.5s cubic-bezier(0.34,1.56,0.64,1); }
@keyframes pop { 0% { transform: scale(0); } 100% { transform: scale(1); } }
.success-title { font-family: var(--font-display); font-size: 2rem; letter-spacing: 1px; margin-bottom: 6px; }
.success-text { color: var(--text-mid); font-size: 0.9rem; }

/* ── Map Panel (desktop) ── */
.map-panel { flex: 0 1 420px; position: relative; height: 480px; background: rgba(8,8,16,0.9); border: 1px solid var(--glass-border); border-radius: 18px; overflow: hidden; }
.map-svg { width: 100%; height: 100%; position: absolute; inset: 0; }
.route-path { stroke-dashoffset: 200; animation: trace 3s ease-in-out infinite alternate; }
@keyframes trace { 0% { stroke-dashoffset: 200; } 100% { stroke-dashoffset: 0; } }
.map-overlay { position: absolute; top: 0; right: 0; z-index: 2; padding: 20px; display: flex; flex-direction: column; gap: 14px; text-align: right; }
.map-label { display: block; font-size: 0.6rem; font-weight: 600; color: var(--text-dim); letter-spacing: 1.5px; margin-bottom: 2px; }
.map-value { display: block; font-size: 1.2rem; font-weight: 800; letter-spacing: 0.5px; }
.routing-pulse { color: var(--accent); animation: blink 1.5s ease-in-out infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.map-stats { display: flex; gap: 20px; justify-content: flex-end; }
.map-address { font-size: 0.75rem; font-weight: 700; color: var(--accent); letter-spacing: 1.5px; }

/* ═══════ SECTION 3: How It Works ═══════ */
.how-it-works { position: relative; z-index: 1; padding: 80px 24px; max-width: 800px; margin: 0 auto; }
.section-title { font-family: var(--font-display); font-size: clamp(1.4rem, 4vw, 1.8rem); font-weight: 700; text-align: center; margin-bottom: 48px; }
.steps { display: flex; flex-direction: column; gap: 36px; }
.step { display: flex; align-items: flex-start; gap: 20px; }
.step-icon { flex-shrink: 0; width: 44px; height: 44px; background: var(--accent-dim); border: 1px solid var(--accent); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.step-icon svg { width: 22px; height: 22px; color: var(--accent); }
.step-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.step-desc { font-size: 0.85rem; color: var(--text-mid); line-height: 1.5; }

/* ═══════ SECTION 4: Visual Proof ═══════ */
.visual-proof { position: relative; z-index: 1; padding: 60px 24px; display: flex; justify-content: center; }
.wa-mockup { width: 100%; max-width: 360px; background: var(--glass-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--glass-border); border-radius: 18px; overflow: hidden; }
.wa-mockup-header { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.wa-mockup-icon { width: 36px; height: 36px; background: #111118; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.wa-mockup-icon svg { width: 18px; height: 18px; color: var(--accent); }
.wa-mockup-name { display: block; font-size: 0.85rem; font-weight: 700; }
.wa-mockup-status { display: block; font-size: 0.65rem; color: var(--success); }
.wa-mockup-body { padding: 18px; }
.wa-mockup-bubble { background: rgba(0,240,255,0.06); border: 1px solid rgba(0,240,255,0.1); border-radius: 12px 12px 12px 0; padding: 14px 16px; margin-bottom: 14px; }
.wa-mockup-text { font-size: 0.85rem; line-height: 1.6; }
.wa-mockup-time { display: block; text-align: right; font-size: 0.65rem; color: var(--text-dim); margin-top: 6px; }
.wa-mockup-actions { display: flex; gap: 10px; justify-content: center; }
.wa-action { font-size: 0.8rem; font-weight: 800; letter-spacing: 1.5px; padding: 10px 20px; border-radius: 8px; cursor: default; }
.wa-action.accept { background: var(--accent-dim); color: var(--accent); border: 1px solid var(--accent); }
.wa-action.decline { background: rgba(255,64,96,0.08); color: var(--danger); border: 1px solid rgba(255,64,96,0.3); }

/* ═══════ SECTION 5: FAQ Accordion ═══════ */
.faq-section { position: relative; z-index: 1; padding: 80px 24px; max-width: 640px; margin: 0 auto; }
.faq-list { display: flex; flex-direction: column; gap: 2px; }
.faq-item { border-bottom: 1px solid rgba(255,255,255,0.06); }
.faq-trigger { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 18px 0; background: none; border: none; color: var(--text); font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; cursor: pointer; text-align: left; transition: color 0.2s; }
.faq-trigger:hover { color: var(--accent); }
.faq-icon { font-size: 1.3rem; font-weight: 300; color: var(--text-dim); transition: transform 0.3s; }
.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--accent); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s; }
.faq-item.open .faq-answer { max-height: 200px; padding-bottom: 18px; }
.faq-answer p { font-size: 0.85rem; color: var(--text-mid); line-height: 1.6; }

/* ═══════ SECTION 6: Last Chance Footer ═══════ */
.last-chance { position: relative; z-index: 1; padding: 60px 24px; text-align: center; border-top: 1px solid rgba(255,255,255,0.04); }
.last-chance-title { font-family: var(--font-display); font-size: clamp(1.3rem, 4vw, 1.6rem); font-weight: 700; margin-bottom: 24px; }
.last-chance-form { display: flex; flex-direction: column; gap: 12px; max-width: 420px; margin: 0 auto; }
.phone-input-inline { margin-bottom: 0; }
.cta-btn-inline { width: 100%; }

@media (min-width: 600px) {
    .last-chance-form { flex-direction: row; max-width: 560px; }
    .phone-input-inline { flex: 1; }
    .cta-btn-inline { width: auto; white-space: nowrap; padding: 15px 28px; font-size: 0.9rem; }
}

/* ═══════ Footer ═══════ */
.site-footer { position: relative; z-index: 1; padding: 24px; text-align: center; }
.footer-inner { display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; font-size: 0.7rem; color: var(--text-dim); }
.footer-inner a { color: var(--text-dim); text-decoration: none; transition: color 0.2s; }
.footer-inner a:hover { color: var(--accent); }

/* ═══════ Toasts ═══════ */
#toast-container { position: fixed; top: calc(var(--header-h) + 12px); left: 50%; transform: translateX(-50%); z-index: 9999; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { background: #1a1a24; border: 1px solid var(--glass-border); border-radius: 8px; padding: 12px 20px; font-size: 0.85rem; font-weight: 600; backdrop-filter: blur(12px); box-shadow: 0 8px 32px rgba(0,0,0,0.4); animation: toastIn 0.3s ease; pointer-events: auto; max-width: 400px; text-align: center; }
.toast.error { border-color: var(--danger); color: var(--danger); }
.toast.success { border-color: var(--success); color: var(--success); }
.toast-exit { animation: toastOut 0.3s ease forwards; }
@keyframes toastIn { 0% { opacity: 0; transform: translateY(-10px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes toastOut { 0% { opacity: 1; } 100% { opacity: 0; transform: translateY(-10px); } }

/* ── Error states ── */
.phone-input-group.input-error { border-color: var(--danger); box-shadow: 0 0 15px rgba(255,64,96,0.2); animation: shake 0.4s ease; }
.neon-input.input-error { border-color: var(--danger); }
@keyframes shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

/* Referral banner */
.referral-banner { background: var(--accent-dim); border: 1px solid var(--accent); border-radius: 8px; padding: 8px 16px; margin-bottom: 16px; font-size: 0.75rem; font-weight: 600; color: var(--accent); text-align: center; max-width: 420px; margin-left: auto; margin-right: auto; }

/* ═══════ Responsive ═══════ */
@media (min-width: 960px) {
    .hero { text-align: left; }
    .hero-content { text-align: left; }
    .hero-form { margin: 0; }
}

@media (max-width: 959px) {
    .hero { flex-direction: column; padding-top: calc(var(--header-h) + 32px); min-height: auto; gap: 0; }
    .hero-content { max-width: 460px; width: 100%; }
}
