/* ==========================================================
   Syncthesys Technology — portfolio site
   Brand palette taken from the logo: navy wordmark,
   blue → cyan → green gradient mark.
   ========================================================== */

:root {
  --navy-950: #041222;
  --navy-900: #071a2e;
  --navy-800: #0c2640;
  --navy-700: #14324f;
  --ink: #0b2239;
  --ink-soft: #4a5b70;
  --line: #e3e9f1;
  --bg: #ffffff;
  --bg-tint: #f4f8fc;

  --blue: #0a55e0;
  --blue-500: #2f7bff;
  --cyan: #19c8ff;
  --green: #14d98f;
  --grad: linear-gradient(120deg, #0a55e0 0%, #19c8ff 55%, #14d98f 100%);
  --grad-soft: linear-gradient(120deg, rgba(10, 85, 224, .1), rgba(25, 200, 255, .1), rgba(20, 217, 143, .1));

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 8px rgba(11, 34, 57, .06);
  --shadow: 0 18px 50px -20px rgba(11, 34, 57, .25);
  --container: 1200px;
  --header-h: 76px;

  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }

svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

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

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

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 600 15px/1 var(--font-body);
  padding: 15px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; stroke-width: 2; transition: transform .2s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--grad); background-size: 140% 100%; color: #fff; box-shadow: 0 10px 30px -10px rgba(10, 85, 224, .6); }
.btn-primary:hover { transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 16px 34px -12px rgba(10, 85, 224, .7); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .04); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .08); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .4); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font: 600 13px/1 var(--font-body);
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--blue);
  padding: 8px 14px; border-radius: 999px;
  background: var(--grad-soft);
  margin-bottom: 18px;
}
.eyebrow--dark { color: #8fe9ff; background: rgba(25, 200, 255, .08); border: 1px solid rgba(25, 200, 255, .2); text-transform: none; letter-spacing: .01em; font-weight: 500; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(20, 217, 143, .2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(20, 217, 143, 0); } }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  transition: background .3s ease, box-shadow .3s ease, height .3s ease;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--line), var(--shadow-sm);
  --header-h: 68px;
}
.nav-wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { position: relative; display: block; width: 186px; height: 56px; flex-shrink: 0; }
.brand-logo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .3s ease; }
.brand-logo--dark { opacity: 0; }
.scrolled .brand-logo--light { opacity: 0; }
.scrolled .brand-logo--dark { opacity: 1; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) { font-size: 15px; font-weight: 500; color: rgba(255, 255, 255, .8); position: relative; transition: color .2s; }
.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 ease; }
.nav a:not(.btn):hover, .nav a.active { color: #fff; }
.nav a:not(.btn):hover::after, .nav a.active::after { transform: scaleX(1); }
.scrolled .nav a:not(.btn) { color: var(--ink-soft); }
.scrolled .nav a:not(.btn):hover, .scrolled .nav a.active { color: var(--ink); }

.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 2px; margin: 5px 0; border-radius: 2px; background: #fff; transition: transform .3s, opacity .3s, background .3s; }
.scrolled .nav-toggle span { background: var(--ink); }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(120% 90% at 80% 0%, var(--navy-800) 0%, var(--navy-900) 45%, var(--navy-950) 100%);
  color: #fff;
  padding: calc(var(--header-h) + 72px) 0 110px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.glow-1 { width: 520px; height: 520px; background: #0a55e0; top: -160px; left: -140px; }
.glow-2 { width: 460px; height: 460px; background: #14d98f; bottom: -220px; right: 4%; opacity: .3; }
.glow-3 { width: 620px; height: 620px; background: #0a55e0; top: -200px; right: -200px; opacity: .35; }
.grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}

.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 64px; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700; margin-bottom: 22px; }
.lead { font-size: 1.15rem; color: rgba(255, 255, 255, .72); max-width: 540px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 40px; }
.hero-tags li { font-size: 14px; color: rgba(255, 255, 255, .6); display: flex; align-items: center; gap: 8px; }
.hero-tags li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--grad); }

