/* =============================================================
   Grand-IA Project — styles.css
   Archetype: Glassmorphism Modern (adapted) — cyan/blue tech palette
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
@property --mesh-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@property --mesh-x { syntax: "<percentage>"; inherits: false; initial-value: 30%; }
@property --mesh-y { syntax: "<percentage>"; inherits: false; initial-value: 40%; }
@property --angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

:root {
  /* Brand — sampled from logo */
  --cyan: #06B4F0;
  --cyan-soft: #5BD8FF;
  --blue: #1230E8;
  --blue-deep: #0A1B7A;
  --mint: #7FF0DA;

  /* Surfaces */
  --bg: #F5FAFF;
  --bg-alt: #EAF3FC;
  --surface: #FFFFFF;
  --glass: rgba(255, 255, 255, 0.55);
  --glass-strong: rgba(255, 255, 255, 0.78);
  --glass-border: rgba(255, 255, 255, 0.65);

  /* Ink */
  --ink: #0B1526;
  --ink-soft: #3C4A5E;
  --ink-mute: #64758A;
  --cream: #F5FAFF;
  --line: rgba(11, 21, 38, 0.10);

  /* Semantic */
  --accent: var(--cyan);
  --accent-2: var(--blue);
  --gradient-brand: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 100%);
  --gradient-brand-soft: linear-gradient(135deg, rgba(6,180,240,.14) 0%, rgba(18,48,232,.14) 100%);

  /* Easings */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --container: 1220px;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --nav-h: 76px;

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --display: "Sora", var(--sans);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  text-wrap: balance;
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 700;
}
::selection { background: var(--cyan); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .7rem 1.2rem; background: var(--ink); color: #fff;
  z-index: 9999; border-radius: 8px; font-weight: 600; font-size: .9rem;
  transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
@media (min-width: 720px) { .container { padding-inline: 2rem; } }

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

.section {
  position: relative;
  padding-block: clamp(4rem, 8vw, 7.5rem);
}
.section-head {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--display);
  font-size: .8rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--gradient-brand);
  flex-shrink: 0;
}

.section-title {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  margin-bottom: .9rem;
}
.section-lede {
  font-size: 1.08rem;
  color: var(--ink-mute);
  max-width: 56ch;
  margin-inline: auto;
}

.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* =============================================================
   4. Buttons
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .95rem 1.75rem;
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 600; font-size: .98rem;
  white-space: nowrap;
  transition: transform .45s var(--ease-soft), box-shadow .45s var(--ease-soft), background-color .3s var(--ease-out), color .3s var(--ease-out);
}
.btn-primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 10px 26px -8px rgba(18,48,232,.55), 0 2px 8px rgba(6,180,240,.25);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -10px rgba(18,48,232,.5), 0 6px 16px rgba(6,180,240,.3); }
.btn-primary:active { transform: translateY(-1px); transition-duration: .12s; }

.btn-ghost {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--ink);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
@supports not (backdrop-filter: blur(1px)) {
  .btn-ghost { background: rgba(255,255,255,.85); }
}
.btn-ghost:hover { transform: translateY(-3px); background: var(--glass-strong); box-shadow: 0 14px 30px -12px rgba(11,21,38,.18); }

.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Magnetic wrapper */
.has-magnetic { display: inline-flex; position: relative; isolation: isolate; }
.magnetic-inner {
  display: inline-flex; align-items: center; justify-content: center; gap: inherit;
  will-change: transform;
  transition: transform .8s var(--ease-soft);
}

/* =============================================================
   5. Glass card component
   ============================================================= */
.glass-card {
  position: relative;
  background: rgba(255, 255, 255, 0.82); /* solid fallback */
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 45px -22px rgba(11, 21, 38, 0.25);
}
@supports (backdrop-filter: blur(20px)) {
  .glass-card {
    background: var(--glass);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
  }
}
.glass-card.has-tilt {
  --rx: 0deg; --ry: 0deg;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(0);
  transform-style: preserve-3d;
  transition: transform .5s var(--ease-soft), box-shadow .5s var(--ease-soft);
}
.glass-card.has-tilt:hover {
  transition-duration: .15s;
  box-shadow: 0 30px 60px -20px rgba(18, 48, 232, 0.25);
}

