/* ==========================================================
   Claudio Tako — Reparação e Manutenção de Computadores
   ========================================================== */

:root {
  --navy-900: #0a1628;
  --navy-800: #0f2138;
  --navy-700: #16304f;
  --cyan-500: #06b6d4;
  --cyan-400: #22d3ee;
  --cyan-100: #cffafe;
  --amber-500: #f59e0b;
  --green-500: #10b981;
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f4f8fb;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px -12px rgba(10, 22, 40, 0.18);
  --shadow-lg: 0 24px 50px -20px rgba(10, 22, 40, 0.35);
  --container: 1160px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--cyan-500); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); letter-spacing: -0.015em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--cyan-500); color: #fff; padding: 8px 14px; z-index: 1000;
}
.skip-link:focus { left: 10px; top: 10px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px;
  font-weight: 600; font-size: .98rem; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
  text-decoration: none !important;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--cyan-500); color: #fff; box-shadow: 0 8px 20px -8px rgba(6,182,212,.7); }
.btn-primary:hover { background: #0891b2; transform: translateY(-2px); }
.btn-outline { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-outline:hover { border-color: var(--cyan-400); color: var(--cyan-400); }
.btn-whatsapp { background: #25d366; color: #fff; }
.btn-whatsapp:hover { background: #1ebe5b; transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 22, 40, .92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: box-shadow .2s ease;
}
.site-header.scrolled { box-shadow: 0 6px 20px -10px rgba(0,0,0,.5); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }

.logo { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 1.2rem; letter-spacing: -0.01em; }
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--cyan-500), #0e7490);
  display: grid; place-items: center; box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset;
}
.logo-mark svg { width: 22px; height: 22px; color: #fff; }
.logo span.accent { color: var(--cyan-400); }

.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: #cbd5e1; font-weight: 500; font-size: .95rem; }
.nav-links a:hover, .nav-links a.active { color: #fff; text-decoration: none; }
.nav-links .btn { padding: 9px 18px; font-size: .9rem; }
.nav-links .btn-primary { color: #fff; }

.nav-toggle {
  display: none; background: none; border: 0; color: #fff; cursor: pointer; padding: 6px;
}
.nav-toggle svg { width: 28px; height: 28px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 600px at 85% -10%, rgba(6,182,212,.25), transparent 60%),
              linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: #cbd5e1; padding: 90px 0 110px;
}
.hero::before {
  /* circuit grid */
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image:
    linear-gradient(rgba(34,211,238,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34,211,238,.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; }
.hero h1 .hl { color: var(--cyan-400); }
.hero-lead { font-size: 1.15rem; max-width: 560px; color: #94a3b8; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: .8rem; letter-spacing: .04em;
  color: var(--cyan-400); background: rgba(6,182,212,.1);
  border: 1px solid rgba(6,182,212,.3); padding: 6px 12px; border-radius: 999px; margin-bottom: 22px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green-500); box-shadow: 0 0 0 4px rgba(16,185,129,.2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(16,185,129,0); } }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-stats { display: flex; gap: 36px; margin-top: 44px; flex-wrap: wrap; }
.hero-stats strong { display: block; color: #fff; font-size: 1.6rem; font-weight: 800; }
.hero-stats span { font-size: .88rem; color: #94a3b8; }

/* Terminal-style diagnostic card */
.diag-card {
  background: #0b1220; border: 1px solid rgba(34,211,238,.2); border-radius: var(--radius);
  box-shadow: var(--shadow-lg), 0 0 60px -20px rgba(6,182,212,.4);
  font-family: var(--mono); font-size: .88rem; overflow: hidden;
}
.diag-head { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: #0f1a2e; border-bottom: 1px solid rgba(255,255,255,.06); }
.diag-head i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.diag-head i:nth-child(1) { background: #ef4444; }
.diag-head i:nth-child(2) { background: #f59e0b; }
.diag-head i:nth-child(3) { background: #10b981; }
.diag-head span { margin-left: 10px; color: #64748b; font-size: .8rem; }
.diag-body { padding: 20px 22px; color: #94a3b8; min-height: 260px; }
.diag-line { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; opacity: 0; transform: translateY(4px); transition: all .35s ease; }
.diag-line.show { opacity: 1; transform: none; }
.diag-line .ok { color: var(--green-500); }
.diag-line .warn { color: var(--amber-500); }
.diag-line .prompt { color: var(--cyan-400); }
.diag-bar { height: 6px; background: rgba(255,255,255,.08); border-radius: 99px; margin-top: 14px; overflow: hidden; }
.diag-bar b { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--cyan-500), var(--green-500)); border-radius: inherit; transition: width 2.8s ease; }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head .tag {
  font-family: var(--mono); font-size: .8rem; color: var(--cyan-500);
  text-transform: uppercase; letter-spacing: .12em; font-weight: 600; display: block; margin-bottom: 10px;
}
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  position: relative; overflow: hidden;
}
.service-card::after {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--cyan-500), var(--green-500)); transition: width .3s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.service-card:hover::after { width: 100%; }
.icon-box {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: var(--cyan-100); color: #0e7490; margin-bottom: 18px;
}
.icon-box svg { width: 26px; height: 26px; }
.service-card p { color: var(--muted); font-size: .96rem; margin: 0; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-visual {
  background: linear-gradient(145deg, var(--navy-800), var(--navy-700));
  border-radius: 20px; padding: 40px; color: #cbd5e1; position: relative; overflow: hidden;
}
.about-visual::before {
  content: ""; position: absolute; width: 280px; height: 280px; right: -80px; top: -80px;
  background: radial-gradient(circle, rgba(34,211,238,.35), transparent 70%);
}
.about-visual ul { list-style: none; padding: 0; margin: 0; position: relative; }
.about-visual li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px dashed rgba(255,255,255,.12); }
.about-visual li:last-child { border-bottom: 0; }
.about-visual li svg { flex: 0 0 22px; width: 22px; height: 22px; color: var(--cyan-400); margin-top: 2px; }
.about-visual strong { color: #fff; display: block; }
.checklist { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checklist li { display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--ink); }
.checklist svg { width: 20px; height: 20px; color: var(--green-500); flex: 0 0 20px; }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding: 28px 22px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--mono); font-weight: 700; font-size: 1.9rem; color: var(--cyan-500);
  display: block; margin-bottom: 10px;
}
.step p { color: var(--muted); font-size: .94rem; margin: 0; }

/* Devices strip */
.devices { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }
.devices span {
  padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-size: .9rem; font-weight: 500; color: var(--ink);
}

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 0 22px; margin-bottom: 12px; transition: box-shadow .2s ease;
}
.faq details[open] { box-shadow: var(--shadow); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--cyan-500); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; }
.contact-info { display: grid; gap: 16px; align-content: start; }
.info-item {
  display: flex; gap: 16px; padding: 20px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line);
}
.info-item .icon-box { margin: 0; flex: 0 0 48px; width: 48px; height: 48px; }
.info-item h4 { margin: 0 0 4px; font-size: 1rem; }
.info-item p, .info-item a { margin: 0; color: var(--muted); font-size: .96rem; }
.info-item a:hover { color: var(--cyan-500); }

.contact-form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .9rem; color: var(--ink); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #cbd5e1; border-radius: var(--radius-sm);
  font: inherit; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--cyan-500); box-shadow: 0 0 0 4px rgba(6,182,212,.15);
}
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); margin-bottom: 20px; }
.consent input { margin-top: 4px; accent-color: var(--cyan-500); }
.form-note { font-size: .82rem; color: var(--muted); margin: 14px 0 0; }

