/* ============================================================
   Grupo Tera — Foundations
   Deep void + holographic accents. Hairline glass surfaces.
   ============================================================ */

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

:root {
  /* --- Brand / Holographic palette ----------------------------- */
  --tera-electric:    #1E6BFF;   /* electric blue — primary corporate */
  --tera-cyan:        #22D3EE;   /* holographic cyan — interactive */
  --tera-violet:      #7C5CFF;   /* violet glow — accent */
  --tera-turquoise:   #10E0C7;   /* turquoise glow — secondary accent */
  --tera-aurora:      #5EEAD4;   /* soft aurora — highlight */

  /* --- Surfaces (light theme) ---------------------------------- */
  --void-0:           #FFFFFF;   /* paper white, edge */
  --void-1:           #FAFBFE;   /* base canvas */
  --void-2:           #F4F6FB;   /* raised section */
  --void-3:           #EDF1F8;   /* deeper section */
  --graphite-1:       #E2E7F1;   /* solid card on light */
  --graphite-2:       #CFD6E3;   /* hover surface */
  --graphite-3:       #B7C0D2;   /* divider strong */

  /* --- Foreground ladder (dark text on light) ------------------ */
  --fg-0:             #03050A;   /* deepest — headlines */
  --fg-1:             #0F1422;   /* body */
  --fg-2:             #2A3145;   /* secondary */
  --fg-3:             #5A6478;   /* tertiary / labels */
  --fg-4:             #8B97AE;   /* muted */
  --fg-5:             #B7C0D2;   /* placeholder */

  /* --- Hairline borders (dark on light) ------------------------ */
  --line-1:           rgba(15, 20, 34, 0.07);    /* default hairline */
  --line-2:           rgba(15, 20, 34, 0.12);    /* hover hairline */
  --line-3:           rgba(15, 20, 34, 0.20);    /* emphasis */
  --line-accent:      rgba(30, 107, 255, 0.40);  /* electric edge */

  /* --- Glass tints (frosted white on light bg) ----------------- */
  --glass-1:          rgba(255, 255, 255, 0.55);  /* subtle pane */
  --glass-2:          rgba(255, 255, 255, 0.65);  /* card */
  --glass-3:          rgba(255, 255, 255, 0.85);  /* raised / hover */
  --glass-tint-cyan:  rgba(34, 211, 238, 0.08);
  --glass-tint-violet:rgba(124, 92, 255, 0.08);

  /* --- Semantic ------------------------------------------------ */
  --success:          #10E0C7;
  --warn:             #F5B544;
  --danger:           #FF5C7A;
  --info:             var(--tera-cyan);

  /* --- Gradients ----------------------------------------------- */
  --grad-holo:        linear-gradient(135deg, #7C5CFF 0%, #22D3EE 50%, #10E0C7 100%);
  --grad-aurora:      conic-gradient(from 210deg at 50% 50%, #1E6BFF, #7C5CFF, #22D3EE, #10E0C7, #1E6BFF);
  --grad-fade-down:   linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
  --grad-edge:        linear-gradient(180deg, rgba(255,255,255,0.6), rgba(255,255,255,0) 40%);
  --grad-text-holo:   linear-gradient(92deg, #1E6BFF 0%, #22D3EE 50%, #7C5CFF 100%);

  /* --- Shadows / Glows (light theme: cool shadow color) -------- */
  --shadow-1:         0 1px 0 rgba(255,255,255,0.6) inset, 0 6px 18px rgba(15, 22, 40, 0.06);
  --shadow-2:         0 1px 0 rgba(255,255,255,0.8) inset, 0 18px 48px rgba(15, 22, 40, 0.10);
  --shadow-deep:      0 40px 120px rgba(15, 22, 40, 0.18);
  --glow-cyan:        0 0 0 1px rgba(34,211,238,0.30), 0 0 40px rgba(34,211,238,0.22);
  --glow-violet:      0 0 0 1px rgba(124,92,255,0.30), 0 0 40px rgba(124,92,255,0.22);
  --glow-soft:        0 0 80px rgba(34,211,238,0.14);

  /* --- Radii --------------------------------------------------- */
  --r-xs:  4px;
  --r-sm:  8px;
  --r-md:  12px;
  --r-lg:  20px;
  --r-xl:  28px;
  --r-2xl: 40px;
  --r-pill:999px;

  /* --- Spacing (8pt scale) ------------------------------------- */
  --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;

  /* --- Typography families ------------------------------------- */
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body:    "Manrope", ui-sans-serif, system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  /* --- Motion -------------------------------------------------- */
  --ease-cine:    cubic-bezier(0.22, 1, 0.36, 1);   /* cinematic out */
  --ease-glide:   cubic-bezier(0.4, 0, 0.2, 1);
  --ease-snap:    cubic-bezier(0.5, 1.6, 0.4, 1);
  --dur-fast:     180ms;
  --dur-base:     320ms;
  --dur-slow:     640ms;
  --dur-cine:     1200ms;
}

/* ============================================================
   Base
   ============================================================ */
html, body {
  background: var(--void-1);
  color: var(--fg-1);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ============================================================
   Semantic type — fluid-ish corporate scale
   Display feels cinematic. Body is calm and dense.
   ============================================================ */
.t-display {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(56px, 7vw, 104px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  color: var(--fg-0);
}
.t-h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 4.6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--fg-0);
}
.t-h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(32px, 3.4vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--fg-0);
}
.t-h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.018em;
  color: var(--fg-0);
}
.t-h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--fg-1);
}
.t-lead {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.5;
  color: var(--fg-2);
}
.t-body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg-2);
}
.t-small {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-3);
}
.t-caption {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.45;
  color: var(--fg-3);
}
/* Eyebrow — mono, uppercase, tracked. Used for section labels. */
.t-eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.t-eyebrow--accent { color: var(--tera-cyan); }

/* KPI / metric */
.t-metric {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(48px, 5.2vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--fg-0);
  font-feature-settings: "tnum", "lnum";
}
.t-mono {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--fg-3);
}

/* Holographic gradient text */
.t-holo {
  background: var(--grad-text-holo);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ============================================================
   Surfaces
   ============================================================ */
.glass {
  background: var(--glass-2);
  border: 1px solid var(--line-1);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  box-shadow: var(--shadow-2);
}
.glass-strong {
  background: var(--glass-3);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
}
.hairline { border: 1px solid var(--line-1); }

/* ============================================================
   Backgrounds & utility motifs
   ============================================================ */
.bg-grid {
  background-image:
    linear-gradient(rgba(15, 20, 34, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 20, 34, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
}
.bg-dotgrid {
  background-image: radial-gradient(rgba(15, 20, 34, 0.12) 1px, transparent 1.4px);
  background-size: 24px 24px;
}
.bg-vignette {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(124,92,255,0.10), transparent 60%),
    radial-gradient(ellipse at 80% 90%, rgba(34,211,238,0.10), transparent 55%),
    var(--void-1);
}
