/* ========================================================
   AGÊNCIA COCKPIT — Futuristic UI System
   ======================================================== */

:root {
  --bg-0: #04060d;
  --bg-1: #070b1a;
  --bg-2: #0b1028;
  --surface: rgba(18, 24, 48, 0.55);
  --surface-strong: rgba(22, 30, 60, 0.75);
  --border: rgba(120, 170, 255, 0.18);
  --border-strong: rgba(140, 200, 255, 0.35);
  --text: #e8ecff;
  --text-dim: #a4acc9;
  --text-mute: #7681a3;
  --accent-cyan: #3ef0ff;
  --accent-violet: #8a5bff;
  --accent-magenta: #ff4fd8;
  --accent-lime: #b7ff3e;
  --grad-primary: linear-gradient(120deg, #3ef0ff 0%, #8a5bff 45%, #ff4fd8 100%);
  --grad-soft: linear-gradient(180deg, rgba(62, 240, 255, 0.08), rgba(138, 91, 255, 0.02));
  --shadow-glow: 0 0 40px rgba(62, 240, 255, 0.25), 0 0 80px rgba(138, 91, 255, 0.15);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --font-display: "Orbitron", "Space Grotesk", system-ui, sans-serif;
  --font-body: "Space Grotesk", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-0);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(62, 240, 255, 0.15), transparent 60%),
    radial-gradient(900px 600px at 90% 10%, rgba(138, 91, 255, 0.18), transparent 55%),
    radial-gradient(700px 500px at 50% 100%, rgba(255, 79, 216, 0.12), transparent 60%),
    var(--bg-0);
  z-index: -3;
}

#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  opacity: 0.55;
  pointer-events: none;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(120, 170, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 170, 255, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  pointer-events: none;
}

/* ============ TYPOGRAPHY ============ */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--text);
}

h1 { font-size: clamp(2.2rem, 5vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.8rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 0.95rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; }

p { color: var(--text-dim); }

a { color: inherit; text-decoration: none; transition: color 0.2s ease, opacity 0.2s ease; }
a:hover { color: var(--accent-cyan); }

.gradient-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--accent-cyan);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* ============ LAYOUT ============ */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(4, 6, 13, 0.55);
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.15em;
  color: var(--text);
}

.brand-text b {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--grad-primary);
  box-shadow: var(--shadow-glow);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  background: var(--bg-0);
  border-radius: 3px;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--text-dim);
  font-weight: 500;
}

.nav-links a:hover { color: var(--text); }

.cta-link {
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text) !important;
  background: rgba(62, 240, 255, 0.06);
  transition: all 0.2s ease;
}

.cta-link:hover {
  background: rgba(62, 240, 255, 0.15);
  box-shadow: 0 0 20px rgba(62, 240, 255, 0.25);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s;
}

/* ============ HERO ============ */

.hero {
  padding: 10rem 2rem 6rem;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 4rem;
  align-items: center;
  min-height: 100vh;
  position: relative;
}

.hero-title {
  margin: 0.5rem 0 1.5rem;
}

.hero-sub {
  font-size: 1.15rem;
  max-width: 560px;
  color: var(--text-dim);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin: 2.5rem 0;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.8rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--grad-primary);
  color: #04060d;
  box-shadow: 0 8px 32px rgba(62, 240, 255, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(62, 240, 255, 0.5);
  color: #04060d;
}

.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(62, 240, 255, 0.08);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.hero-stats > div {
  display: flex;
  flex-direction: column;
}

.hero-stats strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text);
}

.hero-stats span {
  font-size: 0.8rem;
  color: var(--text-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.2rem;
}

/* Hero Orb */
.hero-orb {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1;
  justify-self: center;
}

.orb {
  position: absolute;
  inset: 25%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #3ef0ff 0%, #8a5bff 40%, #ff4fd8 80%, transparent 100%);
  filter: blur(2px);
  box-shadow: 0 0 120px rgba(138, 91, 255, 0.6), 0 0 200px rgba(62, 240, 255, 0.3);
  animation: float 6s ease-in-out infinite;
}

.ring {
  position: absolute;
  border: 1px solid rgba(120, 170, 255, 0.25);
  border-radius: 50%;
  inset: 0;
  animation: spin 20s linear infinite;
}

.ring::before {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--accent-cyan);
  border-radius: 50%;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 20px var(--accent-cyan);
}

