/* ═══════════════════════════════════════════════════════════
   Luxtor IA · automação — tema núcleo neural
   ═══════════════════════════════════════════════════════════ */
:root {
  --bg: #05070f;            /* preto profundo azulado */
  --cyan: #00e5ff;          /* ciano neon */
  --blue: #007fff;
  --ice: #eaf6ff;           /* branco gelo */
  --txt-2: #8b98ad;
  --line: rgba(0, 229, 255, 0.16);
  --glass: rgba(255, 255, 255, 0.035);
  --glass-2: rgba(10, 20, 40, 0.55);
  --sans: "Inter", system-ui, sans-serif;
  --disp: "Space Grotesk", system-ui, sans-serif;
  --r: 18px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ice);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
::selection { background: rgba(0, 229, 255, 0.28); }

/* canvas de fundo */
#bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
#core { position: fixed; inset: 0; z-index: 1; pointer-events: none; }

/* ═══ NAV ═══ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}
.nav.scrolled { background: rgba(5, 7, 15, 0.7); backdrop-filter: blur(16px); border-color: var(--line); }
.nav-inner { max-width: 1160px; margin: 0 auto; padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--disp); font-size: 19px; font-weight: 600; letter-spacing: 0.01em; }
.brand-ico { filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.6)); }
.brand-sub { font-family: var(--sans); font-size: 11px; font-weight: 400; color: var(--txt-2); letter-spacing: 0.16em; text-transform: uppercase; margin-top: 3px; }
.nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--txt-2); align-items: center; }
.nav-links a { transition: color 0.2s ease, text-shadow 0.2s ease; }
.nav-links a:hover { color: var(--ice); text-shadow: 0 0 14px rgba(0, 229, 255, 0.5); }

/* ═══ HERO ═══ */
.hero { position: relative; z-index: 2; min-height: 100svh; display: flex; align-items: center; padding: 120px 24px 60px; overflow: hidden; }
.hero-copy { max-width: 1160px; margin: 0 auto; position: relative; z-index: 5; }
.eyebrow {
  font-size: 11.5px; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--cyan); font-weight: 500; margin-bottom: 22px;
  text-shadow: 0 0 18px rgba(0, 229, 255, 0.5);
}
.hero-title {
  font-family: var(--disp); font-weight: 600;
  font-size: clamp(44px, 7.4vw, 92px); line-height: 1.04; letter-spacing: -0.025em;
  margin-bottom: 26px;
}
.grad {
  background: linear-gradient(92deg, #00e5ff 0%, #5b8cff 55%, #8ab6ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 26px rgba(0, 229, 255, 0.35));
}
.hero-sub { max-width: 540px; color: var(--txt-2); font-size: 16.5px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 14px 30px; border-radius: 999px;
  font-size: 14.5px; font-weight: 500; font-family: var(--sans);
  transition: transform 0.15s ease, box-shadow 0.25s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn-primary {
  background: var(--cyan); color: #041018; font-weight: 600;
  box-shadow: 0 0 34px rgba(0, 229, 255, 0.35), 0 8px 30px rgba(0, 229, 255, 0.2);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 50px rgba(0, 229, 255, 0.55), 0 12px 40px rgba(0, 229, 255, 0.3); }
.btn-ghost { border: 1px solid var(--line); color: var(--ice); background: var(--glass); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: rgba(0, 229, 255, 0.5); transform: translateY(-2px); }

/* ── painéis flutuantes ao redor do núcleo ── */
.stage { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.panel {
  position: absolute; pointer-events: auto;
  padding: 13px 17px; border-radius: 14px;
  background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), inset 0 0 30px rgba(0, 229, 255, 0.03);
  font-size: 11px; color: var(--txt-2); letter-spacing: 0.02em;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.3, 1), border-color 0.3s ease;
  will-change: transform;
}
.panel:hover { border-color: rgba(0, 229, 255, 0.5); }
.panel strong { display: block; color: var(--ice); font-weight: 500; font-size: 13px; margin-top: 3px; font-family: var(--disp); }
.panel-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--cyan)); box-shadow: 0 0 10px var(--c, var(--cyan)); margin-right: 7px; }
.p1 { top: 22%; left: 6%; }
.p2 { top: 56%; right: 5%; }
.p3 { top: 16%; right: 12%; }
.p4 { top: 66%; left: 10%; }

.scroll-hint {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 5;
  width: 22px; height: 34px; border: 1.5px solid rgba(0, 229, 255, 0.4); border-radius: 12px;
}
.scroll-hint::after {
  content: ""; position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  width: 3px; height: 7px; border-radius: 3px; background: var(--cyan);
  animation: wheel 1.8s ease infinite;
}
@keyframes wheel { 0% { opacity: 1; top: 6px; } 70% { opacity: 0; top: 20px; } 100% { opacity: 0; top: 6px; } }

