/* Portada de onetty.app (en inglés). Misma paleta que la app ("Consola"). */
@font-face { font-family: Geist; src: url('/app/fonts/Geist.ttf') format('truetype'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('/app/fonts/GeistMono.ttf') format('truetype'); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #0E0F11; --panel: #121317; --surface: #16181C; --raised: #1C1E24;
  --border: #23252B; --border2: #2A2D34; --text: #E7E9EE; --text2: #C9CCD3; --text3: #A9ADB6;
  --muted: #8B909A; --faint: #6E7480; --green: #3DDC97; --green-bg: #12201A; --green-ring: #1F3A2E;
  --amber: #F5A524; --coral: #FF6B5E; --coral-bg: #1A1416; --coral-border: #4A2A2C;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 Geist, system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--green); }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.mono, .term, code { font-family: 'Geist Mono', ui-monospace, Menlo, monospace; }
.g { color: var(--green); } .a { color: var(--amber); } .c { color: var(--coral); } .dim { color: var(--faint); }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.1; }
p { margin: 0; }

/* barra de arriba */
.top { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 18px; }
.mark { width: 28px; height: 28px; border-radius: 8px; background: var(--green); color: var(--bg); display: inline-flex; align-items: center; justify-content: center; font: 600 14px 'Geist Mono', monospace; }
.links { display: flex; gap: 22px; flex: 1; flex-wrap: wrap; }
.links a, .signin { color: var(--text3); text-decoration: none; }
.links a:hover, .signin:hover { color: var(--text); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--border2); color: var(--text); text-decoration: none; }
.btn.primary { background: var(--green); border-color: var(--green); color: var(--bg); font-weight: 600; }
.btn.primary:hover { background: #7BEBB9; border-color: #7BEBB9; }
.btn.big { padding: 14px 22px; }
.btn.small { min-height: 0; padding: 5px 10px; font-size: 13px; }

/* hero */
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; padding-top: 56px; padding-bottom: 32px; }
.pill { font: 13px 'Geist Mono', monospace; color: var(--green); border: 1px solid var(--green-ring); background: var(--green-bg); border-radius: 999px; padding: 5px 12px; }
.hero h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1.02; letter-spacing: -0.03em; max-width: 900px; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--text3); max-width: 700px; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.ctas.left { justify-content: flex-start; margin-top: 6px; }