/* =============================================================
   6. Navigation
   ============================================================= */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 500;
  padding-block: 1rem;
  transition: padding .4s var(--ease-out), background-color .4s var(--ease-out), backdrop-filter .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
}
.nav.is-scrolled {
  padding-block: .6rem;
  background: rgba(245, 250, 255, 0.78);
  box-shadow: 0 1px 0 rgba(11,21,38,.06), 0 12px 30px -20px rgba(11,21,38,.2);
}
@supports (backdrop-filter: blur(1px)) {
  .nav.is-scrolled { backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%); }
}

.brand {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--display); font-weight: 700; font-size: 1.05rem;
  color: var(--ink);
}
.brand img { height: 34px; width: auto; }

.nav-links {
  display: none;
  align-items: center; gap: 2.1rem;
}
@media (min-width: 960px) { .nav-links { display: flex; } }
.nav-link {
  position: relative;
  font-size: .95rem; font-weight: 500; color: var(--ink-soft);
  padding-block: .3rem;
  transition: color .3s var(--ease-out);
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; border-radius: 2px;
  background: var(--gradient-brand);
  transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease-soft);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-actions { display: flex; align-items: center; gap: .75rem; }
.nav-actions .btn-ghost { display: none; }
@media (min-width: 720px) { .nav-actions .btn-ghost { display: inline-flex; } }
.nav-cta { padding: .8rem 1.4rem; font-size: .92rem; }

.nav-toggle {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
}
@media (min-width: 960px) { .nav-toggle { display: none; } }
.nav-toggle-bars { width: 20px; height: 14px; position: relative; }
.nav-toggle-bars span {
  position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px;
  background: var(--ink); transition: transform .35s var(--ease-out), opacity .3s var(--ease-out), top .35s var(--ease-out);
}
.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 6px; }
.nav-toggle-bars span:nth-child(3) { top: 12px; }
.nav.is-open .nav-toggle-bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav.is-open .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav.is-open .nav-toggle-bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

.nav-mobile {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(245, 250, 255, 0.98);
  display: grid; place-items: center;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .6s var(--ease-soft);
}
@supports (backdrop-filter: blur(1px)) {
  .nav-mobile { background: rgba(245, 250, 255, 0.9); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
}
.nav.is-open .nav-mobile { clip-path: inset(0); }
.nav-mobile-list { display: flex; flex-direction: column; align-items: center; gap: 1.8rem; text-align: center; }
.nav-mobile-list a {
  font-family: var(--display); font-size: 1.7rem; font-weight: 700; color: var(--ink);
}
.nav-mobile-list .btn { margin-top: 1rem; }

/* =============================================================
   7. Hero
   ============================================================= */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(3rem, 9vw, 6.5rem));
  padding-bottom: clamp(4rem, 9vw, 7rem);
  overflow: clip;
  isolation: isolate;
}
.hero-mesh {
  position: absolute; inset: -10% -10% 0 -10%; z-index: -2;
  background:
    radial-gradient(48% 40% at var(--mesh-x) var(--mesh-y), rgba(6,180,240,.38), transparent 65%),
    radial-gradient(45% 38% at calc(100% - var(--mesh-x)) calc(100% - var(--mesh-y)), rgba(18,48,232,.30), transparent 65%),
    radial-gradient(38% 32% at 50% 85%, rgba(127,240,218,.28), transparent 70%),
    var(--bg);
  filter: blur(60px) saturate(140%);
  animation: meshDrift 26s ease-in-out infinite;
}
@keyframes meshDrift {
  0%, 100% { --mesh-angle: 0deg; --mesh-x: 22%; --mesh-y: 30%; }
  50%      { --mesh-angle: 180deg; --mesh-x: 62%; --mesh-y: 55%; }
}
.hero-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3.5rem;
}
.hero-content {
  max-width: 680px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .5rem 1rem;
  border-radius: 999px;
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  font-size: .85rem; font-weight: 600; color: var(--blue-deep);
  margin-bottom: 1.5rem;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gradient-brand); }
.hero-title {
  font-size: clamp(2.5rem, 5.4vw, 4.2rem);
  line-height: 1.04;
  margin-bottom: 1.4rem;
}
.hero-title em {
  font-style: normal;
  background: var(--gradient-brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--ink-mute);
  max-width: 52ch;
  margin-bottom: 2.2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-bottom: 2rem; }
.hero-proof { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.6rem 2.2rem; }
.hero-proof-item { display: flex; align-items: center; gap: .6rem; font-size: .9rem; color: var(--ink-soft); font-weight: 500; }
.hero-proof-item svg { width: 20px; height: 20px; color: var(--blue); flex-shrink: 0; }