.map-wrap { margin-top: 40px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map-wrap iframe { display: block; width: 100%; height: 340px; border: 0; }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, #0e7490, var(--cyan-500));
  color: #e0f7fb; padding: 64px 0; text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band .hero-actions { justify-content: center; }
.cta-band .btn-outline { border-color: rgba(255,255,255,.6); }
.cta-band .btn-outline:hover { background: #fff; color: #0e7490; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #94a3b8; padding: 64px 0 28px; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #94a3b8; }
.site-footer a:hover { color: var(--cyan-400); text-decoration: none; }
.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem;
}

/* Floating WhatsApp */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 25px -6px rgba(37,211,102,.6);
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

/* Cookie banner */
.cookie-banner {
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 200; max-width: 560px;
  background: var(--navy-800); color: #cbd5e1; border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow-lg);
  font-size: .9rem; display: none;
}
.cookie-banner.show { display: block; }
.cookie-banner p { margin: 0 0 14px; }
.cookie-banner a { color: var(--cyan-400); }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn { padding: 9px 18px; font-size: .88rem; }

/* ---------- Legal pages ---------- */
.page-hero {
  background: linear-gradient(180deg, var(--navy-900), var(--navy-800));
  color: #94a3b8; padding: 64px 0 56px; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image:
    linear-gradient(rgba(34,211,238,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34,211,238,.06) 1px, transparent 1px);
  background-size: 44px 44px;
}
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.7rem); }
.breadcrumb { font-size: .88rem; margin-bottom: 14px; }
.breadcrumb a { color: var(--cyan-400); }