/* demo animada: un ciclo de 14 s */
.demo { padding-top: 20px; padding-bottom: 40px; }
.stage { display: flex; gap: 32px; align-items: flex-end; justify-content: center; flex-wrap: wrap; }
.mac { width: 760px; max-width: 100%; height: 460px; border-radius: 14px; border: 1px solid var(--border2); background: var(--bg); box-shadow: 0 30px 80px rgba(0,0,0,.55); overflow: hidden; display: flex; flex-direction: column; }
.mac-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--panel); border-bottom: 1px solid var(--border); font-size: 13px; }
.mac-bar .dot { width: 11px; height: 11px; border-radius: 50%; background: #3A3D44; }
.tab { padding: 5px 12px; color: var(--faint); display: flex; align-items: center; gap: 8px; }
.tab.on { margin-left: 14px; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 8px; }
.tab .srv { color: var(--faint); font: 11px 'Geist Mono', monospace; }
.live { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.mac-body { display: flex; flex: 1; min-height: 0; }
.side { width: 190px; flex-shrink: 0; border-right: 1px solid var(--border); background: var(--panel); padding: 14px 10px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.side-label { font-size: 10px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; padding: 0 6px 6px; }
.side-row { display: flex; gap: 8px; align-items: center; padding: 6px; border-radius: 7px; }
.side-row.on { background: var(--raised); }
.ok { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.term { flex: 1; min-width: 0; padding: 18px 20px; font-size: 13px; line-height: 1.75; color: var(--text2); text-align: left; }
.ask { margin-top: 10px; border: 1px solid var(--coral-border); background: var(--coral-bg); border-radius: 8px; padding: 8px 12px; color: var(--text); }
.done { margin-top: 10px; }
.caret { display: inline-block; width: 8px; height: 15px; background: var(--text); vertical-align: -2px; animation: caret 1s steps(1) infinite; }

.phone { width: 230px; height: 470px; flex-shrink: 0; border-radius: 40px; border: 8px solid var(--border); background: var(--bg); box-shadow: 0 30px 80px rgba(0,0,0,.55); position: relative; overflow: hidden; text-align: left; }
.notch { position: absolute; top: 8px; left: 50%; width: 80px; height: 22px; margin-left: -40px; border-radius: 12px; background: #000; }
.clock { position: absolute; top: 64px; left: 0; right: 0; text-align: center; font-size: 44px; font-weight: 300; letter-spacing: -1px; }
.notif { position: absolute; top: 140px; left: 10px; right: 10px; background: var(--raised); border: 1px solid var(--border2); border-radius: 16px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.notif-head { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
.mini { width: 16px; height: 16px; border-radius: 4px; background: var(--green); color: var(--bg); font: 700 8px 'Geist Mono', monospace; display: inline-flex; align-items: center; justify-content: center; }
.now { margin-left: auto; }
.notif-title { font-size: 13px; font-weight: 600; }
.notif-body { font-size: 12px; color: var(--text2); }
.notif-btns { display: flex; gap: 6px; margin-top: 4px; position: relative; font-size: 12px; }
.notif-btns span { flex: 1; text-align: center; border-radius: 8px; padding: 6px; }
.allow { background: var(--green); color: var(--bg); font-weight: 600; }
.deny { border: 1px solid var(--border2); }
.notif-btns .tap { position: absolute; left: 26px; top: 0; flex: none; width: 26px; height: 26px; padding: 0; border-radius: 50%; background: rgba(231,233,238,.55); }
.faceid { position: absolute; top: 160px; left: 50%; margin-left: -46px; width: 92px; height: 92px; border-radius: 22px; background: rgba(28,30,36,.92); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.scan { position: absolute; left: 14px; right: 14px; top: 46px; height: 2px; background: var(--green); opacity: .6; }
.allowed { position: absolute; top: 168px; left: 22px; right: 22px; background: var(--green-bg); border: 1px solid var(--green-ring); border-radius: 16px; padding: 16px; text-align: center; display: flex; flex-direction: column; gap: 6px; align-items: center; font-size: 14px; }
.allowed span { font-size: 12px; color: var(--muted); }
.home { position: absolute; bottom: 10px; left: 50%; margin-left: -50px; width: 100px; height: 4px; border-radius: 2px; background: #3A3D44; }
.steps { list-style: none; margin: 34px 0 0; padding: 0; display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; font-size: 15px; }
.steps li { display: flex; gap: 10px; align-items: center; color: var(--faint); }
.steps span { font-family: 'Geist Mono', monospace; color: var(--green); }

@keyframes ln1 { 0%,4% {opacity:0;transform:translateY(4px)} 7%,92% {opacity:1;transform:none} 97%,100% {opacity:0} }
@keyframes ln2 { 0%,10% {opacity:0;transform:translateY(4px)} 13%,92% {opacity:1;transform:none} 97%,100% {opacity:0} }
@keyframes ln3 { 0%,16% {opacity:0;transform:translateY(4px)} 19%,92% {opacity:1;transform:none} 97%,100% {opacity:0} }
@keyframes ask { 0%,24% {opacity:0} 26%,92% {opacity:1} 97%,100% {opacity:0} }
@keyframes done { 0%,56% {opacity:0;transform:translateY(4px)} 59%,92% {opacity:1;transform:none} 97%,100% {opacity:0} }
@keyframes done2 { 0%,62% {opacity:0;transform:translateY(4px)} 65%,92% {opacity:1;transform:none} 97%,100% {opacity:0} }
@keyframes dotc { 0%,24% {background:#3DDC97} 26%,55% {background:#FF6B5E} 57%,100% {background:#3DDC97} }
@keyframes notif { 0%,27% {opacity:0;transform:translateY(-26px)} 30%,52% {opacity:1;transform:none} 55%,100% {opacity:0;transform:translateY(-10px)} }
@keyframes faceid { 0%,38% {opacity:0;transform:scale(.8)} 41%,47% {opacity:1;transform:scale(1)} 50%,100% {opacity:0;transform:scale(1.05)} }
@keyframes scan { 0%,40% {transform:translateY(-18px)} 47%,100% {transform:translateY(18px)} }
@keyframes allowed { 0%,49% {opacity:0;transform:scale(.92)} 52%,64% {opacity:1;transform:none} 68%,100% {opacity:0} }
@keyframes tap { 0%,35% {opacity:0;transform:scale(1.6)} 37% {opacity:.9;transform:scale(1)} 40%,100% {opacity:0;transform:scale(1)} }
@keyframes caret { 0%,49% {opacity:1} 50%,100% {opacity:0} }
@keyframes st1 { 0%,24% {color:#E7E9EE} 26%,100% {color:#6E7480} }
@keyframes st2 { 0%,25% {color:#6E7480} 27%,52% {color:#E7E9EE} 54%,100% {color:#6E7480} }
@keyframes st3 { 0%,53% {color:#6E7480} 55%,92% {color:#E7E9EE} 97%,100% {color:#6E7480} }
.ln1 { animation: ln1 14s infinite; } .ln2 { animation: ln2 14s infinite; } .ln3 { animation: ln3 14s infinite; }
.ask { animation: ask 14s infinite; } .done { animation: done 14s infinite; } .done2 { animation: done2 14s infinite; }
.dotc { animation: dotc 14s infinite; } .notif { animation: notif 14s infinite; }
.faceid { animation: faceid 14s infinite; } .scan { animation: scan 14s infinite; }
.allowed { animation: allowed 14s infinite; } .tap { animation: tap 14s infinite; }
.st1 { animation: st1 14s infinite; } .st2 { animation: st2 14s infinite; } .st3 { animation: st3 14s infinite; }

/* secciones */
section { scroll-margin-top: 20px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; padding-top: 90px; padding-bottom: 90px; }
.full { grid-column: 1 / -1; margin-bottom: 16px; }
.card { border: 1px solid var(--border); background: var(--panel); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.card h3 { font-size: 20px; }
.card p, .copy p { color: var(--text3); line-height: 1.6; }
.kicker { font: 13px 'Geist Mono', monospace; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 48px; align-items: center; padding-top: 40px; padding-bottom: 90px; }
.copy { display: flex; flex-direction: column; gap: 16px; }
.copy p { font-size: 17px; }
.checks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; color: var(--text2); }
.checks li::before { content: '✓'; color: var(--green); margin-right: 10px; }

.net { border: 1px solid var(--border); background: var(--panel); border-radius: 18px; padding: 30px 22px; display: grid; grid-template-columns: 1fr 56px 1fr 56px 1fr; align-items: center; font-size: 13px; }
.col { display: flex; flex-direction: column; gap: 10px; }
.box { border: 1px solid var(--border2); border-radius: 9px; padding: 9px 8px; text-align: center; font-size: 12px; }
.wire { position: relative; height: 2px; background: var(--border); }
.pk { position: absolute; top: -4px; width: 9px; height: 9px; border-radius: 3px; background: var(--green); animation: pk 3.2s linear infinite; }
.pk2 { animation-delay: 1.1s; } .pk3 { animation-delay: 2.2s; }
@keyframes pk { 0% {left:0;opacity:0} 10% {opacity:1} 90% {opacity:1} 100% {left:100%;opacity:0} }
.hub { border: 1px solid var(--green-ring); background: var(--green-bg); border-radius: 12px; padding: 14px 6px; text-align: center; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.hub span { color: var(--muted); font-size: 11px; }

.team { border: 1px solid var(--border); background: var(--panel); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.team-head { display: flex; justify-content: space-between; align-items: center; padding: 0 4px 10px; }
.member { display: flex; gap: 10px; align-items: center; padding: 10px 6px; border-top: 1px solid var(--border); }
.av { width: 30px; height: 30px; border-radius: 50%; background: var(--border); color: var(--text2); display: flex; align-items: center; justify-content: center; font-weight: 600; }
.av.me { background: #2A3A33; color: var(--green); }
.who { flex: 1; } .who em { font-style: normal; color: var(--green); font-size: 12px; }
.role { color: var(--text3); font-size: 13px; }
@keyframes join { 0%,30% {opacity:0;transform:translateX(-12px)} 40%,90% {opacity:1;transform:none} 100% {opacity:0} }
.join { animation: join 6s infinite; }

.agents { text-align: center; display: flex; flex-direction: column; gap: 22px; align-items: center; padding-top: 20px; padding-bottom: 90px; }
.agents h2 { font-size: clamp(24px, 3vw, 32px); }
.chips { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.chips span { border: 1px solid var(--border2); border-radius: 999px; padding: 9px 16px; }
.chips .soon { border-style: dashed; color: var(--muted); }
.fine { color: var(--faint); font-size: 13px; }

.start { border: 1px solid var(--border); background: var(--panel); border-radius: 20px; padding: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; align-items: center; margin-bottom: 90px; }
.start p { color: var(--text3); margin-top: 12px; }
.cmd { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 18px; font-size: 14px; line-height: 1.8; color: var(--text2); overflow-x: auto; }
.foot { border-top: 1px solid var(--border); }
.foot .row { display: flex; gap: 24px; flex-wrap: wrap; padding-top: 28px; padding-bottom: 28px; color: var(--muted); font-size: 14px; }
.foot a { color: var(--muted); text-decoration: none; }
.grow { flex: 1; }

/* teléfono: la demo se apila y el diagrama se achica */
@media (max-width: 640px) {
  .links { display: none; }
  .mac { height: auto; min-height: 380px; }
  .side { display: none; }
  .net { grid-template-columns: 1fr 26px 1fr 26px 1fr; padding: 22px 12px; }
  .start { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .ln1,.ln2,.ln3,.ask,.done,.done2,.dotc,.st1,.st2,.st3,.join { animation: none; opacity: 1; }
  .notif,.faceid,.allowed,.tap,.scan,.pk,.caret { animation: none; }
  .faceid,.allowed,.tap { opacity: 0; }
}
.tab { white-space: nowrap; }
@media (max-width: 640px) {
  .tab:not(.on), .tab .srv { display: none; }
  .tab.on { margin-left: 8px; }
}
