/* ==========================================================================
   Jesús Castillo · Team17 Apps — landing page
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --brand: #009688;
  --brand-strong: #00796B;   /* buttons / accent text on light backgrounds */
  --brand-soft: rgba(0, 150, 136, .10);

  --bg: #F6F8F8;
  --bg-alt: #EDF2F1;
  --surface: #FFFFFF;
  --surface-2: #F2F5F5;
  --text: #0E1A1D;
  --text-2: #4A5A5E;
  --text-3: #7A898C;
  --border: rgba(14, 26, 29, .10);
  --border-strong: rgba(14, 26, 29, .18);
  --grid-line: rgba(14, 26, 29, .05);
  --accent-text: #00796B;
  --shadow: 0 1px 2px rgba(14, 26, 29, .04), 0 12px 32px -12px rgba(14, 26, 29, .14);
  --shadow-lg: 0 30px 80px -30px rgba(14, 26, 29, .35);

  --phone-frame: #0E1A1D;
  --ui-bg: #FFFFFF;
  --ui-card: #F1F5F5;
  --ui-line: #DCE4E4;
  --ui-text: #0E1A1D;
  --ui-muted: #8A9799;

  --contact-bg: #0B1215;

  --radius: 16px;
  --radius-sm: 10px;
  --container: 1160px;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B1215;
    --bg-alt: #0F181B;
    --surface: #121D21;
    --surface-2: #17252A;
    --text: #E8EFEF;
    --text-2: #A3B2B4;
    --text-3: #6F8084;
    --border: rgba(232, 239, 239, .08);
    --border-strong: rgba(232, 239, 239, .16);
    --grid-line: rgba(232, 239, 239, .035);
    --accent-text: #4DB6AC;
    --brand-soft: rgba(0, 150, 136, .14);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .6);
    --shadow-lg: 0 30px 80px -30px rgba(0, 0, 0, .8);
    --phone-frame: #1E2C31;
    --ui-bg: #0F181B;
    --ui-card: #17252A;
    --ui-line: #23343A;
    --ui-text: #E8EFEF;
    --ui-muted: #6F8084;
    --contact-bg: #0E1A1D;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0B1215;
  --bg-alt: #0F181B;
  --surface: #121D21;
  --surface-2: #17252A;
  --text: #E8EFEF;
  --text-2: #A3B2B4;
  --text-3: #6F8084;
  --border: rgba(232, 239, 239, .08);
  --border-strong: rgba(232, 239, 239, .16);
  --grid-line: rgba(232, 239, 239, .035);
  --accent-text: #4DB6AC;
  --brand-soft: rgba(0, 150, 136, .14);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .6);
  --shadow-lg: 0 30px 80px -30px rgba(0, 0, 0, .8);
  --phone-frame: #1E2C31;
  --ui-bg: #0F181B;
  --ui-card: #17252A;
  --ui-line: #23343A;
  --ui-text: #E8EFEF;
  --ui-muted: #6F8084;
  --contact-bg: #0E1A1D;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .3s ease, color .3s ease;
}
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
svg { display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
@media (max-width: 560px) { .container { padding: 0 16px; } }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--brand-strong); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip:focus { top: 16px; }

/* Blueprint grid used behind hero / contact */
.grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: 12px;
  font-weight: 600; font-size: 15px; white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s, box-shadow .2s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.btn:hover svg { transform: translateX(2px); }