/* ═══ SEÇÕES ═══ */
.sec { position: relative; z-index: 4; padding: 120px 24px; }
.sec-inner { max-width: 1160px; margin: 0 auto; }
.sec-dark { background: linear-gradient(180deg, transparent, rgba(0, 30, 60, 0.16) 40%, rgba(0, 30, 60, 0.22)); border-block: 1px solid var(--line); }
.sec-chat { background: linear-gradient(180deg, transparent, rgba(0, 40, 80, 0.25) 60%, rgba(0, 40, 80, 0.3)); }
.sec-title { font-family: var(--disp); font-weight: 500; font-size: clamp(30px, 4.6vw, 50px); line-height: 1.12; letter-spacing: -0.015em; margin-bottom: 20px; }
.sec-title em { font-style: normal; color: var(--cyan); text-shadow: 0 0 24px rgba(0, 229, 255, 0.4); }
.lead { max-width: 620px; color: var(--txt-2); font-size: 16.5px; }

/* tiles */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; }
.tile {
  padding: 28px 24px; border-radius: var(--r);
  background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.tile:hover { transform: translateY(-6px); border-color: rgba(0, 229, 255, 0.45); background: rgba(255, 255, 255, 0.055); }
.tile svg { width: 30px; height: 30px; color: var(--cyan); margin-bottom: 18px; filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.45)); }
.tile h3 { font-family: var(--disp); font-weight: 500; font-size: 17px; margin-bottom: 8px; }
.tile p { color: var(--txt-2); font-size: 13.5px; }

/* ═══ CHAT ═══ */
.chat-shell {
  max-width: 760px; margin: 44px auto 0; border-radius: 22px; overflow: hidden;
  background: var(--glass-2); border: 1px solid var(--line);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5), inset 0 0 60px rgba(0, 229, 255, 0.02);
  backdrop-filter: blur(20px);
}
.chat-head { display: flex; align-items: center; gap: 13px; padding: 17px 22px; border-bottom: 1px solid var(--line); }
.chat-head svg { filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.6)); }
.chat-head strong { font-family: var(--disp); font-weight: 600; font-size: 16px; display: block; letter-spacing: 0.01em; }
.chat-presence { font-size: 11.5px; color: var(--txt-2); display: flex; align-items: center; gap: 7px; margin-top: 1px; }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: #3dffa0; box-shadow: 0 0 10px rgba(61, 255, 160, 0.8); animation: pulse 2s ease infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.chat-msgs { height: min(50vh, 400px); overflow-y: auto; padding: 22px; display: flex; flex-direction: column; gap: 13px; scrollbar-width: thin; scrollbar-color: rgba(0,229,255,0.3) transparent; }
.msg { max-width: 82%; padding: 12px 17px; border-radius: 15px; font-size: 14.5px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.msg.bot { align-self: flex-start; background: rgba(0, 229, 255, 0.06); border: 1px solid rgba(0, 229, 255, 0.14); border-bottom-left-radius: 5px; }
.msg.user { align-self: flex-end; background: rgba(91, 140, 255, 0.14); border: 1px solid rgba(91, 140, 255, 0.22); border-bottom-right-radius: 5px; }
.msg.typing { color: var(--txt-2); font-style: italic; font-size: 13.5px; }
.chat-form { display: flex; gap: 10px; padding: 15px; border-top: 1px solid var(--line); }
.chat-form input {
  flex: 1; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line);
  border-radius: 999px; padding: 13px 19px; color: var(--ice); font-family: var(--sans); font-size: 14.5px; outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.chat-form input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.12); }
.chat-form button {
  width: 47px; height: 47px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--cyan); color: #041018;
  display: grid; place-items: center;
  transition: transform 0.15s ease, box-shadow 0.25s ease;
}
.chat-form button:hover { transform: translateY(-2px); box-shadow: 0 0 26px rgba(0, 229, 255, 0.55); }
.chat-form button:disabled { opacity: 0.4; cursor: default; transform: none; box-shadow: none; }
.chat-foot { text-align: center; color: var(--txt-2); font-size: 12px; margin-top: 20px; }
.chat-foot a { color: var(--cyan); }

/* ═══ FOOTER ═══ */
.foot { position: relative; z-index: 4; padding: 36px 24px 42px; border-top: 1px solid var(--line); }
.foot-inner { max-width: 1160px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.foot p { font-family: var(--disp); font-size: 14.5px; font-weight: 400; }
.foot-sub { font-family: var(--sans); font-size: 12px; color: var(--txt-2); }

/* ═══ RESPONSIVO ═══ */
@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .panel { display: none; }
}
@media (max-width: 620px) {
  .grid { grid-template-columns: 1fr; }
  .nav-links a:not(:last-child) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-hint::after { animation: none; }
}
