/* ==========================================================
   JNG Labs — Landing page styles
   ========================================================== */

:root {
  --ink: #0b1020;
  --ink-2: #111833;
  --text: #1e2539;
  --muted: #5b6480;
  --line: #e6e9f2;
  --soft: #f6f7fb;
  --white: #ffffff;
  --brand: #2563eb;
  --brand-2: #93c5fd;
  --accent: #1e40af;
  --success: #10b981;
  --grad: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  --grad-text: linear-gradient(135deg, #93c5fd 0%, #3b82f6 100%);
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, .06);
  --shadow: 0 12px 40px -12px rgba(15, 23, 42, .18);
  --shadow-lg: 0 30px 80px -20px rgba(23, 37, 84, .35);
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5 { margin: 0; color: var(--ink); line-height: 1.2; letter-spacing: -.02em; }
p { margin: 0; }

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

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 600; font-size: 15px;
  padding: 12px 22px; border-radius: 12px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn--sm { padding: 9px 16px; font-size: 14px; border-radius: 10px; }
.btn--lg { padding: 16px 28px; font-size: 16px; border-radius: 14px; }
.btn--block { width: 100%; }
.btn--primary {
  color: #fff; background: var(--grad); background-size: 150% 150%;
  box-shadow: 0 10px 30px -8px rgba(37,99,235, .6);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(37,99,235, .75); background-position: 100% 0; }
.btn--ghost { color: #fff; border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.06); backdrop-filter: blur(8px); }
.btn--ghost:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.4); }
.btn--outline { color: var(--ink); border-color: var(--line); background: #fff; }
.btn--outline:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }

.link { color: var(--brand); font-weight: 600; font-size: 15px; transition: gap .2s, color .2s; }
.link:hover { color: var(--accent); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .3s, box-shadow .3s, padding .3s;
  padding: 18px 0;
}
.header.is-scrolled {
  background: rgba(11, 16, 32, .82);
  backdrop-filter: saturate(180%) blur(16px);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
  padding: 12px 0;
}
.header__inner { display: flex; align-items: center; justify-content: space-between; }

