/* Base: design tokens, reset, typography, buttons, focus */

:root {
  /* Surfaces (darkest to lightest) */
  --bg-deep: #050720;
  --bg: #070A2A;
  --bg-raised: #0A0C35;
  --glow: #1C1870;
  --card: #11143E;

  /* Brand */
  --primary: #6042F6;
  --primary-hover: #6E54FF;
  --accent: #8B7CFF;
  --link: #A99CFF;
  --link-hover: #C9C0FF;
  --on-primary-soft: #EDEBFF;
  --on-primary-accent: #DCD5FF;
  --primary-ink: #2A1A9E;

  /* Text */
  --text: #FFFFFF;
  --text-2: #C9CCEB;
  --text-3: #B5B9DC;
  --muted: #8C8FB8;

  /* Status */
  --green: #22C55E;
  --green-soft: #4ADE80;
  --yellow: #EAB308;
  --red: #EF4444;
  --whatsapp: #25D366;

  /* Lines */
  --line: rgba(140, 130, 255, 0.12);
  --line-strong: rgba(140, 130, 255, 0.18);
  --line-ghost: rgba(201, 204, 235, 0.35);

  /* Type */
  --font: 'Outfit', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --fs-body: clamp(1rem, 0.94rem + 0.3vw, 1.0625rem);
  --fs-lead: clamp(1.0625rem, 0.95rem + 0.5vw, 1.25rem);
  --fs-h1: clamp(2.25rem, 1.35rem + 3.4vw, 3.875rem);
  --fs-h2: clamp(1.875rem, 1.2rem + 2.6vw, 3.25rem);
  --fs-h2-xl: clamp(2rem, 1.25rem + 2.9vw, 3.5rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.5vw, 1.4375rem);
  --fs-display: clamp(2.5rem, 1.3rem + 4.6vw, 4.5rem);

  /* Layout */
  --container: 1280px;
  --gutter: clamp(1rem, 0.5rem + 2vw, 2rem);
  --section-y: clamp(4.5rem, 3rem + 5vw, 8rem);
  --header-h: 80px;
  --radius: 18px;
  --radius-btn: 14px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}

h1,
h2 {
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

h3 {
  font-weight: 700;
  line-height: 1.25;
}

p {
  text-wrap: pretty;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--link);
}

a:hover {
  color: var(--link-hover);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--text);
  color: var(--primary-ink);
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  white-space: nowrap;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: var(--text);
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.btn:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.btn svg {
  flex-shrink: 0;
}

.btn--primary {
  background: var(--primary);
  box-shadow: 0 6px 22px rgba(96, 66, 246, 0.45);
}

.btn--primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 10px 30px rgba(96, 66, 246, 0.55);
}

.btn--ghost {
  border-color: var(--line-ghost);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.06);
}

.btn--lg {
  min-height: 64px;
  padding: 0 26px;
  border-radius: var(--radius-btn);
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
}

.btn--md {
  min-height: 60px;
  padding: 0 30px;
  border-radius: var(--radius-btn);
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  box-shadow: 0 10px 30px rgba(96, 66, 246, 0.4);
}

.btn--light {
  min-height: 68px;
  padding: 0 36px;
  border-radius: 16px;
  background: var(--text);
  color: var(--primary-ink);
  font-size: clamp(1.125rem, 1rem + 0.45vw, 1.3125rem);
  font-weight: 700;
  box-shadow: 0 14px 40px rgba(7, 10, 42, 0.35);
}

.btn--light:hover {
  color: var(--primary-ink);
  background: #F4F2FF;
}

.btn--whatsapp {
  min-height: 52px;
  padding: 0 18px;
  border-color: rgba(37, 211, 102, 0.4);
  background: rgba(37, 211, 102, 0.08);
}

.btn--whatsapp:hover {
  background: rgba(37, 211, 102, 0.16);
}
