/* EOTEC · site institucional
   Visual "Terminal" (marca/eotec/conceitos.html, caminho B) sobre o fundo azul-marinho do caminho A.
   Sem JavaScript: as animações são só CSS (a CSP do site bloqueia scripts). */
@font-face { font-family:"Sora"; src:url("sora.ttf") format("truetype"); font-weight:100 800; font-display:swap; }

:root {
  --navy:#122045; --deep:#0b1430; --panel:rgba(255,255,255,.045); --panel2:rgba(255,255,255,.07);
  --orange:#f4811c; --orange2:#ffb36b; --ok:#46d39a;
  --fg:#ffffff; --soft:#cdd6f0; --muted:#8e98b6; --line:rgba(255,255,255,.12);
  --max:1120px;
  --mono:ui-monospace,"Cascadia Code",Consolas,"SF Mono",monospace;
}
* { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; scroll-padding-top:76px; }
body { background:var(--navy); color:var(--fg); font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; font-size:17px; line-height:1.65; -webkit-font-smoothing:antialiased; }
a { color:var(--orange2); text-underline-offset:3px; }
a:hover { color:var(--orange); }
h1, h2, h3 { font-family:"Sora",system-ui,sans-serif; letter-spacing:-.025em; line-height:1.12; }
img { max-width:100%; display:block; }
:focus-visible { outline:3px solid var(--orange); outline-offset:3px; border-radius:6px; }
.wrap { max-width:var(--max); margin:0 auto; padding:0 24px; }
.mono { font-family:var(--mono); }

