/* =========================================================
   180º Soluções — Design Tokens & Base
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Mona+Sans:ital,wght@0,400..900;1,400..900&family=Outfit:wght@300..800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Brand */
  --navy-900: #03061a;
  --navy-800: #060c25;
  --navy-700: #0a1240;
  --navy-600: #0d1b4a;
  --navy-500: #122470;
  --navy-400: #1c3196;

  --blue-600: #1e4eff;
  --blue-500: #1e6bff;   /* primary */
  --blue-400: #4d9fff;
  --blue-300: #88c1ff;
  --blue-200: #a8d0ff;
  --blue-100: #d5e6ff;

  --cyan-500: #00d4ff;   /* neon */
  --cyan-400: #4ce8ff;
  --cyan-300: #88f0ff;

  --violet-500: #6a5cff; /* small accent */

  /* Surfaces (DARK default) */
  --bg-0: #02041a;
  --bg-1: #05081f;
  --bg-2: #080d2a;
  --bg-3: #0c1338;
  --surface: rgba(13, 27, 74, 0.42);
  --surface-2: rgba(20, 38, 100, 0.32);
  --surface-glass: rgba(255, 255, 255, 0.04);
  --surface-glass-strong: rgba(255, 255, 255, 0.07);

  --border: rgba(76, 122, 255, 0.18);
  --border-strong: rgba(76, 122, 255, 0.38);
  --border-neon: rgba(0, 212, 255, 0.45);

  --text: #e8f1ff;
  --text-2: #c9d6f5;
  --text-muted: #8ea0c9;
  --text-dim: #5a6a93;

  --grid: rgba(76, 122, 255, 0.07);
  --grid-strong: rgba(76, 122, 255, 0.15);

  /* Effects */
  --glow-cyan: 0 0 24px rgba(0, 212, 255, 0.55), 0 0 60px rgba(0, 212, 255, 0.18);
  --glow-cyan-sm: 0 0 14px rgba(0, 212, 255, 0.45);
  --glow-blue: 0 0 28px rgba(30, 107, 255, 0.6), 0 0 80px rgba(30, 107, 255, 0.22);
  --glow-blue-sm: 0 0 16px rgba(30, 107, 255, 0.5);
  --shadow-card: 0 24px 60px -20px rgba(2, 4, 26, 0.7),
                 0 8px 24px -8px rgba(2, 4, 26, 0.5);
  --shadow-card-hover: 0 32px 80px -20px rgba(0, 60, 200, 0.5),
                       0 12px 40px -8px rgba(0, 100, 255, 0.25);

  /* Gradients */
  --grad-text: linear-gradient(180deg, #ffffff 0%, #b9d0ff 60%, #4d9fff 100%);
  --grad-text-neon: linear-gradient(135deg, #88f0ff 0%, #4d9fff 40%, #1e6bff 100%);
  --grad-cyan: linear-gradient(135deg, #00d4ff 0%, #1e6bff 100%);
  --grad-blue: linear-gradient(135deg, #1e6bff 0%, #122470 100%);
  --grad-deep: linear-gradient(180deg, #02041a 0%, #050a26 50%, #02041a 100%);
  --grad-radial-hero: radial-gradient(circle at 50% 40%,
                                       rgba(30, 107, 255, 0.22) 0%,
                                       rgba(30, 107, 255, 0.08) 25%,
                                       transparent 55%);

  /* Geometry */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  /* Type */
  --font-display: 'Mona Sans', 'Outfit', system-ui, sans-serif;
  --font-sans: 'Outfit', 'Mona Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Spacing */
  --container: 1240px;
  --container-narrow: 880px;
  --section-y: clamp(80px, 12vw, 160px);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- Light mode overrides ---------- */
:root[data-theme="light"] {
  --bg-0: #f4f7ff;
  --bg-1: #ffffff;
  --bg-2: #f4f7ff;
  --bg-3: #e9efff;
  --surface: rgba(255, 255, 255, 0.7);
  --surface-2: rgba(244, 247, 255, 0.85);
  --surface-glass: rgba(255, 255, 255, 0.55);
  --surface-glass-strong: rgba(255, 255, 255, 0.78);

  --border: rgba(30, 107, 255, 0.18);
  --border-strong: rgba(30, 107, 255, 0.4);
  --border-neon: rgba(30, 107, 255, 0.5);

  --text: #050a26;
  --text-2: #1a2554;
  --text-muted: #4a5a85;
  --text-dim: #7c8bb4;

  --grid: rgba(30, 107, 255, 0.06);
  --grid-strong: rgba(30, 107, 255, 0.14);

  --glow-cyan: 0 0 20px rgba(0, 140, 220, 0.35), 0 0 40px rgba(30, 107, 255, 0.15);
  --glow-blue: 0 0 24px rgba(30, 107, 255, 0.4), 0 0 60px rgba(30, 107, 255, 0.18);

  --shadow-card: 0 24px 60px -24px rgba(10, 28, 90, 0.18),
                 0 8px 24px -8px rgba(10, 28, 90, 0.08);
  --shadow-card-hover: 0 32px 80px -20px rgba(30, 107, 255, 0.28),
                       0 12px 40px -8px rgba(30, 107, 255, 0.12);

  --grad-text: linear-gradient(180deg, #050a26 0%, #1c3196 60%, #1e6bff 100%);
  --grad-text-neon: linear-gradient(135deg, #1e6bff 0%, #1c3196 100%);
  --grad-deep: linear-gradient(180deg, #f4f7ff 0%, #ffffff 50%, #f4f7ff 100%);
  --grad-radial-hero: radial-gradient(circle at 50% 40%,
                                       rgba(30, 107, 255, 0.12) 0%,
                                       rgba(30, 107, 255, 0.04) 35%,
                                       transparent 60%);
}

/* =========================================================
   Reset & Base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg-0);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background 0.5s var(--ease-out), color 0.5s var(--ease-out);
}

/* Cosmic starfield — fixed full-viewport canvas behind everything */
#starfield {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.6s var(--ease-out);
}
:root[data-theme="light"] #starfield { opacity: 0.4; }
main, .nav, .side, .side__backdrop, footer { position: relative; z-index: 1; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--cyan-500); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(0, 212, 255, 0.35); color: #fff; }

/* Scrollbar (dark) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--blue-500), var(--cyan-500));
  border-radius: 99px;
  border: 2px solid var(--bg-0);
}

/* =========================================================
   Type Helpers
   ========================================================= */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan-500);
  text-shadow: var(--glow-cyan-sm);
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan-500));
}
.h1, h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 7vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0;
}
.h2, h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4.4vw, 60px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin: 0;
}
.h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin: 0;
}
.lead {
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--text-2);
  max-width: 60ch;
  text-wrap: pretty;
}
.text-muted { color: var(--text-muted); }
.text-dim { color: var(--text-dim); }
.text-grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.text-neon {
  background: var(--grad-text-neon);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 40px rgba(30, 107, 255, 0.25);
  filter: drop-shadow(0 0 18px rgba(30, 107, 255, 0.4));
}
:root[data-theme="light"] .text-neon { filter: drop-shadow(0 0 12px rgba(30, 107, 255, 0.2)); }