.legal-layout { display: grid; grid-template-columns: 260px 1fr; gap: 56px; padding: 64px 0 96px; align-items: start; }
.legal-toc {
  position: sticky; top: 96px; background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; font-size: .9rem;
}
.legal-toc h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 12px; }
.legal-toc ol { margin: 0; padding-left: 18px; }
.legal-toc li { margin-bottom: 8px; }
.legal-toc a { color: var(--text); }
.legal-toc a:hover { color: var(--cyan-500); }

.legal-content { max-width: 780px; }
.legal-content h2 { font-size: 1.45rem; margin-top: 2.2em; padding-top: .4em; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { font-size: 1.1rem; margin-top: 1.6em; }
.legal-content ul, .legal-content ol { padding-left: 22px; margin: 0 0 1.2em; }
.legal-content li { margin-bottom: .45em; }
.legal-content table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: .93rem; }
.legal-content th, .legal-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal-content th { background: var(--bg-soft); color: var(--ink); }
.callout {
  background: #ecfeff; border-left: 4px solid var(--cyan-500); border-radius: var(--radius-sm);
  padding: 16px 20px; margin: 0 0 1.6em; color: #155e75;
}
.callout strong { color: #0e7490; }
.meta-line { font-family: var(--mono); font-size: .82rem; color: var(--cyan-400); }
.contact-card {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 24px; margin: 0 0 1.4em;
}
.contact-card p { margin: 0 0 .3em; }
.legal-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 12px; }
.legal-links a {
  display: block; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); font-weight: 600; transition: border-color .2s, box-shadow .2s;
}
.legal-links a span { display: block; font-weight: 400; color: var(--muted); font-size: .88rem; margin-top: 4px; }
.legal-links a:hover { border-color: var(--cyan-500); box-shadow: var(--shadow); text-decoration: none; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .legal-layout { grid-template-columns: 1fr; gap: 32px; }
  .legal-toc { position: static; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--navy-900); border-bottom: 1px solid rgba(255,255,255,.08);
    padding: 8px 20px 20px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: 12px 0; }
  .nav-links .btn { justify-content: center; margin-top: 10px; }
  .hero { padding: 60px 0 80px; }
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  section { padding: 72px 0; }
}

@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .services-grid, .steps, .footer-grid, .checklist, .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .contact-form { padding: 22px; }
  .about-visual { padding: 28px; }
  .diag-body { font-size: .78rem; padding: 16px; }
}
