/* ===========================================================
   Yulab — Landing
   =========================================================== */

:root {
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --max-w: 1280px;
  --pad-x: clamp(20px, 5vw, 80px);
  --section-y: clamp(80px, 12vw, 160px);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 28px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* Theme: dark default */
:root,
[data-theme="dark"] {
  --bg: #131310;
  --bg-2: #1F1E1B;
  --bg-3: #2A2825;
  --text: #FAFAF7;
  --text-2: #A3A097;
  --text-3: #6E6B62;
  --accent: #AFA9EC;
  --accent-2: #7F77DD;
  --accent-soft: rgba(175, 169, 236, 0.12);
  --border: rgba(250, 250, 247, 0.08);
  --border-strong: rgba(250, 250, 247, 0.16);
  --whatsapp: #25D366;
  --grain-op: 0.04;
}

[data-theme="light"] {
  --bg: #FAFAF7;
  --bg-2: #F1EFEA;
  --bg-3: #E6E3DC;
  --text: #131310;
  --text-2: #5E5A52;
  --text-3: #8E897F;
  --accent: #534AB7;
  --accent-2: #7F77DD;
  --accent-soft: rgba(127, 119, 221, 0.12);
  --border: rgba(19, 19, 16, 0.08);
  --border-strong: rgba(19, 19, 16, 0.16);
  --whatsapp: #128C7E;
  --grain-op: 0.03;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.4s var(--ease-out), color 0.4s var(--ease-out);
}

/* Grain overlay – fixed, very subtle */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: var(--grain-op);
  z-index: 1;
  mix-blend-mode: overlay;
}

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

a { color: inherit; text-decoration: none; }

button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: var(--accent); color: var(--bg); }

/* ===========================================================
   Layout
   =========================================================== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
  position: relative;
}

section {
  position: relative;
  z-index: 2;
}

/* ===========================================================
   Type
   =========================================================== */
h1, h2, h3, h4 {
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.05;
  text-wrap: balance;
}

h1 { font-size: clamp(44px, 7.2vw, 76px); letter-spacing: -0.035em; line-height: 0.98; }
h2 { font-size: clamp(32px, 4.6vw, 52px); letter-spacing: -0.03em; }
h3 { font-size: clamp(20px, 2vw, 24px); letter-spacing: -0.015em; line-height: 1.2; }

p { margin: 0; text-wrap: pretty; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-2);
  letter-spacing: 0.01em;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent);
  animation: pulse 2.4s var(--ease-in-out) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(175, 169, 236, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(175, 169, 236, 0); }
}

.lead {
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--text-2);
  line-height: 1.55;
  max-width: 52ch;
}

.kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.kicker::before {
  content: '';
  width: 18px; height: 1px;
  background: currentColor;
  opacity: 0.6;
}

/* ===========================================================
   Buttons
   =========================================================== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition: transform 0.4s var(--ease-out), background 0.25s var(--ease-out), color 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
  white-space: nowrap;
  will-change: transform;
}
.btn .i { font-size: 16px; line-height: 1; }
.btn .arrow {
  display: inline-block;
  transition: transform 0.4s var(--ease-out);
}
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary {
  background: var(--text);
  color: var(--bg);
}
.btn-primary:hover { background: var(--accent); color: var(--bg); }

.btn-accent {
  background: var(--accent-2);
  color: #fff;
}
[data-theme="dark"] .btn-accent { color: #131310; background: var(--accent); }
.btn-accent:hover { background: var(--accent-2); filter: brightness(1.05); }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-secondary:hover { background: var(--bg-2); border-color: var(--text); }

.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
  padding: 18px 26px;
  font-size: 16px;
  border-radius: 12px;
}
.btn-whatsapp:hover { filter: brightness(1.08); }
.btn-whatsapp .i { font-size: 20px; }

.btn-ghost {
  padding: 10px 14px;
  color: var(--text-2);
  border-radius: 8px;
  font-size: 14px;
}
.btn-ghost:hover { color: var(--text); background: var(--bg-2); }

/* ===========================================================
   Navbar
   =========================================================== */