/* Dashboard mock */
.hero-visual { position: relative; }
.mock {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03));
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 20px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .08);
  backdrop-filter: blur(10px);
  overflow: hidden;
  animation: floaty 7s ease-in-out infinite;
}
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.mock-bar i:first-child { background: #ff6b6b; } .mock-bar i:nth-child(2) { background: #ffc94d; } .mock-bar i:nth-child(3) { background: var(--green); }
.mock-bar span { margin-left: 10px; font-size: 12px; color: rgba(255, 255, 255, .55); }
.mock-body { padding: 18px; display: grid; gap: 16px; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kpi { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .07); border-radius: 12px; padding: 12px 14px; }
.kpi small { display: block; font-size: 11px; color: rgba(255, 255, 255, .55); }
.kpi strong { display: block; font: 700 1.25rem/1.3 var(--font-head); margin: 2px 0; }
.kpi em { font-style: normal; font-size: 11px; color: rgba(255, 255, 255, .5); }
.kpi em.up, .up { color: var(--green); }
.mock-chart { height: 120px; background: rgba(255, 255, 255, .03); border-radius: 12px; padding: 8px 0 0; overflow: hidden; }
.mock-chart svg { width: 100%; height: 100%; }
.chart-line { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 2.4s .4s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.mock-orders { display: grid; gap: 8px; }
.order { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 12px; font-size: 13px; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .04); }
.order span:not(.badge) { color: rgba(255, 255, 255, .5); }
.badge { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.b-green { background: rgba(20, 217, 143, .15); color: #4bf0b2; }
.b-blue { background: rgba(47, 123, 255, .2); color: #8db5ff; }
.b-cyan { background: rgba(25, 200, 255, .15); color: #7fe0ff; }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  background: #fff; color: var(--ink);
  padding: 12px 16px; border-radius: 14px;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .45);
  font-size: 13px; line-height: 1.35;
}
.float-card b { display: block; font-size: 14px; }
.float-card small { color: var(--ink-soft); }
.fc-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: rgba(10, 85, 224, .1); color: var(--blue); flex-shrink: 0; }
.fc-icon svg { width: 20px; height: 20px; stroke-width: 2.2; }
.fc-icon--green { background: rgba(20, 217, 143, .14); color: #0b9e66; }
.fc-1 { top: -26px; right: -18px; animation: floaty 6s 1s ease-in-out infinite; }
.fc-2 { bottom: -28px; left: -30px; animation: floaty 6.5s .5s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-10px); } }

/* ---------- Industry strip ---------- */
.strip { border-bottom: 1px solid var(--line); background: var(--bg); }
.strip-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px 40px; padding-top: 26px; padding-bottom: 26px; flex-wrap: wrap; }
.strip p { margin: 0; font-size: 14px; color: var(--ink-soft); }
.strip ul { display: flex; flex-wrap: wrap; gap: 10px 34px; }
.strip li { font: 600 15px var(--font-head); color: #8796a8; letter-spacing: -.01em; }

/* ---------- Sections ---------- */
.section { position: relative; padding: 110px 0; }
.section-tint { background: var(--bg-tint); }
.section-tint:not([hidden]) + .section-tint { padding-top: 0; }
.section-dark { background: radial-gradient(120% 100% at 100% 0%, var(--navy-800), var(--navy-950) 70%); color: #fff; overflow: hidden; }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head h2, .section h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 700; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; margin: 0; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.service-card {
  position: relative; display: flex; flex-direction: column;
  padding: 30px 26px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.service-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: var(--grad); opacity: 0; transition: opacity .3s ease;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service-card:hover::before { opacity: 1; }
.service-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: var(--grad); color: #fff; margin-bottom: 22px; box-shadow: 0 10px 22px -10px rgba(10, 85, 224, .7); }
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 1.2rem; }
.service-card > p { color: var(--ink-soft); font-size: 15px; }
.checks { display: grid; gap: 8px; margin: 4px 0 24px; }
.checks li { position: relative; padding-left: 26px; font-size: 14.5px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 17px; height: 17px; border-radius: 50%;
  background: rgba(20, 217, 143, .15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b9e66' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-9'/%3E%3C/svg%3E") center/11px no-repeat;
}
.link-arrow { margin-top: auto; font-weight: 600; font-size: 15px; color: var(--blue); display: inline-flex; align-items: center; gap: 6px; }
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- POS spotlight ---------- */
.pos-inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.pos-copy > p { color: rgba(255, 255, 255, .7); font-size: 1.08rem; max-width: 560px; }
.pos-features { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; margin: 34px 0 38px; }
.pf { display: flex; gap: 14px; }
.pf svg { flex-shrink: 0; width: 40px; height: 40px; padding: 9px; border-radius: 11px; background: rgba(25, 200, 255, .1); color: var(--cyan); border: 1px solid rgba(25, 200, 255, .2); }
.pf b { display: block; font-size: 15px; margin-bottom: 2px; }
.pf span { font-size: 14px; color: rgba(255, 255, 255, .58); line-height: 1.5; }

.pos-visual { position: relative; height: 470px; }
.terminal { position: absolute; left: 0; top: 20px; width: 68%; }
.terminal-screen {
  background: #fff; color: var(--ink);
  border-radius: 18px; padding: 22px;
  border: 10px solid #0e1f33;
  box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .8);
}
.terminal-stand { width: 34%; height: 70px; margin: 0 auto; background: linear-gradient(#0e1f33, #1a3350); clip-path: polygon(25% 0, 75% 0, 100% 100%, 0 100%); border-radius: 0 0 8px 8px; }
.ts-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.ts-head b { font-family: var(--font-head); font-size: 1.1rem; }
.ts-head span { font-size: 12px; color: var(--ink-soft); background: var(--bg-tint); padding: 3px 10px; border-radius: 999px; }
.ts-items { display: grid; gap: 9px; padding-bottom: 14px; border-bottom: 1px dashed var(--line); font-size: 14px; }
.ts-items div { display: flex; justify-content: space-between; }
.ts-items .muted { color: #0b9e66; }
.ts-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; }
.ts-total b { font: 700 1.6rem var(--font-head); }
.ts-pay { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ts-pay span { text-align: center; padding: 10px; border-radius: 10px; border: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.ts-pay .active { background: var(--grad); color: #fff; border-color: transparent; }

.phone {
  position: absolute; right: 0; bottom: 0; width: 190px; height: 390px;
  background: #0a1726; border-radius: 34px; padding: 10px;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 40px 70px -20px rgba(0, 0, 0, .8);
  animation: floaty 7s .8s ease-in-out infinite;
}
.phone-notch { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 64px; height: 18px; border-radius: 10px; background: #000; z-index: 2; }
.phone-screen { height: 100%; border-radius: 26px; padding: 40px 16px 16px; background: linear-gradient(180deg, #0f2f54, #081a2d); display: flex; flex-direction: column; }
.phone-screen small { font-size: 11px; color: rgba(255, 255, 255, .55); }
.phone-screen > b { font: 700 1.6rem var(--font-head); }
.phone-screen .up { font-size: 11px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 96px; margin: 16px 0; }
.bars i { flex: 1; height: var(--h); border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, var(--cyan), var(--blue)); }
.bars i:nth-child(6) { background: linear-gradient(180deg, var(--green), #0aa86f); }
.branch { display: flex; justify-content: space-between; font-size: 12px; padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.branch span { color: rgba(255, 255, 255, .6); }

/* ---------- Work ---------- */
.filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: -20px 0 44px; }
.filter {
  font: 500 14px var(--font-body); color: var(--ink-soft);
  padding: 9px 18px; border-radius: 999px; cursor: pointer;
  background: #fff; border: 1px solid var(--line);
  transition: all .2s ease;
}
.filter:hover { color: var(--ink); border-color: #c5d2e2; }
.filter.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.work-card {
  border-radius: var(--radius); overflow: hidden; background: #fff;
  border: 1px solid var(--line);
  transition: transform .3s ease, box-shadow .3s ease;
}
.work-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.work-card.is-hidden { display: none; }
.work-thumb { position: relative; height: 190px; display: grid; place-items: center; overflow: hidden; }
.work-thumb::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .22) 1.2px, transparent 1.2px);
  background-size: 18px 18px;
}
.work-thumb::after { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .12); right: -60px; bottom: -110px; }
.work-thumb svg { position: relative; z-index: 1; width: 76px; height: 76px; color: #fff; stroke-width: 1.3; padding: 16px; border-radius: 22px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3); backdrop-filter: blur(6px); transition: transform .4s ease; }
.work-card:hover .work-thumb svg { transform: scale(1.08) rotate(-4deg); }
.t-blue { background: linear-gradient(135deg, #0a55e0, #19c8ff); }
.t-teal { background: linear-gradient(135deg, #0a7ea8, #14d98f); }
.t-navy { background: linear-gradient(135deg, #0b2239, #1f4f86); }
.t-green { background: linear-gradient(135deg, #0b9e66, #19c8ff); }
.t-cyan { background: linear-gradient(135deg, #19a6ff, #14d9c4); }
.t-indigo { background: linear-gradient(135deg, #2b3fd8, #0a55e0 55%, #14d98f); }
.work-body { padding: 24px 24px 26px; }
.work-cat { font-size: 12.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--blue); }
.work-body h3 { font-size: 1.2rem; margin: 8px 0 10px; }
.work-body p { font-size: 15px; color: var(--ink-soft); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: 12.5px; font-weight: 500; padding: 5px 11px; border-radius: 999px; background: var(--bg-tint); color: var(--ink-soft); border: 1px solid var(--line); }
.tags-lg li { font-size: 14px; padding: 7px 14px; background: #fff; }

.work-thumb.has-image::before, .work-thumb.has-image::after { display: none; }
.work-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.work-card:hover .work-thumb img { transform: scale(1.04); }
.work-body h3 a:hover { color: var(--blue); }

/* ---------- Pricing ---------- */
.billing-toggle {
  display: flex; width: max-content; margin: -20px auto 44px; padding: 5px;
  border-radius: 999px; background: #fff; border: 1px solid var(--line);
}
.billing-toggle button {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 14px var(--font-body); color: var(--ink-soft);
  padding: 9px 20px; border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  transition: background .2s, color .2s;
}
.billing-toggle button.active { background: var(--ink); color: #fff; }
.save-pill { font-size: 11.5px; padding: 2px 8px; border-radius: 999px; background: rgba(20, 217, 143, .18); color: #0b9e66; }
.billing-toggle button.active .save-pill { background: rgba(20, 217, 143, .3); color: #5ff5c0; }

.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 24px; align-items: stretch; }
.price-card {
  position: relative; display: flex; flex-direction: column;
  padding: 32px 28px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line);
  transition: transform .3s ease, box-shadow .3s ease;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.price-card.featured { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; box-shadow: var(--shadow); }
.price-badge {
  position: absolute; top: -13px; left: 28px;
  font-size: 12px; font-weight: 600; color: #fff;
  padding: 5px 12px; border-radius: 999px; background: var(--grad);
}
.price-card h3 { font-size: 1.3rem; margin-bottom: 6px; }
.price-desc { color: var(--ink-soft); font-size: 15px; min-height: 3.2em; }
.price { display: flex; align-items: baseline; gap: 6px; margin: 6px 0 2px; }
.price strong { font: 700 2.6rem/1 var(--font-head); letter-spacing: -.03em; color: var(--ink); }
.price-cur { font-weight: 600; color: var(--ink-soft); }
.price-per { color: var(--ink-soft); font-size: 15px; }
.price-trial { font-size: 13.5px; font-weight: 600; color: #0b9e66; min-height: 1.4em; margin: 0 0 18px; }
.price-card .checks { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px dashed var(--line); }
.price-features-title { font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 10px; }
.price-features { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 26px; }
.price-features li { font-size: 12.5px; padding: 4px 10px; border-radius: 999px; background: var(--bg-tint); border: 1px solid var(--line); color: var(--ink-soft); }
.price-features li.more { background: transparent; border-style: dashed; }
.price-card .btn { margin-top: auto; }
.btn-outline { color: var(--ink); border-color: var(--line); background: #fff; }
.btn-outline:hover { border-color: var(--ink); transform: translateY(-2px); }

/* ---------- Contact form extras ---------- */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.plan-chip {
  display: flex; align-items: center; gap: 8px; margin: 0;
  padding: 10px 14px; border-radius: 12px;
  background: var(--grad-soft); font-size: 14px; color: var(--ink);
}
.plan-chip[hidden] { display: none; }
.plan-chip button { margin-left: auto; border: 0; background: transparent; font-size: 20px; line-height: 1; color: var(--ink-soft); cursor: pointer; }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; position: relative; }
.process::before { content: ""; position: absolute; top: 34px; left: 12%; right: 12%; height: 2px; background: linear-gradient(90deg, transparent, #bcd3ee 10%, #bcd3ee 90%, transparent); }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.step-num {
  display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 20px;
  border-radius: 50%; background: var(--grad); color: #fff;
  font: 700 15px var(--font-head);
  box-shadow: 0 0 0 7px var(--bg-tint);
}
.step h3 { font-size: 1.15rem; }
.step p { font-size: 15px; color: var(--ink-soft); margin: 0; }

/* ---------- About ---------- */
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.about-copy > p { color: var(--ink-soft); font-size: 1.06rem; }
.stack { margin-top: 30px; }
.stack-label { display: block; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); margin-bottom: 14px; }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.why { padding: 26px; border-radius: var(--radius); background: var(--bg-tint); border: 1px solid var(--line); }
.why:nth-child(even) { transform: translateY(28px); }
.why svg { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: #fff; color: var(--blue); box-shadow: var(--shadow-sm); margin-bottom: 16px; }
.why h3 { font-size: 1.08rem; }
.why p { font-size: 14.5px; color: var(--ink-soft); margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { padding: 0 0 20px; }
.cta-inner {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
  padding: 54px 56px; border-radius: 26px;
  background: var(--grad); color: #fff;
}
.cta-inner::after { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; border: 60px solid rgba(255, 255, 255, .08); right: -120px; top: -160px; }
.cta-inner > * { position: relative; z-index: 1; }
.cta-inner h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .3em; }
.cta-inner p { margin: 0; color: rgba(255, 255, 255, .88); }

/* ---------- Contact ---------- */
.contact-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: start; }
.contact-copy > p { color: var(--ink-soft); font-size: 1.06rem; }
.contact-list { display: grid; gap: 16px; margin-top: 30px; }
.contact-list li { display: flex; align-items: center; gap: 14px; font-weight: 500; }
.contact-list svg { width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: var(--grad-soft); color: var(--blue); flex-shrink: 0; }
.contact-list a:hover { color: var(--blue); }

.contact-form {
  display: grid; gap: 18px;
  padding: 36px; border-radius: 22px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field span { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 15px var(--font-body); color: var(--ink);
  padding: 13px 15px; border-radius: 12px;
  border: 1px solid #d6dfea; background: #fbfcfe;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-500); background: #fff; box-shadow: 0 0 0 4px rgba(47, 123, 255, .14); }
.field.invalid input, .field.invalid textarea { border-color: #e5484d; box-shadow: 0 0 0 4px rgba(229, 72, 77, .1); }
.form-note { margin: 0; font-size: 14px; color: var(--ink-soft); min-height: 1.4em; text-align: center; }
.form-note.ok { color: #0b9e66; }
.form-note.err { color: #d13438; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 90px; background: var(--navy-950); color: rgba(255, 255, 255, .65); padding-top: 70px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; }
.footer-brand img { width: 190px; height: auto; margin-bottom: 18px; }
.footer-brand p { max-width: 340px; font-size: 15px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.site-footer ul { display: grid; gap: 10px; font-size: 15px; }
.site-footer a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 24px; padding-bottom: 28px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 14px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.why.reveal.visible:nth-child(even) { transform: translateY(28px); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner, .pos-inner, .about-inner, .contact-inner { grid-template-columns: 1fr; gap: 64px; }
  .hero-copy { text-align: center; }
  .hero-copy .lead { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-tags { justify-content: center; }
  .hero-visual { max-width: 560px; margin: 0 auto; width: 100%; }
  .pos-visual { max-width: 560px; width: 100%; margin: 0 auto; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .process::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; position: relative; z-index: 60; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 85vw);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 96px 28px 28px;
    background: #fff;
    transform: translateX(100%); visibility: hidden;
    transition: transform .35s ease, visibility 0s .35s;
  }
  .nav-open .nav { transform: none; visibility: visible; box-shadow: -20px 0 60px rgba(4, 18, 34, .25); transition: transform .35s ease; }
  .nav a:not(.btn), .scrolled .nav a:not(.btn) { color: var(--ink); font-size: 17px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav-cta { margin-top: 24px; }
  .nav-open .nav-toggle span { background: var(--ink); }
  .nav-open::before { content: ""; position: fixed; inset: 0; background: rgba(4, 18, 34, .45); z-index: 40; }
  .site-header { z-index: 55; }
  /* backdrop-filter would make the fixed menu panel position relative to the header */
  .site-header.scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
}

@media (max-width: 640px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .section { padding: 80px 0; }
  .hero { padding: calc(var(--header-h) + 40px) 0 90px; }
  .services-grid, .work-grid, .process, .why-grid, .pos-features, .field-row { grid-template-columns: 1fr; }
  .why:nth-child(even), .why.reveal.visible:nth-child(even) { transform: none; }
  .mock-kpis { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .kpi { padding: 10px; }
  .kpi strong { font-size: 1rem; }
  .order { grid-template-columns: auto 1fr auto; }
  .order > span:nth-of-type(2) { display: none; }
  .fc-1 { right: -6px; top: -34px; }
  .fc-2 { left: -6px; bottom: -36px; }
  .pos-visual { height: auto; }
  .terminal { position: relative; top: 0; width: 100%; }
  .phone { display: none; }
  .cta-inner { flex-direction: column; align-items: flex-start; padding: 40px 28px; }
  .contact-form { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand { width: 140px; height: 42px; }
}

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