/* =========================================================
   META 2.0 · Gupshup Madrid 2026
   Built from Figma · plain HTML / CSS / JS
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --violet: #4635e2;
  --violet-deep: #2c02cd;
  --violet-soft: #c4c0ff;
  --green: #25d366;
  --teal: #00a884;
  --forest: #006d2f;
  --deep-teal: #006258;
  --mint-text: #3de273;
  --aqua: #8ff4e3;

  --ink: #141b2b;
  --ink-2: #464556;
  --grey-1: #d1d5db;
  --grey-2: #6b7280;

  --bg-dark: #0b0f19;
  --bg-dark-2: #151c2c;
  --bg-light: #f9f9ff;
  --bg-tint: #f1f3ff;
  --bg-tint-2: #e1e8fd;
  --line-light: rgba(229, 231, 235, 0.8);
  --glass-line: rgba(255, 255, 255, 0.1);
  --glass-fill: rgba(255, 255, 255, 0.05);

  --grad-brand: linear-gradient(90deg, var(--violet), var(--teal), var(--green));

  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 24px;

  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-deep: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --header-h: 64px;
  --gutter: 48px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg-dark);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }

.c-violet { color: var(--violet-deep); }
.c-forest { color: var(--forest); }
.c-deepteal { color: var(--deep-teal); }

/* ---------- Scroll progress ---------- */
.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120; pointer-events: none; }
.scroll-progress span {
  display: block; height: 100%; width: 100%;
  transform-origin: 0 50%; transform: scaleX(0);
  background: var(--grad-brand);
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 25, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-line);
  box-shadow: var(--shadow-md);
  animation: header-drop 0.8s var(--ease-out) both;
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: height 0.3s ease;
}
.site-header.is-scrolled .header-inner { height: 58px; }

.brand { flex-shrink: 0; display: flex; align-items: center; gap: 12px; transition: transform 0.3s var(--ease-spring); }
.brand:hover { transform: translateY(-1px) scale(1.02); }
.brand-gupshup { width: 146px; height: 24px; object-fit: contain; }
.brand-wa { width: 104px; height: 24px; object-fit: contain; }
.brand-divider { font-size: 18px; font-weight: 300; line-height: 18px; color: rgba(255, 255, 255, 0.3); }

.main-nav {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  background: var(--glass-fill);
  border: 1px solid var(--glass-line);
  border-radius: 9999px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}
.main-nav a {
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  line-height: 19.5px;
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
  border-radius: 9999px;
  transition: color 0.25s ease, background 0.25s ease;
}
.main-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.main-nav a.is-active { color: #fff; background: rgba(37, 211, 102, 0.16); box-shadow: inset 0 0 0 1px rgba(37, 211, 102, 0.35); }

.header-actions { flex-shrink: 0; display: flex; align-items: center; gap: 10px; }


.btn-register {
  display: inline-flex; align-items: center;
  padding: 8px 20px;
  font-size: 13px; font-weight: 600; line-height: 19.5px;
  color: #fff; white-space: nowrap;
  background: var(--teal);
  border-radius: 9999px;
  box-shadow: 0 4px 8px rgba(0, 168, 132, 0.35);
  animation: soft-pulse 3s ease-in-out infinite;
  transition: transform 0.3s var(--ease-spring), background 0.25s ease;
}
.btn-register:hover { transform: translateY(-2px) scale(1.04); background: #00bf95; }

.nav-toggle {
  display: none; position: relative;
  width: 40px; height: 40px; padding: 0;
  background: var(--glass-fill);
  border: 1px solid var(--glass-line);
  border-radius: 12px;
}
.nav-toggle span {
  position: absolute; left: 11px;
  width: 18px; height: 2px;
  background: #fff; border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.2s ease;
}
.nav-toggle span:nth-child(1) { top: 13px; }
.nav-toggle span:nth-child(2) { top: 19px; }
.nav-toggle span:nth-child(3) { top: 25px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Tight / collapsed header — set by JS when the menu doesn't fit */
.site-header.nav-tight .header-inner { gap: 10px; }
.site-header.nav-tight .main-nav a { padding: 6px 10px; font-size: 12.5px; }
.site-header.nav-tight .brand { gap: 8px; }
.site-header.nav-tight .brand-gupshup { width: 122px; height: 20px; }
.site-header.nav-tight .brand-wa { width: 88px; height: 20px; }
.site-header.nav-tight .btn-register { padding: 8px 14px; }

.site-header.nav-collapsed .nav-toggle { display: block; }
.site-header.nav-collapsed .main-nav {
  position: absolute; top: calc(100% + 1px); left: 16px; right: 16px;
  flex-direction: column; align-items: stretch; gap: 4px;
  padding: 10px;
  border-radius: 20px;
  background: var(--bg-dark-2);
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.6);
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity 0.25s ease, transform 0.3s var(--ease-out), visibility 0.25s;
}
.site-header.nav-collapsed .main-nav.is-open { opacity: 1; visibility: visible; transform: none; }
.site-header.nav-collapsed .main-nav a { padding: 12px 16px; font-size: 15px; }
@media (min-width: 721px) {
  .site-header.nav-collapsed .main-nav { left: auto; right: var(--gutter); width: 320px; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0;
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-dark-2) 50%, var(--bg-dark) 100%);
}
.glow { position: absolute; border-radius: 50%; pointer-events: none; will-change: transform; }
.glow-hero-1 { width: 384px; height: 384px; left: -128px; top: -128px; background: rgba(70, 53, 226, 0.2); filter: blur(60px); animation: drift-a 16s ease-in-out infinite; }
.glow-hero-2 { width: 480px; height: 480px; right: -128px; top: 50%; background: rgba(0, 168, 132, 0.15); filter: blur(70px); animation: drift-b 19s ease-in-out infinite; }
.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 30% 45%, #000 15%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 45%, #000 15%, transparent 70%);
}

.hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 40px;
  align-items: center;
  min-height: 568px;
}
.hero-copy { grid-column: 1 / span 7; display: flex; flex-direction: column; gap: 24px; min-width: 0; }

.hero-kicker {
  margin-bottom: -12px;
  font-size: 60px; font-weight: 600; line-height: 60px;
  letter-spacing: -1.5px; text-transform: uppercase;
  background: linear-gradient(90deg, var(--green), var(--teal), var(--violet), var(--teal), var(--green));
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: grad-pan 8s linear infinite;
}
.hero-title-row { display: flex; align-items: flex-start; gap: 8px; }
.hero-title {
  flex: 1; min-width: 0;
  font-size: 60px; font-weight: 600; line-height: 60px;
  letter-spacing: -1.5px; color: #fff;
}
.hero-t1, .hero-t2 { display: block; }
.hero-t2 {
  font-style: italic;
  background: linear-gradient(90deg, var(--green), #a7f3d0, var(--mint-text), var(--green));
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: grad-pan 7s linear infinite;
  padding-right: 6px; /* keeps italic overhang inside the clip */
}

/* word-by-word title reveal */
.hero-title .word, .hero-title .word-unit, .intro-in {
  opacity: 0;
  transform: translateY(36%) rotate(2deg);
  filter: blur(6px);
  transition: opacity 0.7s var(--ease-out), transform 0.8s var(--ease-out), filter 0.7s ease;
}
.hero-title .word { display: inline-block; }
.hero-title.is-in .word, .hero-title.is-in .word-unit, .intro-in.is-in { opacity: 1; transform: none; filter: none; }

.wa-3d { flex-shrink: 0; width: 161px; height: 180px; object-fit: contain; filter: drop-shadow(0 20px 30px rgba(37, 211, 102, 0.25)); }
.float-3d { animation: float-3d 6s ease-in-out infinite; }

.focus-chips { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 4px; }
.fchip {
  padding: 7px 17px;
  font-size: 14px; font-weight: 600; line-height: 20px;
  border: 1px solid; border-radius: 9999px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s ease;
}
.fchip-purple { color: #e3dfff; background: rgba(70, 53, 226, 0.3); border-color: rgba(70, 53, 226, 0.4); --glow: rgba(70, 53, 226, 0.7); }
.fchip-green { color: var(--mint-text); background: rgba(0, 109, 47, 0.3); border-color: rgba(102, 255, 142, 0.3); --glow: rgba(61, 226, 115, 0.55); }
.fchip-teal { color: var(--aqua); background: rgba(0, 98, 88, 0.4); border-color: rgba(143, 244, 227, 0.3); --glow: rgba(143, 244, 227, 0.5); }
.fchip.is-active { transform: translateY(-3px) scale(1.06); box-shadow: 0 0 0 1px var(--glow), 0 10px 26px -6px var(--glow); }

.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding-top: 16px; }
.date-card {
  display: flex; align-items: center; gap: 16px;
  padding: 17px;
  background: rgba(21, 28, 44, 0.9);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.date-badge {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 10px 16px;
  background: var(--violet);
  border-radius: var(--radius-sm);
  animation: badge-glow 3.2s ease-in-out infinite;
}
.date-day { font-size: 24px; font-weight: 700; line-height: 24px; color: #fff; }
.date-mon { font-size: 11px; font-weight: 700; line-height: 16.5px; letter-spacing: 0.55px; text-transform: uppercase; color: var(--violet-soft); }
.date-info { display: flex; flex-direction: column; gap: 1.5px; min-width: 0; }
.date-weekday { font-size: 12px; font-weight: 500; line-height: 16px; color: var(--grey-1); }
.date-time { font-size: 18px; font-weight: 600; line-height: 28px; color: #fff; }
.date-venue { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; line-height: 16px; color: var(--green); }
.date-venue img { flex-shrink: 0; }
.pin-bob { animation: bob 2.4s ease-in-out infinite; }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 17px 25px;
  font-size: 14px; font-weight: 500; line-height: 20px; color: #fff; white-space: nowrap;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(16, 185, 129, 0.5);
  border-radius: 9999px;
  box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.1), 0 4px 6px -4px rgba(16, 185, 129, 0.1);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.3s var(--ease-spring);
}
.btn-outline:hover { transform: translateY(-2px); border-color: var(--green); box-shadow: 0 12px 28px -8px rgba(37, 211, 102, 0.45); }
.arrow-bob { animation: bob 1.6s ease-in-out infinite; }

/* Registration card */
.form-card {
  position: relative;
  grid-column: 8 / span 5;
  display: flex; flex-direction: column; gap: 24px;
  padding: 33px;
  background: rgba(21, 28, 44, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-deep);
}
.form-fx { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; pointer-events: none; }
.form-bar {
  position: absolute; left: 0; right: 0; top: 0; height: 6px;
  background: linear-gradient(90deg, var(--violet), var(--teal), var(--green), var(--teal), var(--violet));
  background-size: 200% 100%;
  animation: grad-pan 5s linear infinite;
}
.form-head { display: flex; flex-direction: column; gap: 4px; }
.form-title { font-size: 30px; font-weight: 600; line-height: 36px; letter-spacing: -0.75px; color: #fff; }
.form-sub { font-size: 14px; line-height: 20px; color: var(--grey-1); }

.register-form { display: flex; flex-direction: column; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 9.5px; padding-top: 4.5px; min-width: 0; }
.field label { font-size: 12px; font-weight: 500; line-height: 16px; color: var(--grey-1); }
.field input {
  width: 100%; height: 44px;
  padding: 0 15px;
  font: 400 14px/20px "Poppins", sans-serif;
  color: #fff;
  background: var(--glass-fill);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.field input::placeholder { color: var(--grey-2); }
.field input:hover { border-color: rgba(255, 255, 255, 0.2); }
.field input:focus { border-color: var(--green); background: rgba(37, 211, 102, 0.05); box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.14); }
.field.is-invalid input { border-color: #f43f5e; box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.15); animation: shake 0.4s ease; }
.field-phone { padding-bottom: 8px; }

/* Phone with country code */
.phone-group {
  position: relative;
  display: flex; align-items: stretch;
  background: var(--glass-fill);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-sm);
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.phone-group:hover { border-color: rgba(255, 255, 255, 0.2); }
.phone-group:focus-within { border-color: var(--green); background: rgba(37, 211, 102, 0.05); box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.14); }
.field .phone-group input[type="tel"] {
  flex: 1; min-width: 0; height: 42px;
  padding-left: 12px;
  background: transparent; border: 0; box-shadow: none;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.field.is-invalid .phone-group { border-color: #f43f5e; box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.15); animation: shake 0.4s ease; }
.field.is-invalid .phone-group input { animation: none; box-shadow: none; }

.cc-select { position: relative; display: flex; }
.cc-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 0 10px 0 12px;
  font-size: 13px; font-weight: 600; color: var(--grey-1);
  background: rgba(255, 255, 255, 0.1);
  border: 0;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  transition: background 0.2s ease, color 0.2s ease;
}
.cc-btn:hover, .cc-select.is-open .cc-btn { background: rgba(255, 255, 255, 0.16); color: #fff; }
.cc-btn:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }
.cc-flag { width: 20px; height: 15px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15); }
.cc-dial { font-variant-numeric: tabular-nums; }
.cc-caret { width: 13px; height: 13px; fill: none; stroke: #9ca3af; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.25s ease; }
.cc-select.is-open .cc-caret { transform: rotate(180deg); }
.cc-panel {
  position: absolute; top: calc(100% + 8px); left: -1px; z-index: 40;
  width: 300px; max-width: calc(100vw - 32px);
  padding: 8px;
  background: #101626;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.7);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.25s var(--ease-out), visibility 0.2s;
}
.cc-select.is-open .cc-panel { opacity: 1; visibility: visible; transform: none; }
.field .cc-search { height: 38px; padding: 0 12px; font-size: 14px; border-radius: 10px; }
.cc-list { margin-top: 6px; max-height: 240px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #334155 transparent; }
.cc-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  font-size: 14px; line-height: 20px; color: var(--grey-1);
  border-radius: 8px; cursor: pointer;
}
.cc-list li .cc-flag { flex-shrink: 0; }
.cc-list li .cc-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-list li .cc-code { color: #9ca3af; font-variant-numeric: tabular-nums; }
.cc-list li:hover, .cc-list li.is-hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.cc-list li[aria-selected="true"] { color: #fff; background: rgba(37, 211, 102, 0.16); }
.cc-list li.cc-sep { height: 1px; padding: 0; margin: 6px 4px; background: var(--glass-line); pointer-events: none; }
.cc-empty { padding: 10px; font-size: 13px; color: #9ca3af; }

/* Buttons with gradient + shine */
.btn-submit, .btn-gradient {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 48px;
  font-size: 14px; font-weight: 600; line-height: 20px; color: #fff;
  border: 0; border-radius: 9999px;
  background: linear-gradient(90deg, var(--violet), var(--teal), var(--green), var(--teal), var(--violet));
  background-size: 250% 100%;
  box-shadow: var(--shadow-md);
  animation: grad-pan 6s linear infinite;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
}
.btn-submit:hover, .btn-gradient:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -10px rgba(37, 211, 102, 0.55); }
.btn-submit:active { transform: scale(0.98); }
.btn-submit:disabled { cursor: wait; opacity: 0.85; }
.btn-label { position: relative; }
.btn-arrow {
  position: relative; flex-shrink: 0;
  width: 20px; height: 20px;
  fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.35s var(--ease-spring);
}
.btn-submit:hover .btn-arrow { transform: translate(3px, -3px) scale(1.1); }
.btn-shine {
  position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.4) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: shine 3.4s ease-in-out infinite;
}
.form-status { min-height: 20px; margin-top: -4px; font-size: 13px; font-weight: 600; text-align: center; color: var(--green); }
.form-status.is-error { color: #fda4af; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* =========================================================
   SHARED SECTION PARTS
   ========================================================= */
.section { position: relative; padding: 80px 0; }
.section.dark { background: var(--bg-dark); color: #fff; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 14px;
  font-size: 12px; font-weight: 700; line-height: 16px;
  letter-spacing: 0.6px; text-transform: uppercase;
  border-radius: 9999px;
}
.pill-violet { color: var(--violet-deep); background: rgba(70, 53, 226, 0.1); }
.pill-slate { color: var(--ink-2); background: #dce2f7; }
.pill-mint { color: var(--forest); background: rgba(37, 211, 102, 0.18); }

.eyebrow-green { font-size: 12px; font-weight: 700; line-height: 18px; letter-spacing: 2.4px; text-transform: uppercase; color: var(--green); }
.eyebrow-md { font-size: 14px; line-height: 20px; letter-spacing: 0.7px; }

.head-left { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 40px; }
.head-center { display: flex; flex-direction: column; align-items: center; gap: 16px; max-width: 1024px; margin: 0 auto 56px; text-align: center; }
.h3-xl { font-size: 30px; font-weight: 600; line-height: 36px; letter-spacing: -0.75px; color: var(--ink); }
.h2-lg { font-size: 36px; font-weight: 600; line-height: 40px; letter-spacing: -0.9px; color: var(--ink); }
.h2-narrow { max-width: 768px; }
.lead-lg { font-size: 20px; line-height: 28px; color: var(--ink-2); }
.lead-md { max-width: 768px; font-size: 18px; line-height: 28px; color: var(--ink-2); }

/* =========================================================
   NUMBERS
   ========================================================= */
.numbers { padding: 64px 0 65px; background: #fff; border-bottom: 1px solid #f3f4f6; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.metric {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 2px;
  padding: 25px;
  background: var(--bg-tint);
  border: 1px solid rgba(229, 231, 235, 0.6);
  border-radius: var(--radius);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease, border-color 0.35s ease;
}
.metric::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.7) 50%, transparent 65%);
  transform: translateX(-110%);
}
.metric.is-in::after { animation: sweep 1.4s 0.6s var(--ease-out) forwards; }
.metric:hover { transform: translateY(-6px); border-color: rgba(70, 53, 226, 0.3); box-shadow: 0 18px 36px -18px rgba(44, 2, 205, 0.4); }
.metric-meta { justify-content: space-between; background: var(--bg-tint-2); }
.metric-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.metric-num { font-size: 48px; font-weight: 800; line-height: 48px; letter-spacing: -1.2px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.metric-label { padding-top: 6px; font-size: 18px; font-weight: 600; line-height: 28px; color: var(--ink); }
.metric-sub { font-size: 14px; line-height: 20px; color: var(--ink-2); }
.meta-logo { width: 136px; height: 38px; object-fit: contain; flex-shrink: 1; min-width: 0; }

/* =========================================================
   THE SHIFT
   ========================================================= */
.shift { background: var(--bg-light); }
.shift .head-center { gap: 0; }
.shift .h2-lg { margin-top: 16px; }
.shift .lead-lg { margin-top: 16px; }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.pillar {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 220px;
  padding: 33px 33px 45px;
  color: #fff;
  background: linear-gradient(146deg, var(--bg-dark-2) 0%, var(--bg-dark) 100%);
  border: 1px solid rgba(102, 255, 142, 0.3);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transform-style: preserve-3d;
  transition: transform 0.25s ease-out, box-shadow 0.3s ease, border-color 0.3s ease;
  will-change: transform;
}
.pillar:hover { border-color: rgba(102, 255, 142, 0.6); box-shadow: 0 26px 50px -18px rgba(0, 168, 132, 0.5); }
.pillar-orb {
  position: absolute; right: -32px; bottom: -32px;
  width: 96px; height: 96px; border-radius: 50%;
  background: rgba(0, 168, 132, 0.15); filter: blur(12px);
  animation: orb-pulse 4s ease-in-out infinite;
  transition: transform 0.6s var(--ease-out);
}
.pillar:hover .pillar-orb { transform: scale(2.4); }
.pillar-num { font-size: 36px; font-weight: 800; line-height: 40px; color: rgba(255, 255, 255, 0.3); transition: color 0.3s ease; }
.pillar:hover .pillar-num { color: var(--green); }
.pillar h3 { padding-top: 20px; font-size: 24px; font-weight: 600; line-height: 32px; letter-spacing: -0.6px; }
.pillar p { font-size: 16px; line-height: 24px; color: var(--grey-1); }

/* =========================================================
   WHY MADRID
   ========================================================= */
.why { padding: 64px 0; background: var(--bg-light); }
.why-card {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.why-dark {
  position: relative; overflow: hidden; isolation: isolate;
  grid-column: 1 / span 5;
  display: flex; flex-direction: column; justify-content: center; gap: 32px;
  padding: 56px 57px 56px 56px;
  background: var(--bg-dark);
  border-right: 1px solid var(--glass-line);
}
.why-glow {
  position: absolute; z-index: -1;
  width: 360px; height: 360px; left: -120px; bottom: -160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 211, 102, 0.22), transparent 65%);
  animation: drift-a 14s ease-in-out infinite;
}
.why-title { font-size: 36px; font-weight: 600; line-height: 40px; letter-spacing: -0.9px; color: #fff; }
.why-light { grid-column: 6 / span 7; display: flex; flex-direction: column; justify-content: center; padding: 56px; }
.why-item { display: flex; flex-direction: column; gap: 10px; padding: 32px 0; border-top: 1px solid var(--line-light); }
.why-item:first-child { padding-top: 0; border-top: 0; }
.why-item:last-child { padding-bottom: 0; }
.why-item h3 {
  position: relative; display: inline-block; align-self: flex-start;
  font-size: 22px; font-weight: 600; line-height: 28px; letter-spacing: -0.55px; color: var(--ink);
}
.why-item h3::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 100%;
  background: var(--grad-brand); border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.9s 0.4s var(--ease-out);
}
.why-item.is-in h3::after { transform: scaleX(1); }
.why-item p { font-size: 16px; line-height: 24px; color: var(--ink-2); }

/* =========================================================
   WHAT'S NEW
   ========================================================= */
.new { padding: 81px 0; overflow: hidden; border-top: 1px solid var(--glass-line); border-bottom: 1px solid var(--glass-line); }
.glow-new-1 { width: 384px; height: 384px; right: -128px; top: -128px; background: rgba(0, 168, 132, 0.1); filter: blur(60px); animation: drift-c 17s ease-in-out infinite; }
.glow-new-2 { width: 384px; height: 384px; left: -128px; bottom: -128px; background: rgba(70, 53, 226, 0.1); filter: blur(60px); animation: drift-a 15s ease-in-out infinite; }
.new .container { position: relative; }
.new-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 48px; margin-bottom: 56px; }
.new-head-left { grid-column: 1 / span 6; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.new-title-row { display: flex; align-items: flex-start; }
.new-title { flex: 1; min-width: 0; max-width: 393px; font-weight: 600; letter-spacing: -0.9px; color: #fff; }
.new-t1 { display: block; font-size: 36px; line-height: 44px; }
.new-t2 { display: block; font-size: 60px; line-height: 60px; }
.wa-3d-2 { animation-delay: -3s; }
.new-head-right { grid-column: 7 / span 6; display: flex; flex-direction: column; gap: 20px; padding-top: 4px; }
.model-pill {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 576px;
  padding: 13px 33px;
  background: var(--bg-dark-2);
  border: 1px solid rgba(37, 211, 102, 0.4);
  border-radius: 9999px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}
.model-pill::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(37, 211, 102, 0.14), transparent);
  transform: translateX(-100%);
  animation: sweep-loop 3.6s ease-in-out infinite;
}
.model-from { font-size: 16px; font-weight: 700; line-height: 24px; color: rgba(255, 255, 255, 0.9); }
.model-to {
  font-size: 16px; font-weight: 700; line-height: 24px;
  background: linear-gradient(90deg, var(--green), #a7f3d0, var(--green));
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: grad-pan 3s linear infinite;
}
.model-arrow { width: 12px; height: 5px; flex-shrink: 0; animation: nudge-x 1.4s ease-in-out infinite; }
.new-p1, .new-p2 { max-width: 576px; font-size: 16px; line-height: 26px; }
.new-p1 { color: rgba(255, 255, 255, 0.9); }
.new-p1 strong { font-weight: 700; color: #fff; }
.new-p1 .hl-green { color: var(--green); }
.new-p2 { color: var(--grey-1); }

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.fcard {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: flex-start;
  min-height: 220px;
  padding: 29px;
  background: rgba(21, 28, 44, 0.9);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  transition: transform 0.35s var(--ease-out), border-color 0.35s ease, box-shadow 0.35s ease;
}
.fcard::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(37, 211, 102, 0.12), transparent 45%);
  transition: opacity 0.3s ease;
}
.fcard:hover { transform: translateY(-6px); border-color: rgba(37, 211, 102, 0.45); box-shadow: 0 24px 44px -20px rgba(37, 211, 102, 0.35); }
.fcard:hover::before { opacity: 1; }
.ftag {
  padding: 5px 13px;
  font-size: 11px; font-weight: 700; line-height: 16.5px;
  letter-spacing: 0.55px; text-transform: uppercase; color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--glass-line);
  border-radius: 9999px;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.fcard:hover .ftag { color: var(--bg-dark); background: var(--green); border-color: var(--green); }
.fcard h3 { padding-top: 15px; font-size: 20px; font-weight: 600; line-height: 27.5px; color: #fff; }
.fcard p { padding-top: 15px; font-size: 14px; line-height: 22.75px; color: var(--grey-1); }

/* =========================================================
   USE CASES (chat phones)
   ========================================================= */
.cases { background: var(--bg-light); }
.cases .head-center { gap: 16px; }
.case-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; align-items: start; }
.case {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease;
}
.case:hover { transform: translateY(-6px); box-shadow: 0 26px 48px -24px rgba(20, 27, 43, 0.35); }
.case-copy { display: flex; flex-direction: column; gap: 8px; padding: 20px 20px 16px; }
.case-label { font-size: 12px; font-weight: 700; line-height: 16px; letter-spacing: 0.6px; text-transform: uppercase; }
.case h3 { font-size: 16px; font-weight: 600; line-height: 22px; color: var(--ink); }
.case-copy p { font-size: 13px; line-height: 19.5px; color: var(--ink-2); }

.phone {
  display: flex; flex-direction: column;
  margin: 0 12px 12px;
  overflow: hidden;
  background: #0b141a;
  border: 5px solid #1f2c34;
  border-radius: 28px;
  box-shadow: 0 18px 30px -12px rgba(0, 0, 0, 0.45);
  font-size: 12px;
}
.phone-status { display: flex; justify-content: space-between; padding: 7px 14px 4px; font-size: 11px; font-weight: 600; color: #e9edef; background: #1f2c34; }
.batt { display: inline-flex; align-items: center; gap: 5px; }
.sig { display: inline-block; width: 6px; height: 9px; border-left: 2px solid #e9edef; border-right: 2px solid #e9edef; }
.chat-head { display: flex; align-items: center; gap: 8px; padding: 6px 10px 9px; background: #1f2c34; }
.chat-back { font-size: 18px; line-height: 1; color: #e9edef; }
.avatar {
  flex-shrink: 0; display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%;
  font-size: 11px; font-weight: 700; color: #fff;
}
.av-green { background: var(--teal); }
.av-violet { background: var(--violet); }
.av-forest { background: #00804a; }
.av-deep { background: #064e3b; }
.chat-who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.chat-who b { font-size: 12.5px; font-weight: 600; color: #e9edef; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-who small { font-size: 10.5px; color: #8696a0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-who small.online { color: var(--green); }
.verified { font-style: normal; font-size: 11px; color: var(--green); }
.chat-dots { color: #aebac1; font-size: 16px; }

.chat-body {
  position: relative;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 8px;
  height: 380px;
  padding: 10px 9px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.025) 0 2px, transparent 3px) 0 0 / 22px 22px,
    #0b141a;
}
.day-chip {
  align-self: center;
  padding: 3px 10px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase;
  color: #8696a0; background: #1f2c34; border-radius: 7px;
}
.msg {
  position: relative;
  display: flex; flex-direction: column; gap: 4px;
  max-width: 88%;
  padding: 7px 9px 5px;
  line-height: 1.45; color: #e9edef;
  border-radius: 9px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
}
.msg.in { align-self: flex-start; background: #1f2c34; border-top-left-radius: 2px; }
.msg.out { align-self: flex-end; background: #005c4b; border-top-right-radius: 2px; }
.msg-title { font-weight: 700; color: var(--green); }
.msg-muted { color: #aebac1; }
.msg time { align-self: flex-end; font-size: 9.5px; color: rgba(233, 237, 239, 0.55); }
.ticks { font-style: normal; color: #53bdeb; letter-spacing: -2px; }
.msg-btn {
  margin: 4px -3px 0;
  padding: 7px 8px;
  font-weight: 600; text-align: center; color: var(--green);
  background: #111b21;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
}
.chat-input { display: flex; align-items: center; gap: 8px; padding: 8px; background: #0b141a; }
.chat-input span { flex: 1; padding: 9px 12px; font-size: 12px; color: #8696a0; background: #1f2c34; border-radius: 9999px; }
.mic { flex-shrink: 0; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--teal); }
.mic svg { width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* chat play-in: messages appear one by one, with typing dots before replies */
.chat-body.is-armed .msg { opacity: 0; transform: translateY(10px) scale(0.96); transition: opacity 0.35s ease, transform 0.45s var(--ease-spring); }
.chat-body.is-armed .msg.in { transform-origin: top left; }
.chat-body.is-armed .msg.out { transform-origin: top right; }
.chat-body .msg.is-shown { opacity: 1; transform: none; }
.typing {
  align-self: flex-start;
  display: flex; gap: 4px;
  padding: 10px 12px;
  background: #1f2c34; border-radius: 9px; border-top-left-radius: 2px;
}
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #8696a0; animation: typing 1s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }

/* =========================================================
   AGENDA
   ========================================================= */
.agenda { background: var(--bg-tint); }
.agenda-card {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 48px;
  padding: 48px;
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.agenda-side { grid-column: 1 / span 5; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.pill-date { padding: 5px 13px; color: var(--violet-deep); background: rgba(70, 53, 226, 0.08); border: 1px solid rgba(70, 53, 226, 0.25); }
.pill-date .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--violet-deep); animation: blink 1.6s ease-in-out infinite; }
.agenda-title { margin-top: 8px; font-size: 36px; font-weight: 600; line-height: 40px; letter-spacing: -0.9px; color: var(--ink); }
.agenda-lead { font-size: 16px; line-height: 24px; color: var(--ink-2); }
.facts {
  width: 100%;
  margin-top: 8px;
  padding: 4px 20px;
  background: var(--bg-tint);
  border: 1px solid rgba(70, 53, 226, 0.1);
  border-radius: var(--radius);
}
.facts div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(70, 53, 226, 0.08); }
.facts div:first-child { border-top: 0; }
.facts dt { font-size: 13px; color: var(--ink-2); }
.facts dd { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; text-align: right; color: var(--ink); }
.facts dd.c-violet { color: var(--violet-deep); }
.facts dd.c-forest { color: var(--forest); }
.facts dd img { flex-shrink: 0; filter: hue-rotate(0deg); }
.agenda-side .btn-gradient { margin-top: 16px; height: 52px; font-size: 15px; box-shadow: 0 16px 30px -12px rgba(0, 168, 132, 0.55); }

.agenda-scroll {
  grid-column: 6 / span 7;
  max-height: 560px;
  overflow-y: auto;
  padding-right: 10px;
  scrollbar-width: thin;
  scrollbar-color: #c7cdf5 transparent;
  mask-image: linear-gradient(180deg, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(180deg, #000 90%, transparent);
}
.agenda-scroll::-webkit-scrollbar { width: 6px; }
.agenda-scroll::-webkit-scrollbar-thumb { background: #c7cdf5; border-radius: 6px; }
.agenda-scroll:focus-visible { outline: 2px solid var(--violet); outline-offset: 4px; border-radius: var(--radius); }
.timeline { display: flex; flex-direction: column; gap: 14px; padding-bottom: 40px; }
.slot {
  display: grid; grid-template-columns: 136px 1fr; gap: 20px;
  padding: 20px 24px;
  background: var(--bg-tint);
  border: 1px solid rgba(70, 53, 226, 0.08);
  border-radius: var(--radius);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}
.slot:hover { transform: translateX(-6px); background: #fff; border-color: rgba(70, 53, 226, 0.3); box-shadow: 0 16px 32px -18px rgba(44, 2, 205, 0.35); }
.slot-break { background: var(--bg-tint-2); }
.slot-time { display: flex; flex-direction: column; gap: 4px; }
.slot-time b { font-size: 17px; font-weight: 700; line-height: 24px; font-variant-numeric: tabular-nums; }
.slot-break .slot-time b { color: var(--ink); }
.slot-time small { font-size: 11px; font-weight: 700; line-height: 16px; letter-spacing: 0.6px; text-transform: uppercase; color: #9ca3af; }
.slot-break .slot-time small { color: var(--violet-deep); }
.slot h3 { font-size: 17px; font-weight: 600; line-height: 24px; color: var(--ink); }
.slot p { margin-top: 4px; font-size: 14px; line-height: 21px; color: var(--ink-2); }

/* =========================================================
   TEAM
   ========================================================= */
.team { background: var(--bg-light); }
.team .head-center { gap: 12px; }
.team .lead-md { max-width: 900px; }
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 312px)); gap: 24px; justify-content: center; }
.person {
  display: flex; flex-direction: column; align-items: center;
  padding: 24px 24px 28px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease, border-color 0.35s ease;
}
.person:hover { transform: translateY(-8px); border-color: rgba(37, 211, 102, 0.4); box-shadow: 0 28px 50px -24px rgba(0, 168, 132, 0.45); }
.person-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 540 / 448;
  margin-bottom: 20px;
  overflow: hidden;
  background: #f2f3f5;
  border-radius: var(--radius);
}
.person-photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 2px transparent;
  transition: box-shadow 0.35s ease;
}
.person:hover .person-photo::after { box-shadow: inset 0 0 0 2px var(--green); }
.person-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease-out); }
.person:hover .person-photo img { transform: scale(1.06); }
.person h3 { font-size: 20px; font-weight: 600; line-height: 28px; color: var(--ink); }
.person p { margin-top: 6px; font-size: 14px; line-height: 20px; color: var(--ink-2); }
.person .person-co { margin-top: 2px; }

/* =========================================================
   ABOUT + FOOTER
   ========================================================= */
.about { padding: 80px 0 64px; }
.about-card {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px; align-items: center;
  padding: 64px;
  background: linear-gradient(135deg, var(--bg-dark-2), #10172a);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-deep);
}
.about-glow {
  position: absolute; z-index: -1;
  width: 520px; height: 520px; right: -160px; top: -200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 168, 132, 0.22), transparent 65%);
  animation: drift-c 13s ease-in-out infinite;
}
.about-left { grid-column: 1 / span 5; display: flex; flex-direction: column; gap: 20px; }
.about-title { font-size: 36px; font-weight: 600; line-height: 44px; letter-spacing: -0.9px; color: #fff; }
.about-title span { display: block; }
.about-right { grid-column: 6 / span 7; display: flex; flex-direction: column; gap: 24px; }
.about-lead { font-size: 18px; line-height: 30px; color: var(--grey-1); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about-box {
  padding: 24px 28px;
  font-size: 15px; font-weight: 600; line-height: 22px; color: #fff;
  background: var(--glass-fill);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  transition: transform 0.35s var(--ease-out), border-color 0.35s ease, background 0.35s ease;
}
.about-box:hover { transform: translateY(-4px); border-color: rgba(37, 211, 102, 0.45); background: rgba(37, 211, 102, 0.06); }

.site-footer { background: var(--bg-dark); border-top: 1px solid var(--glass-line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 73px; padding-top: 16px; padding-bottom: 16px; }
.footer-logo { width: 146px; height: 24px; object-fit: contain; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-links a { font-size: 14px; line-height: 20px; color: #fff; opacity: 0.85; transition: opacity 0.2s ease, color 0.2s ease; }
.footer-links a:hover { opacity: 1; color: var(--green); }

/* Floating CTA (mobile) */
.float-cta {
  position: fixed; z-index: 90; left: 16px; right: 16px; bottom: 16px;
  display: none;
  padding: 14px;
  font-size: 16px; font-weight: 700; text-align: center; color: #fff;
  border-radius: 9999px;
  background: var(--grad-brand);
  box-shadow: 0 14px 34px -8px rgba(0, 168, 132, 0.6);
  transform: translateY(140%);
  transition: transform 0.45s var(--ease-out);
}
.float-cta.is-visible { transform: translateY(0); }

/* =========================================================
   REVEAL ON SCROLL
   ========================================================= */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.8s var(--ease-out), transform 0.9s var(--ease-out); }
.reveal-left { transform: translateX(-48px); }
.reveal-right { transform: translateX(48px); }
.reveal.is-in { opacity: 1; transform: none; }
.tilt.is-in { transition: opacity 0.8s var(--ease-out), transform 0.25s ease-out, box-shadow 0.3s ease, border-color 0.3s ease; }

/* =========================================================
   KEYFRAMES
   ========================================================= */
@keyframes header-drop { from { transform: translateY(-100%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes grad-pan { from { background-position: 0% 50%; } to { background-position: 250% 50%; } }
@keyframes spin-slow { to { transform: rotate(360deg); } }
@keyframes drift-a { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(90px, 70px) scale(1.15); } }
@keyframes drift-b { 0%, 100% { transform: translate(0, -50%) scale(1); } 50% { transform: translate(-80px, -40%) scale(1.2); } }
@keyframes drift-c { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-80px, 60px) scale(1.18); } }
@keyframes float-3d { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-14px) rotate(4deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
@keyframes nudge-x { 0%, 100% { transform: translateX(-4px); } 50% { transform: translateX(6px); } }
@keyframes soft-pulse { 0%, 100% { box-shadow: 0 4px 8px rgba(0, 168, 132, 0.35); } 50% { box-shadow: 0 4px 22px rgba(37, 211, 102, 0.6); } }
@keyframes badge-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(70, 53, 226, 0.5); } 50% { box-shadow: 0 0 0 8px rgba(70, 53, 226, 0); } }
@keyframes shine { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@keyframes sweep { to { transform: translateX(110%); } }
@keyframes sweep-loop { 0%, 30% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@keyframes orb-pulse { 0%, 100% { opacity: 0.7; } 50% { opacity: 1; } }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1180px) {
  .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 720px; margin: 0 auto; }
  .hero-kicker, .hero-title { font-size: 52px; line-height: 54px; }
  .wa-3d { width: 130px; height: 146px; }
}

@media (max-width: 1024px) {
  :root { --gutter: 32px; }

  .hero { padding: 64px 0 72px; }
  .hero-layout { grid-template-columns: 1fr; min-height: 0; gap: 40px; }
  .hero-copy, .form-card { grid-column: 1 / -1; }
  .form-card { max-width: 580px; }

  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillars { grid-template-columns: 1fr; gap: 16px; }

  .why-card { grid-template-columns: 1fr; }
  .why-dark, .why-light { grid-column: 1 / -1; }
  .why-dark { padding: 48px 40px; border-right: 0; }
  .why-light { padding: 40px; }

  .new-head { grid-template-columns: 1fr; gap: 32px; }
  .new-head-left, .new-head-right { grid-column: 1 / -1; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .agenda-card { grid-template-columns: 1fr; gap: 32px; padding: 32px; }
  .agenda-side, .agenda-scroll { grid-column: 1 / -1; }
  .agenda-scroll { max-height: none; overflow: visible; padding-right: 0; mask-image: none; -webkit-mask-image: none; }
  .timeline { padding-bottom: 0; }

  .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .about-card { grid-template-columns: 1fr; padding: 40px; gap: 28px; }
  .about-left, .about-right { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  :root { --gutter: 16px; }

  .brand { gap: 6px; }
  .brand-gupshup { width: 104px; height: 18px; }
  .brand-wa { width: 74px; height: 18px; }
  .brand-divider { font-size: 14px; }
  .btn-register { display: none; }

  .hero { padding: 40px 0 56px; }
  .hero-kicker, .hero-title { font-size: 38px; line-height: 42px; letter-spacing: -1px; }
  .hero-kicker { margin-bottom: -16px; }
  .wa-3d { width: 64px; height: 72px; }
  .hero-meta { gap: 12px; }
  .date-card { width: 100%; }
  .btn-outline { width: 100%; justify-content: center; padding: 14px 20px; }
  .form-card { padding: 24px 20px; }
  .form-title { font-size: 26px; line-height: 32px; }
  .field-row { grid-template-columns: 1fr; }

  .section { padding: 56px 0; }
  .head-center { margin-bottom: 36px; }
  .h2-lg, .agenda-title, .why-title, .about-title { font-size: 28px; line-height: 34px; letter-spacing: -0.6px; }
  .lead-lg { font-size: 17px; line-height: 26px; }
  .lead-md { font-size: 16px; line-height: 25px; }
  .metrics { grid-template-columns: 1fr; gap: 14px; }
  .metric-num { font-size: 40px; line-height: 44px; }

  .why { padding: 40px 0; }
  .why-dark { padding: 36px 24px; gap: 20px; }
  .why-light { padding: 28px 24px; }
  .why-item { padding: 24px 0; }
  .why-item h3 { font-size: 19px; line-height: 26px; }

  .new-t1 { font-size: 26px; line-height: 34px; }
  .new-t2 { font-size: 42px; line-height: 46px; }
  .model-pill { padding: 12px 20px; }
  .model-from, .model-to { font-size: 14px; }
  .feature-grid { grid-template-columns: 1fr; gap: 14px; }
  .fcard { min-height: 0; padding: 24px; }

  .case-grid { grid-template-columns: 1fr; max-width: 380px; }

  .agenda-card { padding: 22px 18px; }
  .slot { grid-template-columns: 1fr; gap: 6px; padding: 16px 18px; }
  .slot-time { flex-direction: row; align-items: baseline; gap: 10px; flex-wrap: wrap; }

  .team-grid { grid-template-columns: 1fr; max-width: 340px; margin: 0 auto; }

  .about-card { padding: 28px 20px; }
  .about-grid { grid-template-columns: 1fr; gap: 12px; }
  .about-box { padding: 18px 20px; }

  .footer-inner { flex-direction: column; align-items: flex-start; padding-top: 24px; padding-bottom: 88px; }
  .float-cta { display: block; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .intro-in, .hero-title .word, .hero-title .word-unit { opacity: 1 !important; transform: none !important; filter: none !important; }
  .chat-body.is-armed .msg { opacity: 1 !important; transform: none !important; }
}

/* Submit loader + status fade (added) */
.btn-spinner {
  position: relative;
  display: none;
  width: 20px; height: 20px; flex-shrink: 0;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btn-spin 0.7s linear infinite;
}
.btn-submit.is-loading { pointer-events: none; cursor: wait; }
.btn-submit.is-loading .btn-arrow { display: none; }
.btn-submit.is-loading .btn-spinner { display: inline-block; }
.btn-submit.is-loading .btn-label { opacity: 0.85; }
.form-status { transition: opacity 0.4s ease, transform 0.4s ease; }
.form-status.is-hiding { opacity: 0; transform: translateY(-4px); }
@keyframes btn-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .btn-spinner { animation: btn-spin 1.2s linear infinite !important; animation-iteration-count: infinite !important; animation-duration: 1.2s !important; }
}

.metric-sub:empty { display: none; }

/* =========================================================
   LANGUAGE TOGGLE — English | Español side by side
   ========================================================= */
.lang-toggle {
  position: relative;
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border-radius: 9999px;
  isolation: isolate;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1);
}
.lang-thumb {
  position: absolute; z-index: -1;
  top: 4px; bottom: 4px; left: 4px;
  width: calc(50% - 4px);
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--violet), var(--teal)); box-shadow: 0 4px 12px -2px rgba(0, 168, 132, 0.45);
  transition: transform 0.35s var(--ease-spring);
}
.lang-toggle[data-active="es"] .lang-thumb { transform: translateX(100%); }
.lang-opt {
  padding: 7px 14px;
  font-size: 13px; font-weight: 600; line-height: 18px;
  text-align: center; white-space: nowrap;
  background: transparent; border: 0; border-radius: 9999px;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.25s ease;
}
.lang-opt[aria-pressed="true"] { color: #fff; cursor: default; }
.lang-opt:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
@media (max-width: 720px) {
  .lang-opt { padding: 6px 10px; font-size: 12px; }
}
@media (max-width: 380px) {
  .lang-opt { padding: 6px 8px; font-size: 11.5px; }
}

/* Phones: language toggle gets its own row under the logo bar,
   so "English | Español" stays fully visible. */
@media (max-width: 720px) {
  .site-header .header-inner { flex-wrap: wrap; height: auto; row-gap: 8px; padding-top: 10px; padding-bottom: 10px; }
  .site-header.is-scrolled .header-inner { height: auto; }
  .header-actions { display: contents; }
  .brand { order: 1; }
  .nav-toggle { order: 2; }
  .lang-toggle { order: 3; flex-basis: 100%; }
  .lang-opt { padding: 7px 10px; font-size: 13px; }
}

@media (max-width: 720px) { :root { --header-h: 108px; } }

/* Venue → Google Maps links */
.venue-map { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: currentColor; transition: opacity 0.2s ease; }
.venue-map:hover { opacity: 0.8; text-decoration-thickness: 2px; }
.venue-map:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; border-radius: 2px; }

/* Hero eyebrow line above "META 2.0:" */
.hero-eyebrow {
  margin-bottom: -8px;
  font-size: 22px; font-weight: 500; line-height: 30px;
  letter-spacing: -0.3px; color: #fff;
  animation: eyebrow-in 0.8s var(--ease-out) both;
}
@keyframes eyebrow-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (max-width: 720px) {
  .hero-eyebrow { margin-bottom: -10px; font-size: 17px; line-height: 24px; }
}
/* Footer contact email */
.footer-links a.footer-mail { color: var(--green); font-weight: 600; opacity: 1; }
.footer-links a.footer-mail:hover { text-decoration: underline; text-underline-offset: 3px; }