.nav {
  position: fixed;
  top: 16px; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 0 var(--pad-x);
  transition: top 0.3s var(--ease-out);
}
.nav-inner {
  width: 100%;
  max-width: 1180px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 10px 22px;
  background: color-mix(in oklab, var(--bg) 70%, transparent);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.nav.scrolled .nav-inner {
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  box-shadow: 0 6px 28px -10px rgba(0,0,0,0.25);
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.04em;
  color: var(--text);
}
.logo-mark {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  position: relative;
  overflow: hidden;
}
.logo-mark svg { width: 14px; height: 14px; position: relative; z-index: 1; }
.logo-mark::after {
  content: '';
  position: absolute; inset: -50%;
  background: conic-gradient(from 0deg, var(--accent), transparent 35%);
  animation: spin 6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 8px 14px;
  font-size: 14px;
  color: var(--text-2);
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: var(--bg-2); }

.nav-right { display: flex; align-items: center; gap: 8px; }

.theme-toggle {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--text-2);
  transition: background 0.2s, color 0.2s, transform 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.theme-toggle:hover { background: var(--bg-2); color: var(--text); }
.theme-toggle .i { font-size: 18px; transition: transform 0.5s var(--ease-out), opacity 0.3s; }
.theme-toggle .ti-sun-filled { display: none; }
[data-theme="dark"] .theme-toggle .ti-moon-filled { display: none; }
[data-theme="dark"] .theme-toggle .ti-sun-filled { display: inline-block; }

.nav-cta {
  padding: 10px 18px;
  font-size: 14px;
  border-radius: 999px;
}

.menu-toggle { display: none; }

/* mobile nav */
@media (max-width: 880px) {
  .nav-links { display: none; }
  .menu-toggle {
    display: grid; place-items: center;
    width: 38px; height: 38px;
    border-radius: 50%;
    color: var(--text);
  }
  .menu-toggle:hover { background: var(--bg-2); }
  .nav-cta { display: none; }
}

/* drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--bg);
  padding: 24px var(--pad-x);
  display: flex;
  flex-direction: column;
  transform: translateY(-100%);
  transition: transform 0.45s var(--ease-in-out);
}
.drawer.open { transform: translateY(0); }
.drawer-top { display: flex; justify-content: space-between; align-items: center; }
.drawer-links {
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.drawer-links a {
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.03em;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.drawer-links a .i { font-size: 22px; color: var(--text-3); }
.drawer-footer { margin-top: auto; padding-top: 32px; }

/* ===========================================================
   Hero
   =========================================================== */
.hero {
  min-height: 100svh;
  padding: 160px 0 80px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-bg .mesh {
  position: absolute;
  inset: -10%;
  filter: blur(80px);
  opacity: 0.5;
  animation: meshDrift 22s var(--ease-in-out) infinite alternate;
}
.hero-bg .mesh-a {
  width: 60%; height: 60%;
  top: -10%; left: -10%;
  background: radial-gradient(circle, var(--accent-2), transparent 60%);
}
.hero-bg .mesh-b {
  width: 55%; height: 55%;
  bottom: -15%; right: -10%;
  background: radial-gradient(circle, var(--accent), transparent 60%);
  animation-delay: -8s;
  animation-duration: 28s;
}
.hero-bg .mesh-c {
  width: 45%; height: 45%;
  top: 30%; left: 35%;
  background: radial-gradient(circle, color-mix(in oklab, var(--accent) 60%, var(--whatsapp)), transparent 60%);
  opacity: 0.25;
  animation-duration: 18s;
}
@keyframes meshDrift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(4%, -3%) scale(1.1); }
  100% { transform: translate(-3%, 4%) scale(0.95); }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 40%, black, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, black, transparent 70%);
  opacity: 0.5;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-copy { max-width: 620px; }
.hero h1 {
  margin-top: 24px;
  margin-bottom: 24px;
}
.hero h1 .accent-mark {
  color: var(--accent);
  display: inline-block;
  position: relative;
}
.hero h1 .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(28px);
  animation: heroIn 0.9s var(--ease-out) forwards;
}
@keyframes heroIn {
  to { opacity: 1; transform: translateY(0); }
}
.hero-sub {
  font-size: clamp(17px, 1.3vw, 19px);
  color: var(--text-2);
  line-height: 1.55;
  max-width: 54ch;
  opacity: 0;
  animation: heroIn 0.9s 0.5s var(--ease-out) forwards;
}
.hero-cta {
  margin-top: 36px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  opacity: 0;
  animation: heroIn 0.9s 0.7s var(--ease-out) forwards;
}