.mono { font-family: var(--font-mono); }

/* =========================================================
   Layout
   ========================================================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 24px;
}
section {
  padding: var(--section-y) 0;
  position: relative;
}
.section-head {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  text-align: center;
  margin: 0 auto 64px;
  max-width: 760px;
}
.section-head .lead { margin: 0 auto; }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.005em;
  cursor: pointer;
  position: relative;
  isolation: isolate;
  transition: transform 0.2s var(--ease-out),
              box-shadow 0.3s var(--ease-out),
              background 0.3s var(--ease-out),
              color 0.3s var(--ease-out);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }

.btn-primary {
  background: linear-gradient(135deg, #1e6bff 0%, #4d9fff 50%, #00d4ff 100%);
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.18) inset,
    0 10px 30px -8px rgba(0, 140, 255, 0.55),
    0 0 30px rgba(0, 212, 255, 0.35);
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.25), transparent 50%);
  z-index: -1;
  opacity: 0.8;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, #00d4ff, #1e6bff, #88f0ff);
  z-index: -2;
  opacity: 0;
  filter: blur(18px);
  transition: opacity 0.4s var(--ease-out);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.28) inset,
    0 16px 40px -8px rgba(0, 140, 255, 0.7),
    0 0 50px rgba(0, 212, 255, 0.55);
}
.btn-primary:hover::after { opacity: 0.85; }

.btn-ghost {
  background: var(--surface-glass);
  color: var(--text);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.btn-ghost:hover {
  background: var(--surface-glass-strong);
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--glow-blue-sm);
}

.btn-neon {
  background: transparent;
  color: var(--cyan-500);
  border: 1px solid var(--cyan-500);
  box-shadow: var(--glow-cyan-sm), inset 0 0 12px rgba(0,212,255,0.12);
  text-shadow: var(--glow-cyan-sm);
}
.btn-neon:hover {
  background: rgba(0, 212, 255, 0.08);
  box-shadow: var(--glow-cyan), inset 0 0 20px rgba(0,212,255,0.2);
  transform: translateY(-2px);
}

.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-lg { padding: 18px 32px; font-size: 16px; }

/* =========================================================
   Cards & Surfaces
   ========================================================= */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s var(--ease-out),
              box-shadow 0.3s var(--ease-out),
              transform 0.3s var(--ease-out);
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(800px circle at var(--mx, 50%) var(--my, 0%),
                              rgba(0, 212, 255, 0.10), transparent 40%);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
  pointer-events: none;
}
.card:hover::before { opacity: 1; }
.card-hover:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.glass {
  background: var(--surface-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border);
}