.btn--sm { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.btn--primary { background: var(--brand-strong); color: #fff; box-shadow: 0 8px 24px -10px rgba(0, 150, 136, .7); }
.btn--primary:hover { background: #00695C; transform: translateY(-1px); }
.btn--ghost { border-color: var(--border-strong); background: var(--surface); color: var(--text); }
.btn--ghost:hover { border-color: var(--brand); color: var(--accent-text); }
.btn--light { background: #fff; color: #0B1215; }
.btn--light:hover { background: #E0F2F1; transform: translateY(-1px); }
.btn--light svg:hover, .btn--light:hover svg { transform: none; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; min-width: 40px; padding: 0 10px; border-radius: 10px;
  background: transparent; border: 1px solid var(--border);
  transition: border-color .2s, background-color .2s;
}
.icon-btn:hover { border-color: var(--border-strong); background: var(--surface); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s;
}
.nav.is-scrolled { border-bottom-color: var(--border); }
.nav__inner { display: flex; align-items: center; gap: 24px; height: 72px; }

.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand__mark { width: 38px; height: 38px; flex: none; border-radius: 9px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font-family: var(--font-display); font-weight: 600; font-size: 16px; letter-spacing: -.01em; }
.brand__text small { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); letter-spacing: .04em; }

.nav__links { display: flex; gap: 4px; }
.nav__links a { padding: 8px 14px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--text-2); transition: color .2s, background-color .2s; }
.nav__links a:hover { color: var(--text); background: var(--surface); }
.nav__links a.is-active { color: var(--text); }
.nav__cta-mobile { display: none; }
.nav__actions { display: flex; align-items: center; gap: 8px; }

.lang-btn { font-family: var(--font-mono); font-size: 12px; gap: 4px; letter-spacing: .04em; }
.lang-btn span { color: var(--text-3); transition: color .2s; }
.lang-btn .sep { opacity: .5; }
html[lang="en"] .lang-btn [data-lang="en"],
html[lang="es"] .lang-btn [data-lang="es"] { color: var(--text); font-weight: 600; }

.ic-moon { display: none !important; }
:root[data-theme="dark"] .ic-sun { display: none !important; }
:root[data-theme="dark"] .ic-moon { display: block !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ic-sun { display: none !important; }
  :root:not([data-theme="light"]) .ic-moon { display: block !important; }
}

.nav__burger { display: none; }

@media (max-width: 900px) {
  .nav__burger { display: inline-flex; }
  .nav__cta { display: none; }
  .nav__links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px 16px 20px;
    background: var(--bg); border-bottom: 1px solid var(--border);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav__links.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__links a { padding: 14px 8px; font-size: 16px; border-radius: 0; border-bottom: 1px solid var(--border); }
  .nav__links a:hover { background: transparent; }
  .nav__cta-mobile { display: block; color: var(--accent-text) !important; border-bottom: 0 !important; }
}
@media (max-width: 420px) {
  .brand__text small { display: none; }
  .nav__inner { gap: 12px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 96px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; width: 720px; height: 720px; right: -200px; top: -220px;
  background: radial-gradient(circle, rgba(0, 150, 136, .18), transparent 65%);
  pointer-events: none;
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 10px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface);
  font-size: 13px; font-weight: 500; color: var(--text-2);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px transparent; } }

.hero__title { margin: 24px 0 20px; font-size: clamp(38px, 5.6vw, 64px); font-weight: 700; letter-spacing: -.035em; }
.accent { color: var(--accent-text); position: relative; white-space: nowrap; }
.nw { white-space: nowrap; }
.px { display: inline-block; width: .2em; height: .2em; margin-left: .08em; background: var(--brand); border-radius: 2px; vertical-align: .12em; animation: blink 1.6s steps(1) infinite; }
@keyframes blink { 50% { opacity: .25; } }
.hero__lead { font-size: 18px; color: var(--text-2); max-width: 560px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 48px 0 0; border-top: 1px solid var(--border); }
.stats > div { padding: 20px 20px 0 0; }
.stats > div + div { padding-left: 20px; border-left: 1px solid var(--border); }
.stats dt { font-family: var(--font-display); font-size: 24px; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; }
.stats dd { margin: 4px 0 0; font-size: 13px; color: var(--text-3); line-height: 1.45; }

.hero__visual { position: relative; display: flex; justify-content: center; padding: 20px 0; }

@media (max-width: 960px) {
  .hero { padding: 48px 0 72px; }
  .hero__inner { grid-template-columns: 1fr; gap: 64px; }
  .hero__visual { order: 2; }
}
@media (max-width: 560px) {
  .accent { white-space: normal; }
  .stats { grid-template-columns: 1fr; }
  .stats > div { padding: 16px 0; display: flex; align-items: baseline; gap: 16px; }
  .stats > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--border); }
  .stats dt { min-width: 120px; font-size: 20px; }
  .stats dd { margin: 0; }
  .hero__ctas .btn { flex: 1 1 100%; }
}

