/* ==========================================================================
   Softanic Solutions: site design system
   One stylesheet for every public page. Admin panel keeps its own assets.
   ========================================================================== */

:root {
  --navy-950: #050f22;
  --navy-900: #081a36;
  --navy-800: #0c2550;
  --navy-700: #12346d;
  --brand: #1b5fae;
  --brand-600: #164f93;
  --brand-50: #eef5fd;
  --brand-100: #dbe9fa;
  --sky: #38a9e0;
  --sky-50: #e9f6fc;
  --accent: #f59a23;
  --accent-600: #e0850c;
  --accent-50: #fff4e5;
  --green: #16a34a;

  --ink: #0e1a2b;
  --ink-2: #273449;
  --muted: #5a6a80;
  --line: #e3e9f2;
  --surface: #f5f8fc;
  --white: #ffffff;

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(14, 26, 43, .06), 0 2px 8px rgba(14, 26, 43, .04);
  --shadow: 0 10px 30px -12px rgba(14, 26, 43, .18);
  --shadow-lg: 0 30px 60px -20px rgba(8, 26, 54, .35);

  --header-h: 76px;
  --gutter: 20px;
  --container: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--brand); text-decoration: none; transition: color .2s; }
a:hover { color: var(--brand-600); }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .5em; color: var(--ink); font-weight: 750; line-height: 1.2; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 1000;
  background: var(--navy-900); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600;
}
.skip-link:focus { top: 12px; color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.icon { width: 1.25em; height: 1.25em; flex: none; display: inline-block; vertical-align: middle; }

/* ---------- Layout helpers ---------- */
.section { padding-block: clamp(64px, 9vw, 112px); position: relative; }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--alt { background: var(--surface); }
.section--dark { background: var(--navy-900); color: #c4d0e3; }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }

.grid { display: grid; gap: 24px; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.split { display: grid; gap: clamp(32px, 6vw, 72px); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 992px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-left { grid-template-columns: 1.15fr .85fr; }
  .split--wide-right { grid-template-columns: .85fr 1.15fr; }
}
.stack > * + * { margin-top: 16px; }
.center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mt-lg { margin-top: 48px; }

/* ---------- Section heading ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand); background: var(--brand-50);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(245, 154, 35, .2); }
.section--dark .eyebrow, .eyebrow--light { color: #bfe3f6; background: rgba(56, 169, 224, .14); }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-inline: auto; }
.section-head h2, .h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: 14px; }
.section-head p, .lead { font-size: clamp(1rem, 1.4vw, 1.125rem); color: var(--muted); margin: 0; }
.section--dark .section-head p { color: #9fb0c9; }
.section-head--row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; max-width: none; }
.section-head--row > div { max-width: 640px; }
.text-gradient { background: linear-gradient(100deg, var(--sky), #7cc8f0 60%, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--brand); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 24px; border-radius: 999px;
  font-weight: 700; font-size: 15px; line-height: 1.2; white-space: nowrap;
  background: var(--bg); color: var(--fg); border: 1.5px solid transparent;
  cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s, background .25s, color .25s, border-color .25s;
}
.btn .icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover { color: var(--fg); transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(27, 95, 174, .55); }
.btn:hover .icon { transform: translateX(3px); }
.btn--primary { background: linear-gradient(135deg, var(--brand), #2a7ad0); }
.btn--accent { --bg: var(--accent); --fg: #1b1203; }
.btn--accent:hover { --bg: var(--accent-600); box-shadow: 0 12px 24px -10px rgba(245, 154, 35, .6); }
.btn--ghost { --bg: transparent; --fg: var(--ink); border-color: var(--line); }
.btn--ghost:hover { --fg: var(--brand); border-color: var(--brand); box-shadow: none; background: var(--brand-50); }
.btn--light { --bg: #fff; --fg: var(--navy-900); }
.btn--outline-light { --bg: transparent; --fg: #fff; border-color: rgba(255, 255, 255, .3); }
.btn--outline-light:hover { --fg: #fff; border-color: #fff; background: rgba(255, 255, 255, .08); box-shadow: none; }
.btn--sm { min-height: 42px; padding: 9px 18px; font-size: 14px; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--brand); }
.link-arrow .icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -14px rgba(14, 26, 43, .25); }
.site-header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 46px; width: auto; }
.nav { display: none; }
.nav ul { list-style: none; display: flex; align-items: center; gap: 2px; }
.nav a {
  position: relative; display: block; padding: 9px 13px; border-radius: 999px;
  font-size: 15px; font-weight: 600; color: var(--ink-2);
}
.nav a:hover { color: var(--brand); background: var(--brand-50); }
.nav a.is-active { color: var(--brand); }
.nav a.is-active::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--accent); }
.header-cta { display: none; }
.nav-toggle {
  width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--line); background: #fff;
  display: inline-grid; place-items: center; cursor: pointer; color: var(--ink);
}
.nav-toggle .icon { width: 22px; height: 22px; }
@media (min-width: 1024px) {
  .nav { display: block; }
  .header-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}
@media (max-width: 575px) { .brand img { height: 38px; } :root { --header-h: 68px; } }

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 200; visibility: hidden; pointer-events: none; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(5, 15, 34, .55); opacity: 0; transition: opacity .3s; }
.drawer__panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(380px, 88vw);
  background: #fff; padding: 20px 22px 28px; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .35s var(--ease); overflow-y: auto;
}
.drawer.is-open { visibility: visible; pointer-events: auto; }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.drawer__top img { height: 38px; width: auto; }
.drawer nav ul { list-style: none; }
.drawer nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 4px; font-size: 17px; font-weight: 650; color: var(--ink); border-bottom: 1px solid var(--line);
}
.drawer nav a .icon { width: 18px; height: 18px; color: #9aa8bb; }
.drawer nav a.is-active { color: var(--brand); }
.drawer__foot { margin-top: auto; padding-top: 24px; display: grid; gap: 12px; }
.drawer__contact { font-size: 14px; color: var(--muted); display: grid; gap: 6px; }
.drawer__contact a { color: var(--ink-2); font-weight: 600; }
body.no-scroll { overflow: hidden; }

/* ---------- Home hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(1200px 600px at 85% -10%, rgba(56, 169, 224, .28), transparent 60%),
              radial-gradient(800px 500px at -10% 110%, rgba(245, 154, 35, .16), transparent 60%),
              linear-gradient(160deg, var(--navy-950), var(--navy-800));
  color: #c6d3e8;
  padding-top: clamp(48px, 7vw, 88px);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 60% 30%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse at 60% 30%, #000 20%, transparent 75%);
}
.hero__grid { display: grid; gap: 40px; align-items: end; grid-template-columns: 1fr; }
@media (min-width: 992px) { .hero__grid { grid-template-columns: 1.1fr .9fr; gap: 24px; } }
.hero__content { padding-bottom: clamp(40px, 6vw, 96px); }
.hero h1 {
  color: #fff; font-size: clamp(2.6rem, 6.4vw, 4.75rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.04; margin-bottom: 22px;
}
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #b4c3da; max-width: 560px; margin-bottom: 32px; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 14px 36px; margin-top: 40px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .1); }
.hero__stat b { display: block; font-size: 2rem; font-weight: 800; color: #fff; letter-spacing: -.03em; line-height: 1.1; }
.hero__stat span { font-size: 14px; color: #93a5c1; }
.hero__stat b span, .media-stack__badge b span, .stat b span { font: inherit; color: inherit; letter-spacing: inherit; }
.avatar-stack { display: flex; align-items: center; flex: none; }
.avatar-stack img { width: 42px; height: 42px; flex: none; max-width: none; border-radius: 50%; object-fit: cover; border: 3px solid var(--navy-800); margin-left: -10px; }
.avatar-stack img:first-child { margin-left: 0; }

.hero__visual { position: relative; display: flex; justify-content: center; align-self: end; }
.hero__portrait-bg {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: min(460px, 86%); aspect-ratio: 1; border-radius: 50% 50% 0 0;
  background: linear-gradient(180deg, rgba(56, 169, 224, .55), rgba(27, 95, 174, .25) 60%, transparent);
}
.hero__portrait-bg::after { content: ""; position: absolute; inset: 18px; border-radius: inherit; border: 1px dashed rgba(255, 255, 255, .25); }
.hero__portrait { position: relative; width: min(430px, 80%); height: auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .35)); }
@media (max-width: 991px) { .hero__portrait { width: min(360px, 72%); } .hero__portrait-bg { width: min(400px, 80%); } }
.float-card {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px;
  background: rgba(255, 255, 255, .96); color: var(--ink); border-radius: 16px; padding: 12px 16px;
  box-shadow: var(--shadow-lg); font-size: 13px; line-height: 1.3; animation: floaty 6s ease-in-out infinite;
}
.float-card b { display: block; font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.float-card span { color: var(--muted); }
.float-card .icon-tile { width: 42px; height: 42px; border-radius: 12px; }
.float-card--a { top: 18%; left: 0; }
.float-card--b { bottom: 14%; right: 0; animation-delay: -3s; }
@media (max-width: 575px) { .float-card { font-size: 12px; padding: 10px 12px; } .float-card b { font-size: 16px; } .float-card--a { left: -4px; } .float-card--b { right: -4px; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(700px 360px at 90% 0%, rgba(56, 169, 224, .3), transparent 60%), linear-gradient(150deg, var(--navy-950), var(--navy-800));
  color: #b4c3da; padding: clamp(56px, 8vw, 96px) 0 clamp(52px, 7vw, 84px);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .45;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%); mask-image: linear-gradient(90deg, transparent, #000 70%);
}
.page-hero h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -.035em; margin: 14px 0 12px; max-width: 900px; }
.page-hero p { max-width: 640px; font-size: 1.08rem; margin: 0; }
.crumbs { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.crumbs a { color: #9fc6ea; }
.crumbs a:hover { color: #fff; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: rgba(255, 255, 255, .3); }
.crumbs [aria-current] { color: #fff; }

/* ---------- Cards ---------- */
.card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.card--hover:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.icon-tile {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; flex: none;
  background: var(--brand-50); color: var(--brand);
}
.icon-tile img { width: 30px; height: 30px; }
.icon-tile .icon { width: 26px; height: 26px; }
.icon-tile--accent { background: var(--accent-50); color: var(--accent-600); }
.icon-tile--sky { background: var(--sky-50); color: #1683b8; }
.icon-tile--green { background: #e8f7ee; color: var(--green); }

.service-card { display: flex; flex-direction: column; gap: 14px; height: 100%; overflow: hidden; }
.service-card h3 { font-size: 1.2rem; margin: 6px 0 0; }
.service-card p { color: var(--muted); margin: 0; flex: 1; }
.service-card::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--sky), var(--accent)); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.service-card:hover::after { transform: scaleX(1); }
.service-card .card-num { position: absolute; top: 22px; right: 24px; font-size: 13px; font-weight: 800; color: #c6d2e2; letter-spacing: .04em; }
.service-card a.stretched::before { content: ""; position: absolute; inset: 0; }

/* Bento for home services */
.bento { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) {
  .bento { grid-template-columns: repeat(4, 1fr); }
  .bento .bento-feature { grid-column: span 2; grid-row: span 2; }
}
.bento-feature {
  background: linear-gradient(180deg, rgba(8, 26, 54, .15) 0%, rgba(8, 26, 54, .78) 45%, var(--navy-900) 100%), var(--feature-img, none) center top / cover no-repeat, var(--navy-900);
  color: #c6d3e8; border: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 18px; min-height: 380px;
}
.bento-feature h3 { color: #fff; font-size: clamp(1.4rem, 2.2vw, 1.75rem); }
.bento-feature p { color: #b4c3da; }
.bento-feature .icon-tile { background: rgba(255, 255, 255, .12); }
.bento-feature .icon-tile img { filter: brightness(0) invert(1); }
.bento-feature .link-arrow { color: #fff; }
.bento-feature .card-num { color: rgba(255, 255, 255, .3); }
.bento-cta { display: flex; flex-direction: column; justify-content: center; gap: 16px; background: var(--accent-50); border-color: #fde3bd; }
.bento-cta p { color: var(--ink-2); font-weight: 600; font-size: 1.05rem; margin: 0; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; gap: 16px; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee--reverse .marquee__track { animation-direction: reverse; }
@keyframes marquee { to { transform: translateX(-50%); } }
.ribbon { background: var(--navy-900); padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .06); }
.ribbon .marquee__track { gap: 44px; animation-duration: 30s; }
.ribbon__item { display: inline-flex; align-items: center; gap: 44px; font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 750; color: #fff; white-space: nowrap; letter-spacing: -.01em; }
.ribbon__item::after { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); transform: rotate(45deg); }

.logo-chip {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: 300px; height: 96px; padding: 8px 24px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
}
.logo-chip img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 767px) { .logo-chip { width: 220px; height: 84px; padding: 8px 18px; } }

/* ---------- About / media ---------- */
.media-stack { position: relative; padding: 0 0 48px 0; }
.media-stack__main { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; }
.media-stack__main img { width: 100%; height: 100%; object-fit: cover; }
.media-stack__sub {
  position: absolute; right: -8px; bottom: 0; width: 46%; aspect-ratio: 3 / 4; border-radius: 22px; overflow: hidden;
  border: 6px solid #fff; box-shadow: var(--shadow-lg);
}
.media-stack__sub img { width: 100%; height: 100%; object-fit: cover; }
.media-stack__badge {
  position: absolute; left: 20px; bottom: 16px; background: var(--accent); color: #1b1203;
  border-radius: 20px; padding: 18px 22px; box-shadow: var(--shadow-lg); line-height: 1.1;
}
.media-stack__badge b { display: block; font-size: 2.4rem; font-weight: 800; letter-spacing: -.04em; }
.media-stack__badge span { font-size: 14px; font-weight: 700; }
@media (min-width: 992px) { .media-stack__sub { right: -24px; } }

.feature-list { display: grid; gap: 14px; margin-top: 28px; }
@media (min-width: 576px) { .feature-list--2 { grid-template-columns: 1fr 1fr; } }
.feature-item { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.feature-item h3, .feature-item h4 { font-size: 1rem; margin: 0 0 2px; }
.feature-item p { margin: 0; font-size: 14.5px; color: var(--muted); }
.feature-item .icon-tile { width: 44px; height: 44px; border-radius: 12px; }
.feature-item .icon-tile .icon { width: 22px; height: 22px; }
.section--dark .feature-item { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .08); }
.section--dark .feature-item p { color: #9fb0c9; }

.check-list { list-style: none; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .icon { width: 22px; height: 22px; color: var(--green); margin-top: 1px; }
@media (min-width: 640px) { .check-list--2 { grid-template-columns: 1fr 1fr; column-gap: 28px; } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: #fff; padding: 28px 22px; text-align: center; }
.stat b { display: block; font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 800; color: var(--ink); letter-spacing: -.04em; line-height: 1.05; }
.stat b em { font-style: normal; color: var(--accent); }
.stat span { font-size: 14.5px; font-weight: 600; color: var(--muted); }

/* ---------- Products ---------- */
/* Rows of three; a shorter last row stays centred */
.product-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.product-grid > * { flex: 0 1 100%; }
.product-grid .product-card { height: auto; }
@media (min-width: 640px) { .product-grid > * { flex-basis: calc((100% - 24px) / 2); } }
@media (min-width: 992px) { .product-grid > * { flex-basis: calc((100% - 48px) / 3); } }
.product-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; height: 100%; }
.product-card__logo { display: grid; place-items: center; padding: 34px 28px; background: linear-gradient(160deg, var(--surface), #fff); border-bottom: 1px solid var(--line); aspect-ratio: 16 / 8; }
.product-card__logo img { max-height: 92px; width: auto; max-width: 88%; object-fit: contain; transition: transform .4s var(--ease); }
.product-card:hover .product-card__logo img { transform: scale(1.05); }
.product-card__body { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.product-card__body h3 { font-size: 1.3rem; margin: 0; text-transform: capitalize; }
.product-card__body p { color: var(--muted); margin: 0; flex: 1; }
.product-card__actions { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; margin-top: 6px; }

.product-row { display: grid; gap: 28px; align-items: center; padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); }
.product-row + .product-row { margin-top: 24px; }
@media (min-width: 900px) { .product-row { grid-template-columns: 340px 1fr; gap: 48px; } .product-row:nth-child(even) { grid-template-columns: 1fr 340px; } .product-row:nth-child(even) .product-row__logo { order: 2; } }
.product-row__logo { display: grid; place-items: center; background: var(--surface); border-radius: 20px; aspect-ratio: 16 / 10; padding: 28px; }
.product-row__logo img { max-height: 110px; width: auto; object-fit: contain; }
.product-row h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); text-transform: capitalize; }
.product-row p { color: var(--muted); }
.product-row .tag { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-600); margin-bottom: 8px; }

/* ---------- Why choose (dark) ---------- */
.why { position: relative; overflow: hidden; }
.why__big { font-size: clamp(5rem, 14vw, 10rem); font-weight: 800; line-height: .9; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, .25); margin-bottom: 10px; }
.why__big span { color: var(--accent); -webkit-text-stroke: 0; }
.why__img { border-radius: 50%; overflow: hidden; aspect-ratio: 1; max-width: 420px; margin-inline: auto; border: 10px solid rgba(255, 255, 255, .06); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }
.why__img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Clients ---------- */
/* Flex so a shorter last row stays centred */
.client-grid { --cols: 2; --gap: 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }
.client-grid > * { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); }
@media (min-width: 640px) { .client-grid { --cols: 3; } }
@media (min-width: 992px) { .client-grid { --cols: 4; } }
@media (min-width: 1200px) { .client-grid { --cols: 5; } }
.client-card {
  display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 14px 18px;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.client-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.client-card__logo { width: 100%; height: 96px; display: grid; place-items: center; }
.client-card__logo img { max-height: 88px; max-width: 80%; width: auto; object-fit: contain; }
.client-card__initial { width: 72px; height: 72px; border-radius: 20px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); font-size: 1.6rem; font-weight: 800; }
.client-card h3, .client-card__name { font-size: 14.5px; font-weight: 650; color: var(--ink-2); margin: 0; text-transform: capitalize; line-height: 1.35; }
.empty-state { text-align: center; padding: 56px 20px; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); background: var(--surface); }

/* ---------- Process ---------- */
.steps { display: grid; gap: 20px; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding: 28px 24px 24px; border-radius: var(--radius); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .09); }
.step__num { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(135deg, var(--accent), #ffb95c); color: #1b1203; font-weight: 800; font-size: 18px; margin-bottom: 18px; }
.step h3 { font-size: 1.15rem; margin-bottom: 12px; }
.step ul { list-style: none; display: grid; gap: 8px; font-size: 14.5px; color: #a9b8cf; }
.step li { display: flex; gap: 10px; }
.step li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sky); margin-top: 9px; flex: none; }
@media (min-width: 1100px) { .step:not(:last-child)::after { content: ""; position: absolute; top: 52px; right: -21px; width: 22px; border-top: 2px dashed rgba(255, 255, 255, .2); } }

/* Light step variant (product pages) */
.flow { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); counter-reset: flow; }
@media (min-width: 768px) { .flow { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .flow { grid-template-columns: repeat(6, 1fr); } }
.flow__item { counter-increment: flow; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px; }
.flow__item::before { content: counter(flow, decimal-leading-zero); display: block; font-size: 13px; font-weight: 800; color: var(--accent-600); margin-bottom: 10px; letter-spacing: .06em; }
.flow__item h3 { font-size: 1rem; margin-bottom: 4px; }
.flow__item p { margin: 0; font-size: 14px; color: var(--muted); }

/* ---------- Testimonials ---------- */
.quote-card { display: flex; flex-direction: column; gap: 18px; height: 100%; }
.quote-card .stars { display: flex; gap: 3px; color: var(--accent); }
.quote-card .stars .icon { width: 18px; height: 18px; }
.quote-card blockquote { margin: 0; font-size: 1.02rem; color: var(--ink-2); flex: 1; }
.quote-card footer { display: flex; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.quote-card footer img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--surface); }
.quote-card footer b { display: block; color: var(--ink); font-size: 15px; }
.quote-card footer span { font-size: 13.5px; color: var(--muted); }
.quote-card .tag { align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--brand); background: var(--brand-50); padding: 5px 12px; border-radius: 999px; }
.quote-mark { width: 40px; height: 40px; color: var(--brand-100); }

/* ---------- Team ---------- */
.team-grid { display: grid; gap: 22px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .team-grid { grid-template-columns: repeat(4, 1fr); } }
.team-card { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.team-card__photo { aspect-ratio: 4 / 5; overflow: hidden; background: linear-gradient(180deg, var(--brand-50), #dfe9f6); }
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s var(--ease); }
.team-card:hover .team-card__photo img { transform: scale(1.05); }
.team-card__body { padding: 16px 18px 18px; background: #fff; }
.team-card__body h3 { font-size: 1.05rem; margin: 0 0 2px; text-transform: capitalize; }
.team-card__body p { margin: 0; font-size: 14px; color: var(--muted); text-transform: capitalize; }
.team-card--join { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 14px; padding: 26px; background: linear-gradient(160deg, var(--navy-900), var(--brand-600)); color: #c6d3e8; border: 0; }
.team-card--join h3 { color: #fff; font-size: 1.35rem; margin: 0; }
.team-card--join p { margin: 0; }

/* ---------- Blog ---------- */
.blog-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; height: 100%; }
.blog-card__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface); }
.blog-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.blog-card:hover .blog-card__img img { transform: scale(1.06); }
.blog-card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.blog-card__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; color: var(--muted); font-weight: 500; }
.blog-card__meta span { display: inline-flex; align-items: center; gap: 6px; }
.blog-card__meta .icon { width: 16px; height: 16px; }
.blog-card h2, .blog-card h3 { font-size: 1.2rem; margin: 0; text-transform: capitalize; line-height: 1.35; }
.blog-card h2 a, .blog-card h3 a { color: var(--ink); }
.blog-card h2 a:hover, .blog-card h3 a:hover { color: var(--brand); }
.blog-card .link-arrow { margin-top: auto; }
.blog-card--featured { display: grid; gap: 0; }
@media (min-width: 900px) { .blog-card--featured { grid-template-columns: 1.2fr 1fr; grid-column: 1 / -1; } .blog-card--featured .blog-card__img { aspect-ratio: auto; min-height: 340px; } .blog-card--featured .blog-card__body { padding: 40px; justify-content: center; } .blog-card--featured h2 { font-size: 1.85rem; } }

.article-layout { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .article-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; } }
.article-cover { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 9; background: var(--surface); margin-bottom: 32px; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.prose { font-size: 1.075rem; line-height: 1.8; color: var(--ink-2); overflow-wrap: anywhere; }
.prose p { margin: 0 0 1.1em; }
.prose h1, .prose h2, .prose h3, .prose h4 { margin: 1.6em 0 .6em; }
.prose b, .prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose img { border-radius: 14px; margin: 1.4em 0; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--accent); color: var(--ink); font-style: italic; }
.prose pre, .prose code { background: var(--surface); border-radius: 8px; font-size: .92em; }
.prose pre { padding: 16px; overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 12px; }

.sidebar { display: grid; gap: 24px; align-content: start; }
@media (min-width: 1024px) { .sidebar { position: sticky; top: calc(var(--header-h) + 24px); } }
.sidebar-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.sidebar-box h2, .sidebar-box h3 { font-size: 1.1rem; margin-bottom: 16px; }
.recent-list { list-style: none; display: grid; gap: 14px; }
.recent-list a { display: flex; gap: 14px; align-items: center; color: var(--ink); }
.recent-list img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex: none; background: #fff; }
.recent-list b { display: block; font-size: 14.5px; font-weight: 650; line-height: 1.35; text-transform: capitalize; }
.recent-list small { color: var(--muted); font-size: 13px; }
.recent-list a:hover b { color: var(--brand); }
.side-links { list-style: none; display: grid; gap: 8px; }
.side-links a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 16px; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); font-weight: 600; font-size: 15px; }
.side-links a:hover { border-color: var(--brand); color: var(--brand); }
.side-links .icon { width: 18px; height: 18px; color: #9aa8bb; }
.side-cta { background: linear-gradient(160deg, var(--navy-900), var(--brand-600)); color: #c6d3e8; border: 0; }
.side-cta h2, .side-cta h3 { color: #fff; }

/* ---------- Blog post page ---------- */
.post-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 1000; pointer-events: none; background: linear-gradient(90deg, var(--sky), var(--accent)); transform: scaleX(0); transform-origin: 0 50%; }
.post-hero { padding-bottom: clamp(120px, 14vw, 180px); }
.post-hero h1 { text-transform: capitalize; max-width: 960px; }
.post-hero .eyebrow { margin: 22px 0 0; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 22px; font-size: 14.5px; font-weight: 500; color: #9fb0c9; }
.post-meta > span { display: inline-flex; align-items: center; gap: 7px; }
.post-meta .icon { width: 16px; height: 16px; }
.post-meta__author { color: #fff; font-weight: 650; }
.post-meta__author img { width: 34px; height: 34px; padding: 5px; border-radius: 50%; background: #fff; }

.post-body { background: var(--surface); padding-bottom: clamp(56px, 8vw, 96px); margin-bottom: clamp(56px, 8vw, 96px); }
.post-layout { position: relative; z-index: 1; margin-top: calc(-1 * clamp(72px, 9vw, 120px)); }
.post-layout > * { min-width: 0; }
.post-layout .sidebar { align-self: start; }
.post-layout .sidebar-box:not(.side-cta) { background: #fff; box-shadow: var(--shadow-sm); }

.post-article { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.post-article .article-cover { border-radius: 0; margin: 0; }
.article-cover--small { position: relative; display: grid; place-items: center; }
.article-cover--small img { position: relative; object-fit: contain; }
.article-cover--small img.article-cover__backdrop { position: absolute; inset: -24px; width: calc(100% + 48px); height: calc(100% + 48px); max-width: none; object-fit: cover; filter: blur(24px) brightness(.8); }
.post-article__body { padding: clamp(24px, 5vw, 56px); }

.post-prose p, .post-prose li { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.post-prose > p:first-child { font-size: 1.2rem; line-height: 1.7; color: var(--ink); }
@media (max-width: 575px) {
  .post-article__body { padding: 22px 20px; }
  .post-prose { font-size: 1rem; line-height: 1.7; }
  .post-prose > p:first-child { font-size: 1.05rem; }
}
.post-prose h2, .post-prose h3 { scroll-margin-top: calc(var(--header-h) + 20px); }
.post-prose h2 { padding-left: 16px; border-left: 4px solid var(--accent); font-size: clamp(1.4rem, 2.4vw, 1.7rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.3; }
.post-prose h3 { font-size: clamp(1.15rem, 2vw, 1.3rem); font-weight: 750; letter-spacing: -.01em; line-height: 1.35; }
.post-prose > :first-child { margin-top: 0; }
.post-prose ul { list-style: none; padding-left: 0; }
.post-prose ul li { position: relative; padding-left: 26px; }
.post-prose ul li::before { content: ""; position: absolute; left: 4px; top: .68em; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px var(--brand-100); }
.post-prose a { color: var(--brand); }
.post-prose blockquote { padding: 16px 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--accent-50); }
.post-prose blockquote p:last-child { margin-bottom: 0; }

.post-toc-mobile { margin-bottom: 28px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.post-toc-mobile summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.post-toc-mobile .post-toc { margin-top: 12px; }
@media (min-width: 1024px) { .post-toc-mobile { display: none; } }
@media (max-width: 1023px) { .post-toc-box { display: none; } }
.post-toc { list-style: none; display: grid; gap: 2px; max-height: 46vh; overflow-y: auto; scrollbar-width: thin; }
/* Keep the sticky sidebar within the screen; on short screens the footer band covers the call to action */
.post-toc-box .post-toc { max-height: max(170px, calc(100vh - 700px)); }
@media (min-width: 1024px) and (max-height: 870px) {
  .post-layout .side-cta { display: none; }
  .post-toc-box .post-toc { max-height: calc(100vh - 400px); }
}
.post-prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.post-toc a { display: block; padding: 7px 12px; border-left: 2px solid var(--line); color: var(--muted); font-size: 14px; font-weight: 600; line-height: 1.4; }
.post-toc a:hover { color: var(--brand); }
.post-toc a.is-active { border-left-color: var(--accent); color: var(--brand); background: var(--brand-50); }
.post-toc__sub a { padding-left: 24px; font-weight: 500; }

.post-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.post-share a, .post-share button { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 12px; background: var(--brand-50); color: var(--brand); cursor: pointer; transition: background .25s, color .25s, transform .25s var(--ease); }
.post-share a:hover, .post-share button:hover, .post-share button.is-copied { background: var(--brand); color: #fff; transform: translateY(-2px); }
.post-share .icon { width: 19px; height: 19px; }
.post-share small { flex-basis: 100%; min-height: 1.4em; color: var(--green); font-weight: 600; }

.post-author { display: flex; gap: 18px; align-items: center; margin-top: 40px; padding: 22px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.post-author img { width: 60px; height: 60px; flex: none; padding: 10px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.post-author b { display: block; color: var(--ink); font-size: 1.05rem; }
.post-author p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
@media (max-width: 575px) { .post-author { flex-direction: column; align-items: flex-start; } }
.post-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-top: 28px; }
.post-actions .icon--back { transform: rotate(180deg); }

.post-related { margin-top: clamp(56px, 7vw, 88px); }
.post-related .section-head { margin-bottom: 28px; }

/* ---------- Service detail ---------- */
.detail-layout { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .detail-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; } }
.detail-cover { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 9; margin-bottom: 36px; box-shadow: var(--shadow); }
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.detail-body h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.03em; }
.detail-body > p { font-size: 1.06rem; color: var(--ink-2); }
.detail-panel { margin-top: 40px; padding: clamp(24px, 4vw, 36px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.detail-panel h2 { font-size: 1.5rem; }
.detail-panel > p { color: var(--muted); margin-bottom: 24px; }

/* ---------- Product detail ---------- */
.product-hero-logo { display: inline-grid; place-items: center; background: #fff; border-radius: 22px; padding: 18px 26px; box-shadow: var(--shadow-lg); margin-bottom: 8px; }
.product-hero-logo img { height: 64px; width: auto; }
.module-card h3 { font-size: 1.1rem; margin: 16px 0 12px; }
.module-card .check-list { gap: 9px; font-size: 15px; color: var(--muted); }
.module-card .check-list .icon { width: 19px; height: 19px; }
.benefit-pills { display: flex; flex-wrap: wrap; gap: 12px; }
.benefit-pills li { list-style: none; display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; color: var(--ink-2); font-size: 15px; }
.benefit-pills .icon { width: 20px; height: 20px; color: var(--green); }

/* ---------- Education ---------- */
.course-card { display: flex; gap: 18px; align-items: flex-start; height: 100%; }
.course-card__logo { width: 64px; height: 64px; flex: none; border-radius: 16px; background: var(--surface); display: grid; place-items: center; padding: 10px; border: 1px solid var(--line); }
.course-card__logo img { width: 100%; height: 100%; object-fit: contain; }
.course-card h3 { font-size: 1.1rem; margin: 2px 0 6px; }
.course-card p { margin: 0; color: var(--muted); font-size: 15px; }
.course-card .num { font-size: 12px; font-weight: 800; color: var(--accent-600); letter-spacing: .08em; }

/* ---------- Internship plans ---------- */
.plan-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .plan-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .plan-grid { grid-template-columns: repeat(4, 1fr); } }
.plan { display: flex; flex-direction: column; padding: 0; overflow: hidden; height: 100%; }
.plan__head { padding: 26px 26px 20px; border-bottom: 1px solid var(--line); }
.plan__head small { display: block; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.plan__head h3 { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; margin: 4px 0 0; }
.plan__meter { height: 6px; border-radius: 99px; background: var(--line); margin-top: 16px; overflow: hidden; }
.plan__meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--sky), var(--brand)); }
.plan__body { padding: 22px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.plan__list { list-style: none; display: grid; gap: 10px; margin-bottom: 26px; font-size: 15px; }
.plan__list li { display: flex; align-items: center; gap: 10px; }
.plan__list .icon { width: 20px; height: 20px; }
.plan__list .on { color: var(--ink-2); font-weight: 600; }
.plan__list .on .icon { color: var(--green); }
.plan__list .off { color: #a2afc0; }
.plan__list .off .icon { color: #cfd8e3; }
.plan .btn { margin-top: auto; }
.plan--featured { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.plan--featured .plan__head { background: linear-gradient(160deg, var(--navy-900), var(--brand-600)); border: 0; }
.plan--featured .plan__head h3 { color: #fff; }
.plan--featured .plan__head small { color: #9fc6ea; }
.plan--featured .plan__meter { background: rgba(255, 255, 255, .15); }
.plan--featured .plan__meter span { background: linear-gradient(90deg, var(--accent), #ffc979); }
.plan__badge { position: absolute; top: 18px; right: 18px; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--accent); color: #1b1203; padding: 5px 10px; border-radius: 999px; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow); }
.form-card h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.form-grid { display: grid; gap: 18px 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label, .field .label { display: block; font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.field label .req { color: #dc2626; }
.input, .field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 13px 16px; font-size: 16px; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s; -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 150px; resize: vertical; }
.field select {
  padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%235a6a80' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(27, 95, 174, .12); }
.field.has-error input, .field.has-error select, .field.has-error textarea, .field.has-error .file-drop { border-color: #dc2626; }
.field-error { display: block; color: #dc2626; font-size: 13.5px; margin-top: 6px; font-weight: 500; }
.file-drop {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 14px;
  border: 1.5px dashed #c3cfdf; background: var(--surface); cursor: pointer; transition: border-color .2s, background .2s;
}
.file-drop:hover, .file-drop:focus-within { border-color: var(--brand); background: var(--brand-50); }
.file-drop input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.file-drop b { display: block; color: var(--ink); font-size: 15px; }
.file-drop small { color: var(--muted); font-size: 13.5px; }
.form-note { font-size: 13.5px; color: var(--muted); margin: 0; }
/* Google's box is a fixed 304px wide, so scale it down on the narrowest phones */
.form-grid > * { min-width: 0; }
.recaptcha { height: 78px; overflow: hidden; }
.recaptcha .g-recaptcha { width: 304px; transform-origin: left top; }
@media (max-width: 410px) { .recaptcha { height: 69px; } .recaptcha .g-recaptcha { transform: scale(.88); } }
@media (max-width: 365px) { .recaptcha { height: 60px; } .recaptcha .g-recaptcha { transform: scale(.76); } }
@media (max-width: 328px) { .recaptcha { height: 55px; } .recaptcha .g-recaptcha { transform: scale(.7); } }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; font-size: 15px; margin-bottom: 20px; }
.alert--error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert--success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.alert .icon { margin-top: 2px; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 992px) { .contact-layout { grid-template-columns: .85fr 1.15fr; gap: 40px; } }
.contact-panel { background: linear-gradient(160deg, var(--navy-900), var(--navy-700)); color: #b4c3da; border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 44px); position: relative; overflow: hidden; }
.contact-panel::after { content: ""; position: absolute; width: 320px; height: 320px; right: -120px; bottom: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(56, 169, 224, .35), transparent 70%); }
.contact-panel h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.contact-items { display: grid; gap: 22px; margin: 32px 0; position: relative; z-index: 1; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-item .icon-tile { background: rgba(255, 255, 255, .1); color: #fff; width: 48px; height: 48px; border-radius: 14px; }
.contact-item .icon-tile .icon { width: 22px; height: 22px; }
.contact-item h3 { color: #fff; font-size: 1rem; margin: 0 0 4px; }
.contact-item p, .contact-item a { margin: 0; color: #b4c3da; font-size: 15px; }
.contact-item a:hover { color: #fff; }
.socials { display: flex; gap: 10px; position: relative; z-index: 1; }
.socials a { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #fff; transition: background .2s, transform .2s; }
.socials a:hover { background: var(--accent); color: #1b1203; transform: translateY(-2px); }
.socials .icon { width: 20px; height: 20px; }
.map-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); height: clamp(320px, 45vw, 440px); background: var(--surface); }
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; background: rgba(5, 15, 34, .6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fadeIn .25s ease; }
.modal[hidden] { display: none; }
.modal__box { position: relative; width: min(440px, 100%); background: #fff; border-radius: 24px; padding: 36px 28px 28px; text-align: center; box-shadow: var(--shadow-lg); animation: popIn .35s var(--ease); }
.modal__icon { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; }
.modal__icon .icon { width: 36px; height: 36px; }
.modal__icon--ok { background: #dcfce7; color: var(--green); }
.modal__icon--err { background: #fee2e2; color: #dc2626; }
.modal h2 { font-size: 1.5rem; margin-bottom: 8px; }
.modal p { color: var(--muted); margin-bottom: 24px; }
.modal__close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 10px; border: 0; background: var(--surface); cursor: pointer; display: grid; place-items: center; color: var(--muted); }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: translateY(16px) scale(.97); } }

/* ---------- Policy ---------- */
.policy { max-width: 820px; margin-inline: auto; }
.policy h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.policy h3 { font-size: 1.2rem; margin-top: 2em; padding-top: 1.2em; border-top: 1px solid var(--line); }
.policy p, .policy li { color: var(--ink-2); font-size: 1.04rem; }
.policy ul { padding-left: 1.3em; display: grid; gap: 8px; margin-bottom: 1em; }
.policy .policy-intro { font-size: 1.12rem; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { padding: 0 0 clamp(56px, 8vw, 96px); }
.cta-band__box {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; gap: 24px; align-items: center; grid-template-columns: 1fr;
  padding: clamp(32px, 5vw, 56px); border-radius: var(--radius-lg);
  background: radial-gradient(600px 300px at 100% 0, rgba(245, 154, 35, .35), transparent 60%), linear-gradient(135deg, var(--brand-600), var(--navy-800));
  color: #c6d3e8;
}
.cta-band__box::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35; background-image: radial-gradient(rgba(255, 255, 255, .25) 1px, transparent 1px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000); mask-image: linear-gradient(90deg, transparent 30%, #000); }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.5rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: 10px; }
.cta-band p { margin: 0; font-size: 1.05rem; }
.cta-band p a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 900px) { .cta-band__box { grid-template-columns: 1fr auto; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #93a5c1; font-size: 15px; padding-top: clamp(56px, 7vw, 84px); }
.footer-grid { display: grid; gap: 36px 28px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; } }
.footer-brand { grid-column: 1 / -1; }
@media (max-width: 899px) { .footer-grid > div:last-child { grid-column: 1 / -1; } }
@media (min-width: 900px) { .footer-brand { grid-column: auto; } }
.footer-brand img { height: 56px; width: auto; filter: brightness(0) invert(1); margin-bottom: 18px; }
.footer-brand p { max-width: 320px; margin-bottom: 18px; text-align: justify; }
.site-footer h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: #fff; margin-bottom: 18px; font-weight: 700; }
.footer-links { list-style: none; display: grid; gap: 10px; }
.footer-links a { color: #93a5c1; display: inline-flex; align-items: center; gap: 8px; }
.footer-links a:hover { color: #fff; }
.footer-contact { list-style: none; display: grid; gap: 14px; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact .icon { width: 19px; height: 19px; color: var(--sky); margin-top: 3px; }
.footer-contact a { color: #c6d3e8; }
.footer-contact a:hover { color: #fff; }
.footer-contact small { display: block; color: #6f83a3; font-size: 13px; }
.footer-bottom { margin-top: clamp(40px, 6vw, 64px); border-top: 1px solid rgba(255, 255, 255, .08); padding: 22px 0; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: center; font-size: 14px; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #c6d3e8; }
.footer-bottom a:hover { color: #fff; }
.footer-bottom nav { display: flex; gap: 20px; }

.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 48px; height: 48px; border-radius: 14px; border: 0;
  background: var(--brand); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .3s, transform .3s, background .2s;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--brand-600); }
.to-top .icon { width: 22px; height: 22px; }

/* ---------- Phone and tablet refinements ---------- */
h1, h2, h3, h4 { overflow-wrap: break-word; }
/* Long buttons and headings must not stretch a grid column past the screen */
.split > *, .hero__grid > *, .cta-band__box > *, .contact-layout > *, .detail-layout > *, .article-layout > *,
.grid-2 > *, .grid-3 > *, .grid-4 > *, .team-grid > *, .client-grid > *, .flow > *, .product-row > * { min-width: 0; }

/* Tablet: use the width instead of stacking everything */
@media (max-width: 1199px) {
  .link-arrow { min-height: 44px; }
  .footer-links a { padding-block: 3px; }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .site-header__inner { gap: 12px; }
  .brand img { height: 40px; }
  .nav a { padding: 9px 9px; font-size: 14px; }
  .header-cta { min-height: 42px; padding: 9px 16px; font-size: 14px; }
}
@media (min-width: 768px) and (max-width: 1099px) {
  .bento-cta { grid-column: 1 / -1; }
}
@media (min-width: 640px) and (max-width: 899px) {
  .blog-card--featured { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  .blog-card--featured .blog-card__img { aspect-ratio: auto; height: 100%; }
  .product-row { grid-template-columns: 220px 1fr; gap: 28px; }
  .product-row:nth-child(even) { grid-template-columns: 1fr 220px; }
  .product-row:nth-child(even) .product-row__logo { order: 2; }
  .product-row__logo { padding: 18px; }
}
@media (min-width: 640px) and (max-width: 991px) {
  .post-related .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .post-related .blog-card__body { padding: 16px; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .post-layout .sidebar, .detail-layout .sidebar { grid-template-columns: 1fr 1fr; }
  .post-layout .sidebar-box:only-child { grid-column: 1 / -1; }
}
@media (min-width: 700px) and (max-width: 991px) {
  .hero__grid { grid-template-columns: 1.2fr .8fr; gap: 16px; }
  .hero__portrait { width: 100%; }
  .hero__portrait-bg { width: 92%; }
  .float-card--a { left: -8px; }
}

/* Phone */
@media (max-width: 767px) {
  .section { padding-block: 56px; }
  .section--tight { padding-block: 44px; }
}
@media (max-width: 575px) {
  /* Hero stats: avatars on their own row, the two numbers side by side */
  .hero__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; align-items: start; }
  .hero__stat:first-child { display: contents !important; }
  .hero__stat span { display: block; line-height: 1.4; }
  .hero__stat b span { display: inline; }
  .avatar-stack { grid-column: 1 / -1; }
  .btn { white-space: normal; text-align: center; padding-inline: 20px; }
  .btn-row .btn { flex: 1 1 100%; }
  .post-actions .btn { flex: 1 1 auto; }
  .benefit-pills li { width: 100%; border-radius: 14px; align-items: flex-start; }
  .benefit-pills .icon { margin-top: 2px; }
  .product-card__logo { padding: 24px; }
  .product-card__body { padding: 20px; }
  .card { padding: 22px; }
  .card.blog-card, .card.product-card, .plan.card { padding: 0; }
  .blog-card__body { padding: 18px 20px 20px; }
  .media-stack__badge { left: 12px; bottom: 10px; padding: 12px 16px; }
  .media-stack__badge b { font-size: 1.9rem; }
  .media-stack__badge span { font-size: 13px; }
  .team-grid { gap: 14px; }
  .team-card__body { padding: 12px 14px 14px; }
  .team-card--join { padding: 18px; }
  .team-card--join h3 { font-size: 1.15rem; }
  .client-grid { --gap: 12px; }
  .client-card { padding: 16px 10px 14px; }
  .client-card__logo { height: 76px; }
  .client-card__logo img { max-height: 70px; max-width: 90%; }
  .client-card__name { overflow-wrap: anywhere; }
  .footer-bottom { justify-content: center; text-align: center; }
  .footer-bottom nav { flex-wrap: wrap; justify-content: center; }
  .to-top { right: 14px; bottom: 14px; width: 44px; height: 44px; }
}
@media (max-width: 359px) {
  :root { --gutter: 16px; }
  .flow { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.3rem; }
}

/* ---------- Reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; }
}

@media print {
  .site-header, .site-footer, .cta-band, .to-top, .drawer { display: none !important; }
}