/* topo */
.top { position:sticky; top:0; z-index:30; background:rgba(18,32,69,.86); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px); border-bottom:1px solid var(--line); }
.top .in { max-width:var(--max); margin:0 auto; padding:13px 24px; display:flex; align-items:center; justify-content:space-between; gap:20px; }
.top .logo img { height:30px; width:auto; }
.top nav { display:flex; align-items:center; gap:24px; font-family:var(--mono); font-size:14px; }
.top nav a:not(.btn) { color:var(--soft); text-decoration:none; }
.top nav a:not(.btn):hover { color:#fff; }

/* botões */
.btn { display:inline-flex; align-items:center; justify-content:center; font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; font-weight:700; font-size:15.5px; padding:13px 24px; border-radius:99px; text-decoration:none; background:var(--orange); color:#140800; transition:filter .15s; }
.btn:hover { filter:brightness(1.08); color:#140800; }
.btn.sm { padding:9px 18px; font-size:14px; }
.btn.ghost { background:transparent; color:#fff; box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.3); }
.btn.ghost:hover { box-shadow:inset 0 0 0 1.5px #fff; color:#fff; }
.ctas { display:flex; flex-wrap:wrap; gap:12px; }

.eb { font-family:var(--mono); font-size:13px; letter-spacing:.04em; color:var(--orange); }
.lead { color:var(--soft); font-size:clamp(17px,1.8vw,20px); }

/* fundo do caminho A: grade + brilho */
.grid-bg { position:absolute; inset:0; background-image:linear-gradient(rgba(255,255,255,.065) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.065) 1px, transparent 1px); background-size:32px 32px; -webkit-mask-image:radial-gradient(ellipse at 75% 30%, #000 10%, transparent 70%); mask-image:radial-gradient(ellipse at 75% 30%, #000 10%, transparent 70%); pointer-events:none; }
.glow { position:absolute; right:-10vmax; top:-22vmax; width:58vmax; height:58vmax; border-radius:50%; background:radial-gradient(circle, rgba(244,129,28,.24), transparent 60%); pointer-events:none; }

/* ===== abertura ===== */
.hero { position:relative; overflow:hidden; padding:96px 0 104px; }
.hero-grid { position:relative; z-index:2; display:grid; grid-template-columns:1.05fr 1fr; gap:52px; align-items:center; }
.hero h1 { font-size:clamp(38px,5.4vw,62px); font-weight:800; margin:16px 0 18px; }
.hero h1 em { font-style:normal; color:var(--orange); }
.hero .ctas { margin-top:30px; }

/* chuva de pedidos (só CSS), discreta atrás de tudo */
.rain { position:absolute; inset:0; z-index:1; pointer-events:none; opacity:.55; }
.rain i { position:absolute; top:-40px; font-style:normal; font-size:13.5px; white-space:nowrap; padding:6px 12px; border-radius:14px 14px 14px 4px; background:rgba(255,255,255,.09); color:var(--soft); opacity:0; animation:fall 9s linear infinite; }
@keyframes fall { 0% { transform:translateY(0); opacity:0; } 10% { opacity:.9; } 80% { opacity:.45; } 100% { transform:translateY(820px); opacity:0; } }
.rain i:nth-child(1)  { left:52%; animation-duration:8s;   animation-delay:0s; }
.rain i:nth-child(2)  { left:88%; animation-duration:9.5s; animation-delay:1s; }
.rain i:nth-child(3)  { left:60%; animation-duration:8.5s; animation-delay:2.1s; }
.rain i:nth-child(4)  { left:94%; animation-duration:10s;  animation-delay:3s; }
.rain i:nth-child(5)  { left:46%; animation-duration:9s;   animation-delay:4.2s; }
.rain i:nth-child(6)  { left:76%; animation-duration:8s;   animation-delay:5.1s; }
.rain i:nth-child(7)  { left:3%;  animation-duration:10.5s;animation-delay:6s; }
.rain i:nth-child(8)  { left:68%; animation-duration:9s;   animation-delay:7s; }
.rain i:nth-child(9)  { left:84%; animation-duration:8.5s; animation-delay:8s; }
.rain i:nth-child(10) { left:56%; animation-duration:9.5s; animation-delay:9s; }

/* terminal */
.term { background:rgba(11,20,48,.92); border:1px solid var(--line); border-radius:14px; overflow:hidden; box-shadow:0 30px 70px -20px rgba(0,0,0,.65); }
.term .bar { padding:10px 14px; background:rgba(255,255,255,.06); display:flex; gap:6px; align-items:center; font-family:var(--mono); font-size:12px; color:var(--muted); }
.term .bar i { width:10px; height:10px; border-radius:50%; background:#34407a; }
.term .bar i:first-child { background:var(--orange); }
.term .bar span { margin-left:10px; }
.term pre { padding:20px; font-family:var(--mono); font-size:14px; line-height:1.9; color:var(--soft); white-space:pre-wrap; }
.term .l { display:block; opacity:0; animation:show .3s forwards; }
.term .ok { color:var(--ok); }
.term .or { color:var(--orange); }
.term .dim { color:var(--muted); }
.term .l:nth-child(1){animation-delay:.3s}.term .l:nth-child(2){animation-delay:.9s}.term .l:nth-child(3){animation-delay:1.5s}.term .l:nth-child(4){animation-delay:2.1s}.term .l:nth-child(5){animation-delay:2.7s}.term .l:nth-child(6){animation-delay:3.3s}.term .l:nth-child(7){animation-delay:3.9s}.term .l:nth-child(8){animation-delay:4.5s}
@keyframes show { to { opacity:1; } }
.cursor { display:inline-block; width:9px; height:17px; background:var(--orange); vertical-align:-3px; animation:blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity:0; } }

/* ===== seções ===== */
.sec { position:relative; padding:100px 0; }
.sec.deep { background:var(--deep); }
.sec h2 { font-size:clamp(28px,3.6vw,42px); max-width:22ch; margin-top:12px; }
.sec .lead { margin-top:14px; max-width:60ch; }

/* serviços: módulos */
.mods { margin-top:48px; display:grid; grid-template-columns:repeat(2,1fr); gap:1px; background:var(--line); border:1px solid var(--line); border-radius:18px; overflow:hidden; }
.mod { background:var(--deep); padding:32px; transition:background .2s; }
.sec.deep .mod { background:var(--navy); }
.mod:hover { background:#16275a; }
.mod .tag { font-family:var(--mono); font-size:13px; color:var(--orange); }
.mod h3 { font-size:23px; margin:10px 0 8px; }
.mod p { color:var(--soft); font-size:16px; }
.mod code { display:block; margin-top:16px; font-family:var(--mono); font-size:13px; color:var(--muted); }
.mod a { display:inline-block; margin-top:14px; font-weight:700; font-size:15px; text-decoration:none; }

/* projetos */
.projects { margin-top:48px; display:grid; grid-template-columns:1.25fr 1fr; gap:24px; }
.proj { background:var(--panel); border:1px solid var(--line); border-radius:18px; padding:18px; }
.proj .meta { padding:18px 6px 6px; }
.proj h3 { font-size:23px; }
.proj p { color:var(--soft); font-size:15.5px; margin-top:6px; }
.proj .tags { margin-top:12px; font-family:var(--mono); font-size:12.5px; color:var(--orange); }
.proj .links { margin-top:12px; display:flex; flex-wrap:wrap; gap:6px 20px; font-weight:700; font-size:15px; }
.proj .links a { text-decoration:none; }
.proj-side { display:grid; gap:24px; }
.shot { border-radius:12px; overflow:hidden; border:1px solid var(--line); background:#fff; box-shadow:0 24px 50px -24px rgba(0,0,0,.7); }
.shot .bar { display:flex; gap:6px; padding:9px 12px; background:#1a2a5c; }
.shot .bar i { width:9px; height:9px; border-radius:50%; background:#3a4a80; }
.shot .bar i:first-child { background:var(--orange); }
.shot img { width:100%; height:auto; }

/* processo */
.steps { margin-top:44px; display:grid; gap:12px; font-family:var(--mono); font-size:15.5px; }
.steps div { display:grid; grid-template-columns:70px 170px 1fr; gap:16px; padding:17px 22px; background:var(--panel); border:1px solid var(--line); border-radius:12px; align-items:baseline; }
.steps .k { color:var(--orange); }
.steps b { font-family:"Sora",sans-serif; }
.steps span:last-child { color:var(--soft); }

/* sobre */
.about { display:grid; grid-template-columns:auto 1fr; gap:40px; align-items:start; }
.avatar { width:120px; height:120px; border-radius:22px; background:linear-gradient(135deg,var(--orange),#c45f05); display:grid; place-items:center; font-family:"Sora",sans-serif; font-weight:800; font-size:38px; color:#140800; }
.about p { color:var(--soft); margin-top:14px; max-width:64ch; }
.about .tags { margin-top:20px; display:flex; flex-wrap:wrap; gap:8px; font-family:var(--mono); font-size:13px; }
.about .tags span { padding:6px 12px; border-radius:99px; border:1px solid var(--line); color:var(--soft); }

/* dúvidas */
.faq-wrap { display:grid; grid-template-columns:.8fr 1.2fr; gap:56px; align-items:start; }
.faq { display:grid; gap:10px; }
.faq details { background:var(--panel); border:1px solid var(--line); border-radius:14px; padding:0 22px; }
.faq summary { cursor:pointer; list-style:none; padding:18px 0; font-weight:700; display:flex; justify-content:space-between; gap:16px; }
.faq summary::-webkit-details-marker { display:none; }
.faq summary::after { content:"+"; font-family:var(--mono); font-size:20px; line-height:1; color:var(--orange); transition:transform .2s; }
.faq details[open] summary::after { transform:rotate(45deg); }
.faq details p { color:var(--soft); padding-bottom:18px; font-size:16px; }

/* chamada final */
.final { position:relative; overflow:hidden; padding:110px 0; text-align:center; background:var(--deep); }
.final .wrap { position:relative; z-index:2; }
.final h2 { font-size:clamp(30px,4.4vw,52px); max-width:18ch; margin:0 auto; }
.final .mono { color:var(--muted); margin-top:14px; font-size:14px; }
.final .ctas { justify-content:center; margin-top:28px; }

/* rodapé */
.foot { background:var(--deep); border-top:1px solid var(--line); padding:26px 0; font-size:13.5px; color:var(--muted); }
.foot .wrap { display:flex; flex-wrap:wrap; justify-content:space-between; gap:10px 30px; }
.foot a { color:var(--soft); }

/* 404 */
.notfound { position:relative; overflow:hidden; min-height:70vh; display:grid; place-items:center; text-align:center; }
.notfound .wrap { position:relative; z-index:2; }
.notfound h1 { font-size:clamp(34px,5vw,56px); margin:14px 0; }
.notfound h1 em { font-style:normal; color:var(--orange); }
.notfound p { color:var(--soft); }
.notfound .ctas { justify-content:center; margin-top:26px; }

@media (max-width:900px) {
  .top nav a:not(.btn) { display:none; }
  .hero-grid, .projects, .faq-wrap { grid-template-columns:1fr; }
  .mods { grid-template-columns:1fr; }
  .steps div { grid-template-columns:1fr; gap:2px; }
  .about { grid-template-columns:1fr; gap:24px; }
  .avatar { width:84px; height:84px; font-size:28px; border-radius:18px; }
  .sec { padding:76px 0; }
  .hero { padding:72px 0 80px; }
  .rain { opacity:.3; }
}
@media (max-width:480px) {
  .term pre { font-size:12.5px; padding:16px; }
  .top .logo img { height:26px; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  .rain { display:none; }
  .term .l { animation:none; opacity:1; }
  .cursor { animation:none; }
}