/* Floating badges */
.float {
  position: absolute; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
  font-size: 13px; line-height: 1.3; z-index: 2;
  animation: floaty 6s ease-in-out infinite;
}
.float b { display: block; font-weight: 600; }
.float small { color: var(--text-3); font-size: 12px; }
.float__ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--brand-soft); color: var(--accent-text); }
.float__ic.ok { background: rgba(34, 197, 94, .12); color: #16A34A; }
.float__ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.float--build { top: 40%; left: -6%; }
.float--store { bottom: 16%; right: -6%; animation-delay: -3s; }
.float--fps { top: 6%; right: 6%; flex-direction: column; gap: 0; padding: 10px 14px; animation-delay: -1.5s; }
.float--fps b { font-family: var(--font-display); font-size: 22px; color: var(--accent-text); }
@keyframes floaty { 50% { transform: translateY(-8px); } }
@media (max-width: 560px) {
  .float--build { left: 0; top: 38%; }
  .float--store { right: 0; bottom: 8%; }
  .float--fps { display: none; }
}

/* ---------- Phone mockups (pure CSS) ---------- */
.phone {
  position: relative; width: 270px; aspect-ratio: 9 / 19;
  padding: 10px; border-radius: 44px;
  background: var(--phone-frame);
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255, 255, 255, .08);
}
.phone--hero { width: 290px; transform: rotate(-2deg); }
.phone__screen {
  position: relative; height: 100%; overflow: hidden;
  border-radius: 34px; background: var(--ui-bg); color: var(--ui-text);
  padding: 14px 16px; display: flex; flex-direction: column; gap: 12px;
  font-size: 11px;
}
.ui-top { display: flex; align-items: center; justify-content: space-between; height: 22px; font-weight: 600; font-size: 11px; }
.ui-notch { width: 78px; height: 22px; border-radius: 12px; background: #000; }
.ui-sig { width: 22px; height: 9px; border-radius: 3px; border: 1.5px solid currentColor; opacity: .7; }
.ui-time { width: 22px; }

.ui-head { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 6px; }
.ui-head small, .ui-cap, .ui-kpis small { color: var(--ui-muted); font-size: 10px; }
.ui-head b { display: block; font-family: var(--font-display); font-size: 24px; letter-spacing: -.02em; }
.ui-head em { font-style: normal; color: var(--ui-muted); font-size: 16px; }
.ui-chip { font-size: 10px; font-weight: 600; padding: 4px 8px; border-radius: 999px; }
.ui-chip.up { background: rgba(0, 150, 136, .14); color: var(--brand); }
.ui-chart { width: 100%; height: 90px; }
.ui-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ui-kpis > div { background: var(--ui-card); border-radius: 12px; padding: 10px 12px; }
.ui-kpis b { display: block; font-family: var(--font-display); font-size: 17px; }
.ui-list { display: flex; flex-direction: column; gap: 8px; }
.ui-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--ui-card); }
.ui-row > i { width: 26px; height: 26px; border-radius: 8px; background: rgba(0, 150, 136, .18); flex: none; }
.ui-row > span { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.ui-row > span b { height: 6px; width: 70%; border-radius: 3px; background: var(--ui-line); }
.ui-row > span small { height: 5px; width: 45%; border-radius: 3px; background: var(--ui-line); opacity: .7; }
.ui-row > em { font-style: normal; font-weight: 600; font-size: 11px; color: var(--brand); }
.ui-row > em.neg { color: #E5484D; }
.ui-tab { margin-top: auto; display: flex; justify-content: space-around; padding: 10px 6px 4px; border-top: 1px solid var(--ui-line); }
.ui-tab i { width: 18px; height: 18px; border-radius: 6px; background: var(--ui-line); }
.ui-tab i.on { background: var(--brand); }

.bar { display: block; height: 7px; border-radius: 4px; background: var(--ui-line); }
small.bar { height: 6px; opacity: .7; }
.w40 { width: 40%; } .w50 { width: 50%; } .w60 { width: 60%; } .w70 { width: 70%; }

.av { border-radius: 50% !important; }
.a1 { background: linear-gradient(135deg, #4DB6AC, #00796B) !important; }
.a2 { background: linear-gradient(135deg, #80CBC4, #26A69A) !important; }
.a3 { background: linear-gradient(135deg, #B0BEC5, #607D8B) !important; }

/* Access control */
.ui-access .ui-cap { text-align: center; margin-top: 8px; }
.ring { position: relative; width: 140px; height: 140px; margin: 0 auto; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.ring__bg { stroke: var(--ui-line); }
.ring__fg { stroke: var(--brand); stroke-linecap: round; stroke-dasharray: 314; stroke-dashoffset: 31; }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-size: 30px; }
.ring b small { position: absolute; top: 60%; font-size: 11px; color: var(--ui-muted); font-family: var(--font-sans); }
.pill { font-size: 9px !important; padding: 3px 7px; border-radius: 999px; letter-spacing: .04em; }
.pill.in { background: rgba(0, 150, 136, .14); color: var(--brand) !important; }
.pill.out { background: var(--ui-line); color: var(--ui-muted) !important; }
.ui-sos {
  margin-top: auto; text-align: center; padding: 12px; border-radius: 14px;
  background: #E5484D; color: #fff; font-weight: 700; font-size: 11px; letter-spacing: .08em;
  box-shadow: 0 10px 24px -10px rgba(229, 72, 77, .8);
}

/* Social */
.profile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; background: var(--ui-card); border-radius: 20px; padding: 0 14px 16px; overflow: hidden; margin-top: 6px; }
.profile__cover { align-self: stretch; height: 92px; margin: 0 -14px; background: linear-gradient(135deg, #009688, #004D40 70%); }
.av.big { width: 64px; height: 64px; margin-top: -32px; border: 4px solid var(--ui-card); }
.profile .bar { margin: 0 auto; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 6px; }
.chips span { font-size: 10px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--ui-line); background: var(--ui-bg); }
.chips span:nth-child(-n+2) { border-color: transparent; background: rgba(0, 150, 136, .14); color: var(--brand); font-weight: 600; }
.match { display: flex; align-items: baseline; gap: 6px; margin-top: 8px; }
.match b { font-family: var(--font-display); font-size: 26px; color: var(--brand); }
.match small { color: var(--ui-muted); }
.ui-actions { margin-top: auto; display: flex; justify-content: center; gap: 20px; padding-bottom: 6px; }
.ui-actions span { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; font-size: 20px; }
.ui-actions .no { background: var(--ui-card); color: var(--ui-muted); }
.ui-actions .yes { background: var(--brand); color: #fff; box-shadow: 0 10px 24px -8px rgba(0, 150, 136, .8); }

/* Real estate */
.prop { display: flex; flex-direction: column; gap: 8px; background: var(--ui-card); border-radius: 18px; padding: 10px 10px 14px; margin-top: 6px; }
.prop__img {
  position: relative; height: 150px; border-radius: 12px;
  background:
    linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .25)),
    linear-gradient(160deg, #B2DFDB 0%, #4DB6AC 45%, #00695C 100%);
}
.prop__img::after { /* simple house silhouette */
  content: ""; position: absolute; left: 50%; bottom: 0; width: 110px; height: 70px; transform: translateX(-50%);
  background: rgba(255, 255, 255, .85);
  clip-path: polygon(0 45%, 50% 0, 100% 45%, 100% 100%, 0 100%);
}
.prop__badge { position: absolute; top: 10px; left: 10px; z-index: 1; font-size: 9px; font-weight: 700; letter-spacing: .06em; padding: 4px 8px; border-radius: 6px; background: #fff; color: #00695C; }
.prop .bar { margin-top: 4px; }
.prop__meta { display: flex; gap: 6px; }
.prop__meta span { font-size: 10px; padding: 3px 8px; border-radius: 6px; background: var(--ui-bg); color: var(--ui-muted); }
.prop__price { font-family: var(--font-display); font-size: 20px; color: var(--brand); }

/* ---------- Logos strip ---------- */
.logos { padding: 36px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.logos__title { text-align: center; font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--text-3); }
.logos__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 48px; margin-top: 20px; }
.logos__list li {
  font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -.01em;
  color: var(--text-3); transition: color .2s;
}
.logos__list li:hover { color: var(--text); }
@media (max-width: 560px) { .logos__list { gap: 10px 28px; } .logos__list li { font-size: 16px; } }

/* ---------- Sections ---------- */
.section { padding: 112px 0; position: relative; }
.section--alt { background: var(--bg-alt); }
@media (max-width: 760px) { .section { padding: 80px 0; } }

.section__head { max-width: 680px; margin-bottom: 56px; }
.section__head h2, .about h2, .contact h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 600; margin: 14px 0 16px; }
.section__head > p:last-child { font-size: 17px; color: var(--text-2); }

.label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .12em; color: var(--accent-text);
}
.label span:first-child { padding: 2px 6px; border-radius: 4px; border: 1px solid currentColor; font-size: 11px; }
.label--light { color: #4DB6AC; }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.card { position: relative; padding: 32px 28px 36px; background: var(--surface); transition: background-color .25s; }
.card::after { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 0; background: var(--brand); transition: width .35s ease; }
.card:hover::after { width: 100%; }
.card:hover { background: var(--surface-2); }
.card__ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--accent-text); margin-bottom: 22px; }
.card__ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 19px; font-weight: 600; margin-bottom: 10px; }
.card p { color: var(--text-2); font-size: 15px; }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } .card { padding: 28px 22px; } }

/* Open-source packages */
.pkgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.pkg {
  position: relative; display: flex; flex-direction: column; gap: 16px;
  padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  transition: border-color .25s, transform .25s;
}
.pkg:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.pkg__head { display: flex; align-items: center; gap: 14px; }
.pkg__head .card__ic { margin: 0; flex: none; }
.pkg__name { font-family: var(--font-mono); font-size: 18px; font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.pkg > p { color: var(--text-2); font-size: 15px; flex: 1; }
.pkg__links { display: flex; flex-wrap: wrap; gap: 8px; }
.pkg--soon {
  align-items: center; justify-content: center; text-align: center; gap: 6px;
  background: transparent; border: 1.5px dashed var(--border-strong); min-height: 240px;
}
.pkg--soon:hover { border-color: var(--brand); }
.pkg__plus {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 8px; border-radius: 12px;
  background: var(--brand-soft); color: var(--accent-text); font-family: var(--font-display); font-size: 24px;
}
.pkg--soon b { font-family: var(--font-display); font-size: 17px; font-weight: 600; }
.pkg--soon small { color: var(--text-3); font-size: 14px; }
@media (max-width: 600px) { .pkgs { grid-template-columns: 1fr; } .pkg { padding: 24px 20px; } }

/* Case studies */
.case {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  padding: 56px; border-radius: 24px; background: var(--surface); border: 1px solid var(--border);
  overflow: hidden;
}
.case + .case { margin-top: 28px; }
.case--flip .case__copy { order: 2; }
.case__kicker { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--accent-text); }
.case h3 { font-size: clamp(28px, 3.2vw, 38px); font-weight: 600; margin: 12px 0 14px; }
.case__copy > p:not(.case__kicker) { color: var(--text-2); font-size: 17px; }
.checks { margin: 24px 0 28px; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; font-size: 15px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 6px;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23009688' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { font-size: 12px; font-weight: 500; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--border-strong); color: var(--text-2); }
.tags .tag--live { border-color: transparent; background: var(--brand-soft); color: var(--accent-text); }
.tags .tag--live::before { content: "● "; font-size: 9px; vertical-align: 1px; }
.case__visual {
  position: relative; display: flex; justify-content: center; align-self: stretch; align-items: center;
  min-height: 460px; margin: -56px; margin-left: 0; padding: 40px 0;
  background:
    radial-gradient(circle at 50% 60%, rgba(0, 150, 136, .18), transparent 60%),
    linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--surface-2);
}
.case--flip .case__visual { margin-left: -56px; margin-right: 0; }
.case__visual .phone { width: 240px; }
@media (max-width: 900px) {
  .case { grid-template-columns: 1fr; padding: 36px 28px 0; gap: 36px; }
  .case--flip .case__copy { order: 0; }
  .case__visual, .case--flip .case__visual { margin: 0 -28px; min-height: 0; padding: 40px 0; }
}
@media (max-width: 560px) {
  .case { padding: 28px 20px 0; border-radius: 20px; }
  .case__visual, .case--flip .case__visual { margin: 0 -20px; }
  .case__visual .phone { width: 220px; }
}

/* Process */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 1px; background: linear-gradient(90deg, var(--brand), var(--border-strong)); }
.step { position: relative; padding-right: 8px; }
.step__n {
  position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border-strong);
  font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--accent-text);
  margin-bottom: 22px; transition: background-color .25s, color .25s, border-color .25s;
}
.step:hover .step__n { background: var(--brand-strong); color: #fff; border-color: var(--brand-strong); }
.step h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--text-2); }
@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before { left: 23px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; background: linear-gradient(180deg, var(--brand), var(--border-strong)); }
  .step { display: grid; grid-template-columns: 46px 1fr; column-gap: 20px; padding-bottom: 32px; }
  .step__n { grid-row: span 2; margin: 0; }
  .step h3 { margin-top: 10px; }
}

