/* ============================================================
   BASE.CSS — ADRIANCALLEJA.COM 2.0
   Global reset, variables, typography, layout
============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #050608;
  --bg-soft: #0b0f14;
  --surface: #0f141b;
  --surface-soft: #151b24;

  --text: #f8fafc;
  --text-soft: #cbd5e1;
  --muted: #8b98a8;

  --accent: #7cffe1;
  --accent-2: #8b5cf6;
  --accent-soft: rgba(124, 255, 225, 0.14);

  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --radius-sm: 0.75rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;

  --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 60px rgba(124, 255, 225, 0.16);

  --container: 1160px;

  --transition: 0.25s ease;
}

/* LIGHT MODE */

body.light {
  --bg: #f8fafc;
  --bg-soft: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f1f5f9;

  --text: #0f172a;
  --text-soft: #334155;
  --muted: #64748b;

  --border: rgba(15, 23, 42, 0.1);
  --border-strong: rgba(15, 23, 42, 0.18);

  --shadow-soft: 0 20px 50px rgba(15, 23, 42, 0.08);
  --shadow-glow: 0 0 60px rgba(14, 165, 233, 0.12);
}

/* RESET */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(124, 255, 225, 0.08), transparent 34rem),
    radial-gradient(circle at top right, rgba(139, 92, 246, 0.12), transparent 34rem),
    var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

p,
h1,
h2,
h3,
h4 {
  margin-top: 0;
}

p {
  color: var(--text-soft);
  line-height: 1.7;
}

::selection {
  background: var(--accent);
  color: #020617;
}

/* GLOBAL LAYOUT */

.page {
  min-height: 100vh;
}

.section {
  padding: 7rem 1.25rem;
}

.section-sm {
  padding: 4rem 1.25rem;
}

.container {
  width: min(100%, var(--container));
  margin-inline: auto;
}

.narrow {
  max-width: 760px;
}

.center {
  text-align: center;
  margin-inline: auto;
}

/* TYPOGRAPHY */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 18px var(--accent);
}

h1,
.h1 {
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
  margin-bottom: 1.5rem;
}

h2,
.h2 {
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.05em;
  margin-bottom: 1rem;
}

h3,
.h3 {
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.lead {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-soft);
  max-width: 760px;
}

/* UTILITIES */

.text-muted {
  color: var(--muted);
}

.accent {
  color: var(--accent);
}

.gradient-text {
  background: linear-gradient(120deg, var(--text), var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.glass {
  background: linear-gradient(180deg, rgba(255,255,255,0.065), rgba(255,255,255,0.025));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

body.light .glass {
  background: rgba(255, 255, 255, 0.86);
}

/* ACCESSIBILITY */

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* RESPONSIVE */

@media (max-width: 980px) {
  .section {
    padding: 5rem 1.1rem;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  h1,
  .h1 {
    letter-spacing: -0.055em;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 4rem 1rem;
  }

  h1,
  .h1 {
    font-size: clamp(2.7rem, 15vw, 4.4rem);
  }

  .lead {
    font-size: 1rem;
  }
}