/* Hero visual */
.hero-visual { position: relative; width: 100%; max-width: 420px; margin-inline: auto; }
.hero-panel {
  padding: 1.6rem;
  display: flex; flex-direction: column; gap: 1rem;
  animation: floatY 7s ease-in-out infinite;
}
.hero-panel-head { display: flex; align-items: center; gap: .7rem; margin-bottom: .2rem; }
.hero-panel-head .avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--gradient-brand);
  display: grid; place-items: center; color: #fff; flex-shrink: 0;
}
.hero-panel-head .avatar svg { width: 20px; height: 20px; }
.hero-panel-head strong { display: block; font-size: .92rem; color: var(--ink); }
.hero-panel-head span { display: block; font-size: .78rem; color: var(--ink-mute); }
.hero-bubble {
  padding: .85rem 1.05rem;
  border-radius: 14px 14px 14px 4px;
  background: var(--bg-alt);
  font-size: .88rem; color: var(--ink-soft);
  max-width: 88%;
}
.hero-bubble.is-reply {
  align-self: flex-end;
  border-radius: 14px 14px 4px 14px;
  background: var(--gradient-brand);
  color: #fff;
}
.hero-panel-row { display: flex; gap: .9rem; margin-top: .4rem; }
.hero-stat {
  flex: 1;
  padding: .9rem;
  border-radius: 14px;
  background: var(--bg-alt);
  text-align: center;
}
.hero-stat strong { display: block; font-family: var(--display); font-size: 1.25rem; color: var(--blue); }
.hero-stat span { font-size: .74rem; color: var(--ink-mute); }

.hero-float {
  position: absolute;
  display: grid; place-items: center;
  border-radius: 20px;
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 45px -18px rgba(11,21,38,.28);
  color: var(--blue);
}
@supports (backdrop-filter: blur(1px)) { .hero-float { backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); } }
.hero-float svg { width: 26px; height: 26px; }
.hero-float-1 { top: -6%; right: 4%; width: 64px; height: 64px; animation: floatY 6s ease-in-out infinite; animation-delay: .4s; }
.hero-float-2 { bottom: 4%; left: -8%; width: 56px; height: 56px; animation: floatY 8s ease-in-out infinite reverse; color: var(--cyan); }
@media (max-width: 539px) { .hero-float-2 { left: -2%; } }

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* =============================================================
   8. Reveal on scroll
   ============================================================= */
[data-reveal] {
  opacity: 0; transform: translateY(36px);
  transition: opacity .8s var(--ease-soft), transform .8s var(--ease-soft);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }
[data-reveal-stagger] > * {
  opacity: 0; transform: translateY(30px);
  transition: opacity .7s var(--ease-soft), transform .7s var(--ease-soft);
}
[data-reveal-stagger].is-revealed > * { opacity: 1; transform: none; }
[data-reveal-stagger].is-revealed > *:nth-child(1) { transition-delay: 0s; }
[data-reveal-stagger].is-revealed > *:nth-child(2) { transition-delay: .08s; }
[data-reveal-stagger].is-revealed > *:nth-child(3) { transition-delay: .16s; }
[data-reveal-stagger].is-revealed > *:nth-child(4) { transition-delay: .24s; }
[data-reveal-stagger].is-revealed > *:nth-child(5) { transition-delay: .32s; }
[data-reveal-stagger].is-revealed > *:nth-child(6) { transition-delay: .4s; }
[data-reveal-stagger].is-revealed > *:nth-child(7) { transition-delay: .48s; }

/* =============================================================
   9. Servicios (Qué hacemos)
   ============================================================= */
.services-grid {
  display: grid; gap: 1.4rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }

.service-card { padding: 2rem 1.7rem; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1rem; }
.service-icon {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: var(--gradient-brand-soft);
  color: var(--blue);
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 1.14rem; margin-bottom: .1rem; }
.service-card p { font-size: .93rem; color: var(--ink-mute); }

/* =============================================================
   10. Para quién (sectores)
   ============================================================= */
.sectors-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) { .sectors-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .sectors-grid { grid-template-columns: repeat(4, 1fr); } }