.hero-meta {
  margin-top: 56px;
  display: flex;
  align-items: center;
  gap: 24px;
  opacity: 0;
  animation: heroIn 1s 1s var(--ease-out) forwards;
}
.hero-meta .meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero-meta .meta-num {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
}
.hero-meta .meta-label {
  font-size: 12px;
  color: var(--text-3);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.hero-meta .meta-divider {
  width: 1px; height: 32px; background: var(--border-strong);
}

/* Hero visual / Yapar mockup */
.hero-visual {
  position: relative;
  height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: heroIn 1.2s 0.3s var(--ease-out) forwards;
}

.phone {
  width: 320px;
  height: 640px;
  border-radius: 48px;
  background: #0c0c0a;
  padding: 12px;
  position: relative;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.08) inset,
    0 0 0 1px rgba(255,255,255,0.04),
    0 50px 100px -30px rgba(0,0,0,0.6),
    0 20px 50px -20px rgba(127,119,221,0.35);
  transform: rotate(-4deg) translateY(0);
  animation: phoneFloat 8s ease-in-out infinite;
}
@keyframes phoneFloat {
  0%, 100% { transform: rotate(-4deg) translateY(0); }
  50%      { transform: rotate(-3deg) translateY(-10px); }
}
.phone::before {
  content: '';
  position: absolute;
  top: 22px; left: 50%;
  transform: translateX(-50%);
  width: 110px; height: 28px;
  background: #0c0c0a;
  border-radius: 999px;
  z-index: 3;
}
.phone-screen {
  width: 100%; height: 100%;
  background: #FAFAF7;
  border-radius: 38px;
  overflow: hidden;
  position: relative;
  color: #131310;
  font-size: 13px;
}

/* phone interior */
.ps-status {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 24px 6px;
  font-size: 13px;
  font-weight: 600;
}
.ps-status .right { display: flex; gap: 5px; align-items: center; font-size: 13px; }
.ps-status .right svg { width: 16px; }

