/* ============================================================
   TIPONET — 2026 Design System
   Palette: Navy base + Electric Blue → Violet gradients
   ============================================================ */

/* ---------- 1. Design Tokens ---------- */
:root {
  /* Colors */
  --bg: #0B1020;
  --bg-2: #0F152C;
  --bg-3: #141B38;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --text: #E8ECF8;
  --text-dim: #A6ADC8;
  --text-mute: #6B7394;

  --brand-1: #3B82F6;  /* electric blue */
  --brand-2: #8B5CF6;  /* violet */
  --brand-3: #22D3EE;  /* cyan accent */
  --success: #22C55E;
  --warn: #F59E0B;
  --danger: #EF4444;

  --grad-brand: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);
  --grad-brand-soft: linear-gradient(135deg, rgba(59,130,246,.18) 0%, rgba(139,92,246,.18) 100%);
  --grad-hero: radial-gradient(ellipse at 20% 0%, rgba(59,130,246,.35), transparent 55%),
               radial-gradient(ellipse at 85% 20%, rgba(139,92,246,.3), transparent 55%),
               radial-gradient(ellipse at 50% 120%, rgba(34,211,238,.18), transparent 60%);

  /* Typography */
  --font-sans: 'Inter', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --fs-xs: .78rem;
  --fs-sm: .88rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.375rem;
  --fs-xl: 1.75rem;
  --fs-2xl: 2.25rem;
  --fs-3xl: 3rem;
  --fs-4xl: clamp(2.5rem, 5vw + 1rem, 4.75rem);

  /* Space */
  --container: 1200px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  /* Effects */
  --shadow-sm: 0 4px 12px rgba(0,0,0,.25);
  --shadow: 0 10px 30px rgba(5, 10, 30, .45), 0 2px 6px rgba(0,0,0,.2);
  --shadow-glow: 0 10px 40px rgba(59, 130, 246, .35);
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);

  --nav-h: 72px;
}

/* ---------- 2. Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(1000px 500px at 80% -10%, rgba(139,92,246,.14), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(59,130,246,.12), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

/* Selection */
::selection { background: rgba(139,92,246,.4); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg,#3B82F6,#8B5CF6); border-radius: 10px; }

/* ---------- 3. Typography ---------- */
h1,h2,h3,h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0 0 .6em;
  color: #fff;
}
h1 { font-size: var(--fs-4xl); }
h2 { font-size: clamp(1.8rem, 3vw + .5rem, 2.75rem); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
p { margin: 0 0 1rem; color: var(--text-dim); }
.lead { font-size: var(--fs-md); color: var(--text-dim); max-width: 60ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-dim);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--grad-brand); box-shadow: 0 0 10px #8B5CF6; }
.grad-text {
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- 4. Layout utilities ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(64px, 9vw, 128px) 0; position: relative; }
.section-head { max-width: 720px; margin: 0 auto clamp(32px, 5vw, 64px); text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  font-weight: 600; font-size: var(--fs-sm); letter-spacing: .01em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  position: relative; white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid #8B5CF6; outline-offset: 3px; }
.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 50px rgba(139,92,246,.45); }
.btn-ghost { background: var(--surface); color: #fff; border: 1px solid var(--border-strong); }
.btn-ghost:hover { background: var(--surface-2); border-color: rgba(255,255,255,.25); transform: translateY(-2px); }
.btn-lg { padding: 16px 28px; font-size: var(--fs-base); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- 6. Navbar ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h);
  z-index: 100;
  display: flex; align-items: center;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(11, 16, 32, .55);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.nav.scrolled { background: rgba(11, 16, 32, .85); border-bottom-color: var(--border); }
.nav .container { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: inline-flex; align-items: center; }
.nav-logo svg { height: 36px; width: auto; }
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a {
  padding: 9px 14px; border-radius: 10px; font-size: var(--fs-sm); font-weight: 500;
  color: var(--text-dim); transition: color .2s, background .2s;
}
.nav-links a:hover, .nav-links a.active { color: #fff; background: var(--surface); }
.nav-cta { margin-left: 10px; }
.nav-toggle {
  display: none; width: 42px; height: 42px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border);
  align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: #fff; position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: #fff;
  transition: transform .25s var(--ease), top .25s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 16px; margin: 0 16px;
    background: rgba(15, 21, 44, .98); backdrop-filter: blur(16px);
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    transform: translateY(-10px); opacity: 0; pointer-events: none;
    transition: opacity .2s, transform .2s;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 12px 14px; }
  .nav-cta { margin: 8px 0 0; justify-content: center; }
}