.ring-1 { animation-duration: 18s; }
.ring-2 { inset: 10%; animation-duration: 24s; animation-direction: reverse; border-color: rgba(138, 91, 255, 0.25); }
.ring-2::before { background: var(--accent-violet); box-shadow: 0 0 20px var(--accent-violet); }
.ring-3 { inset: 20%; animation-duration: 30s; border-color: rgba(255, 79, 216, 0.25); }
.ring-3::before { background: var(--accent-magenta); box-shadow: 0 0 20px var(--accent-magenta); }

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-15px) scale(1.03); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ============ SECTIONS ============ */

.section {
  padding: 6rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
}

.section-head {
  margin-bottom: 3rem;
  max-width: 760px;
}

.section-head.center {
  text-align: center;
  margin-inline: auto;
}

.section-desc {
  margin-top: 1rem;
  font-size: 1.05rem;
  color: var(--text-dim);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Cards */
.glass-card,
.feature-card,
.product-card,
.contact-card {
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
}

.glass-card::before,
.feature-card::before,
.product-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(62, 240, 255, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.glass-card:hover,
.feature-card:hover,
.product-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(62, 240, 255, 0.08);
}

.glass-card:hover::before,
.feature-card:hover::before,
.product-card:hover::before {
  opacity: 1;
}

.glass-card h3,
.feature-card h3,
.product-card h3 {
  margin-bottom: 0.75rem;
}

.feature-icon {
  font-size: 1.8rem;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(62, 240, 255, 0.15), rgba(138, 91, 255, 0.15));
  border: 1px solid var(--border);
  margin-bottom: 1.2rem;
  color: var(--accent-cyan);
}

.product-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--accent-cyan);
  margin-bottom: 1rem;
}

/* Contact */
.contact-section {
  padding-top: 4rem;
  padding-bottom: 6rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 960px;
  margin: 3rem auto 0;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: center;
  padding: 2.2rem 1.5rem;
}

.contact-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-cyan);
}

.contact-value {
  font-size: 1rem;
  color: var(--text);
  word-break: break-word;
}

/* ============ FOOTER ============ */

.site-footer {
  margin-top: 6rem;
  padding: 4rem 2rem 2rem;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(7, 11, 26, 0.6), rgba(4, 6, 13, 0.9));
  backdrop-filter: blur(20px);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 4rem;
}

.footer-brand .brand-text {
  font-family: var(--font-display);
  letter-spacing: 0.15em;
}

.footer-brand .brand-mark,
.footer-brand .brand-text {
  display: inline-block;
  vertical-align: middle;
}

.footer-brand .brand-mark {
  margin-right: 0.7rem;
}

.footer-legal {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-mute);
}

.footer-legal strong {
  color: var(--text);
  font-weight: 600;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.footer-cols h4 {
  color: var(--text);
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: var(--accent-cyan);
}

.footer-cols ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-cols a {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.footer-cols a:hover { color: var(--accent-cyan); }

.footer-bottom {
  max-width: 1280px;
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-mute);
}

/* ============ LEGAL PAGES ============ */

.legal-page {
  padding: 10rem 2rem 6rem;
  max-width: 860px;
  margin: 0 auto;
}

.legal-page h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.5rem;
}

.legal-page .updated {
  color: var(--text-mute);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  display: block;
}

.legal-page h2 {
  font-size: 1.4rem;
  margin: 2.5rem 0 0.8rem;
  color: var(--accent-cyan);
  font-family: var(--font-display);
}

.legal-page h3 {
  margin: 1.5rem 0 0.5rem;
  color: var(--text);
}

.legal-page p,
.legal-page li {
  color: var(--text-dim);
  margin-bottom: 0.9rem;
  font-size: 1rem;
  line-height: 1.75;
}

.legal-page ul, .legal-page ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-page a {
  color: var(--accent-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-page strong { color: var(--text); }

.legal-toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 3rem;
}

.legal-toc h4 {
  color: var(--accent-cyan);
  margin-bottom: 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
}

.legal-toc ol {
  padding-left: 1.2rem;
  margin: 0;
}

.legal-toc li {
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

/* ============ RESPONSIVE ============ */

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 8rem 1.5rem 4rem;
    gap: 2rem;
  }
  .hero-orb { max-width: 320px; margin: 0 auto; }
  .grid-2, .grid-3, .contact-grid, .footer-inner {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 4rem 1.5rem; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    background: rgba(4, 6, 13, 0.98);
    backdrop-filter: blur(20px);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    gap: 1.2rem;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s ease;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .site-header { padding: 1rem 1.5rem; }
}

@media (max-width: 560px) {
  .hero-stats { gap: 1.5rem; }
  .hero-stats strong { font-size: 1.2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .legal-page { padding: 8rem 1.25rem 4rem; }
}

/* ============ ANIMATIONS ============ */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