.ps-header {
  padding: 28px 22px 18px;
  display: flex; align-items: center; justify-content: space-between;
}
.ps-greet { display: flex; flex-direction: column; }
.ps-greet .hi { font-size: 13px; color: #5E5A52; }
.ps-greet .name { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
.ps-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7F77DD, #F4B6C2);
  display: grid; place-items: center;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.ps-stat {
  margin: 0 18px;
  padding: 18px 18px;
  background: linear-gradient(135deg, #534AB7, #7F77DD);
  border-radius: 18px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.ps-stat::after {
  content: '';
  position: absolute;
  width: 140px; height: 140px;
  right: -50px; top: -50px;
  background: radial-gradient(circle, rgba(255,255,255,0.18), transparent 60%);
  border-radius: 50%;
}
.ps-stat .label {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.7;
}
.ps-stat .amount {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-top: 6px;
  display: flex; align-items: baseline; gap: 6px;
  font-variant-numeric: tabular-nums;
}
.ps-stat .amount .currency { font-size: 16px; opacity: 0.7; }
.ps-stat .meta {
  margin-top: 14px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px;
  opacity: 0.85;
}
.ps-stat .meta .up {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 3px 8px;
  background: rgba(255,255,255,0.18);
  border-radius: 999px;
  font-weight: 500;
}

.ps-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 18px;
}
.ps-action {
  background: #F1EFEA;
  padding: 12px 8px 10px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #131310;
  text-align: center;
}
.ps-action .ai { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: #fff; color: #534AB7; font-size: 16px; }
.ps-action.featured .ai { background: #7F77DD; color: #fff; }

.ps-section-title {
  padding: 0 22px 8px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: #5E5A52;
}
.ps-section-title strong { color: #131310; font-weight: 500; }

.ps-feed { padding: 0 18px; display: flex; flex-direction: column; gap: 6px; }
.ps-sale {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 10px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(19,19,16,0.06);
  position: relative;
}
.ps-sale.new {
  animation: saleIn 0.6s var(--ease-out);
}
@keyframes saleIn {
  from { opacity: 0; transform: translateY(-8px); background: #ECEAFC; }
  to { opacity: 1; transform: translateY(0); }
}
.ps-sale .si {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: #F1EFEA;
  display: grid; place-items: center;
  font-size: 14px;
  color: #534AB7;
}
.ps-sale .si.wa { background: #25D366; color: #fff; }
.ps-sale .si.ai { background: #534AB7; color: #fff; }
.ps-sale .info { flex: 1; min-width: 0; }
.ps-sale .info .top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
}
.ps-sale .info .who { font-weight: 500; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-sale .info .amt { font-weight: 500; font-size: 13px; color: #131310; font-variant-numeric: tabular-nums; }
.ps-sale .info .bottom {
  font-size: 11px;
  color: #5E5A52;
  display: flex; align-items: center; gap: 6px;
  margin-top: 2px;
}
.ps-sale .info .bottom .tag {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 1px 6px;
  background: rgba(83,74,183,0.1);
  color: #534AB7;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 500;
}
.ps-sale .info .bottom .tag.wa { background: rgba(37,211,102,0.15); color: #128C7E; }

/* WhatsApp notification toast on phone */
.ps-toast {
  position: absolute;
  bottom: 90px;
  left: 16px; right: 16px;
  padding: 12px 14px;
  background: #131310;
  color: #fff;
  border-radius: 14px;
  display: flex; align-items: center; gap: 10px;
  font-size: 12px;
  box-shadow: 0 12px 30px -10px rgba(0,0,0,0.5);
  transform: translateY(140%);
  opacity: 0;
  transition: transform 0.6s var(--ease-out), opacity 0.4s;
}
.ps-toast.show { transform: translateY(0); opacity: 1; }
.ps-toast .wa-icon {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: #25D366;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.ps-toast .wa-icon svg { width: 18px; height: 18px; color: #fff; }
.ps-toast .body { line-height: 1.35; }
.ps-toast .body strong { display: block; font-weight: 500; }
.ps-toast .body span { color: rgba(255,255,255,0.55); font-size: 11px; }

/* Tab bar mock */
.ps-tabs {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 10px 6px 18px;
  background: rgba(250,250,247,0.7);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(19,19,16,0.05);
}
.ps-tab { display: grid; place-items: center; gap: 2px; font-size: 9px; color: #8E897F; padding: 6px 0; }
.ps-tab.active { color: #534AB7; }
.ps-tab .i { font-size: 18px; }

/* Floating side cards around the phone */
.float-card {
  position: absolute;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 4;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.5);
}
.float-card .fc-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid; place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}
.float-card .fc-body { font-size: 12px; line-height: 1.35; }
.float-card .fc-body strong { display: block; font-weight: 500; color: var(--text); font-size: 13px; }
.float-card .fc-body span { color: var(--text-2); }

.float-a {
  top: 10%;
  left: -8%;
  animation: floatA 7s ease-in-out infinite;
}
.float-a .fc-icon { background: rgba(37,211,102,0.15); color: var(--whatsapp); }
.float-b {
  bottom: 12%;
  right: -10%;
  animation: floatB 9s ease-in-out infinite;
}
.float-b .fc-icon { background: var(--accent-soft); color: var(--accent); }
.float-c {
  top: 4%;
  right: -4%;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-2);
  animation: floatC 11s ease-in-out infinite;
}
@keyframes floatA {
  0%, 100% { transform: translate(0,0) rotate(-2deg); }
  50% { transform: translate(6px, -10px) rotate(-3deg); }
}
@keyframes floatB {
  0%, 100% { transform: translate(0,0) rotate(2deg); }
  50% { transform: translate(-8px, 8px) rotate(3deg); }
}
@keyframes floatC {
  0%, 100% { transform: translate(0,0); }
  50% { transform: translate(-6px, 6px); }
}

/* Hero badge below phone */
.hero-proof {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 10px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  color: var(--text-2);
  white-space: nowrap;
  z-index: 5;
}
.hero-proof::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--whatsapp);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--whatsapp);
}

/* responsive hero */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 80px; }
  .hero-visual { height: 560px; }
  .hero-meta { gap: 18px; }
  .hero-meta .meta-divider { height: 24px; }
}
@media (max-width: 540px) {
  .hero { padding-top: 130px; padding-bottom: 40px; }
  .phone { transform: rotate(-3deg) scale(0.9); }
  .float-a { left: -4%; }
  .float-b { right: -4%; }
  .float-c { right: 8%; }
}

/* ===========================================================
   Section header
   =========================================================== */
.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 56px;
  max-width: 720px;
}
.section-head .section-sub {
  color: var(--text-2);
  font-size: clamp(16px, 1.2vw, 18px);
  max-width: 56ch;
  line-height: 1.55;
}

/* ===========================================================
   Servicios
   =========================================================== */
.servicios { padding: var(--section-y) 0; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 720px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  --spot-x: 50%;
  --spot-y: 50%;
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 32px;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.5s var(--ease-out);
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(360px circle at var(--spot-x) var(--spot-y), var(--accent-soft), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.service-card:hover { border-color: var(--border-strong); }
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--bg-3);
  display: grid; place-items: center;
  color: var(--accent);
  font-size: 24px;
  margin-bottom: 24px;
  position: relative;
  transition: background 0.3s;
}
.service-card:hover .service-icon {
  background: var(--accent-soft);
}

.service-card h3 { margin-bottom: 12px; }
.service-card p {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.service-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  position: relative;
}
.service-examples .ex {
  font-size: 12px;
  color: var(--text-3);
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  transition: border-color 0.25s, color 0.25s;
}
.service-card:hover .service-examples .ex { border-color: var(--border-strong); color: var(--text-2); }

/* Card 3 — bot icon eyes */
.bot-eye {
  display: inline-flex; gap: 4px;
}
.bot-eye span {
  width: 5px; height: 8px;
  background: currentColor;
  border-radius: 2px;
  animation: blink 4s var(--ease-in-out) infinite;
}
.bot-eye span:nth-child(2) { animation-delay: 0.2s; }
@keyframes blink {
  0%, 92%, 100% { transform: scaleY(1); }
  94% { transform: scaleY(0.1); }
}

/* Card 4 — bolt sparks */
.bolt-icon { position: relative; }
.bolt-icon::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  background: conic-gradient(from 0deg, transparent, var(--accent) 20%, transparent 40%);
  opacity: 0;
  transition: opacity 0.4s;
  filter: blur(8px);
}
.service-card:hover .bolt-icon::after { opacity: 0.6; }

/* ===========================================================
   Proceso
   =========================================================== */
.proceso {
  padding: var(--section-y) 0;
  background: var(--bg-2);
  position: relative;
}
.proceso::before, .proceso::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: var(--border);
}
.proceso::before { top: 0; }
.proceso::after { bottom: 0; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  position: relative;
}
.step-line {
  position: absolute;
  top: 28px;
  left: 6%;
  right: 6%;
  height: 1px;
  background: var(--border-strong);
  z-index: 0;
}
.step-line .step-line-fill {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 1.2s var(--ease-out);
}
.step {
  position: relative;
  z-index: 1;
  padding: 0 12px;
}
.step .num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--text);
  margin-bottom: 24px;
  position: relative;
  transition: background 0.4s, border-color 0.4s, color 0.4s;
}
.step.active .num {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.step.active .num::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  animation: ring 2.4s var(--ease-out) infinite;
}
@keyframes ring {
  0% { transform: scale(0.9); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}
.step h3 { margin-bottom: 10px; }
.step p { color: var(--text-2); font-size: 14.5px; line-height: 1.55; }

@media (max-width: 880px) {
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .step-line { display: none; }
}

/* ===========================================================
   Stack
   =========================================================== */
.stack { padding: var(--section-y) 0; }

.stack-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  background: var(--border);
}
.stack-col {
  background: var(--bg);
  padding: 28px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 240px;
}
.stack-col .stack-title {
  font-size: 13px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-2);
  display: flex; align-items: center; gap: 8px;
}
.stack-col .stack-title .i { color: var(--accent); }
.stack-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.stack-badge {
  font-size: 13px;
  padding: 5px 11px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  transition: background 0.2s, transform 0.4s var(--ease-out), border-color 0.2s;
}
.stack-badge:hover { background: var(--accent-soft); border-color: var(--accent); transform: translateY(-2px); }