/* ---------- 7. Hero ---------- */
.hero {
  position: relative; padding: calc(var(--nav-h) + 56px) 0 96px;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: var(--grad-hero);
  pointer-events: none;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .95fr; gap: 56px; align-items: center; }
@media (max-width: 1000px) { .hero-inner { grid-template-columns: 1fr; } }
.hero h1 { margin-bottom: 20px; }
.hero .lead { font-size: var(--fs-md); margin-bottom: 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 520px; }
.hero-stat { padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.hero-stat .num { font-size: var(--fs-xl); font-weight: 800; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.hero-stat .lbl { font-size: var(--fs-xs); color: var(--text-mute); margin-top: 4px; letter-spacing: .04em; text-transform: uppercase; }

/* Hero visual */
.hero-visual { position: relative; aspect-ratio: 1/1; }
.hero-visual .orb {
  position: absolute; inset: 10% 10% 10% 10%;
  border-radius: 50%; background: var(--grad-brand);
  filter: blur(60px); opacity: .4; animation: float 8s ease-in-out infinite;
}
.hero-visual .card-float {
  position: absolute; border-radius: var(--radius-lg); background: rgba(15,21,44,.85);
  backdrop-filter: blur(16px); border: 1px solid var(--border-strong);
  box-shadow: var(--shadow); padding: 18px; min-width: 180px;
  display: flex; gap: 12px; align-items: center;
}
.hero-visual .card-float .dot { width: 36px; height: 36px; border-radius: 10px; background: var(--grad-brand); display: grid; place-items: center; }
.hero-visual .card-float .t { font-size: var(--fs-xs); color: var(--text-mute); text-transform: uppercase; letter-spacing: .08em; }
.hero-visual .card-float .v { font-weight: 700; color: #fff; }
.hero-visual .cf-1 { top: 8%; left: 0; animation: float 6s ease-in-out infinite; }
.hero-visual .cf-2 { bottom: 10%; right: 0; animation: float 7s ease-in-out infinite reverse; }
.hero-visual .cf-3 { top: 48%; right: 14%; animation: float 9s ease-in-out infinite; }
.hero-visual img.portrait {
  position: absolute; inset: 8% 14% 8% 14%;
  border-radius: var(--radius-xl); object-fit: cover; width: 72%; height: 84%;
  border: 1px solid var(--border-strong); box-shadow: var(--shadow);
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ---------- 8. Trust bar / logos ---------- */
.trust {
  padding: 32px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.015);
}
.trust-inner { display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: center; justify-content: center; }
.trust-label { font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--text-mute); }
.trust-logo { color: var(--text-dim); font-weight: 700; font-size: 1.1rem; letter-spacing: .02em; opacity: .7; transition: opacity .2s, color .2s; }
.trust-logo:hover { opacity: 1; color: #fff; }

/* ---------- 9. Cards ---------- */
.card {
  position: relative; padding: 28px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  transition: transform .35s var(--ease-out), border-color .3s, background .3s;
  overflow: hidden;
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(600px circle at var(--mx,50%) var(--my,0%), rgba(139,92,246,.16), transparent 40%);
  opacity: 0; transition: opacity .3s;
}
.card:hover { transform: translateY(-6px); border-color: var(--border-strong); background: var(--surface-2); }
.card:hover::after { opacity: 1; }
.card .icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--grad-brand-soft); border: 1px solid var(--border-strong);
  color: #fff; margin-bottom: 18px;
}
.card .icon svg { width: 26px; height: 26px; stroke: url(#icon-grad); }
.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 0; }
.card .link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 16px;
  font-weight: 600; font-size: var(--fs-sm); color: var(--brand-3);
}
.card .link:hover { color: #fff; }

/* Service card variant */
.service-card { display: flex; flex-direction: column; gap: 10px; }
.service-card ul { padding: 0; margin: 10px 0 0; list-style: none; }
.service-card ul li { position: relative; padding: 4px 0 4px 22px; color: var(--text-dim); font-size: var(--fs-sm); }
.service-card ul li::before {
  content: ""; position: absolute; left: 0; top: 12px; width: 12px; height: 12px;
  border-radius: 4px; background: var(--grad-brand);
}

/* ---------- 10. Metrics strip ---------- */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.metric {
  text-align: center; padding: 32px 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.metric .num { font-size: clamp(2rem, 3vw + .5rem, 3rem); font-weight: 800; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.metric .lbl { margin-top: 8px; color: var(--text-dim); font-size: var(--fs-sm); }
@media (max-width: 800px) { .metrics { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 11. Testimonials ---------- */
.tcard {
  padding: 28px; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid var(--border);
}
.tcard .stars { color: #FBBF24; letter-spacing: 2px; margin-bottom: 12px; }
.tcard q { color: #fff; font-size: var(--fs-md); line-height: 1.5; display: block; margin-bottom: 18px; }
.tcard .who { display: flex; align-items: center; gap: 12px; }
.tcard .who img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.tcard .who .n { font-weight: 700; color: #fff; font-size: var(--fs-sm); }
.tcard .who .r { font-size: var(--fs-xs); color: var(--text-mute); }

/* ---------- 12. Portfolio ---------- */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .work-grid { grid-template-columns: 1fr; } }
.work {
  position: relative; aspect-ratio: 4/3; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); background: var(--bg-2); isolation: isolate;
}
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.work::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(11,16,32,.92) 100%);
}
.work .meta { position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 2; }
.work .tag {
  display: inline-block; font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand-3); margin-bottom: 6px; font-weight: 700;
}
.work h3 { font-size: var(--fs-lg); margin: 0 0 4px; }
.work .res { font-size: var(--fs-sm); color: var(--text-dim); }
.work:hover img { transform: scale(1.06); }

/* ---------- 13. Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } }
.post {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .3s var(--ease-out), border-color .3s;
}
.post:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.post .thumb { aspect-ratio: 16/10; background: var(--bg-2); overflow: hidden; }
.post .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post:hover .thumb img { transform: scale(1.05); }
.post .body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post .cat { font-size: var(--fs-xs); color: var(--brand-3); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.post h3 { font-size: var(--fs-lg); margin: 0; color: #fff; }
.post p { color: var(--text-dim); margin: 0; font-size: var(--fs-sm); flex: 1; }
.post .foot { display: flex; justify-content: space-between; font-size: var(--fs-xs); color: var(--text-mute); margin-top: 10px; }

/* Article */
.article {
  max-width: 780px; margin: 0 auto; padding-top: 32px;
}
.article .meta { display: flex; gap: 16px; color: var(--text-mute); font-size: var(--fs-sm); margin-bottom: 12px; }
.article h1 { font-size: clamp(2rem, 3vw + 1rem, 3.2rem); margin-bottom: 20px; }
.article .cover { aspect-ratio: 16/9; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); margin: 24px 0 40px; }
.article .cover img { width: 100%; height: 100%; object-fit: cover; }
.article h2 { font-size: 1.8rem; margin-top: 40px; }
.article h3 { font-size: 1.3rem; margin-top: 28px; }
.article p, .article li { color: var(--text); font-size: 1.05rem; line-height: 1.75; }
.article ul, .article ol { padding-left: 22px; margin: 10px 0 18px; }
.article a { color: var(--brand-3); text-decoration: underline; text-underline-offset: 3px; }
.article blockquote {
  margin: 24px 0; padding: 16px 22px; border-left: 3px solid var(--brand-2);
  background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; color: #fff;
}

/* ---------- 14. About / team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
.member {
  text-align: center; padding: 22px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.member img { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; border: 2px solid transparent; background-image: linear-gradient(var(--bg), var(--bg)), var(--grad-brand); background-origin: border-box; background-clip: padding-box, border-box; }
.member .n { font-weight: 700; color: #fff; }
.member .r { font-size: var(--fs-sm); color: var(--text-mute); margin-top: 2px; }

/* ---------- 15. Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }
.step {
  padding: 22px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border); position: relative;
}
.step .num {
  font-size: 2.5rem; font-weight: 900; line-height: 1;
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 8px;
}
.step h4 { margin-bottom: 6px; }
.step p { margin: 0; font-size: var(--fs-sm); }

/* ---------- 16. Contact / Form ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.info-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; padding: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.info-list .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--grad-brand-soft); border: 1px solid var(--border-strong); display: grid; place-items: center; flex-shrink: 0; }
.info-list strong { color: #fff; display: block; }
.info-list a { color: var(--text-dim); }
.info-list a:hover { color: var(--brand-3); }

form.tipo-form { display: grid; gap: 16px; padding: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--text-mute); font-weight: 600; }
.field input, .field textarea, .field select {
  padding: 13px 14px; border-radius: 12px;
  background: rgba(11,16,32,.55); border: 1px solid var(--border);
  color: #fff; transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 0; border-color: var(--brand-1); box-shadow: 0 0 0 3px rgba(59,130,246,.22);
}
.field .hp { position: absolute; left: -9999px; top: -9999px; }
.form-note { font-size: var(--fs-xs); color: var(--text-mute); }

/* ---------- 17. Footer ---------- */
.footer {
  padding: 72px 0 28px; margin-top: 48px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(5,8,20,.6));
}
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-brand svg { height: 42px; }
.foot-brand p { margin-top: 14px; max-width: 36ch; font-size: var(--fs-sm); }
.foot h5 { color: #fff; font-size: var(--fs-sm); letter-spacing: .1em; text-transform: uppercase; margin: 0 0 14px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot a { color: var(--text-dim); font-size: var(--fs-sm); transition: color .2s; }
.foot a:hover { color: #fff; }
.socials { display: flex; gap: 10px; margin-top: 14px; }
.socials a {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border); transition: background .2s, border-color .2s, transform .2s;
}
.socials a:hover { background: var(--grad-brand); border-color: transparent; transform: translateY(-2px); color: #fff; }
.socials svg { width: 18px; height: 18px; fill: currentColor; }
.foot-bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: var(--fs-xs); color: var(--text-mute); }

/* ---------- 18. CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  padding: clamp(48px, 7vw, 96px) 32px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(59,130,246,.18), rgba(139,92,246,.18)),
              radial-gradient(600px 300px at 0% 0%, rgba(59,130,246,.35), transparent 60%),
              radial-gradient(600px 300px at 100% 100%, rgba(139,92,246,.35), transparent 60%),
              #0F152C;
  border: 1px solid var(--border-strong);
  text-align: center;
}
.cta-band h2 { margin-bottom: 10px; }
.cta-band p { max-width: 620px; margin: 0 auto 24px; }

/* ---------- 19. Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal.delay-1 { transition-delay: .08s; }
.reveal.delay-2 { transition-delay: .16s; }
.reveal.delay-3 { transition-delay: .24s; }

/* ---------- 20. 404 ---------- */
.err-wrap { min-height: 80vh; display: grid; place-items: center; text-align: center; padding: 120px 24px 60px; }
.err-wrap .big { font-size: clamp(6rem, 18vw, 14rem); font-weight: 900; line-height: 1; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- 21. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