/* About */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about__copy p:not(.label) { color: var(--text-2); font-size: 17px; margin-bottom: 18px; }
.about__copy .btn { margin-top: 12px; }
.panel { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); overflow: hidden; }
.panel__head { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.panel__head code { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); }
.panel__dots { display: flex; gap: 6px; }
.panel__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.panel__dots i:first-child { background: var(--brand); }
.stack { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); }
.stack > div { background: var(--surface); padding: 22px 22px 24px; }
.stack h4 { font-family: var(--font-mono); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); margin-bottom: 14px; }
.stack ul { display: flex; flex-wrap: wrap; gap: 6px; }
.stack li { font-size: 13px; padding: 4px 10px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; gap: 48px; } }
@media (max-width: 480px) { .stack { grid-template-columns: 1fr; } }

/* Contact */
.contact { padding-top: 112px; }
.contact__box {
  --grid-line: rgba(255, 255, 255, .05);
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: end;
  padding: 72px 64px; border-radius: 28px;
  background: radial-gradient(circle at 85% 10%, rgba(0, 150, 136, .35), transparent 50%), var(--contact-bg);
  color: #E8EFEF; border: 1px solid rgba(255, 255, 255, .06);
}
.contact__copy, .socials { position: relative; }
.contact h2 { color: #fff; }
.contact__copy > p:not(.label) { color: #A3B2B4; font-size: 17px; max-width: 520px; }
.contact__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.socials { display: grid; gap: 10px; }
.socials a {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .03);
  font-weight: 500; transition: border-color .2s, background-color .2s;
}
.socials a::after { content: "↗"; margin-left: auto; color: #6F8084; transition: color .2s, transform .2s; }
.socials a:hover { border-color: rgba(77, 182, 172, .5); background: rgba(77, 182, 172, .08); }
.socials a:hover::after { color: #4DB6AC; transform: translate(2px, -2px); }
.socials svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 900px) { .contact__box { grid-template-columns: 1fr; padding: 48px 32px; } }
@media (max-width: 560px) {
  .contact { padding-top: 80px; }
  .contact__box { padding: 40px 20px; border-radius: 22px; }
  .contact__ctas .btn { flex: 1 1 100%; }
  .btn--light { font-size: 14px; }
}

/* Footer */
.footer { padding: 40px 0 48px; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--text-3); }
.footer__tag { font-family: var(--font-mono); font-size: 12px; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

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