@media (max-width: 960px) { .stack-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .stack-grid { grid-template-columns: 1fr; } }

.marquee {
  margin-top: 60px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: marquee 50s linear infinite;
  align-items: center;
}
.marquee-item {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-3);
  white-space: nowrap;
}
.marquee-item .dot { color: var(--accent); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===========================================================
   Trabajo
   =========================================================== */
.trabajo { padding: var(--section-y) 0; }

.flagship {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 48px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 28px;
  position: relative;
  overflow: hidden;
}
.flagship::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  top: -200px; right: -200px;
  background: radial-gradient(circle, var(--accent-soft), transparent 60%);
  pointer-events: none;
}

.flagship-visual {
  position: relative;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.flagship-visual .phone {
  width: 240px; height: 480px;
  border-radius: 36px;
  padding: 10px;
  position: absolute;
  animation: none;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.08) inset,
    0 0 0 1px rgba(255,255,255,0.04),
    0 30px 70px -30px rgba(0,0,0,0.6);
}
.flagship-visual .phone::before { width: 90px; height: 22px; top: 18px; }
.flagship-visual .phone .phone-screen { border-radius: 28px; }
.flagship-visual .phone-a {
  transform: rotate(-8deg) translate(-90px, 30px);
  z-index: 1;
}
.flagship-visual .phone-b {
  transform: rotate(0deg) translate(0, -20px);
  z-index: 2;
}
.flagship-visual .phone-c {
  transform: rotate(8deg) translate(90px, 30px);
  z-index: 1;
}
.flagship-visual .phone-a:hover { transform: rotate(-6deg) translate(-90px, 20px); }
.flagship-visual .phone-b:hover { transform: rotate(0deg) translate(0, -30px); }
.flagship-visual .phone-c:hover { transform: rotate(6deg) translate(90px, 20px); }
.flagship-visual .phone { transition: transform 0.6s var(--ease-out); }