/* Neon ring effect — animated gradient border */
.neon-ring {
  position: relative;
  border-radius: var(--radius-lg);
}
.neon-ring::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--ring-deg, 0deg),
                              transparent 0deg,
                              var(--cyan-500) 60deg,
                              var(--blue-500) 120deg,
                              transparent 180deg,
                              transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: ring-spin 6s linear infinite;
}
@keyframes ring-spin {
  to { --ring-deg: 360deg; }
}
@property --ring-deg {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

/* =========================================================
   Reveal-on-scroll
   ========================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal="up"] { transform: translateY(28px); }
[data-reveal="down"] { transform: translateY(-28px); }
[data-reveal="left"] { transform: translateX(-32px); }
[data-reveal="right"] { transform: translateX(32px); }
[data-reveal="scale"] { transform: scale(0.94); }
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* =========================================================
   Decorative Backgrounds
   ========================================================= */
.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 60px 60px;
  background-position: -1px -1px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, #000 30%, transparent 80%);
  pointer-events: none;
}
.bg-grid-dense {
  background-size: 32px 32px;
  background-image:
    linear-gradient(var(--grid-strong) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-strong) 1px, transparent 1px);
}
.bg-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--grid-strong) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 50%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 50%, #000 30%, transparent 80%);
  pointer-events: none;
}
.bg-glow {
  position: absolute;
  inset: 0;
  background: var(--grad-radial-hero);
  pointer-events: none;
}
.bg-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.5  0 0 0 0 0.65  0 0 0 0 1  0 0 0 0.08 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.4;
  pointer-events: none;
  mix-blend-mode: overlay;
}

/* =========================================================
   Animations
   ========================================================= */
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.6), var(--glow-cyan-sm); }
  70% { box-shadow: 0 0 0 18px rgba(0, 212, 255, 0); }
}
@keyframes shimmer {
  to { background-position: 200% center; }
}
@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
@keyframes spin-slow {
  to { transform: rotate(360deg); }
}
@keyframes scanline {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.shimmer-text {
  background: linear-gradient(90deg,
              var(--text) 0%,
              var(--text) 35%,
              var(--cyan-500) 50%,
              var(--text) 65%,
              var(--text) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 4s linear infinite;
}

/* =========================================================
   Marquee
   ========================================================= */
.marquee {
  display: flex;
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: marquee var(--marquee-duration, 30s) linear infinite;
  flex-shrink: 0;
}
.marquee:hover .marquee__track { animation-play-state: paused; }

/* =========================================================
   Pill / Tag / Chip
   ========================================================= */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--surface-glass);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.chip-neon {
  border-color: var(--border-neon);
  color: var(--cyan-500);
  background: rgba(0, 212, 255, 0.06);
  text-shadow: var(--glow-cyan-sm);
}
.chip-dot {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--cyan-500);
  box-shadow: var(--glow-cyan-sm);
  animation: pulse-glow 2.4s ease-in-out infinite;
}

/* =========================================================
   Utilities
   ========================================================= */
.flex { display: flex; }
.grid { display: grid; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.gap-5 { gap: 20px; } .gap-6 { gap: 24px; } .gap-8 { gap: 32px; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-col { flex-direction: column; }
.text-center { text-align: center; }
.relative { position: relative; }
.w-full { width: 100%; }
.no-wrap { white-space: nowrap; }
.hide-mobile { }
.hide-desktop { display: none; }
@media (max-width: 760px) {
  .hide-mobile { display: none !important; }
  .hide-desktop { display: revert; }
  .section-head { margin-bottom: 40px; }
}

/* =========================================================
   Cursor (custom)
   ========================================================= */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
}
.cursor-dot {
  width: 8px; height: 8px;
  background: var(--cyan-500);
  border-radius: 999px;
  box-shadow: var(--glow-cyan-sm);
  transform: translate(-50%, -50%);
  transition: width 0.2s var(--ease-out), height 0.2s var(--ease-out);
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid var(--cyan-500);
  border-radius: 999px;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out),
              border-color 0.3s var(--ease-out), background 0.3s var(--ease-out);
}
.cursor-ring.is-active {
  width: 56px; height: 56px;
  background: rgba(0, 212, 255, 0.1);
}
@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
