/* TapHire — premium, WARM dark (hospitality). The product turns a window QR
   into a candidate texting back, so the hero shows exactly that: an SMS
   mockup delivering a screened candidate. Coral-gold accent for warmth,
   aurora in warm tones. Semantic green only for "ready to call". */
:root {
  --bg: #140f0b;
  --bg-2: #191309;
  --panel: rgba(255,255,255,0.03);
  --panel-2: rgba(255,255,255,0.055);
  --line: rgba(255,255,255,0.10);
  --line-2: rgba(255,255,255,0.16);
  --ink: #f6f0ea;
  --muted: #b3a495;
  --muted-dim: #7c6f61;
  --accent: #ff8a5c;
  --accent-rgb: 255, 138, 92;
  --gold: #ffbf5c;
  --safe: #46d38a;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, 'JetBrains Mono', Menlo, Consolas, monospace;
  --wrap: 1120px; --radius: 16px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; position: relative; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.025em; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }

/* Aurora (warm) + grain */
.aurora { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.aurora b { position: absolute; top: 14%; right: 16%; width: 280px; height: 280px; margin: -140px -140px 0 0; border-radius: 50%; border: 1px solid rgba(255,138,92,.22); opacity: 0; will-change: transform, opacity; animation: sonar 7s ease-out infinite; }
.aurora .a2 { animation-delay: 2.3s; }
.aurora .a3 { animation-delay: 4.6s; }
@keyframes sonar { 0% { transform: scale(.25); opacity: .5; } 80% { opacity: .06; } 100% { transform: scale(3.4); opacity: 0; } }
body::after { content:''; position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.pulse { display:inline-block; width:6px; height:6px; border-radius:50%; background: var(--accent); margin-right:8px; box-shadow:0 0 0 0 rgba(var(--accent-rgb),.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(var(--accent-rgb),.5);} 70%{box-shadow:0 0 0 7px rgba(var(--accent-rgb),0);} 100%{box-shadow:0 0 0 0 rgba(var(--accent-rgb),0);} }

/* Header */
header.site { position: sticky; top: 0; z-index: 30; background: rgba(20,15,11,.6); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-weight: 800; font-size: 1.12rem; letter-spacing: -0.02em; color: var(--ink); }
.logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--muted); font-size: 0.92rem; font-weight: 550; }
.nav-links a:hover { color: var(--ink); }

/* Buttons */
.btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; font:inherit; font-weight:650; font-size:0.95rem; cursor:pointer;
  background: linear-gradient(120deg, var(--accent), var(--gold)); color:#2a1405; border:1px solid transparent; padding:12px 20px; border-radius:11px; transition: transform .12s, box-shadow .12s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 26px -12px rgba(var(--accent-rgb),.7); }
