:root {
    --yellow: #f2b600;
    --black: #050505;
    --ink: #141414;
    --paper: #f4f2eb;
    --white: #fff;
    --muted: #73716a;
    --line: rgba(20, 20, 20, 0.16);
    --display: 'Bebas Neue', sans-serif;
    --body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.topbar {
    min-height: 82px; padding: 0 clamp(20px, 4vw, 64px); display: grid; grid-template-columns: 1fr auto 1fr;
    align-items: center; background: var(--black); color: var(--white); border-bottom: 4px solid var(--yellow);
}
.brand img { display: block; height: 35px; }
.topbar-context { text-align: center; line-height: 1.15; }
.topbar-context span { display: block; color: #969696; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; }
.topbar-context strong { font-family: var(--display); font-size: 1.25rem; font-weight: 400; letter-spacing: .06em; }
.back-link { justify-self: end; font-size: .78rem; font-weight: 700; letter-spacing: .03em; }
.back-link span { color: var(--yellow); margin-right: 5px; }

.search-stage {
    min-height: 670px; position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
    gap: clamp(48px, 8vw, 130px); align-items: center; padding: clamp(76px, 9vw, 140px) clamp(20px, 7vw, 110px); background: var(--black); color: var(--white);
}
.stage-grid { position: absolute; inset: 0; opacity: .2; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 52px 52px; mask-image: linear-gradient(90deg, #000, transparent 80%); }
.search-stage::after { content: ''; position: absolute; width: 560px; height: 560px; right: -250px; top: -270px; border: 1px solid rgba(242,182,0,.55); border-radius: 50%; box-shadow: 0 0 0 80px rgba(242,182,0,.035), 0 0 0 160px rgba(242,182,0,.025); }
.stage-copy, .search-console { position: relative; z-index: 1; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 24px; color: #aaa; font-size: .7rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow span { display: grid; place-items: center; width: 29px; height: 29px; border: 1px solid var(--yellow); border-radius: 50%; color: var(--yellow); letter-spacing: 0; }
.eyebrow.dark { color: var(--muted); }
.stage-copy h1 { margin: 0; font-family: var(--display); font-size: clamp(5.7rem, 10.5vw, 10.5rem); font-weight: 400; line-height: .75; letter-spacing: -.025em; }
.stage-copy h1 em { color: var(--yellow); font-style: normal; }
.intro { max-width: 620px; margin: 40px 0 0; color: #a9a9a9; font-size: clamp(1rem, 1.4vw, 1.18rem); line-height: 1.65; }

.search-console { border-top: 1px solid #3b3b3b; border-bottom: 1px solid #3b3b3b; padding: 28px 0; }
.console-label { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 22px; color: #aaa; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.live-dot::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 5px rgba(242,182,0,.11); }
#searchForm { display: grid; grid-template-columns: 1fr auto; background: var(--white); padding: 7px; }
#searchInput { min-width: 0; height: 64px; border: 0; outline: 0; padding: 0 17px; color: var(--ink); background: transparent; font-size: 1rem; }
#searchInput::placeholder { color: #8c8c8c; }
#searchForm button { border: 0; min-width: 130px; padding: 0 22px; background: var(--yellow); color: var(--black); font-family: var(--display); font-size: 1.35rem; letter-spacing: .04em; cursor: pointer; transition: background .2s, color .2s; }
#searchForm button:hover { background: var(--black); color: var(--yellow); }
#searchForm button:disabled { opacity: .55; cursor: wait; }
.examples { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.examples span { margin-right: 4px; color: #767676; font-size: .72rem; }
.examples button { border: 1px solid #3a3a3a; border-radius: 999px; padding: 7px 12px; background: transparent; color: #bbb; font-size: .72rem; cursor: pointer; }
.examples button:hover { border-color: var(--yellow); color: var(--yellow); }
.has-search-state .search-stage { min-height: calc(100svh - 82px); padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(40px, 5vw, 72px); }
.has-search-state .stage-copy h1 { font-size: clamp(5.7rem, 9vw, 9rem); }
.has-search-state .examples { display: none; }

.search-feedback:not(:empty), .results-section { margin-top: 26px; }
.results-section { padding: 24px; border: 1px solid #3b3b3b; border-top: 3px solid var(--yellow); background: #111; }
.results-label { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding-bottom: 18px; border-bottom: 1px solid #303030; }
.results-label .eyebrow { margin: 0; }
.results-label > span { color: #777; font-size: .65rem; text-align: right; }
.result-main { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px; padding-top: 22px; }
.result-main h2 { margin: 0 0 7px; color: #777; font-family: var(--display); font-size: 1.35rem; font-weight: 400; letter-spacing: .08em; line-height: 1; text-transform: uppercase; }
.result-main strong { display: block; color: var(--white); font-family: var(--display); font-size: clamp(2rem, 3.2vw, 3rem); font-weight: 400; line-height: .95; }
.result-main a { min-width: 175px; padding: 15px 18px; background: var(--yellow); color: var(--black); font-family: var(--display); font-size: 1.2rem; letter-spacing: .03em; text-align: center; transition: background .2s, color .2s; }
.result-main a:hover { background: var(--white); }
.alternatives { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 20px; padding-top: 17px; border-top: 1px solid #303030; }
.alternatives > span { color: #777; font-size: .7rem; font-weight: 700; }
.alternatives div { display: flex; flex-wrap: wrap; gap: 7px; }
.alternatives a { border: 1px solid #3a3a3a; border-radius: 999px; padding: 6px 10px; background: transparent; color: #bbb; font-size: .68rem; cursor: pointer; }
.alternatives a:hover { border-color: var(--yellow); color: var(--yellow); }
.source-note { margin: 17px 0 0; color: #656565; font-size: .65rem; line-height: 1.5; }

.status-panel { padding: 54px clamp(20px, 7vw, 110px); background: var(--yellow); color: var(--black); }
.status-idle { display: flex; align-items: center; justify-content: center; gap: 28px; }
.status-number { font-family: var(--display); font-size: 6rem; line-height: .8; }
.status-idle p { max-width: 360px; margin: 0; font-size: 1rem; font-weight: 800; line-height: 1.45; }
.status-loading, .status-error { max-width: 760px; margin: auto; text-align: center; }
.status-loading strong, .status-error strong { display: block; font-family: var(--display); font-size: 2.5rem; font-weight: 400; }
.status-loading p, .status-error p { margin: 8px 0 0; font-size: .86rem; }
.loading-bar { height: 3px; max-width: 300px; margin: 20px auto 0; overflow: hidden; background: rgba(0,0,0,.2); }
.loading-bar::after { content: ''; display: block; width: 45%; height: 100%; background: var(--black); animation: scan 1.1s ease-in-out infinite; }
.search-feedback .status-loading, .search-feedback .status-error { padding: 22px; border: 1px solid #3b3b3b; background: #111; }
.search-feedback .status-loading strong, .search-feedback .status-error strong { font-size: 2rem; }
.search-feedback .status-loading p, .search-feedback .status-error p { color: #888; }
.search-feedback .loading-bar { background: rgba(255,255,255,.12); }
.search-feedback .loading-bar::after { background: var(--yellow); }

footer { min-height: 110px; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 30px clamp(20px, 4vw, 64px); background: var(--black); color: #777; font-size: .7rem; letter-spacing: .04em; }

.limit-modal { width: min(92vw, 590px); padding: clamp(30px, 5vw, 52px); border: 0; border-top: 5px solid var(--yellow); background: var(--black); color: var(--white); box-shadow: 0 30px 90px rgba(0,0,0,.55); }
.limit-modal::backdrop { background: rgba(5,5,5,.82); backdrop-filter: blur(7px); }
.limit-modal .eyebrow { margin-bottom: 22px; }
.limit-modal h2 { max-width: 480px; margin: 0; font-family: var(--display); font-size: clamp(3rem, 7vw, 5rem); font-weight: 400; line-height: .88; }
.limit-modal > p:not(.eyebrow) { max-width: 470px; margin: 24px 0; color: #aaa; font-size: .9rem; line-height: 1.65; }
.modal-close { position: absolute; top: 14px; right: 16px; width: 38px; height: 38px; border: 1px solid #383838; border-radius: 50%; background: transparent; color: #aaa; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.modal-close:hover { border-color: var(--yellow); color: var(--yellow); }
.whatsapp-link { display: flex; align-items: center; justify-content: space-between; gap: 18px; width: 100%; padding: 17px 20px; background: var(--yellow); color: var(--black); font-family: var(--display); font-size: 1.35rem; letter-spacing: .03em; }
.whatsapp-link:hover { background: var(--white); }
.limit-modal small { display: block; margin-top: 12px; color: #666; font-size: .65rem; }

@keyframes scan { from { transform: translateX(-110%); } to { transform: translateX(245%); } }

@media (max-width: 1050px) {
    .search-stage { grid-template-columns: 1fr; }
    .search-console { max-width: 700px; }
    .has-search-state .stage-copy { display: none; }
    .has-search-state .search-stage { align-items: start; }
}

@media (max-width: 680px) {
    .topbar { grid-template-columns: 1fr auto; min-height: 70px; }
    .topbar-context { display: none; }
    .brand img { height: 30px; }
    .back-link { font-size: .68rem; }
    .search-stage { min-height: 650px; padding-top: 72px; }
    .stage-copy h1 { font-size: clamp(5.2rem, 25vw, 7.7rem); }
    .intro { margin-top: 30px; }
    #searchForm { grid-template-columns: 1fr; gap: 7px; }
    #searchForm button { min-height: 56px; }
    .has-search-state .search-stage { min-height: calc(100svh - 70px); padding-top: 32px; padding-bottom: 32px; }
    .has-search-state #searchForm { grid-template-columns: minmax(0, 1fr) auto; gap: 0; }
    .has-search-state #searchForm button { min-width: 100px; min-height: 0; padding: 0 14px; }
    .search-console { width: 100%; }
    .results-section { padding: 20px; }
    .results-label { align-items: flex-start; flex-direction: column; gap: 10px; }
    .results-label > span { display: none; }
    .result-main { grid-template-columns: 1fr; gap: 18px; }
    .result-main a { width: 100%; }
    .alternatives div { width: 100%; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 3px; }
    .alternatives a { flex: 0 0 auto; }
    .source-note { display: none; }
    .status-idle { justify-content: flex-start; }
    .status-number { font-size: 5rem; }
    footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
