/* AlebStack public website. Brand: cobalt blue, Plus Jakarta Sans + Inter, light by default. */
:root {
  --bg: #FFFFFF;
  --bg-soft: #F5F7FB;
  --bg-tint: #EEF2FA;
  --panel: #FFFFFF;
  --line: #E1E7F0;
  --line-strong: #C9D3E2;
  --ink: #0B1220;
  --ink-2: #364258;
  --muted: #5A6782;
  --brand: #1D44E6;
  --brand-hover: #1636C2;
  --brand-2: #4F7BFF;
  --sky: #6CC4FF;
  --brand-soft: rgba(29, 68, 230, .08);
  --ok: #138A4B;
  --danger: #C8283A;
  --shadow-sm: 0 1px 2px rgba(11, 18, 32, .05);
  --shadow: 0 1px 2px rgba(11, 18, 32, .04), 0 12px 32px -12px rgba(11, 18, 32, .14);
  --shadow-lg: 0 30px 60px -20px rgba(11, 18, 32, .28);
  --radius: 16px;
  --display: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
  --gutter: 24px;
  --section: clamp(72px, 9vw, 120px);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #070B14;
  --bg-soft: #0B111D;
  --bg-tint: #101828;
  --panel: #0E1524;
  --line: #1C2639;
  --line-strong: #2B3851;
  --ink: #EDF2FA;
  --ink-2: #C4CEDE;
  --muted: #8D9AB2;
  --brand: #5A82FF;
  --brand-hover: #7798FF;
  --brand-2: #7C9CFF;
  --brand-soft: rgba(90, 130, 255, .14);
  --ok: #4ADE80;
  --danger: #FF7385;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -12px rgba(0, 0, 0, .6);
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); margin: 0; letter-spacing: -.02em; line-height: 1.15; }
h1 { font-size: clamp(38px, 5.4vw, 64px); font-weight: 800; letter-spacing: -.035em; line-height: 1.04; }
h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; letter-spacing: -.03em; }
h3 { font-size: 19px; font-weight: 700; }
.h3 { font-size: 20px; }
p { margin: 0; }
.lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--muted); line-height: 1.6; max-width: 62ch; }
.small { font-size: 14px; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 860px; }
.section { padding: var(--section) 0 0; }
.section:last-of-type { padding-bottom: var(--section); }
.spacer { flex: 1; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent; font: 600 15px var(--body); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-lg { height: 54px; padding: 0 28px; font-size: 16px; border-radius: 14px; }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); }
.btn-secondary { background: var(--panel); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn[disabled] { opacity: .6; cursor: progress; }
.text-link { color: var(--brand); font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.text-link::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 2px 2px 0 0; transform: rotate(45deg); transition: transform .15s; }
.text-link:hover::after { transform: translateX(3px) rotate(45deg); }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--ink-2); cursor: pointer; }
.icon-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:root[data-theme="dark"] .moon, :root:not([data-theme="dark"]) .sun { display: none; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-head.scrolled { border-color: var(--line); }
.head-row { height: 72px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 19px var(--display); letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.logo-mark { width: 32px; height: 32px; }
.main-nav { display: flex; gap: 4px; margin-left: 12px; }
.main-nav a, .mobile-nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 8px; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--ink); background: var(--bg-tint); }
.head-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; }
.mobile-nav { display: none; }