.btn:focus-visible { outline: 3px solid rgba(var(--accent-rgb),.5); outline-offset: 2px; }
.btn.secondary { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.secondary:hover { border-color: var(--accent); box-shadow: none; }
.btn.btn-sm { padding: 8px 14px; font-size: 0.88rem; }
.btn.btn-block { width: 100%; }
.btn:disabled { opacity:.55; cursor:default; transform:none; box-shadow:none; }

/* Hero */
.hero { padding: 60px 0 44px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 44px; align-items: center; }
.kicker { display:inline-flex; align-items:center; font-family: var(--mono); font-size:0.74rem; text-transform:uppercase; letter-spacing:0.13em; color: var(--muted); border:1px solid var(--line); background: var(--panel); border-radius:999px; padding:6px 13px; }
.hero h1 { font-size: clamp(2.4rem, 4.6vw, 3.4rem); font-weight: 830; margin-top: 20px; text-wrap: balance; letter-spacing: -0.03em; }
.hero h1 em { font-style: normal; background: linear-gradient(110deg, var(--accent), var(--gold)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero .sub { color: var(--muted); font-size: 1.1rem; margin: 20px 0 0; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.micro { font-size: 0.82rem; color: var(--muted-dim); margin: 16px 0 0; }

/* Phone / SMS mockup — the product's output, on a phone */
.hero-viz { display: flex; justify-content: center; }
.phone { position: relative; width: 300px; max-width: 100%; background: #0d0a07; border: 1px solid var(--line-2); border-radius: 34px; padding: 14px; box-shadow: 0 40px 90px -34px rgba(0,0,0,.85), inset 0 0 0 2px rgba(255,255,255,.02); }
.phone-notch { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 120px; height: 22px; background: #0d0a07; border-radius: 0 0 14px 14px; z-index: 3; }
.phone-screen { background: linear-gradient(180deg, #17120d, #120d09); border-radius: 24px; padding: 34px 14px 18px; min-height: 440px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.qr-chip { width: 34px; height: 34px; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--line); border-radius: 9px; color: var(--accent); font-size: 1.1rem; }
.ch-name { font-weight: 700; font-size: 0.9rem; }
.ch-sub { font-size: 0.72rem; color: var(--muted-dim); font-family: var(--mono); }
.bubble { max-width: 84%; font-size: 0.86rem; padding: 9px 13px; border-radius: 15px; line-height: 1.4; opacity: 0; animation: pop .4s ease forwards; }
.bubble.in { align-self: flex-start; background: var(--panel-2); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.bubble.out { align-self: flex-end; background: linear-gradient(120deg, var(--accent), var(--gold)); color: #2a1405; border-bottom-right-radius: 5px; font-weight: 550; }
.b1 { animation-delay: .3s; } .b2 { animation-delay: 1.1s; } .b3 { animation-delay: 1.9s; } .b4 { animation-delay: 2.7s; }
.cand-card { margin-top: 6px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 14px; padding: 13px; opacity: 0; animation: pop .5s ease forwards; box-shadow: 0 0 0 1px rgba(var(--accent-rgb),.15); }
.cc-top { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.cc-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--safe); box-shadow: 0 0 8px var(--safe); }
.cc-name { font-weight: 750; font-size: 0.92rem; flex: 1; }
.cc-score { font-family: var(--mono); font-size: 0.72rem; color: var(--accent); font-weight: 700; }
.cc-row { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--muted); padding: 3px 0; }
.cc-ready { color: var(--safe); font-family: var(--mono); font-size: 0.72rem; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* Sections */
section.how, section.signup { padding: 64px 0; }
.section-label { font-family: var(--mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.how h2, .signup h2 { font-size: 1.9rem; font-weight: 790; margin-top: 14px; text-wrap: balance; }
.how .sub, .signup .sub { color: var(--muted); margin: 12px 0 0; max-width: 46em; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.step-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 24px; position: relative; overflow: hidden; }
.step-card::before { content:''; position:absolute; top:0; left:0; right:0; height:2px; background: linear-gradient(90deg, var(--accent), transparent); }
.step-card .num { font-family: var(--mono); font-size: 0.85rem; color: var(--accent); font-weight: 700; }
.step-card h3 { font-size: 1.08rem; font-weight: 700; margin: 12px 0 8px; }
.step-card p { color: var(--muted); font-size: 0.94rem; margin: 0; }
.signup .btn { margin-top: 24px; }

footer.site { border-top: 1px solid var(--line); padding: 28px 0 46px; margin-top: 24px; }
.footer-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 0.88rem; }
.footer-row a { color: var(--muted); } .footer-row a:hover { color: var(--accent); }
.footer-row nav { display: flex; gap: 18px; }

/* Modal (contract preserved for main.js) */
.modal-overlay { display: none; position: fixed; inset: 0; z-index: 40; background: rgba(10,7,4,.72); backdrop-filter: blur(4px); align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.open { display: flex; }
.modal { position: relative; width: 100%; max-width: 440px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 30px; box-shadow: 0 40px 90px -30px rgba(0,0,0,.9); }
.modal h3 { font-size: 1.35rem; font-weight: 780; }
.modal .sub { color: var(--muted); font-size: 0.95rem; margin: 10px 0 20px; }
.modal .close { position: absolute; top: 14px; right: 16px; background: none; border: none; color: var(--muted); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.modal .close:hover { color: var(--ink); }
.modal label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.modal input[type=email] { width: 100%; font: inherit; padding: 12px 14px; border-radius: 10px; background: var(--bg); color: var(--ink); border: 1px solid var(--line-2); }
.modal input[type=email]:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.2); }
.consent-row { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0; }
.consent-row input { margin-top: 4px; flex-shrink: 0; }
.consent-row label { font-size: 0.82rem; font-weight: 400; color: var(--muted); margin: 0; }
.consent-row a { color: var(--accent); }
.status { font-size: 0.9rem; margin: 12px 0 0; color: var(--muted); }
.status.success { color: var(--safe); }
.status.error { color: #ff7a86; }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-viz { order: -1; }
  .steps { grid-template-columns: 1fr; }
  .nav-links a { display: none; }
}
@media (max-width: 480px) { body { font-size: 16px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior:auto; } * { animation: none !important; transition: none !important; } .bubble, .cand-card { opacity: 1 !important; } }