.sector-card {
  padding: 1.6rem 1.2rem;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: .8rem;
}
.sector-icon {
  width: 50px; height: 50px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--blue);
  transition: background .4s var(--ease-out), color .4s var(--ease-out), transform .4s var(--ease-soft);
}
.sector-icon svg { width: 24px; height: 24px; }
.sector-card:hover .sector-icon { background: var(--gradient-brand); color: #fff; transform: scale(1.08); }
.sector-card h3 { font-size: .96rem; font-weight: 600; color: var(--ink); }
.sector-card.is-more { background: var(--gradient-brand-soft); border-style: dashed; }
.sector-card.is-more h3 { color: var(--blue-deep); }

/* =============================================================
   11. Beneficios
   ============================================================= */
.section-alt { background: var(--bg-alt); }
.benefits-grid {
  display: grid; gap: 1.4rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .benefits-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .benefits-grid { grid-template-columns: repeat(3, 1fr); } }

.benefit-card {
  padding: 1.9rem;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 1.1rem;
}
.benefit-icon {
  flex-shrink: 0;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: var(--surface);
  color: var(--cyan);
  box-shadow: 0 8px 18px -10px rgba(11,21,38,.2);
}
.benefit-icon svg { width: 22px; height: 22px; }
.benefit-card h3 { font-size: 1.02rem; margin-bottom: .3rem; }
.benefit-card p { font-size: .9rem; color: var(--ink-mute); }

/* =============================================================
   12. Cómo trabajamos
   ============================================================= */
.process-list {
  display: grid; gap: 1.4rem;
  grid-template-columns: 1fr;
  counter-reset: step;
}
@media (min-width: 720px) { .process-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .process-list { grid-template-columns: repeat(4, 1fr); } }

.process-card {
  padding: 1.9rem 1.6rem;
  position: relative;
  text-align: center;
}
.process-num {
  display: block;
  font-family: var(--display);
  font-size: 2.4rem; font-weight: 700;
  background: var(--gradient-brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: .8rem;
  line-height: 1;
}
.process-card h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.process-card p { font-size: .9rem; color: var(--ink-mute); }
.process-connector {
  display: none;
  position: absolute; top: 2.4rem; right: -1.4rem;
  width: 1.4rem; height: 2px;
  background: var(--line);
}
@media (min-width: 720px) {
  .process-card:not(:nth-child(2n)) .process-connector { display: block; }
}
@media (min-width: 1200px) {
  .process-card .process-connector { display: block; }
  .process-card:nth-child(4n) .process-connector { display: none; }
}

/* =============================================================
   13. Contacto
   ============================================================= */
.contact-wrap {
  display: grid; gap: 1.6rem;
}
@media (min-width: 960px) {
  .contact-wrap { grid-template-columns: .82fr 1.18fr; align-items: start; }
}

.contact-info {
  padding: 2.2rem;
  background: var(--gradient-brand);
  color: #fff;
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.6rem;
}
.contact-info h3 { color: #fff; font-size: 1.4rem; margin-bottom: .3rem; }
.contact-info > p { color: rgba(255,255,255,.85); font-size: .95rem; }
.contact-channels { display: flex; flex-direction: column; align-items: center; gap: 1rem; width: 100%; }
.contact-channel {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: .5rem;
  padding: .95rem 1.1rem;
  border-radius: 14px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
  transition: background .3s var(--ease-out), transform .3s var(--ease-soft);
  width: 100%;
}
.contact-channel:hover { background: rgba(255,255,255,.22); transform: translateY(-2px); }
.contact-channel svg { width: 22px; height: 22px; flex-shrink: 0; }
.contact-channel span { display: block; font-size: .74rem; opacity: .8; }
.contact-channel strong { display: block; font-size: .98rem; }

.contact-form-card { padding: clamp(1.6rem, 3vw, 2.4rem); }
.form-grid { display: grid; gap: 1.2rem; }
@media (min-width: 640px) { .form-grid.is-2col { grid-template-columns: 1fr 1fr; } }

.field { position: relative; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 1.35rem 1rem .55rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font: inherit; font-size: .96rem;
  transition: border-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.field textarea { min-height: 120px; resize: vertical; padding-top: 1.35rem; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(6,180,240,.14);
}
.field label {
  position: absolute; left: 1rem; top: 1.02rem;
  pointer-events: none; transition: all .25s var(--ease-out);
  color: var(--ink-mute); font-size: .96rem;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field select:focus + label,
.field select:valid + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
  top: .5rem; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--blue);
}
.field-error {
  display: none;
  font-size: .78rem; color: #D42F4B; margin-top: .4rem; padding-left: .2rem;
}
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #D42F4B; }
.field.is-invalid .field-error { display: block; }

.form-consent { display: flex; align-items: center; justify-content: center; text-align: center; gap: .6rem; font-size: .82rem; color: var(--ink-mute); }
.form-consent input { margin-top: .2rem; accent-color: var(--blue); }

.contact-form { position: relative; transition: opacity .5s var(--ease-out), transform .5s var(--ease-soft); }
.contact-form.is-sent { opacity: 0; transform: translateY(-10px); pointer-events: none; position: absolute; inset: 0; }

.form-submit { position: relative; margin-top: .4rem; }
.form-submit-spinner {
  position: absolute; inset: 0; display: none; align-items: center; justify-content: center;
}
.btn.is-sending .form-submit-label { visibility: hidden; }
.btn.is-sending .form-submit-spinner { display: flex; }
.form-submit-spinner::after {
  content: ""; width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.4); border-top-color: #fff;
  border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.field-conditional { display: none; }
.field-conditional.is-visible {
  display: block;
  animation: fieldIn .35s var(--ease-soft);
}
@keyframes fieldIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

.form-error {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .5rem;
  padding: 1rem 1.1rem;
  margin-top: .3rem;
  border-radius: 14px;
  background: rgba(212, 47, 75, .08);
  border: 1px solid rgba(212, 47, 75, .22);
  color: #9C2038;
}
.form-error.is-visible { display: flex; }
.form-error svg { width: 22px; height: 22px; flex-shrink: 0; }
.form-error strong { display: block; font-size: .92rem; margin-bottom: .25rem; color: #7A1830; }
.form-error p { font-size: .86rem; color: #9C2038; }
.form-error a { text-decoration: underline; font-weight: 600; }

.contact-success {
  display: none;
  flex-direction: column; align-items: center; text-align: center; gap: 1rem;
  padding: 2rem 1rem;
}
.contact-success.is-visible { display: flex; }
.contact-success-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--gradient-brand);
  display: grid; place-items: center; color: #fff;
}
.contact-success-icon svg { width: 30px; height: 30px; }
.contact-success h3 { font-size: 1.3rem; }
.contact-success p { color: var(--ink-mute); font-size: .95rem; max-width: 40ch; }

/* =============================================================
   14. Footer
   ============================================================= */
.footer {
  padding-block: 3.5rem 2rem;
  background: var(--ink);
  color: rgba(255,255,255,.72);
}
.footer-top {
  display: grid; gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 1.8rem;
  text-align: center;
}
.footer-top > div { display: flex; flex-direction: column; align-items: center; }
@media (min-width: 860px) { .footer-top { grid-template-columns: 1.2fr .8fr .8fr; } }
.footer-brand { display: flex; align-items: center; justify-content: center; gap: .6rem; margin-bottom: 1rem; }
.footer-brand img { height: 32px; width: auto; }
.footer-brand span { font-family: var(--display); font-weight: 700; color: #fff; font-size: 1.05rem; }
.footer-tagline { max-width: 34ch; font-size: .92rem; margin-inline: auto; }
.footer-heading { color: #fff; font-family: var(--display); font-size: .92rem; font-weight: 600; margin-bottom: 1.1rem; letter-spacing: .02em; }
.footer-links { display: flex; flex-direction: column; align-items: center; gap: .7rem; }
.footer-links a { font-size: .92rem; transition: color .3s var(--ease-out); }
.footer-links a:hover { color: #fff; }
.footer-contact { display: flex; flex-direction: column; align-items: center; gap: .7rem; font-size: .92rem; }
.footer-contact a { display: flex; align-items: center; justify-content: center; gap: .55rem; transition: color .3s var(--ease-out); }
.footer-contact a:hover { color: #fff; }
.footer-contact span { display: flex; align-items: center; justify-content: center; }
.footer-contact svg { width: 17px; height: 17px; flex-shrink: 0; color: var(--cyan-soft); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 1rem;
  align-items: center; justify-content: center;
  text-align: center;
  font-size: .82rem; color: rgba(255,255,255,.5);
}

/* =============================================================
   15. Responsive helpers
   ============================================================= */
@media (min-width: 540px) { .hero-actions { flex-wrap: nowrap; } }

/* =============================================================
   16. Reduced motion — ONLY intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-mesh { animation: none; }
  .hero-panel, .hero-float-1, .hero-float-2 { animation: none; }
}
