/* ============================================================
   FÍSICA ALÉM DO PAPEL — Foundational tokens (inlined from colors_and_type.css)
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=IBM+Plex+Sans:wght@300;400;500;600;700&family=IBM+Plex+Mono:wght@300;400;500;600&family=Cormorant+Garamond:wght@400;500;600&display=swap');

:root {
  --void:            #04060C;
  --deep:            #080C18;
  --night:           #0D1326;
  --slate:           #141B33;
  --steel:           #1C2542;
  --line:            rgba(255, 255, 255, 0.08);
  --line-strong:     rgba(255, 255, 255, 0.16);

  --electric:        #2D6FF7;
  --electric-deep:   #1B4FD0;
  --electric-soft:   #5E94FF;
  --navy:            #0E2A6F;
  --teal-deep:       #0F4256;

  --plasma-cyan:     #00E5FF;
  --plasma-magenta:  #FF2D9D;
  --plasma-violet:   #6B3FFF;
  --plasma-amber:    #FFB347;

  --glow-electric:   0 0 32px rgba(45, 111, 247, 0.45);
  --glow-cyan:       0 0 32px rgba(0, 229, 255, 0.40);
  --glow-magenta:    0 0 32px rgba(255, 45, 157, 0.40);
  --glow-violet:     0 0 28px rgba(107, 63, 255, 0.45);

  --fg-1:            #F4F6FF;
  --fg-2:            #B8C0DA;
  --fg-3:            #7A839E;
  --fg-4:            #4A5273;
  --fg-invert:       #04060C;

  --success:         #2EE6A8;
  --warn:            #FFB347;
  --danger:          #FF4D6D;

  --grad-plasma:     linear-gradient(135deg, #FF2D9D 0%, #6B3FFF 50%, #00E5FF 100%);
  --grad-electric:   linear-gradient(135deg, #2D6FF7 0%, #6B3FFF 100%);
  --grad-cosmic:     radial-gradient(ellipse at top, #1C2542 0%, #080C18 60%, #04060C 100%);
  --grad-aurora:     linear-gradient(180deg, rgba(45,111,247,0) 0%, rgba(45,111,247,0.15) 50%, rgba(255,45,157,0.10) 100%);

  --font-display:    'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-body:       'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --font-mono:       'IBM Plex Mono', ui-monospace, 'SF Mono', monospace;
  --font-wordmark:   'Cormorant Garamond', 'Times New Roman', serif;

  --t-hero:          clamp(56px, 8vw, 120px);
  --t-display:       clamp(44px, 5.5vw, 80px);
  --t-h1:            clamp(36px, 4vw, 56px);
  --t-h2:            clamp(28px, 3vw, 40px);
  --t-h3:            22px;
  --t-h4:            18px;
  --t-body:          16px;
  --t-small:         14px;
  --t-micro:         12px;
  --t-overline:      11px;

  --w-light:         300;
  --w-regular:       400;
  --w-medium:        500;
  --w-semibold:      600;
  --w-bold:          700;

  --tr-tight:        -0.03em;
  --tr-snug:         -0.01em;
  --tr-normal:       0em;
  --tr-wide:         0.08em;
  --tr-overline:     0.20em;

  --s-1: 4px; --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

  --r-xs:            4px;
  --r-sm:            8px;
  --r-md:            12px;
  --r-lg:            20px;
  --r-xl:            28px;
  --r-pill:          999px;

  --e-1: 0 1px 0 rgba(255,255,255,0.04) inset, 0 1px 2px rgba(0,0,0,0.4);
  --e-2: 0 1px 0 rgba(255,255,255,0.05) inset, 0 8px 24px rgba(0,0,0,0.5);
  --e-3: 0 1px 0 rgba(255,255,255,0.06) inset, 0 16px 48px rgba(0,0,0,0.6);
  --e-4: 0 1px 0 rgba(255,255,255,0.08) inset, 0 32px 80px rgba(0,0,0,0.7);

  --ease-out:        cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:     cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring:     cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast:        160ms;
  --dur-base:        320ms;
  --dur-slow:        640ms;
  --dur-cinema:      1200ms;
}

/* Website-specific layout primitives */

*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--void);
  color: var(--fg-1);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}
body { overflow-x: hidden; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Layout primitives ---------- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.container-wide { max-width: 1440px; margin: 0 auto; padding: 0 32px; }
.section { padding: 96px 0; position: relative; }
.section-tight { padding: 64px 0; }

/* reserve a left rail for the fixed vertical nav on larger screens */
/* default = expanded sidebar (220px nav + 12px left offset + 16px gap = 248px) */
@media (min-width: 900px) {
  body { padding-left: 248px; }
}

/* collapsed sidebar state — toggled by JS adding data-nav-collapsed to body */
@media (min-width: 900px) {
  body[data-nav-collapsed] { padding-left: 80px; }
}

/* drawer backdrop fade-in */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* hairline rule */
.rule { height: 1px; background: var(--line); border: none; margin: 0; }

/* overline label */
.overline-row {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--plasma-cyan); letter-spacing: 0.22em; text-transform: uppercase;
  margin-bottom: 24px;
}
.overline-row::before {
  content: ""; width: 24px; height: 1px;
  background: linear-gradient(90deg, var(--plasma-cyan), transparent);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: var(--r-md);
  font-family: var(--font-display); font-size: 14px; font-weight: 500;
  letter-spacing: 0.01em; border: none; cursor: pointer;
  transition: all 0.32s var(--ease-out);
  white-space: nowrap;
}
.btn .arrow { transition: transform 0.32s var(--ease-out); display: inline-block; }
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary {
  background: var(--electric); color: #fff;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08) inset,
    0 0 24px rgba(45,111,247,0.45);
}
.btn-primary:hover {
  background: var(--electric-soft);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.12) inset,
    0 0 40px rgba(45,111,247,0.7);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent; color: var(--fg-1);
  box-shadow: 0 0 0 1px var(--line-strong) inset;
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.04);
  box-shadow: 0 0 0 1px var(--electric) inset;
}

.btn-ghost {
  background: transparent; color: var(--plasma-cyan);
  padding: 14px 8px;
}
.btn-ghost:hover { color: #fff; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: all 0.8s var(--ease-out); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Grain ---------- */
.grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.85' /%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  mix-blend-mode: overlay; opacity: 0.18; z-index: 1;
}

/* ============================================================
   MOBILE RESPONSIVE — max-width: 767px
   All overrides are mobile-only; desktop is untouched above.
   ============================================================ */
@media (max-width: 767px) {
  /* Tighter container padding on small screens */
  .container { padding: 0 20px; }
  .container-wide { padding: 0 16px; }

  /* Compressed section vertical rhythm */
  .section { padding: 56px 0; }
  .section-tight { padding: 36px 0; }

  /* Utility: force single-column grids */
  .grid-mobile-1col { grid-template-columns: 1fr !important; }
  /* Utility: force 2-column grids */
  .grid-mobile-2col { grid-template-columns: 1fr 1fr !important; }

  /* Overline rows stay readable */
  .overline-row { font-size: 10px; letter-spacing: 0.16em; }

  /* Buttons full-width on mobile */
  .btn-mobile-full { width: 100%; justify-content: center; }

  /* Prevent hero overflow from orbit arc decorations */
  .hero-overflow-guard { overflow: hidden; }
}