.flagship-body { max-width: 480px; }
.flagship-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  color: var(--text-2);
  margin-bottom: 18px;
}
.flagship-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.flagship-body h3 {
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.1;
  margin-bottom: 16px;
}
.flagship-body p {
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 24px;
}
.flagship-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}
.fh {
  padding: 14px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex; align-items: center; gap: 10px;
  font-size: 13px;
  color: var(--text);
}
.fh .i { color: var(--accent); font-size: 16px; }

@media (max-width: 940px) {
  .flagship { grid-template-columns: 1fr; gap: 40px; padding: 32px; }
  .flagship-visual { height: 460px; }
  .flagship-visual .phone { width: 210px; height: 420px; }
}
@media (max-width: 480px) {
  .flagship-visual .phone-a, .flagship-visual .phone-c { display: none; }
}

.cases-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.case-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color 0.3s, transform 0.5s var(--ease-out);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.case-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.case-card .kicker { margin-bottom: 0; }
.case-card h3 { font-size: 22px; line-height: 1.2; }
.case-card p {
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.55;
}
.case-card .case-mini {
  margin-top: auto;
  height: 130px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.case-card .case-mini .i { font-size: 60px; color: var(--text-3); opacity: 0.4; transition: color 0.3s, opacity 0.3s; }
.case-card:hover .case-mini .i { color: var(--accent); opacity: 0.7; }

@media (max-width: 720px) { .cases-grid { grid-template-columns: 1fr; } }

/* ===========================================================
   Quiénes somos
   =========================================================== */
.about {
  padding: var(--section-y) 0;
  background: var(--bg-2);
  position: relative;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.about-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: start;
}
.about-text {
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--text);
}
.about-text strong {
  color: var(--accent);
  font-weight: 500;
}
.about-text p + p { margin-top: 22px; }
.about-text p:last-child { color: var(--text-2); font-size: clamp(16px, 1.2vw, 18px); line-height: 1.6; }

.about-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 12px;
}
.aside-card {
  padding: 20px 22px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.aside-card .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 8px;
}
.aside-card .value {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  display: flex; align-items: center; gap: 10px;
}
.aside-card .value .pill {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  letter-spacing: 0;
  text-transform: none;
  font-family: var(--font-sans);
}

.capacity-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--bg-2);
  margin-top: 12px;
  position: relative;
  overflow: hidden;
}
.capacity-bar .fill {
  position: absolute;
  inset: 0 33% 0 0; /* 2 of 3 filled */
  background: var(--accent);
  border-radius: 999px;
}
.capacity-bar .fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
  animation: shimmer 2.6s linear infinite;
}
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(200%); } }

@media (max-width: 860px) {
  .about-inner { grid-template-columns: 1fr; gap: 32px; }
}

/* ===========================================================
   FAQs
   =========================================================== */
