@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700;900&family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  color-scheme: dark;
  --bg: #05070b;
  --bg-2: #080d15;
  --panel: rgba(10, 18, 31, .72);
  --card: rgba(13, 24, 40, .82);
  --card-solid: #0d1828;
  --text: #edf7ff;
  --muted: #9eb3c7;
  --soft: #5f748a;
  --line: rgba(59, 156, 255, .20);
  --line-2: rgba(0, 255, 154, .18);
  --blue: #1e8cff;
  --blue-2: #00c8ff;
  --green: #39ff14;
  --green-2: #00ff9a;
  --silver: #cfd8dc;
  --gold: #d5a449;
  --danger: #ff4d6d;
  --shadow-blue: 0 0 38px rgba(30, 140, 255, .34);
  --shadow-green: 0 0 34px rgba(57, 255, 20, .20);
  --radius: 22px;
  --radius-sm: 14px;
  --max: 1180px;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f8ff;
  --bg-2: #e9f0ff;
  --panel: rgba(255, 255, 255, .78);
  --card: rgba(255, 255, 255, .88);
  --card-solid: #ffffff;
  --text: #061423;
  --muted: #415671;
  --soft: #71839c;
  --line: rgba(30, 110, 255, .18);
  --line-2: rgba(0, 168, 94, .18);
  --blue: #0b67d9;
  --blue-2: #009ad6;
  --green: #008b55;
  --green-2: #00a862;
  --silver: #516271;
  --gold: #b8860b;
  --shadow-blue: 0 12px 42px rgba(11, 103, 217, .14);
  --shadow-green: 0 12px 34px rgba(0, 168, 94, .12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(circle at 18% 16%, rgba(30, 140, 255, .16), transparent 35%),
    radial-gradient(circle at 82% 22%, rgba(57, 255, 20, .10), transparent 30%),
    radial-gradient(circle at 50% 96%, rgba(0, 200, 255, .12), transparent 38%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
[data-theme="light"] body::before {
  background:
    radial-gradient(circle at 18% 16%, rgba(30, 140, 255, .12), transparent 36%),
    radial-gradient(circle at 82% 22%, rgba(0, 168, 94, .08), transparent 34%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(30, 140, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 140, 255, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), rgba(0,0,0,.08));
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
::selection { background: rgba(57, 255, 20, .25); color: var(--text); }

#matrix-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: .36;
  pointer-events: none;
}
[data-theme="light"] #matrix-canvas { opacity: .10; }

.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.mono { font-family: 'JetBrains Mono', monospace; }
.orbitron { font-family: Orbitron, monospace; }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 7, 11, .62);
  backdrop-filter: blur(20px);
  transition: background .25s ease, box-shadow .25s ease;
}
[data-theme="light"] .site-header { background: rgba(245, 248, 255, .72); }
.site-header.scrolled { box-shadow: 0 16px 42px rgba(0, 0, 0, .22); background: rgba(5, 7, 11, .86); }
[data-theme="light"] .site-header.scrolled { background: rgba(245, 248, 255, .94); }
.nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 14px; }
.brand__mark { width: 48px; height: 48px; border-radius: 15px; object-fit: cover; border: 1px solid var(--line); box-shadow: var(--shadow-blue); }
.brand__text { display: grid; gap: 2px; }
.brand__name { font-family: Orbitron, monospace; font-weight: 900; letter-spacing: .08em; font-size: 18px; }
.brand__sub { color: var(--muted); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.nav__links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav__links a { color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .03em; position: relative; }
.nav__links a::after { content:''; position:absolute; left:0; bottom:-7px; width:0; height:1px; background: linear-gradient(90deg, var(--blue), var(--green)); transition: width .2s ease; }
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { width:100%; }
.nav__actions { display:flex; align-items:center; gap:12px; }
.theme-toggle, .menu-toggle {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  border-radius: 999px;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.theme-toggle:hover, .menu-toggle:hover { transform: translateY(-1px); border-color: var(--blue); box-shadow: var(--shadow-blue); }
.theme-toggle { width: 46px; height: 28px; position: relative; display: inline-flex; align-items: center; padding: 3px; }
.theme-toggle__knob { width: 20px; height: 20px; border-radius:50%; background: var(--blue); display:grid; place-items:center; font-size:11px; transition: transform .25s ease, background .25s ease; }
[data-theme="light"] .theme-toggle__knob { transform: translateX(18px); background: var(--gold); }
.btn-mini { padding: 10px 16px; border: 1px solid var(--line-2); background: rgba(0, 255, 154, .08); border-radius: 999px; color: var(--green); font-family:'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.btn-mini:hover { box-shadow: var(--shadow-green); border-color: var(--green); }
.menu-toggle { display:none; width:42px; height:42px; align-items:center; justify-content:center; border-radius:14px; }
.menu-toggle span { width:18px; height:2px; background:var(--text); display:block; box-shadow: 0 6px 0 var(--text), 0 -6px 0 var(--text); }

.hero { min-height: 100vh; padding: 130px 0 80px; display:flex; align-items:center; position:relative; overflow:hidden; }
.hero__grid { display:grid; grid-template-columns: .98fr 1.02fr; align-items:center; gap: 56px; }
.eyebrow { display:inline-flex; align-items:center; gap:10px; padding: 8px 12px; border:1px solid var(--line); border-radius:999px; color:var(--blue-2); background: rgba(30, 140, 255, .08); font-family:'JetBrains Mono', monospace; font-size:11px; letter-spacing:.12em; text-transform:uppercase; margin-bottom:24px; }
.eyebrow::before { content:''; width:8px; height:8px; border-radius:50%; background: var(--green); box-shadow: 0 0 14px var(--green); }
.hero h1 { font-family: Orbitron, monospace; font-size: clamp(38px, 5.3vw, 72px); line-height: 1.02; letter-spacing:.02em; margin-bottom:22px; }
.hero h1 span { display:block; color: var(--blue); text-shadow: 0 0 36px rgba(30, 140, 255, .46); }
.hero__lead { color: var(--muted); font-size: clamp(16px, 1.4vw, 19px); line-height:1.8; max-width: 610px; margin-bottom: 32px; }
.hero__actions { display:flex; flex-wrap:wrap; gap:14px; margin-bottom:34px; }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:10px; min-height: 48px; padding: 0 24px; border-radius: 14px; border:1px solid transparent; font-family: Orbitron, monospace; font-size:12px; font-weight:800; letter-spacing:.07em; text-transform:uppercase; transition: transform .18s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: linear-gradient(135deg, var(--blue), #004ee8); color:#fff; box-shadow: var(--shadow-blue); }
.btn--primary:hover { box-shadow: 0 0 52px rgba(30, 140, 255, .56); }
.btn--ghost { background: rgba(0, 255, 154, .06); color: var(--green); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--green); box-shadow: var(--shadow-green); }
.hero__meta { display:flex; flex-wrap:wrap; gap: 14px; }
.meta-chip { border:1px solid var(--line); border-radius: 14px; padding:12px 14px; background:var(--panel); min-width: 132px; }
.meta-chip b { display:block; font-family:Orbitron, monospace; color:var(--text); font-size:20px; }
.meta-chip small { color:var(--soft); font-size:11px; }
.hero__visual { position:relative; min-height: 520px; display:grid; place-items:center; }
.hero__logo-card { position:relative; width:min(520px, 100%); aspect-ratio:1; display:grid; place-items:center; }
.hero__logo-card::before, .hero__logo-card::after { content:''; position:absolute; inset:7%; border:1px solid var(--line); border-radius: 50%; animation: spin 18s linear infinite; }
.hero__logo-card::after { inset:0; border-color: var(--line-2); animation-duration: 26s; animation-direction: reverse; opacity:.7; }
.hero__logo { width: min(420px, 88%); border-radius: 26px; box-shadow: 0 0 75px rgba(30, 140, 255, .28); animation: logoFloat 5s ease-in-out infinite; z-index:2; }
.logo-green { display:none; }
[data-theme="light"] .logo-blue { display:none; }
[data-theme="light"] .logo-green { display:block; }
.orb { position:absolute; border-radius:50%; background: var(--green); box-shadow:0 0 18px var(--green); z-index:3; }
.orb--a { width:10px; height:10px; top:14%; left:18%; animation:pulse 2.6s ease-in-out infinite; }
.orb--b { width:7px; height:7px; right:8%; top:42%; animation:pulse 3.4s ease-in-out infinite; }
.orb--c { width:9px; height:9px; bottom:16%; left:36%; animation:pulse 3s ease-in-out infinite; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { transform: scale(1.75); opacity:.55; } }
@keyframes logoFloat { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-12px); } }

.section { padding: 96px 0; position:relative; }
.section--panel { background: linear-gradient(180deg, transparent, rgba(12, 22, 38, .50), transparent); }
.section__head { text-align:center; max-width:760px; margin:0 auto 52px; }
.section__tag { display:inline-block; font-family:'JetBrains Mono', monospace; font-size:11px; letter-spacing:.16em; text-transform:uppercase; color:var(--green); border:1px solid var(--line-2); border-radius:999px; padding:6px 12px; margin-bottom:18px; background:rgba(0,255,154,.05); }
.section h2 { font-family:Orbitron, monospace; font-size:clamp(27px, 3vw, 44px); line-height:1.12; margin-bottom:16px; }
.section__desc { color:var(--muted); line-height:1.8; font-size:16px; }

.grid { display:grid; gap:24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.card { position:relative; overflow:hidden; border:1px solid var(--line); border-radius:var(--radius); background: var(--card); backdrop-filter: blur(16px); padding:30px; transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.card::before { content:''; position:absolute; top:0; left:0; right:0; height:2px; background:linear-gradient(90deg, var(--blue), var(--green)); transform:scaleX(0); transform-origin:left; transition: transform .3s ease; }
.card:hover { transform: translateY(-6px); border-color: rgba(30,140,255,.48); box-shadow: 0 24px 55px rgba(0,0,0,.24), var(--shadow-blue); }
.card:hover::before { transform:scaleX(1); }
.card__icon { width:56px; height:56px; border-radius:18px; display:grid; place-items:center; font-size:28px; background:rgba(30,140,255,.08); border:1px solid var(--line); margin-bottom:20px; }
.card h3 { font-family:Orbitron, monospace; font-size:17px; margin-bottom:12px; letter-spacing:.05em; }
.card p { color:var(--muted); line-height:1.75; font-size:14px; }
.card ul { list-style:none; margin-top:18px; display:grid; gap:8px; }
.card li { color:var(--muted); font-size:13px; padding-left:18px; position:relative; }
.card li::before { content:'›'; position:absolute; left:0; color:var(--green); font-weight:800; }

/* Produto embutido no card (ex.: AURA / ARGUS) */
.card__product { margin-top:22px; display:flex; align-items:center; gap:14px; padding:14px 16px; border:1px solid var(--line); border-radius: var(--radius-sm); background: rgba(30,140,255,.06); text-decoration:none; transition: border-color .22s ease, background .22s ease, transform .22s ease; }
.card__product:hover { border-color: rgba(0,255,154,.5); background: rgba(30,140,255,.1); transform: translateX(2px); }
.card__product-avatars { position:relative; width:52px; height:38px; flex:none; }
.ai-avatar { position:absolute; top:0; width:34px; height:34px; border-radius:50%; object-fit:cover; object-position:center top; border:2px solid var(--bg); background: var(--card-solid); }
.ai-avatar--aura { left:0; z-index:2; box-shadow: var(--shadow-blue); }
.ai-avatar--argus { left:20px; z-index:1; box-shadow: var(--shadow-green); }
.card__product-text { display:flex; flex-direction:column; gap:2px; flex:1; min-width:0; }
.card__product-text strong { font-family:Orbitron, monospace; font-size:13px; letter-spacing:.04em; color:var(--text); }
.card__product-sep { color:var(--muted); font-weight:400; }
.card__product-text small { color:var(--muted); font-size:11.5px; }
.card__product-arrow { color:var(--green); font-size:16px; flex:none; transition: transform .22s ease; }
.card__product:hover .card__product-arrow { transform: translate(2px,-2px); }

.about-strip { border:1px solid var(--line); background: var(--panel); border-radius: calc(var(--radius) + 8px); padding: 36px; display:grid; grid-template-columns: 1.1fr .9fr; gap: 34px; align-items:center; overflow:hidden; position:relative; }
.about-strip::before { content:''; position:absolute; inset:auto -10% -45% auto; width: 360px; height: 360px; background: radial-gradient(circle, rgba(57,255,20,.12), transparent 70%); }
.about-strip h2 { text-align:left; }
.about-strip p { color:var(--muted); line-height:1.85; margin-bottom:16px; }
.author-card { display:grid; grid-template-columns: 96px 1fr; gap:18px; align-items:center; border:1px solid var(--line-2); border-radius:22px; background: rgba(0,255,154,.06); padding:20px; }
.author-avatar { width:96px; height:96px; border-radius:24px; object-fit:cover; border:1px solid var(--line); }
.author-card h3 { font-family:Orbitron, monospace; font-size:18px; margin-bottom:6px; }
.author-card p { margin:0; font-size:13px; }

.books { display:grid; grid-template-columns: 1.05fr .95fr; gap:26px; align-items:stretch; }
.book-main { min-height: 390px; display:flex; flex-direction:column; justify-content:space-between; background: linear-gradient(135deg, rgba(30,140,255,.13), rgba(0,255,154,.05)), var(--card); }
.book-main .label { color:var(--green); font-family:'JetBrains Mono', monospace; letter-spacing:.14em; text-transform:uppercase; font-size:11px; margin-bottom:16px; }
.book-main h3 { font-family:Orbitron, monospace; font-size: clamp(28px, 3vw, 42px); line-height:1.05; margin-bottom:14px; }
.book-main p { color:var(--muted); line-height:1.8; }
.book-list { display:grid; gap:18px; }
.book-item { display:flex; gap:16px; align-items:flex-start; padding:22px; border-radius:18px; border:1px solid var(--line); background:var(--card); }
.book-item__num { font-family:Orbitron, monospace; font-size:20px; color:var(--green); }
.book-item h4 { font-size:16px; margin-bottom:5px; }
.book-item p { color:var(--muted); font-size:13px; line-height:1.55; }
.status { display:inline-flex; margin-top:10px; font-family:'JetBrains Mono', monospace; font-size:10px; color:var(--gold); border:1px solid rgba(213,164,73,.35); border-radius:999px; padding:4px 9px; }
.status--ok { color:var(--green); border-color:var(--line-2); }

.links-grid { grid-template-columns: repeat(4, 1fr); }
.quick-link { padding:24px; border-radius:20px; border:1px solid var(--line); background:var(--card); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.quick-link:hover { transform:translateY(-5px); border-color:var(--green); box-shadow:var(--shadow-green); }
.quick-link strong { display:block; font-family:Orbitron, monospace; margin-bottom:8px; }
.quick-link span { color:var(--muted); font-size:13px; line-height:1.55; }

.contact-panel { border:1px solid var(--line); border-radius: calc(var(--radius) + 8px); background: linear-gradient(135deg, rgba(30,140,255,.14), rgba(0,255,154,.07)), var(--card); padding:44px; text-align:center; }
.contact-panel h2 { margin-bottom:14px; }
.contact-panel p { color:var(--muted); max-width:700px; margin: 0 auto 26px; line-height:1.8; }
.contact-actions { display:flex; justify-content:center; flex-wrap:wrap; gap:14px; }

.footer { padding:54px 0 32px; border-top:1px solid var(--line); background: rgba(0,0,0,.18); }
.footer__grid { display:grid; grid-template-columns: 1.4fr repeat(3, .7fr); gap:30px; align-items:start; }
.footer h4 { font-family:'JetBrains Mono', monospace; color:var(--blue-2); letter-spacing:.12em; text-transform:uppercase; font-size:11px; margin-bottom:14px; }
.footer p, .footer a { color:var(--soft); font-size:13px; line-height:1.8; }
.footer a:hover { color:var(--green); }
.footer ul { list-style:none; display:grid; gap:8px; }
.footer__bottom { margin-top:34px; padding-top:22px; border-top:1px solid var(--line); display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; color:var(--soft); font-size:12px; }

.reveal { opacity:0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity:1; transform:none; }

.author-hero { padding: 132px 0 72px; min-height: auto; }
.author-hero .hero__grid { grid-template-columns: .78fr 1.22fr; }
.author-photo-card { border:1px solid var(--line); border-radius:32px; background: var(--card); padding:22px; box-shadow:var(--shadow-blue); }
.author-photo-card img { border-radius:24px; aspect-ratio:4/5; object-fit:cover; }
.timeline { position:relative; display:grid; gap:20px; }
.timeline::before { content:''; position:absolute; top:8px; bottom:8px; left:14px; width:1px; background:linear-gradient(var(--blue), var(--green)); }
.timeline-item { position:relative; padding-left:44px; }
.timeline-item::before { content:''; position:absolute; left:7px; top:6px; width:15px; height:15px; border-radius:50%; background:var(--bg); border:2px solid var(--green); box-shadow:0 0 14px rgba(57,255,20,.5); }
.timeline-item h3 { font-family:Orbitron, monospace; font-size:16px; margin-bottom:6px; }
.timeline-item p { color:var(--muted); line-height:1.7; }

@media (max-width: 980px) {
  .nav__links, .btn-mini { display:none; }
  .menu-toggle { display:inline-flex; }
  .nav__links.open { display:flex; position:absolute; top:76px; left:0; right:0; flex-direction:column; align-items:flex-start; gap:18px; padding:24px; background: var(--card-solid); border-bottom:1px solid var(--line); }
  .hero__grid, .about-strip, .books, .author-hero .hero__grid { grid-template-columns:1fr; }
  .hero__visual { order:-1; min-height:420px; }
  .grid--3, .grid--2, .links-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns:1fr 1fr; }
}
@media (max-width: 640px) {
  .container { width:min(100% - 28px, var(--max)); }
  .brand__sub { display:none; }
  .brand__name { font-size:15px; }
  .hero { padding-top: 112px; }
  .hero__visual { min-height:310px; }
  .hero__logo { width: 270px; }
  .hero__logo-card::before { inset: 10%; }
  .hero__logo-card::after { inset: 3%; }
  .grid--3, .grid--2, .links-grid { grid-template-columns:1fr; }
  .section { padding:70px 0; }
  .card, .contact-panel, .about-strip { padding:24px; }
  .author-card { grid-template-columns:1fr; text-align:center; }
  .author-avatar { margin:0 auto; }
  .footer__grid { grid-template-columns:1fr; }
  .footer__bottom { flex-direction:column; }
}

/* Selo de link de compra em cards pequenos de livro (adicionado) */
.buy-link { display:inline-flex; padding:8px 14px; border:1px solid rgba(0,255,154,.35); background:rgba(0,255,154,.08); border-radius:999px; color:var(--green); font-family:'JetBrains Mono', monospace; font-size:11px; letter-spacing:.06em; text-transform:uppercase; text-decoration:none; transition: box-shadow .2s ease, border-color .2s ease; }
.buy-link:hover { box-shadow: var(--shadow-green); border-color: var(--green); }

/* Vitrine resumida de livros na home (adicionado) */
.books-preview { display:flex; align-items:center; justify-content:center; gap:36px; flex-wrap:wrap; padding:10px 0 4px; }
.books-preview__covers { display:flex; gap:14px; flex-shrink:0; }
.books-preview__cover { width:110px; height:156px; object-fit:cover; border-radius:10px; box-shadow:0 14px 32px rgba(0,0,0,.45); flex-shrink:0; }
.books-preview__text { max-width:440px; }
.books-preview__text p { color:var(--muted); line-height:1.8; font-size:15px; margin-bottom:22px; }
@media (max-width:640px) {
  .books-preview { flex-direction:column; text-align:center; }
  .books-preview__text { text-align:center; }
}