/* Hero */
.hero { padding: clamp(28px, 4.2vw, 60px) 0 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy h1 { margin: 16px 0 22px; }
.eyebrow { display: inline-block; font: 600 13px var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero-points { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 10px 24px; color: var(--ink-2); font-size: 15px; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.ck { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: var(--brand); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.hero-visual { position: relative; padding: 8px 0 48px 0; }
.hero-visual .phone { position: absolute; right: -8px; bottom: 0; width: 34%; min-width: 150px; }
.hero-visual.small .browser { max-width: 520px; margin-left: auto; }

/* Browser and phone mockups */
.browser { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; }
.browser-bar { height: 38px; display: flex; align-items: center; gap: 6px; padding: 0 14px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.browser-bar > span { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.browser-bar .url { margin: 0 auto; padding: 3px 14px; border-radius: 7px; background: var(--panel); border: 1px solid var(--line); font-size: 12px; color: var(--muted); max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.browser-screen { aspect-ratio: 16 / 10.5; overflow: hidden; background: #fff; container-type: inline-size; }
.browser-screen img, .phone-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ms { --c1: #1D44E6; --c2: #EEF2FA; --c3: #0B1220; height: 100%; padding: 4% 5%; display: flex; flex-direction: column; gap: 6%; color: var(--c3); background: #fff; font-family: var(--body); }
.ms-b { --c1: #8A5A2B; --c2: #F6EFE7; --c3: #2B1D12; }
.ms-c { --c1: #0F8A6A; --c2: #E8F6F1; --c3: #0D2A22; }
.ms-d { --c1: #4F46E5; --c2: #EEF0FF; --c3: #141432; }
.ms-nav { display: flex; align-items: center; gap: 4%; font-size: 2.3cqw; }
.ms-nav b { font: 800 1.15em var(--display); margin-right: auto; }
.ms-nav span { width: 7%; height: .5em; border-radius: 4px; background: #E2E8F0; }
.ms-nav i { font-style: normal; font-weight: 600; background: var(--c1); color: #fff; padding: .45em 1em; border-radius: 6px; }
.ms-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 6%; align-items: center; flex: 1; }
.ms-hero strong { display: block; font: 800 5cqw/1.15 var(--display); letter-spacing: -.02em; margin-bottom: 8%; }
.ms-hero p { height: .55em; background: #E2E8F0; border-radius: 4px; margin-bottom: 4%; font-size: 2.3cqw; }
.ms-hero p.short { width: 70%; }
.ms-hero em { display: inline-block; margin-top: 6%; font: normal 600 2.2cqw var(--body); background: var(--c1); color: #fff; padding: .6em 1.2em; border-radius: 7px; white-space: nowrap; }
.ms-art { aspect-ratio: 1 / .85; border-radius: 10px; background: var(--c2); position: relative; overflow: hidden; }
.ms-art span { position: absolute; border-radius: 8px; background: var(--c1); opacity: .9; }
.ms-art span:nth-child(1) { inset: 14% 40% 46% 12%; }
.ms-art span:nth-child(2) { inset: 40% 12% 18% 44%; opacity: .55; }
.ms-art span:nth-child(3) { inset: 62% 62% 12% 12%; opacity: .3; }
.ms-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4%; height: 22%; }
.ms-cards div { border-radius: 8px; background: var(--c2); }
.phone { background: #0B1220; border-radius: 34px; padding: 9px; box-shadow: var(--shadow-lg); position: relative; aspect-ratio: 9 / 19; }
.phone-notch { position: absolute; top: 15px; left: 50%; transform: translateX(-50%); width: 30%; height: 16px; border-radius: 10px; background: #0B1220; z-index: 2; }
.phone-screen { position: absolute; inset: var(--bezel, 9px); border-radius: 26px; overflow: hidden; background: #fff; }
.ps { height: 100%; padding: 38px 12px 12px; display: flex; flex-direction: column; gap: 9px; color: #0B1220; font-size: 11px; }
.ps-head small { color: #64748B; display: block; }
.ps-head strong { font: 800 16px var(--display); }
.ps-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; color: #64748B; font-size: 9px; }
.ps-cal span { display: flex; flex-direction: column; padding: 4px 0; border-radius: 8px; }
.ps-cal b { color: #0B1220; font-size: 11px; }
.ps-cal .on { background: #1D44E6; color: #DCE6FF; }
.ps-cal .on b { color: #fff; }
.ps-row { display: flex; gap: 8px; align-items: center; padding: 8px; border-radius: 10px; background: #F1F5FB; }
.ps-row i { width: 4px; align-self: stretch; border-radius: 4px; background: #1D44E6; }
.ps-row i.alt { background: #6CC4FF; }
.ps-row div { display: flex; flex-direction: column; }
.ps-row span { color: #64748B; }
.ps-progress { height: 6px; border-radius: 4px; background: #E2E8F0; overflow: hidden; }
.ps-progress span { display: block; width: 68%; height: 100%; background: #1D44E6; }
.ps-btn { margin-top: auto; text-align: center; background: #1D44E6; color: #fff; font-weight: 600; padding: 9px; border-radius: 10px; }
.device-pair { position: relative; }
.device-pair .phone { position: absolute; right: 4%; bottom: -10%; width: 23%; min-width: 92px; --bezel: 6px; border-radius: 24px; }
.device-pair .phone-screen { border-radius: 19px; }
.device-pair.big { padding-bottom: 6%; }
.device-pair.apps { display: flex; justify-content: center; gap: 6%; padding: 0 0 20px; }
.device-pair.apps .phone { position: relative; right: auto; bottom: auto; width: 42%; max-width: 230px; --bezel: 9px; border-radius: 34px; }
.device-pair.apps .phone:nth-child(2) { margin-top: 48px; }
.device-pair.apps .phone-screen { border-radius: 26px; }

/* Section headings */
.sec-head { max-width: 760px; margin-bottom: clamp(36px, 4vw, 56px); }
.sec-head h2 { margin: 12px 0 14px; }
.sec-head .sec-link { margin-top: 14px; }

/* Services overview */
.svc-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.svc-col { padding: 32px 28px 8px 0; }
.svc-col + .svc-col { padding-left: 28px; border-left: 1px solid var(--line); }
.svc-num { font: 700 13px var(--display); color: var(--brand); }
.svc-col h3 { font-size: 23px; margin: 10px 0 8px; }
.svc-col > p { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.svc-links { list-style: none; margin: 0; padding: 0; }
.svc-links a { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink-2); font-weight: 500; transition: color .15s, padding .15s; }
.svc-links a:hover { color: var(--brand); padding-left: 4px; }
.svc-links svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; opacity: .5; }
.svc-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.svc-card { display: flex; flex-direction: column; gap: 10px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.svc-card:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.svc-card p { color: var(--muted); font-size: 15px; flex: 1; }

/* Work */
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; }
@media (max-width: 1060px) { .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.work-link { text-decoration: none; display: block; padding: clamp(18px, 2.4vw, 32px) clamp(18px, 2.4vw, 32px) clamp(26px, 3vw, 40px); border-radius: 20px; background: var(--bg-tint); transition: background .2s; }
.work-link:hover { background: color-mix(in srgb, var(--brand) 9%, var(--bg-tint)); }
.work-meta { padding: 20px 4px 0; display: flex; flex-direction: column; gap: 8px; }
.work-meta h3 { font-size: 20px; }
.work-meta h3 a { text-decoration: none; }
.work-meta p { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { font-size: 12px; font-weight: 600; color: var(--ink-2); border: 1px solid var(--line); padding: 3px 10px; border-radius: 999px; }
.soon { font-size: 14px; font-weight: 600; color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filters a { text-decoration: none; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); font-weight: 500; font-size: 15px; color: var(--ink-2); }
.filters a[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.case-facts { display: flex; flex-wrap: wrap; gap: 16px 48px; margin: 36px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.case-facts dt { font-size: 13px; color: var(--muted); }
.case-facts dd { margin: 2px 0 0; font-weight: 600; }
.case-facts a { color: var(--brand); }
.case-visual .device-pair { max-width: 1000px; margin: 0 auto; }
.case-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 64px; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.gallery img { border-radius: 14px; border: 1px solid var(--line); }

/* Process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; counter-reset: s; }
.step { border-top: 2px solid var(--ink); padding-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.step-num { font: 700 14px var(--display); color: var(--brand); }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }
.step h4 { font-size: 14px; margin: 18px 0 8px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.qa-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

/* Why, trust, international */
.why { background: none; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 32px; margin: 0; }
.why-grid dt { font: 700 17px var(--display); margin-bottom: 8px; padding-left: 14px; border-left: 3px solid var(--brand); }
.why-grid dd { margin: 0; color: var(--muted); font-size: 15px; }
.trust { }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.trust-item { padding: 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-item:nth-child(3n) { border-right: 0; }
.trust-item:nth-last-child(-n+3) { border-bottom: 0; }
.trust-item h3 { margin-bottom: 8px; font-size: 18px; }
.trust-item p { color: var(--muted); font-size: 15px; }
.intl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.intl-list { list-style: none; padding: 0; margin: 0 0 32px; display: flex; flex-direction: column; gap: 20px; }
.intl-list h3 { font-size: 17px; margin-bottom: 4px; }
.intl-list p { color: var(--muted); font-size: 15px; }
.clocks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; position: sticky; top: 96px; }
.clock { padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); display: flex; flex-direction: column; }
.clock span { font-size: 14px; color: var(--muted); }
.clock strong { font: 700 28px var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.clock small { font-size: 12px; color: var(--muted); min-height: 1.2em; }
.clock.you { grid-column: 1 / -1; background: var(--brand); border-color: var(--brand); }
.clock.you span, .clock.you small { color: rgba(255, 255, 255, .8); }
.clock.you strong { color: #fff; }

/* Technology */
.tech-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.tech-group { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.tech-group h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 16px; }
.tech-group ul { list-style: none; padding: 0; margin: 0 0 4px; display: flex; flex-wrap: wrap; gap: 14px 22px; }
.tech-group li { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 15px; color: var(--ink-2); }
.tech-ico { fill: currentColor; color: var(--ink); transition: color .2s; flex-shrink: 0; }
.tech-group li:hover .tech-ico { color: var(--brand); }
.tech-group p { margin-top: 14px; }

/* Packages */
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; align-items: stretch; }
.pkg { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 30px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); }
.pkg.featured { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.pkg-badge { position: absolute; top: -13px; left: 28px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 999px; }
.pkg h3 { font-size: 22px; }
.pkg-desc { color: var(--muted); font-size: 15px; }
.pkg-price { font: 800 26px var(--display); letter-spacing: -.02em; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.pkg .checks { flex: 1; }
.pkg-meta { margin: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.pkg-meta div { display: flex; flex-direction: column; gap: 1px; }
.pkg-meta dt { color: var(--muted); }
.pkg-meta dd { margin: 0; font-weight: 500; }
.checks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.checks .ck { margin-top: 3px; }
.compare { margin-top: 48px; }
.compare h3 { margin-bottom: 16px; }
.table-scroll { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.compare table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.compare th, .compare td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare th[scope="row"] { text-align: left; font-weight: 500; color: var(--ink-2); }
.compare thead th { background: var(--bg-soft); font-family: var(--display); }
.compare tr:last-child > * { border-bottom: 0; }
.compare td .ck { margin: 0 auto; }
.dash { color: var(--line-strong); }
.app-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: clamp(28px, 5vw, 56px); border-radius: 24px; background: var(--bg-tint); }
.app-grid h2 { margin: 12px 0 14px; }
.app-grid .checks { margin: 24px 0 0; }
.notes { margin: 0; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.notes div { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.notes dt { font-weight: 700; font-family: var(--display); }
.notes dd { margin: 0; color: var(--muted); }

/* Quotes */
.quote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.quote { margin: 0; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; gap: 16px; }
.quote blockquote { margin: 0; font-size: 17px; line-height: 1.6; color: var(--ink); }
.quote figcaption { display: flex; flex-direction: column; font-size: 14px; }
.quote figcaption span { color: var(--muted); }
.stars { color: #F2A900; letter-spacing: 2px; }
.stars span { color: var(--line-strong); }

/* FAQ */
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; font: 600 18px var(--display); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 40px 22px 0; color: var(--muted); }

/* CTA band and footer */
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding: clamp(32px, 5vw, 64px); border-radius: 24px; background: #0B1A4F; color: #fff; position: relative; overflow: hidden; }
.cta-inner::after { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; border: 48px solid rgba(108, 196, 255, .12); pointer-events: none; }
.cta-inner h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); }
.cta-inner p { color: rgba(255, 255, 255, .78); margin-top: 10px; max-width: 52ch; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }
.cta-band .btn-primary { background: #fff; color: #0B1A4F; }
.cta-band .btn-primary:hover { background: #DCE6FF; }
.site-foot { margin-top: 0; border-top: 1px solid var(--line); background: var(--bg-soft); }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; padding-top: 64px; padding-bottom: 48px; }
.foot-grid h2 { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 14px; }
.foot-grid div > a:not(.brand) { display: block; text-decoration: none; color: var(--ink-2); padding: 5px 0; font-size: 15px; }
.foot-grid a:hover { color: var(--brand); }
.foot-brand p { color: var(--muted); margin: 14px 0; max-width: 34ch; font-size: 15px; }
.foot-mail { color: var(--brand) !important; font-weight: 600; text-decoration: none; }
.foot-base { display: flex; justify-content: space-between; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

/* Inner pages */
.page-hero { padding: clamp(48px, 7vw, 96px) 0 0; }
.page-hero h1 { margin: 14px 0 20px; max-width: 18ch; }
.svc-hero h1 { max-width: none; }
.crumbs { display: flex; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.svc-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.svc-boxes { display: flex; flex-direction: column; gap: 20px; }
.box { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.box h2 { font-size: 20px; margin-bottom: 16px; }
.box h3 { font-size: 15px; margin: 16px 0 4px; }
.box a { color: var(--brand); }
.prose h2 { font-size: 26px; margin-bottom: 14px; }
.prose p + h2 { margin-top: 36px; }
.prose p { color: var(--ink-2); font-size: 17px; line-height: 1.7; }
.chip-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.chip-links a { text-decoration: none; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; font-weight: 500; }
.chip-links a:hover { border-color: var(--brand); color: var(--brand); }
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; }

/* Contact form */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.inquiry { padding: clamp(22px, 4vw, 40px); border: 1px solid var(--line); border-radius: 24px; background: var(--panel); box-shadow: var(--shadow); }
.stepper { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 28px; counter-reset: st; }
.stepper li { flex: 1; font-size: 13px; font-weight: 600; color: var(--muted); padding-top: 10px; border-top: 3px solid var(--line); }
.stepper li.on, .stepper li.done { color: var(--ink); border-color: var(--brand); }
.fstep { border: 0; padding: 0; margin: 0; min-width: 0; }
.fstep > legend { font: 700 22px var(--display); margin-bottom: 20px; padding: 0; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.f { display: flex; flex-direction: column; gap: 7px; font-size: 14px; font-weight: 600; color: var(--ink-2); min-width: 0; }
.f.full { grid-column: 1 / -1; }
.f b { color: var(--danger); }
.f input, .f select, .f textarea { min-width: 0; max-width: 100%; font: 16px var(--body); color: var(--ink); background: var(--bg); border: 1px solid var(--line-strong); border-radius: 12px; padding: 12px 14px; width: 100%; }
.f input, .f select { height: 50px; }
.f textarea { resize: vertical; min-height: 120px; }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.f [aria-invalid="true"] { border-color: var(--danger); }
.f .err { color: var(--danger); font-weight: 500; font-size: 13px; }
.checks-field { border: 0; padding: 0; margin: 0; }
.checks-field legend { padding: 0; margin-bottom: 10px; }
.opt-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.opt { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; font-weight: 500; cursor: pointer; }
.opt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.opt input { width: 18px; height: 18px; accent-color: var(--brand); margin: 0; flex-shrink: 0; }
.opt.big { height: 50px; margin-top: 25px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin-top: 18px; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--danger) 10%, transparent); color: var(--danger); font-size: 15px; }
.form-nav { display: flex; gap: 12px; margin-top: 28px; }
.form-done { text-align: center; padding: 32px 0; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.form-done h2 { font-size: 26px; }
.form-done p { color: var(--muted); }
.contact-side { display: flex; flex-direction: column; gap: 16px; }
.contact-side h2 { font-size: 18px; margin-bottom: 8px; }
.mini-steps { margin: 0; padding-left: 20px; color: var(--ink-2); font-size: 15px; display: flex; flex-direction: column; gap: 6px; }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Reveal on scroll (only when JavaScript runs; respects reduced motion) */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
#boom { position: fixed; inset: 0; pointer-events: none; z-index: 90; width: 100%; height: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0s !important; animation-duration: 0s !important; }
}

/* Responsive */
@media (max-width: 1060px) {
  .main-nav { display: none; }
  .menu-btn { display: inline-grid; }
  .mobile-nav:not([hidden]) { display: flex; flex-direction: column; padding: 8px var(--gutter) 16px; border-bottom: 1px solid var(--line); background: var(--bg); }
  .mobile-nav a { padding: 12px 0; font-size: 17px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  :root { --gutter: 16px; }
  .hero-grid, .svc-detail, .about-grid, .contact-grid, .intl-grid, .app-grid, .case-body { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { max-width: 560px; }
  .svc-columns { grid-template-columns: 1fr; border-top: 0; }
  .svc-col, .svc-col + .svc-col { padding: 28px 0 0; border-left: 0; }
  .svc-cards, .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(3n) { border-right: 1px solid var(--line); }
  .trust-item:nth-child(2n) { border-right: 0; }
  .trust-item:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .trust-item:nth-last-child(-n+2) { border-bottom: 0; }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 18px; }
  .clocks { position: static; }
  .qa-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .head-cta { display: none; }
  .head-row { height: 64px; }
  .svc-cards, .trust-grid, .why-grid, .fgrid, .opt-grid, .gallery, .work-grid { grid-template-columns: minmax(0, 1fr); }
  .trust-item { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .trust-item:last-child { border-bottom: 0 !important; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
  .hero-visual { padding-bottom: 40px; }
  .hero-visual .phone { width: 30%; min-width: 0; right: 0; bottom: 14px; --bezel: 5px; border-radius: 22px; }
  .hero-visual .ps-cal { font-size: 7px; gap: 1px; }
  .hero-visual .ps-cal b { font-size: 8px; }
  .hero-visual .ps { padding-left: 8px; padding-right: 8px; }
  .hero-visual .phone-screen { border-radius: 18px; }
  .hero-visual .phone-notch { height: 10px; top: 9px; }
  .hero-visual .ps { padding-top: 24px; gap: 6px; font-size: 9px; }
  .hero-visual .ps-head strong { font-size: 12px; }
  .notes div { grid-template-columns: 1fr; gap: 4px; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-base { flex-direction: column; gap: 4px; }
  .stepper li { font-size: 12px; }
  .opt.big { margin-top: 0; }
  .case-facts { gap: 14px 28px; }
}

/* ---------- Hero additions: pill, gradient word, stats, floating cards ---------- */
.pill { display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); font-size: 14px; font-weight: 500; color: var(--ink-2); box-shadow: var(--shadow-sm); }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 4px rgba(34, 197, 94, .18); }
.grad { background: linear-gradient(100deg, #1B3FE6 0%, #2F5BFF 45%, #4FA3FF 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .04em; }
:root[data-theme="dark"] .grad { background-image: linear-gradient(100deg, #6C8DFF 0%, #8DB0FF 50%, #8FD0FF 100%); }
.hero-stats { display: flex; gap: 0; margin: 36px 0 0; flex-wrap: wrap; }
.hero-stats div { padding: 0 28px; border-left: 1px solid var(--line); }
.hero-stats div:first-child { padding-left: 0; border-left: 0; }
.hero-stats dt { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.hero-stats dd { margin: 4px 0 0; font: 700 20px var(--display); letter-spacing: -.01em; }
.float-card { position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 13px; white-space: nowrap; animation: floaty 6s ease-in-out infinite; }
.float-card b { display: block; font-weight: 600; color: var(--ink); }
.float-card small { color: var(--muted); font-size: 12px; }
.fc-ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.fc-ico svg { width: 17px; height: 17px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.fc-ico.ok { background: #22C55E; }
.fc-ico.cal { background: var(--brand); }
.fc-ico.bag { background: #4FA3FF; }
.fc-ico .ck { stroke: #fff; }
.fc1 { left: -56px; bottom: 26%; animation-delay: -1s; }
.fc2 { right: 30%; top: -44px; animation-delay: -3s; }
.fc3 { left: 30%; bottom: -10px; animation-delay: -4.5s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Tools strip ---------- */
.tools-strip { padding: clamp(48px, 6vw, 72px) 0 0; }
.tools-cap { text-align: center; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 20px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { list-style: none; margin: 0; padding: 18px 0; display: flex; gap: 44px; padding-right: 44px; }
.marquee li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.marquee .tech-ico { color: var(--muted); }
.marquee li:hover .tech-ico { color: var(--brand); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Client-coloured previews ---------- */
.ms { background: var(--mbg, #fff); }
.ms-nav small { font-size: .9em; opacity: .7; margin-right: 2%; white-space: nowrap; }
.ms-nav b, .ms-nav i { white-space: nowrap; }
.ms-nav i { border-radius: .5em; }
.ms-hotel { --mbg: #0E1A33; --c1: #C9A24B; --c2: #1B2A4A; --c3: #F5EFE2; }
.ms-hotel .ms-nav i, .ms-hotel .ms-hero em { color: #0E1A33; }
.ms-hotel .ms-hero p { background: rgba(245, 239, 226, .18); }
.ms-hotel .ms-art span { background: #C9A24B; }
.ms-hotel .ms-cards div { background: #16233F; }
.ms-clean { --mbg: #F2FBF8; --c1: #0F9B83; --c2: #D3F2EA; --c3: #0B3B33; }
.ms-clean .ms-hero p { background: #C9E9E0; }
.ms-clean .ms-cards div { background: #E2F6F0; }
.ms-events { --mbg: #FFFFFF; --c1: #7A4BD1; --c2: #F1EAFE; --c3: #24123F; }
.ms-learn { --mbg: #FFFFFF; --c1: #E07A1F; --c2: #FDF0E3; --c3: #2B1A0B; }
.ms-jani { --mbg: #0F2A1E; --c1: #B6F25A; --c2: #173A2A; --c3: #EAF6E4; }
.ms-jani .ms-nav i, .ms-jani .ms-hero em { color: #0F2A1E; }
.ms-jani .ms-hero p { background: rgba(234, 246, 228, .16); }
.ms-jani .ms-art span { background: #B6F25A; }
.ms-jani .ms-cards div { background: #143524; }

@media (max-width: 900px) {
  .hero-visual { margin-top: 36px; }
  .fc1 { left: -6px; }
}
@media (max-width: 640px) {
  .hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-stats div { padding: 0 10px; }
  .hero-stats dt { font-size: 11px; }
  .hero-stats dd { font-size: 15px; }
  .float-card { font-size: 11px; padding: 6px 10px 6px 6px; gap: 7px; border-radius: 11px; }
  .float-card small { font-size: 10px; }
  .fc-ico { width: 24px; height: 24px; border-radius: 8px; }
  .fc-ico svg { width: 13px; height: 13px; }
  .fc2 { right: 34%; top: -30px; }
  .fc3 { display: none; }
  .marquee ul { gap: 30px; padding-right: 30px; padding-top: 14px; padding-bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .float-card, .marquee-track { animation: none !important; }
  .marquee { overflow-x: auto; }
}

/* Projects come straight after the hero */
.work-feature.first-after-hero { padding-top: clamp(56px, 7vw, 96px); }
.tools-strip { padding-top: clamp(56px, 7vw, 88px); }