.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo__mark {
  width: 38px; height: 38px; display: block; flex-shrink: 0; border-radius: 9px;
  box-shadow: 0 6px 18px -4px rgba(37,99,235,.6);
}
.logo__text { font-weight: 800; font-size: 20px; color: #fff; letter-spacing: -.03em; }
.logo__text span { font-weight: 500; opacity: .75; margin-left: 2px; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) { color: rgba(255,255,255,.78); font-weight: 500; font-size: 15px; position: relative; transition: color .2s; }
.nav a:not(.btn):hover { color: #fff; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px;
  background: var(--grad); transform: scaleX(0); transition: transform .25s;
}
.nav a:not(.btn):hover::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: 12px; margin-left: 24px; position: relative; z-index: 60; }
.lang {
  display: inline-flex; padding: 3px; border-radius: 10px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
}
.lang button {
  font: inherit; font-size: 12.5px; font-weight: 700; letter-spacing: .04em;
  color: rgba(255,255,255,.65); background: none; border: 0; border-radius: 7px;
  padding: 6px 10px; cursor: pointer; transition: background .2s, color .2s;
}
.lang button:hover { color: #fff; }
.lang button[aria-pressed="true"] { background: #fff; color: var(--ink); }

.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: .3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: #c9cee0;
  padding: 150px 0 70px;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.orb--1 { width: 560px; height: 560px; background: #1d4ed8; top: -180px; left: -120px; animation: float 14s ease-in-out infinite; }
.orb--2 { width: 520px; height: 520px; background: #3b82f6; bottom: -220px; right: -120px; animation: float 16s ease-in-out infinite reverse; }
.grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
}
@keyframes float { 0%,100% { transform: translate(0,0); } 50% { transform: translate(40px, 30px); } }

.hero__inner { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 12px; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  color: #e5e7f5; font-size: 13.5px; font-weight: 500;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0 rgba(16,185,129,.7); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(16,185,129,.6); } 70% { box-shadow: 0 0 0 10px rgba(16,185,129,0); } 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); } }

.hero h1 { color: #fff; font-size: clamp(36px, 4.4vw, 56px); font-weight: 800; margin: 22px 0 20px; letter-spacing: -.035em; line-height: 1.08; }
.lead { font-size: 18.5px; color: #aab1c9; max-width: 560px; }
.lead strong { color: #fff; font-weight: 600; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 28px; }
.hero__trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 14.5px; color: #c3c8dc; }
.hero__trust li { display: flex; align-items: center; gap: 8px; }
.hero__trust svg { width: 18px; height: 18px; fill: none; stroke: var(--success); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* Visual */
.hero__visual { position: relative; height: 470px; }
.browser {
  position: absolute; top: 20px; left: 0; right: 60px;
  background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.08);
  transform: perspective(1400px) rotateY(-8deg) rotateX(4deg);
  animation: bob 7s ease-in-out infinite;
}
@keyframes bob { 0%,100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.browser__bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; background: #f1f3f9; border-bottom: 1px solid var(--line); }
.browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.browser__bar i:nth-child(2) { background: #febc2e; }
.browser__bar i:nth-child(3) { background: #28c840; }
.browser__bar span { margin-left: 14px; flex: 1; background: #fff; border-radius: 6px; padding: 3px 12px; font-size: 11px; color: var(--muted); max-width: 200px; }
.browser__body { padding: 18px; }
.sk { background: #eef0f7; border-radius: 6px; }
.sk--nav { height: 12px; width: 100%; margin-bottom: 20px; background: linear-gradient(90deg, #2563eb 0 14%, #eef0f7 14% 60%, transparent 60% 72%, #eef0f7 72%); }
.sk-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; margin-bottom: 18px; }
.sk--h { height: 16px; width: 92%; margin-bottom: 8px; background: #1e2539; }
.sk--short { width: 60%; }
.sk--p { height: 8px; width: 100%; margin: 12px 0 0; }
.sk--p.sk--short { margin-top: 6px; }
.sk--btn { height: 24px; width: 90px; margin-top: 16px; border-radius: 7px; background: var(--grad); }
.sk-chart { display: flex; align-items: flex-end; gap: 7px; padding: 12px; background: #f6f7fb; border-radius: 10px; height: 120px; }
.sk-chart span { flex: 1; height: var(--h); border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, #2563eb, #93c5fd); }
.sk-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sk-cards div { height: 58px; border-radius: 10px; background: #f6f7fb; border: 1px solid var(--line); }

.phone {
  position: absolute; right: 0; bottom: 0; width: 200px; height: 400px;
  background: #0f1324; border-radius: 36px; padding: 10px;
  box-shadow: var(--shadow-lg), 0 0 0 2px #2a3150, inset 0 0 0 2px #1d2340;
  animation: bob 6s ease-in-out infinite reverse;
}
.phone__notch { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 70px; height: 20px; border-radius: 12px; background: #0f1324; z-index: 2; }
.phone__screen { height: 100%; border-radius: 28px; background: linear-gradient(180deg, #eff6ff 0%, #fff 40%); padding: 44px 14px 14px; overflow: hidden; }
.ph-head { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.ph-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--grad); }
.ph-head b, .ph-head i { display: block; height: 6px; border-radius: 4px; background: #c7cbe0; width: 70px; }
.ph-head i { width: 44px; margin-top: 5px; background: #e2e5f0; }
.ph-balance { background: var(--grad); border-radius: 16px; padding: 14px; color: #fff; margin-bottom: 14px; box-shadow: 0 10px 24px -8px rgba(37,99,235,.6); }
.ph-balance small { display: block; font-size: 10px; opacity: .85; }
.ph-balance strong { display: block; font-size: 20px; font-weight: 800; letter-spacing: -.02em; margin: 2px 0; }
.ph-balance em { font-style: normal; font-size: 10px; background: rgba(255,255,255,.22); padding: 2px 7px; border-radius: 6px; }
.ph-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-bottom: 14px; }
.ph-row span { aspect-ratio: 1; border-radius: 12px; background: #eef0f7; }
.ph-row span:nth-child(1) { background: #dbeafe; } .ph-row span:nth-child(2) { background: #cffafe; }
.ph-row span:nth-child(3) { background: #f3e8ff; } .ph-row span:nth-child(4) { background: #dcfce7; }
.ph-list div { height: 38px; border-radius: 10px; background: #f6f7fb; margin-bottom: 8px; border: 1px solid var(--line); }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.96); border-radius: 14px; padding: 10px 16px 10px 10px;
  box-shadow: var(--shadow-lg); color: var(--ink); z-index: 3;
}
.float-card b { display: block; font-size: 14px; }
.float-card small { display: block; font-size: 11.5px; color: var(--muted); }
.float-card--a { left: -20px; bottom: 70px; animation: bob 5s ease-in-out infinite; }
.float-card--b { right: 150px; top: -6px; animation: bob 6.5s ease-in-out infinite reverse; }
.fc-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #dcfce7; font-size: 17px; }
.fc-icon--star { background: #fef3c7; color: #f59e0b; }

/* Stats */
.stats {
  position: relative; margin-top: 70px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius-lg); backdrop-filter: blur(10px);
}
.stat { padding: 28px 20px; text-align: center; }
.stat + .stat { border-left: 1px solid rgba(255,255,255,.09); }
.stat strong { display: block; font-size: clamp(30px, 3.6vw, 42px); font-weight: 800; color: #fff; letter-spacing: -.03em; }
.stat span { font-size: 14.5px; color: #9aa2bd; }

/* ---------- Logos marquee ---------- */
.logos { padding: 44px 0; border-bottom: 1px solid var(--line); }
.logos p { text-align: center; color: var(--muted); font-size: 14px; font-weight: 500; margin-bottom: 22px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; gap: 64px; width: max-content; animation: marquee 32s linear infinite; }
.marquee__track span { font-weight: 800; font-size: 20px; letter-spacing: .08em; color: #a3aac0; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 110px 0; position: relative; }
.section--soft { background: var(--soft); }
.section--dark { background: var(--ink); color: #aab1c9; overflow: hidden; }
.section--dark h2, .section--dark h4 { color: #fff; }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.section__head--left { text-align: left; margin: 0; }
.section__head h2 { font-size: clamp(30px, 3.8vw, 46px); font-weight: 800; margin: 14px 0 16px; }
.section__head p { font-size: 17.5px; color: var(--muted); }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand); background: #eff6ff; padding: 6px 14px; border-radius: 999px;
}
.eyebrow--light { background: rgba(255,255,255,.08); color: #93c5fd; }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px 30px; transition: transform .3s, box-shadow .3s, border-color .3s;
  display: flex; flex-direction: column;
}
.service::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px;
  background: var(--grad); opacity: 0; transition: opacity .3s;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service:hover::before { opacity: 1; }
.service--featured { grid-row: span 1; }
.service h3 { font-size: 21px; font-weight: 700; margin: 22px 0 10px; }
.service p { color: var(--muted); font-size: 15.5px; margin-bottom: 18px; }
.service .link { margin-top: auto; }
.service__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; }
.service__icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ic-web { background: #eff6ff; color: #2563eb; }
.ic-ios { background: #f1f2f6; color: #111827; }
.ic-ios svg { fill: currentColor; stroke: none; }
.ic-android { background: #dcfce7; color: #16a34a; }
.ic-cross { background: #cffafe; color: #0891b2; }
.ic-design { background: #fce7f3; color: #db2777; }
.ic-cloud { background: #f3e8ff; color: #9333ea; }

.ticks { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; font-size: 15px; color: var(--text); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: #eff6ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat;
}

/* Why */
.section--dark::before {
  content: ""; position: absolute; width: 600px; height: 600px; border-radius: 50%;
  background: #1d4ed8; filter: blur(140px); opacity: .25; top: -200px; right: -150px;
}
.why { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: 70px; align-items: center; }
.why__copy h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; margin: 16px 0 20px; }
.why__copy p { font-size: 17px; margin-bottom: 32px; }
.why__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.why-card {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09); border-radius: var(--radius);
  padding: 28px 24px; transition: background .3s, transform .3s, border-color .3s;
}
.why-card:hover { background: rgba(255,255,255,.07); transform: translateY(-4px); border-color: rgba(96,165,250,.4); }
.why-card__num { font-size: 14px; font-weight: 800; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 14px; }
.why-card h4 { font-size: 18px; margin-bottom: 8px; }
.why-card p { font-size: 14.5px; color: #949cb8; }
.why__grid .why-card:nth-child(2), .why__grid .why-card:nth-child(4) { transform: translateY(28px); }
.why__grid .why-card:nth-child(2):hover, .why__grid .why-card:nth-child(4):hover { transform: translateY(24px); }

/* Work */
.work { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.case {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.case:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.case--wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1.15fr 1fr; }
.case__visual { position: relative; min-height: 260px; display: flex; align-items: center; justify-content: center; gap: 20px; overflow: hidden; }
.cv-1 { background: radial-gradient(circle at 30% 20%, #60a5fa, transparent 60%), linear-gradient(135deg, #1e3a8a, #2563eb); min-height: 360px; }
.cv-2 { background: linear-gradient(135deg, #fde68a, #fb7185); }
.cv-3 { background: linear-gradient(135deg, #a7f3d0, #22d3ee); }
.case__visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.06)); }
.mini-phone {
  width: 130px; height: 260px; border-radius: 24px; background: #fff; padding: 30px 12px 12px;
  box-shadow: 0 24px 50px -16px rgba(0,0,0,.45); border: 6px solid #0f1324; transition: transform .5s;
}
.mini-phone div { height: 40px; border-radius: 10px; background: #eef0f7; margin-bottom: 10px; }
.mini-phone div:first-child { height: 70px; background: var(--grad); }
.mini-phone--2 { transform: translateY(30px) rotate(6deg); }
.mini-phone--2 div:first-child { background: linear-gradient(135deg, #10b981, #06b6d4); }
.case:hover .mini-phone { transform: translateY(-8px); }
.case:hover .mini-phone--2 { transform: translateY(20px) rotate(3deg); }
.cv-3 .mini-phone div:first-child { background: linear-gradient(135deg, #10b981, #0891b2); }
.mini-browser { width: 78%; height: 180px; border-radius: 12px; background: #fff; box-shadow: 0 24px 50px -16px rgba(0,0,0,.4); padding: 30px 16px 16px; position: relative; transition: transform .5s; }
.mini-browser i { position: absolute; top: 0; left: 0; right: 0; height: 20px; background: #f1f3f9; border-radius: 12px 12px 0 0; }
.mini-browser div { height: 54px; border-radius: 8px; background: linear-gradient(135deg, #fb7185, #f59e0b); margin-bottom: 10px; }
.mini-browser div + div { height: 54px; background: #f6f7fb; }
.case:hover .mini-browser { transform: translateY(-8px) scale(1.02); }
.case__body { padding: 32px 32px 34px; display: flex; flex-direction: column; justify-content: center; }
.case--wide .case__body { padding: 44px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tags span { font-size: 12.5px; font-weight: 600; padding: 4px 11px; border-radius: 999px; background: var(--soft); color: var(--muted); border: 1px solid var(--line); }
.case h3 { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.case p { color: var(--muted); font-size: 15.5px; margin-bottom: 22px; }
.case__metrics { display: flex; gap: 32px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid var(--line); }
.case__metrics strong { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.case__metrics span { font-size: 13.5px; color: var(--muted); }

/* Process */
.process { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; }
.process::before {
  content: ""; position: absolute; top: 28px; left: 12%; right: 12%; height: 2px;
  background: repeating-linear-gradient(90deg, #bfdbfe 0 8px, transparent 8px 16px);
}
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 24px 26px; text-align: center; margin-top: 28px; transition: transform .3s, box-shadow .3s; }
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.step__n {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin: -28px auto 18px;
  background: var(--grad); color: #fff; font-weight: 800; font-size: 20px; box-shadow: 0 0 0 8px var(--soft), 0 10px 24px -6px rgba(37,99,235,.6);
}
.step h4 { font-size: 18px; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--muted); margin-bottom: 14px; }
.step small { display: inline-block; font-size: 12.5px; font-weight: 600; color: var(--brand); background: #eff6ff; padding: 3px 10px; border-radius: 999px; }

.stack { margin-top: 60px; text-align: center; }
.stack > span { font-size: 14px; font-weight: 600; color: var(--muted); }
.stack__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.stack__list b { font-weight: 600; font-size: 14.5px; padding: 9px 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); transition: .2s; }
.stack__list b:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan { position: relative; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 38px 32px; background: #fff; display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.plan h4 { font-size: 20px; }
.plan__desc { color: var(--muted); font-size: 14.5px; margin: 6px 0 22px; min-height: 44px; }
.plan__price { font-size: 48px; font-weight: 800; color: var(--ink); letter-spacing: -.04em; line-height: 1; margin-bottom: 26px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.plan__price small { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-right: 4px; }
.plan__price span { font-size: 16px; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-left: 6px; }
.plan__price--text { font-size: 40px; }
.plan .ticks { margin-bottom: 30px; flex: 1; }
.plan--hot { background: var(--ink); border-color: transparent; box-shadow: var(--shadow-lg); transform: scale(1.03); }
.plan--hot:hover { transform: scale(1.03) translateY(-6px); }
.plan--hot::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.plan--hot h4, .plan--hot .plan__price { color: #fff; }
.plan--hot .plan__price { border-color: rgba(255,255,255,.1); }
.plan--hot .plan__desc, .plan--hot .plan__price small, .plan--hot .plan__price span { color: #9aa2bd; }
.plan--hot .ticks li { color: #dfe3f2; }
.plan--hot .ticks li::before { background-color: rgba(96,165,250,.18); }
.plan__badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #fff; font-size: 12.5px; font-weight: 700; padding: 6px 16px; border-radius: 999px; box-shadow: 0 8px 20px -6px rgba(37,99,235,.7); white-space: nowrap; }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quote { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.quote:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.stars { color: #f59e0b; letter-spacing: 3px; font-size: 17px; margin-bottom: 16px; }
.quote blockquote { margin: 0 0 26px; font-size: 16px; color: var(--text); flex: 1; }
.quote figcaption { display: flex; align-items: center; gap: 12px; }
.quote figcaption b { display: block; color: var(--ink); font-size: 15px; }
.quote figcaption small { color: var(--muted); font-size: 13.5px; }
.av { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 15px; flex-shrink: 0; }
.av--1 { background: linear-gradient(135deg, #2563eb, #1e40af); }
.av--2 { background: linear-gradient(135deg, #f43f5e, #f59e0b); }
.av--3 { background: linear-gradient(135deg, #10b981, #06b6d4); }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.5fr; gap: 70px; align-items: start; }
.faq { display: grid; gap: 14px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color .25s, box-shadow .25s; }
.faq details[open] { border-color: #bfdbfe; box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 26px; font-weight: 600; font-size: 17px; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--brand); font-size: 20px; font-weight: 500; transition: transform .3s, background .3s, color .3s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--brand); color: #fff; }
.faq details p { padding: 0 26px 24px; color: var(--muted); font-size: 15.5px; }

/* CTA / Contact */
.cta { background: var(--ink); color: #aab1c9; overflow: hidden; }
.cta__bg { position: absolute; inset: 0; pointer-events: none; }
.cta__bg .orb--1 { top: auto; bottom: -260px; left: -160px; }
.cta__bg .orb--2 { bottom: auto; top: -260px; right: -160px; }
.cta__inner { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: 70px; align-items: center; }
.cta__copy h2 { color: #fff; font-size: clamp(32px, 4vw, 50px); font-weight: 800; margin: 16px 0 20px; }
.cta__copy > p { font-size: 17.5px; margin-bottom: 36px; }
.cta__copy strong { color: #fff; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; align-items: center; gap: 16px; }
.contact-list small { display: block; font-size: 13px; color: #8790ad; }
.contact-list a, .contact-list span:not(.ci) { color: #fff; font-weight: 600; font-size: 16.5px; }
.contact-list a:hover { color: #93c5fd; }
.ci { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); flex-shrink: 0; }
.ci svg { width: 21px; height: 21px; fill: none; stroke: #93c5fd; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.form { position: relative; background: #fff; border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-lg); }
.form h3 { font-size: 24px; font-weight: 800; }
.form__sub { color: var(--muted); font-size: 14.5px; margin: 6px 0 26px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field > label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink);
  padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 12px; background: #fbfbfe;
  transition: border-color .2s, box-shadow .2s, background .2s; outline: none;
}
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(37,99,235,.12); }
.field.is-invalid input { border-color: #ef4444; box-shadow: 0 0 0 4px rgba(239,68,68,.1); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 9px 16px; border: 1.5px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--text); transition: .2s; user-select: none; }
.chips label:hover span { border-color: #bfdbfe; }
.chips input:checked + span { background: #eff6ff; border-color: var(--brand); color: var(--brand); font-weight: 600; }
.chips input:focus-visible + span { box-shadow: 0 0 0 4px rgba(37,99,235,.2); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__error[hidden] { display: none; }
.form__error { color: #dc2626; background: #fef2f2; border: 1px solid #fecaca; border-radius: 10px; padding: 10px 14px; font-size: 14px; margin-bottom: 14px; }
.btn:disabled { opacity: .7; cursor: progress; transform: none; }
.form__note { text-align: center; font-size: 13px; color: var(--muted); margin-top: 14px; }
.form__success { position: absolute; inset: 0; background: #fff; border-radius: inherit; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px; animation: fadeIn .4s ease; }
.form__success[hidden] { display: none; }
.form__success p { color: var(--muted); margin-top: 8px; max-width: 320px; }
.success-ic { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-size: 34px; color: #fff; background: linear-gradient(135deg, #10b981, #06b6d4); margin-bottom: 20px; box-shadow: 0 14px 30px -10px rgba(16,185,129,.7); }
@keyframes fadeIn { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }

/* Footer */
.footer { background: #070b17; color: #8790ad; padding: 70px 0 30px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.07); }
.footer__brand p { margin-top: 16px; font-size: 14.5px; max-width: 300px; }
.footer h5 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer__grid > div:not(.footer__brand) { display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.footer a:hover { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 26px; font-size: 13.5px; }

/* Floating action button */
.fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 40;
  display: flex; align-items: center; gap: 10px; padding: 14px 20px 14px 16px; border-radius: 999px;
  background: var(--grad); color: #fff; font-weight: 600; font-size: 15px;
  box-shadow: 0 14px 34px -8px rgba(37,99,235,.7);
  transform: translateY(120px); opacity: 0; transition: transform .4s, opacity .4s, box-shadow .2s;
}
.fab.is-visible { transform: none; opacity: 1; }
.fab:hover { box-shadow: 0 18px 44px -8px rgba(37,99,235,.9); }
.fab svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.fab::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(37,99,235,.6); animation: ring 2.4s infinite; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(37,99,235,.55); } 80%,100% { box-shadow: 0 0 0 16px rgba(37,99,235,0); } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
.why__grid .why-card.reveal.is-in:nth-child(2), .why__grid .why-card.reveal.is-in:nth-child(4) { transform: translateY(28px); }

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

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; gap: 50px; }
  .hero__copy { text-align: center; }
  .lead { margin: 0 auto; }
  .hero__ctas, .hero__trust { justify-content: center; }
  .hero__visual { max-width: 620px; width: 100%; margin: 0 auto; }
  .services, .quotes { grid-template-columns: 1fr 1fr; }
  .why, .cta__inner, .faq-wrap { grid-template-columns: 1fr; gap: 50px; }
  .process { grid-template-columns: 1fr 1fr; }
  .process::before { display: none; }
  .pricing { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .plan--hot { transform: none; }
  .plan--hot:hover { transform: translateY(-6px); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .burger { display: block; position: relative; z-index: 60; }
  .burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger.is-open span:nth-child(2) { opacity: 0; }
  .burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 26px;
    background: rgba(11,16,32,.97); backdrop-filter: blur(16px);
    opacity: 0; pointer-events: none; transition: opacity .3s;
  }
  .nav.is-open { opacity: 1; pointer-events: auto; }
  .nav a:not(.btn) { font-size: 22px; }
  .nav__cta { margin-top: 10px; padding: 14px 28px; font-size: 16px; }
  .work { grid-template-columns: 1fr; }
  .case--wide { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 80px 0; }
  .hero { padding: 120px 0 50px; }
  .lead { font-size: 16.5px; }
  .hero__ctas .btn { width: 100%; }
  .hero__visual { height: 380px; }
  .browser { right: 40px; }
  .phone { width: 150px; height: 300px; border-radius: 28px; }
  .phone__screen { border-radius: 22px; padding: 36px 10px 10px; }
  .ph-balance strong { font-size: 16px; }
  .float-card--b { right: 100px; }
  .float-card--a { left: 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.09); }
  .services, .quotes, .process, .why__grid, .row { grid-template-columns: 1fr; }
  .why__grid .why-card:nth-child(2), .why__grid .why-card:nth-child(4),
  .why__grid .why-card.reveal.is-in:nth-child(2), .why__grid .why-card.reveal.is-in:nth-child(4) { transform: none; }
  .form { padding: 28px 20px; }
  .case--wide .case__body, .case__body { padding: 26px 22px; }
  .footer__grid { grid-template-columns: 1fr; }
  .fab span { display: none; }
  .fab { padding: 16px; }
}