.faqs { padding: var(--section-y) 0; }
.faqs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  border-top: 1px solid var(--border);
}
.faq {
  border-bottom: 1px solid var(--border);
  padding: 4px 0;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 4px;
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  transition: color 0.2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq .faq-toggle {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: grid; place-items: center;
  color: var(--text-2);
  flex-shrink: 0;
  position: relative;
  transition: background 0.3s, border-color 0.3s, transform 0.4s var(--ease-out), color 0.3s;
}
.faq .faq-toggle::before,
.faq .faq-toggle::after {
  content: '';
  position: absolute;
  background: currentColor;
  transition: transform 0.4s var(--ease-in-out);
}
.faq .faq-toggle::before { width: 12px; height: 1.5px; }
.faq .faq-toggle::after { width: 1.5px; height: 12px; }
.faq[open] .faq-toggle { background: var(--accent); color: var(--bg); border-color: var(--accent); transform: rotate(90deg); }
.faq[open] .faq-toggle::after { transform: scaleY(0); }

.faq .faq-body {
  padding: 0 4px 26px;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.7;
  max-width: 65ch;
  animation: faqIn 0.5s var(--ease-out);
}
@keyframes faqIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===========================================================
   CTA / Contacto
   =========================================================== */
.cta {
  padding: var(--section-y) 0 calc(var(--section-y) * 0.6);
  position: relative;
  overflow: hidden;
}
.cta-wordmark {
  position: absolute;
  bottom: -3vw;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(160px, 28vw, 380px);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.85;
  color: var(--text);
  opacity: 0.05;
  pointer-events: none;
  z-index: 1;
  white-space: nowrap;
}
[data-theme="light"] .cta-wordmark { opacity: 0.08; }

.cta-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}
.cta-inner h2 {
  font-size: clamp(48px, 7vw, 96px);
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: 20px;
}
.cta-inner h2 .em { color: var(--accent); }
.cta-inner .lead {
  margin-bottom: 36px;
  font-size: clamp(17px, 1.4vw, 19px);
}
.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.cta-secondary {
  display: flex;
  gap: 18px;
  align-items: center;
  color: var(--text-2);
  font-size: 14px;
  margin-top: 8px;
}
.cta-secondary a { color: var(--text); border-bottom: 1px solid var(--border-strong); padding-bottom: 1px; transition: border-color 0.2s; }
.cta-secondary a:hover { border-color: var(--accent); }

.cta-form {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 28px;
}
.cta-form h3 { margin-bottom: 4px; font-size: 18px; }
.cta-form .form-sub { color: var(--text-2); font-size: 14px; margin-bottom: 20px; }
.cta-form .field { margin-bottom: 12px; position: relative; }
.cta-form label {
  display: block;
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 6px;
}
.cta-form input,
.cta-form textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  resize: vertical;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.cta-form textarea { min-height: 100px; }
.cta-form input:focus,
.cta-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.cta-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cta-form .submit { width: 100%; justify-content: center; margin-top: 8px; }
.cta-form .fineprint { margin-top: 12px; font-size: 12px; color: var(--text-3); text-align: center; }

@media (max-width: 880px) {
  .cta-inner { grid-template-columns: 1fr; gap: 40px; }
  .cta-form .field-row { grid-template-columns: 1fr; }
}

/* ===========================================================
   Footer
   =========================================================== */
.footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.footer-brand { display: flex; flex-direction: column; gap: 16px; max-width: 320px; }
.footer-brand .tagline { color: var(--text-2); font-size: 14.5px; line-height: 1.55; }
.footer-col h4 {
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  font-size: 14.5px;
  color: var(--text-2);
  padding: 4px 0;
  transition: color 0.2s, transform 0.3s var(--ease-out);
}
.footer-col a:hover { color: var(--text); transform: translateX(3px); }

.footer-bottom {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-3);
  flex-wrap: wrap;
  gap: 16px;
}
.footer-socials { display: flex; gap: 4px; }
.footer-socials a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--text-2);
  transition: background 0.2s, color 0.2s;
}
.footer-socials a:hover { background: var(--bg-2); color: var(--text); }

@media (max-width: 820px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ===========================================================
   Reveal animations
   =========================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

/* Magnetic helper */
.magnetic { transform: translate3d(0,0,0); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01s !important;
    transition-duration: 0.05s !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}
