@font-face {
  font-family: "Geist";
  src: url("/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #08080a;
  --bg-2: #0e0e11;
  --card: #111114;
  --card-2: #16161a;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f5f5f7;
  --text-2: #a1a1aa;
  --text-3: #71717a;
  --accent: #a78bfa;
  --green: #4ade80;
  --radius: 20px;
  --max: 1200px;
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(167, 139, 250, 0.35); }
.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ───────── Nav ───────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  background: rgba(8, 8, 10, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.brand svg { width: 28px; height: 28px; flex: none; }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 14px; color: var(--text-2); }
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.lang { font-size: 13px; color: var(--text-2); padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); font-family: var(--mono); letter-spacing: .02em; }
.lang:hover { color: var(--text); border-color: var(--line-2); }
@media (max-width: 820px) { .nav-links { display: none; } }

/* ───────── Buttons ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 999px;
  font-size: 15px; font-weight: 500; letter-spacing: -0.005em;
  transition: background .2s ease, border-color .2s ease, transform .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--text); color: #0a0a0b; }
.btn-primary:hover { background: #fff; transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.24); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn svg { width: 16px; height: 16px; }

/* ───────── Hero ───────── */
.hero { position: relative; padding: 88px 0 40px; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -200px 0 auto 0; height: 900px; z-index: -1;
  background:
    radial-gradient(600px 380px at 78% 38%, rgba(167, 139, 250, 0.20), transparent 70%),
    radial-gradient(520px 340px at 60% 70%, rgba(74, 222, 128, 0.10), transparent 70%),
    radial-gradient(500px 300px at 95% 75%, rgba(244, 114, 182, 0.12), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 80%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 8px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255,255,255,.03);
  font-size: 13px; color: var(--text-2);
}
.pill .dot { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: rgba(74,222,128,.14); }
.pill .dot::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.hero h1 {
  margin: 26px 0 22px;
  font-size: clamp(42px, 6.2vw, 76px);
  line-height: 1.02; letter-spacing: -0.045em; font-weight: 600;
  background: linear-gradient(180deg, #fff 30%, rgba(255,255,255,.62));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lede { font-size: clamp(17px, 1.6vw, 19px); color: var(--text-2); max-width: 520px; margin: 0 0 34px; line-height: 1.6; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 40px;
  font-family: var(--mono); font-size: 12.5px; color: var(--text-3); letter-spacing: .01em;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 14px; height: 14px; color: var(--text-2); }

/* Phones */
.stage { position: relative; height: 600px; }
.phone {
  position: absolute; width: 250px; aspect-ratio: 9 / 19.4;
  border-radius: 46px; padding: 9px;
  background: linear-gradient(160deg, #2a2a30, #121215 40%, #1d1d22);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.10),
    0 0 0 1px rgba(0,0,0,.6),
    0 40px 80px -20px rgba(0,0,0,.8),
    0 20px 40px -20px rgba(0,0,0,.6);
}
.phone .screen { width: 100%; height: 100%; border-radius: 38px; overflow: hidden; background: #000; position: relative; }
.phone .screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.stage .phone:nth-child(1) { left: 0; top: 70px; transform: rotate(-8deg); z-index: 1; }
.stage .phone:nth-child(2) { left: 50%; top: 0; transform: translateX(-50%); z-index: 3; width: 270px; }
.stage .phone:nth-child(3) { right: 0; top: 70px; transform: rotate(8deg); z-index: 2; }
@media (prefers-reduced-motion: no-preference) {
  .stage .phone:nth-child(2) { animation: float 7s ease-in-out infinite; }
  @keyframes float { 50% { transform: translateX(-50%) translateY(-10px); } }
}

/* Tasacarta screen mock */
.tc-screen {
  height: 100%; display: flex; flex-direction: column; align-items: center;
  padding: 44px 18px 18px; color: #fff; font-family: var(--sans);
  background: radial-gradient(120% 60% at 20% 0%, #3b1f6e 0%, transparent 60%), radial-gradient(100% 50% at 100% 100%, #0b3b4a 0%, transparent 60%), #0b0a12;
}
.tc-top { font-size: 11px; font-weight: 600; color: rgba(255,255,255,.75); display: flex; align-items: center; gap: 6px; }
.tc-top i { width: 14px; height: 14px; border-radius: 50%; background: #22c55e; display: grid; place-items: center; font-style: normal; font-size: 9px; color: #04120a; }
.tc-card {
  margin: 18px 0 16px; width: 72%; aspect-ratio: 63 / 88; border-radius: 12px; padding: 3px;
  background: linear-gradient(135deg, #67e8f9, #a78bfa 35%, #f472b6 65%, #fde047);
  box-shadow: 0 18px 40px -12px rgba(167,139,250,.55);
}
.tc-card div {
  width: 100%; height: 100%; border-radius: 9px;
  background:
    linear-gradient(115deg, transparent 30%, rgba(255,255,255,.22) 45%, transparent 60%),
    linear-gradient(160deg, #2b2f55, #1b2140 55%, #331f4f);
  position: relative; overflow: hidden;
}
.tc-card div::before { content: ""; position: absolute; left: 10%; right: 10%; top: 10%; height: 44%; border-radius: 6px; background: linear-gradient(140deg, #4c6fff55, #f472b655), radial-gradient(circle at 60% 40%, #fde04788, transparent 50%); }
.tc-card div::after { content: ""; position: absolute; left: 10%; right: 30%; bottom: 18%; height: 6px; border-radius: 3px; background: rgba(255,255,255,.25); box-shadow: 0 12px 0 rgba(255,255,255,.15); }
.tc-label { font-size: 11px; color: rgba(255,255,255,.6); }
.tc-price { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; color: #fcd34d; margin: 2px 0 2px; }
.tc-delta { font-size: 11px; color: #4ade80; font-weight: 600; }
.tc-btn { margin-top: auto; width: 100%; height: 38px; border-radius: 999px; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #1a1205; background: linear-gradient(90deg, #fcd34d, #fb923c); }

@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 64px; }
  .stage { height: 520px; max-width: 560px; margin: 24px auto 0; width: 100%; }
  .phone { width: 220px; }
  .stage .phone:nth-child(2) { width: 236px; }
}
@media (max-width: 560px) {
  .stage { height: 430px; }
  .phone { width: 170px; border-radius: 34px; padding: 7px; }
  .phone .screen { border-radius: 28px; }
  .stage .phone:nth-child(2) { width: 190px; }
  .stage .phone:nth-child(1), .stage .phone:nth-child(3) { top: 56px; }
  .hero-meta { gap: 10px 16px; }
}

/* ───────── Logos strip / stats ───────── */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.015), transparent); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 30px 24px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { display: block; font-size: 30px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.stat span { font-size: 14px; color: var(--text-2); }
@media (max-width: 820px) {
  .stats .wrap { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 22px 16px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ───────── Sections ───────── */
.section { padding: 120px 0; }
.kicker { font-family: var(--mono); font-size: 12.5px; color: var(--accent); letter-spacing: .06em; text-transform: uppercase; }
.section-head { max-width: 720px; margin-bottom: 64px; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.06; letter-spacing: -0.04em; font-weight: 600; margin: 14px 0 16px; }
.section-head p { font-size: 18px; color: var(--text-2); margin: 0; max-width: 600px; }
@media (max-width: 720px) { .section { padding: 84px 0; } .section-head { margin-bottom: 44px; } }

/* ───────── Products ───────── */
.products { display: grid; gap: 24px; }
.product {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: center;
  border: 1px solid var(--line); border-radius: 28px;
  background: linear-gradient(180deg, var(--card-2), var(--card));
  min-height: 520px;
}
.product::before {
  content: ""; position: absolute; z-index: -1; width: 620px; height: 620px; right: -120px; top: 50%; transform: translateY(-50%);
  background: radial-gradient(circle, var(--glow) 0%, transparent 65%); opacity: .55;
}
.product-body { padding: 56px; }
.product-top { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.product-top img { width: 60px; height: 60px; border-radius: 15px; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 8px 24px -8px rgba(0,0,0,.6); }
.product-top img.cutout { background: #fbe9ee; }
.product-top h3 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.product-top small { display: block; font-size: 14px; color: var(--text-3); }
.product h4 { font-size: clamp(26px, 3vw, 36px); line-height: 1.12; letter-spacing: -0.035em; font-weight: 600; margin: 0 0 16px; }
.product p { color: var(--text-2); margin: 0 0 28px; font-size: 16.5px; max-width: 470px; }
.features { list-style: none; padding: 0; margin: 0 0 34px; display: grid; gap: 12px; }
.features li { display: flex; gap: 12px; font-size: 15px; color: #d4d4d8; }
.features svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--tint); }
.product-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-family: var(--mono); color: var(--text-2); padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--tint); box-shadow: 0 0 10px var(--tint); }
.platforms { display: flex; gap: 8px; font-size: 12.5px; color: var(--text-3); font-family: var(--mono); }
.product-visual { position: relative; height: 100%; min-height: 520px; display: flex; justify-content: center; align-items: flex-end; overflow: hidden; }
.product-visual .phone { position: relative; width: 280px; margin-bottom: -150px; transform: rotate(-4deg); transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.product:hover .product-visual .phone { transform: rotate(-2deg) translateY(-12px); }
.product.flip .product-body { order: 2; }
.product.flip .product-visual .phone { transform: rotate(4deg); }
.product.flip:hover .product-visual .phone { transform: rotate(2deg) translateY(-12px); }
.product.flip::before { right: auto; left: -120px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 500; }
.link-arrow svg { width: 15px; height: 15px; transition: transform .2s ease; }
.link-arrow:hover svg { transform: translate(2px, -2px); }
.petcare { --glow: rgba(244, 114, 182, .55); --tint: #f472b6; }
.camino  { --glow: rgba(74, 222, 128, .38); --tint: #4ade80; }
.tasacarta { --glow: rgba(167, 139, 250, .55); --tint: #a78bfa; }
@media (max-width: 920px) {
  .product, .product.flip { grid-template-columns: 1fr; min-height: 0; }
  .product.flip .product-body { order: 0; }
  .product-body { padding: 36px 28px 8px; }
  .product-visual { min-height: 380px; }
  .product-visual .phone { width: 230px; margin-bottom: -170px; }
  .product::before { top: auto; bottom: -200px; right: 50% !important; left: auto !important; transform: translateX(50%); }
}

/* ───────── Approach ───────── */
.approach { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; background: var(--card); }
.principle { padding: 34px 30px 38px; border-left: 1px solid var(--line); }
.principle:first-child { border-left: 0; }
.principle .icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); margin-bottom: 26px; }
.principle .icon svg { width: 20px; height: 20px; color: var(--text); }
.principle h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; margin: 0 0 10px; }
.principle p { font-size: 15px; color: var(--text-2); margin: 0; }
@media (max-width: 980px) {
  .approach { grid-template-columns: 1fr 1fr; }
  .principle:nth-child(3) { border-left: 0; }
  .principle:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .approach { grid-template-columns: 1fr; }
  .principle { border-left: 0 !important; }
  .principle:nth-child(n+2) { border-top: 1px solid var(--line); }
}

/* ───────── Process ───────── */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; }
.step { position: relative; padding-top: 28px; border-top: 1px solid var(--line-2); }
.step::before { counter-increment: step; content: "0" counter(step); position: absolute; top: -1px; left: 0; padding-top: 12px; font-family: var(--mono); font-size: 12.5px; color: var(--accent); border-top: 1px solid var(--accent); width: 40px; }
.step h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.015em; margin: 14px 0 8px; }
.step p { font-size: 15px; color: var(--text-2); margin: 0; }
@media (max-width: 900px) { .process { grid-template-columns: 1fr 1fr; gap: 36px 28px; } }
@media (max-width: 520px) { .process { grid-template-columns: 1fr; } }

/* ───────── CTA ───────── */
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  border: 1px solid var(--line); border-radius: 32px;
  padding: clamp(48px, 8vw, 96px) clamp(28px, 6vw, 80px);
  text-align: center;
  background: radial-gradient(80% 120% at 50% 0%, rgba(167,139,250,.18), transparent 60%), var(--card);
}
.cta::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(to right, rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, #000, transparent 75%);
}
.cta h2 { font-size: clamp(32px, 5vw, 56px); letter-spacing: -0.045em; line-height: 1.04; font-weight: 600; margin: 16px auto 18px; max-width: 760px; }
.cta p { color: var(--text-2); font-size: 18px; margin: 0 auto 34px; max-width: 560px; }
.cta .hero-cta { justify-content: center; }
.mail { font-family: var(--mono); font-size: 13px; color: var(--text-3); margin-top: 22px; }
.mail a { color: var(--text-2); border-bottom: 1px solid var(--line-2); }
.mail a:hover { color: var(--text); }

/* ───────── Footer ───────── */
footer { border-top: 1px solid var(--line); margin-top: 0; padding: 64px 0 40px; font-size: 14px; color: var(--text-2); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.foot-grid p { margin: 16px 0 0; color: var(--text-3); max-width: 300px; }
.foot-grid h5 { font-size: 13px; font-weight: 500; color: var(--text); margin: 4px 0 16px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-grid a:hover { color: var(--text); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-3); }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div:first-child { grid-column: 1 / -1; } footer { margin-top: 0; } }

/* ───────── Reveal ───────── */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .product-visual .phone { transition: none; }
}
