/* ============================================================
   AI Service Corp — Corporate Website Stylesheet
   Modern corporate blue theme · shared across all pages
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --navy-950: #061633;
  --navy-900: #0a1f45;
  --navy-800: #0f2a5c;
  --navy-700: #143a7d;
  --blue-700: #1448c9;
  --blue-600: #1b5bf7;
  --blue-500: #2e6bff;
  --blue-400: #5b8cff;
  --blue-200: #bcd2ff;
  --sky-100: #e8f0fe;
  --sky-50:  #f4f8ff;
  --ink:     #13223f;
  --muted:   #5a6b8c;
  --line:    #dde7f8;
  --white:   #ffffff;
  --green:   #0eaf7d;
  --amber:   #f5a623;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 10px rgba(10, 31, 69, 0.06);
  --shadow-md: 0 10px 30px rgba(10, 31, 69, 0.10);
  --shadow-lg: 0 24px 60px rgba(10, 31, 69, 0.16);

  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Plus Jakarta Sans", var(--font-sans);
  --header-h: 74px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--blue-700); }
p { margin: 0 0 1.1em; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.18;
  color: var(--navy-900);
  margin: 0 0 0.55em;
  letter-spacing: -0.02em;
  font-weight: 800;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.28rem; letter-spacing: -0.015em; }
ul { margin: 0 0 1.1em; padding-left: 1.2em; }
::selection { background: var(--blue-500); color: #fff; }

.skip-link {
  position: absolute; left: -999px; top: 8px; background: var(--navy-900);
  color: #fff; padding: 8px 16px; border-radius: 8px; z-index: 200;
}
.skip-link:focus { left: 8px; }

.container { width: min(1200px, 92%); margin-inline: auto; }

.section { padding: clamp(60px, 8vw, 108px) 0; }
.section-tight { padding: clamp(36px, 5vw, 64px) 0; }
.section-alt { background: var(--sky-50); }
.section-blue { background: linear-gradient(135deg, var(--navy-900), var(--blue-700)); color: #dbe6ff; }
.section-blue h2, .section-blue h3 { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--blue-600);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--blue-500); border-radius: 2px; }
.eyebrow.center::after { content: ""; width: 22px; height: 2px; background: var(--blue-500); border-radius: 2px; }

.lead { font-size: 1.13rem; color: var(--muted); max-width: 720px; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.muted { color: var(--muted); }

.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 52px); }
.section-head.center { margin-inline: auto; }
.section-blue .eyebrow, .hero .eyebrow { color: #9cc0ff; }
.section-blue .eyebrow::before, .hero .eyebrow::before { background: var(--blue-400); }
.section-blue .muted { color: #b9c8e8; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border-radius: 999px;
  font-weight: 700; font-size: 0.98rem; font-family: var(--font-sans);
  border: 2px solid transparent; cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue-600); color: #fff; box-shadow: 0 8px 20px rgba(27, 91, 247, 0.32); }
.btn-primary:hover { background: var(--blue-700); color: #fff; box-shadow: 0 10px 26px rgba(27, 91, 247, 0.4); transform: translateY(-1px); }
.btn-outline { border-color: var(--blue-500); color: var(--blue-600); background: transparent; }
.btn-outline:hover { background: var(--blue-600); color: #fff; transform: translateY(-1px); }
.btn-light { background: #fff; color: var(--navy-900); }
.btn-light:hover { background: var(--sky-100); color: var(--navy-900); transform: translateY(-1px); }
.btn-ghost-light { border-color: rgba(255,255,255,0.5); color: #fff; background: transparent; }
.btn-ghost-light:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue-500), var(--navy-800));
  display: grid; place-items: center;
  box-shadow: 0 6px 16px rgba(27, 91, 247, 0.35);
  color: #fff; font-weight: 800; font-size: 0.98rem; font-family: var(--font-display);
  letter-spacing: -0.02em;
}
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.22rem; color: var(--navy-900); letter-spacing: -0.02em; line-height: 1; }
.brand-name em { font-style: normal; color: var(--blue-600); }
.brand-sub { display: block; font-family: var(--font-sans); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

.main-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; align-items: center; }
.main-nav a {
  display: block; padding: 10px 14px; border-radius: 9px;
  color: var(--ink); font-weight: 600; font-size: 0.97rem;
  transition: background 0.16s ease, color 0.16s ease;
}
.main-nav a:hover { background: var(--sky-100); color: var(--blue-700); }
.main-nav a.active { color: var(--blue-600); }
.main-nav a.active::after { content: ""; display: block; height: 2px; border-radius: 2px; background: var(--blue-500); margin-top: 4px; }
.nav-cta { margin-left: 10px; }
.header-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
  width: 46px; height: 46px; border-radius: 10px; color: var(--navy-900);
}
.nav-toggle:hover { background: var(--sky-100); }
.nav-toggle svg { width: 26px; height: 26px; }
.nav-toggle .icon-close { display: none; }
body.nav-open .nav-toggle .icon-close { display: block; }
body.nav-open .nav-toggle .icon-open { display: none; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(91, 140, 255, 0.35), transparent 60%),
    radial-gradient(800px 500px at -10% 30%, rgba(27, 91, 247, 0.30), transparent 55%),
    linear-gradient(135deg, var(--navy-950) 0%, var(--navy-900) 45%, var(--navy-800) 100%);
  color: #e7eeff;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 30% 20%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 20%, #000 0%, transparent 70%);
}
.hero-inner {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 64px); align-items: center;
  padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 6vw, 80px);
}
.hero h1 { color: #fff; margin-bottom: 0.5em; }
.hero h1 .accent { color: transparent; background: linear-gradient(90deg, #7fb0ff, #4d8dff 60%, #9cc0ff); -webkit-background-clip: text; background-clip: text; }
.hero p.sub { color: #c3d3f2; font-size: 1.16rem; max-width: 560px; margin-bottom: 1.8em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 22px; color: #9fb4dc; font-size: 0.94rem; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 18px; height: 18px; color: var(--green); }
.hero-meta .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(14, 175, 125, 0.25); }

.hero-visual { position: relative; }
.code-card {
  background: rgba(13, 32, 71, 0.85);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px; padding: 6px 0 0;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.04) inset;
  overflow: hidden;
  backdrop-filter: blur(6px);
}
.code-card .win {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.code-card .win .dots { display: flex; gap: 6px; }
.code-card .win .dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.code-card .win .dots i:nth-child(1) { background: #ff5f57; }
.code-card .win .dots i:nth-child(2) { background: #febc2e; }
.code-card .win .dots i:nth-child(3) { background: #28c840; }
.code-card .win .fname { font-size: 0.8rem; color: #8fa6d1; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; margin-left: 6px; }
.code-card pre { margin: 0; padding: 18px 20px 22px; overflow-x: auto; font-size: 0.82rem; line-height: 1.75; color: #d6e2ff; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.tok-k { color: #7fb0ff; } .tok-t { color: #6ee7c8; } .tok-s { color: #ffca85; }
.tok-c { color: #5f7299; font-style: italic; } .tok-f { color: #c7a6ff; } .tok-n { color: #ff9e9e; }

.float-card {
  position: absolute; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg);
  padding: 13px 18px; display: flex; align-items: center; gap: 12px;
  font-size: 0.9rem; color: var(--ink);
  animation: floaty 6s ease-in-out infinite;
}
.float-card .ic {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center; color: #fff;
}
.float-card strong { display: block; font-size: 1.05rem; color: var(--navy-900); line-height: 1.2; }
.float-card small { color: var(--muted); }
.float-1 { top: -22px; left: -34px; }
.float-2 { bottom: -26px; right: -16px; animation-delay: 2.2s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ---------- Trust / stat strip ---------- */
.trust-strip { background: #fff; border-bottom: 1px solid var(--line); padding: 26px 0; }
.trust-strip .labels { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 30px; align-items: center; color: #93a3c4; font-weight: 700; font-size: 0.92rem; letter-spacing: 0.04em; }
.trust-strip .labels span { display: inline-flex; align-items: center; gap: 10px; opacity: 0.85; }
.trust-strip svg { width: 20px; height: 20px; color: var(--blue-400); }

.stats-band {
  background: linear-gradient(120deg, var(--blue-700), var(--navy-800));
  color: #dbe6ff;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; padding: clamp(34px, 4vw, 54px) 0; }
.stat { text-align: center; padding: 6px 12px; }
.stat .num { font-family: var(--font-display); font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 800; color: #fff; line-height: 1.1; }
.stat .num small { font-size: 0.6em; color: #9cc0ff; }
.stat .lbl { color: #b9c8e8; font-size: 0.94rem; margin-top: 4px; }

/* ---------- Cards / grids ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(22px, 3vw, 36px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 30px); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 70px); align-items: center; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--blue-200); }
.card .card-icon {
  width: 54px; height: 54px; border-radius: 14px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--sky-100), #dbe8ff);
  color: var(--blue-600); display: grid; place-items: center; margin-bottom: 20px;
}
.card .card-icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 0.4em; }
.card p { color: var(--muted); font-size: 0.97rem; }
.card .more { margin-top: auto; padding-top: 16px; font-weight: 700; font-size: 0.95rem; display: inline-flex; align-items: center; gap: 6px; }
.card .more svg { width: 16px; height: 16px; transition: transform 0.18s ease; }
.card:hover .more svg { transform: translateX(4px); }
.card-link { text-decoration: none; color: inherit; }
.card-link:hover { color: inherit; }

.icon-tile {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--blue-600); color: #fff; box-shadow: 0 6px 14px rgba(27,91,247,0.3);
}
.icon-tile svg { width: 22px; height: 22px; }
.icon-tile.sky { background: linear-gradient(135deg, var(--sky-100), #dbe8ff); color: var(--blue-600); box-shadow: none; }

/* Services overview list rows */
.service-row {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; align-items: start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 30px; transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.service-row:hover { box-shadow: var(--shadow-md); border-color: var(--blue-200); transform: translateY(-3px); }
.service-row h3 { margin-bottom: 0.35em; }
.service-row p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.service-row .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tag {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  background: var(--sky-100); color: var(--blue-700);
  font-size: 0.8rem; font-weight: 600;
}
.tag.alt { background: #eaf7f2; color: #0b8a63; }
.tag.warm { background: #fdf3e0; color: #a86a08; }

/* Process steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.step .n {
  counter-increment: step; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--navy-900); color: #fff; font-weight: 800; font-family: var(--font-display); margin-bottom: 16px;
}
.step .n::after { content: counter(step, decimal-leading-zero); }
.step h3 { font-size: 1.1rem; }
.step p { color: var(--muted); font-size: 0.94rem; margin: 0; }

/* Check list */
.checks { list-style: none; padding: 0; margin: 0 0 8px; }
.checks li {
  position: relative; padding-left: 34px; margin-bottom: 15px;
  display: flex; align-items: flex-start; gap: 12px;
}
.checks svg {
  width: 20px; height: 20px; flex-shrink: 0; margin-top: 3px;
  color: var(--green); stroke-width: 3;
}
.checks strong { color: var(--navy-900); }

/* Tech chips */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 11px 22px; font-weight: 700; color: var(--navy-800); font-size: 0.97rem;
  box-shadow: var(--shadow-sm); display: inline-flex; align-items: center; gap: 10px;
}
.chip svg { width: 20px; height: 20px; color: var(--blue-600); }
.chip:hover { border-color: var(--blue-200); transform: translateY(-2px); transition: 0.18s ease; }

/* Marquee */
.marquee { overflow: hidden; position: relative; }
.marquee-track { display: flex; gap: 16px; width: max-content; animation: marquee 30s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-item {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 12px 24px; color: var(--muted); font-weight: 600; font-size: 0.98rem;
}
.marquee-item svg { width: 22px; height: 22px; color: var(--blue-500); }

/* Testimonials */
.testimonial { display: flex; flex-direction: column; }
.testimonial .quote { font-size: 1.03rem; color: var(--ink); line-height: 1.7; }
.testimonial .quote-mark { color: var(--blue-200); font-size: 3.4rem; line-height: 0.5; font-family: Georgia, serif; display: block; margin-bottom: 14px; }
.testimonial .who { display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); }
.testimonial .who .avatar { width: 46px; height: 46px; }
.avatar {
  width: 100%; height: 100%; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-weight: 800;
  font-family: var(--font-display); font-size: 1.05rem;
  background: linear-gradient(135deg, var(--blue-500), var(--navy-700));
}
.avatar.one { background: linear-gradient(135deg, #3d7bff, #123d92); }
.avatar.two { background: linear-gradient(135deg, #0ea5e9, #1e40af); }
.avatar.three { background: linear-gradient(135deg, #6366f1, #1e1b4b); }
.avatar.four { background: linear-gradient(135deg, #0eaf7d, #064e3b); }
.avatar.five { background: linear-gradient(135deg, #f59e0b, #92400e); }
.avatar.six { background: linear-gradient(135deg, #ec4899, #831843); }
.testimonial .who strong { display: block; color: var(--navy-900); }
.testimonial .who small { color: var(--muted); }

/* Team avatars (gradient variants also usable on avatar-lg) */
.member .avatar-lg.one { background: linear-gradient(135deg, #3d7bff, #123d92); }
.member .avatar-lg.two { background: linear-gradient(135deg, #0ea5e9, #1e40af); }
.member .avatar-lg.three { background: linear-gradient(135deg, #6366f1, #1e1b4b); }
.member .avatar-lg.four { background: linear-gradient(135deg, #0eaf7d, #064e3b); }
.member .avatar-lg.five { background: linear-gradient(135deg, #f59e0b, #92400e); }
.member .avatar-lg.six { background: linear-gradient(135deg, #ec4899, #831843); }

/* Stats inside about */
.about-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 40px; }
.about-stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 22px; text-align: center; box-shadow: var(--shadow-sm); }
.about-stat .num { font-size: 1.9rem; font-weight: 800; font-family: var(--font-display); color: var(--blue-600); }
.about-stat .lbl { font-size: 0.9rem; color: var(--muted); }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; }
.member { text-align: center; }
.member .avatar-lg {
  width: 128px; height: 128px; border-radius: 24px; margin: 0 auto 16px;
  display: grid; place-items: center; color: #fff;
  font-family: var(--font-display); font-weight: 800; font-size: 2.3rem;
  box-shadow: var(--shadow-md);
}
.member h3 { margin-bottom: 0.15em; font-size: 1.12rem; }
.member .role { color: var(--blue-600); font-weight: 700; font-size: 0.9rem; }
.member .bio { color: var(--muted); font-size: 0.9rem; margin-top: 8px; }

/* Values */
.value-card { text-align: center; padding: 30px 22px; }
.value-card .card-icon { margin-inline: auto; }
.value-card h3 { font-size: 1.1rem; }
.value-card p { font-size: 0.93rem; }

/* Timeline (culture) */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 26px 44px; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid var(--blue-500); }
.timeline li:last-child { padding-bottom: 0; }
.timeline .when { color: var(--blue-600); font-weight: 700; font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.08em; }
.timeline h3 { font-size: 1.1rem; margin: 3px 0 6px; }

/* Benefits grid */
.benefit { display: flex; gap: 16px; align-items: flex-start; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.benefit .ic { flex-shrink: 0; }
.benefit h3 { font-size: 1.05rem; margin-bottom: 0.2em; }
.benefit p { margin: 0; color: var(--muted); font-size: 0.93rem; }

/* Jobs list */
.jobs { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); background: #fff; }
.job {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 18px; align-items: center;
  padding: 22px 28px; border-bottom: 1px solid var(--line);
  transition: background 0.15s ease;
}
.job:last-child { border-bottom: 0; }
.job:hover { background: var(--sky-50); }
.job h3 { margin: 0 0 5px; font-size: 1.13rem; }
.job .meta { color: var(--muted); font-size: 0.9rem; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.job .meta span { display: inline-flex; align-items: center; gap: 6px; }
.job .meta svg { width: 15px; height: 15px; color: var(--blue-400); }
.job .btn { padding: 10px 22px; font-size: 0.9rem; }
.job .loc { font-weight: 700; color: var(--green); font-size: 0.85rem; display: inline-flex; align-items: center; gap: 6px; }

/* Blog / insights cards */
.insight-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.insight-card .thumb {
  height: 150px; border-radius: 0; position: relative; overflow: hidden;
  display: grid; place-items: center; color: #fff;
}
.insight-card .thumb svg { width: 44px; height: 44px; opacity: 0.9; }
.insight-card .cat {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: rgba(255,255,255,0.92); color: var(--navy-900);
  font-size: 0.74rem; font-weight: 800; padding: 4px 12px; border-radius: 999px; letter-spacing: 0.04em;
}
.thumb.g1 { background: linear-gradient(135deg, #1b5bf7, #0a1f45); }
.thumb.g2 { background: linear-gradient(135deg, #0ea5e9, #1e3a8a); }
.thumb.g3 { background: linear-gradient(135deg, #4f46e5, #0a1f45); }
.thumb.g4 { background: linear-gradient(135deg, #0eaf7d, #064e3b); }
.thumb.g5 { background: linear-gradient(135deg, #f59e0b, #7c3a12); }
.thumb.g6 { background: linear-gradient(135deg, #ec4899, #6b0f47); }
.insight-card .body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.insight-card .date { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; margin-bottom: 8px; }
.insight-card h3 { font-size: 1.12rem; }
.insight-card p { color: var(--muted); font-size: 0.94rem; flex: 1; }
.insight-card .more { font-weight: 700; font-size: 0.93rem; }

/* Page hero (interior) */
.page-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(700px 340px at 88% -20%, rgba(91,140,255,0.32), transparent 60%),
    linear-gradient(135deg, var(--navy-950), var(--navy-900) 55%, var(--navy-800));
  color: #dbe6ff; padding: clamp(52px, 7vw, 92px) 0 clamp(40px, 5vw, 68px);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; opacity: 0.4;
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse at 20% 0%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 20% 0%, #000, transparent 75%);
}
.page-hero .inner { position: relative; max-width: 860px; }
.page-hero h1 { color: #fff; margin-bottom: 0.35em; }
.page-hero p { color: #c3d3f2; font-size: 1.13rem; max-width: 680px; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 0.86rem; color: #8fa6d1; font-weight: 600; margin-bottom: 18px; }
.breadcrumb a { color: #b9c8e8; }
.breadcrumb svg { width: 14px; height: 14px; }

/* Sidebar layout */
.with-aside { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(30px, 4vw, 56px); align-items: start; }
.aside-sticky { position: sticky; top: calc(var(--header-h) + 24px); }
.contact-card { background: linear-gradient(150deg, var(--navy-900), var(--blue-700)); color: #dbe6ff; border-radius: var(--radius); padding: 32px; }
.contact-card h3 { color: #fff; }
.contact-card p { color: #b9c8e8; font-size: 0.96rem; }
.contact-card .big-email { color: #fff; font-weight: 800; font-size: 1.05rem; word-break: break-word; }
.contact-card .big-email:hover { color: #9cc0ff; }

/* CTA band */
.cta-band {
  background:
    radial-gradient(600px 300px at 85% 0%, rgba(91,140,255,0.35), transparent 60%),
    linear-gradient(120deg, var(--navy-950), var(--blue-700));
  color: #fff; text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #c3d3f2; max-width: 620px; margin-inline: auto; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }

/* Forms */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(26px, 3vw, 40px); box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.form-group { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.form-grid .form-group { margin-bottom: 0; }
.form-grid .full { margin-bottom: 0; }
label { font-weight: 700; font-size: 0.9rem; color: var(--navy-900); }
label .req { color: #e5484d; }
input, select, textarea {
  font: inherit; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 10px;
  padding: 12px 15px; background: #fff; width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(43, 108, 255, 0.14);
}
textarea { resize: vertical; min-height: 130px; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235a6b8c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; padding-right: 42px; }
.form-note { font-size: 0.84rem; color: var(--muted); margin-top: 14px; }
.form-success { display: none; background: #e9f9f3; border: 1px solid #b5e8d4; color: #0b6b4b; border-radius: 12px; padding: 18px 20px; font-weight: 600; margin-bottom: 20px; }
.form-success.show { display: block; }

/* Contact info rows */
.info-row { display: flex; gap: 18px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.info-row:last-child { border-bottom: 0; }
.info-row .ic { flex-shrink: 0; }
.info-row h3 { font-size: 1.02rem; margin: 0 0 3px; }
.info-row p { margin: 0; color: var(--muted); font-size: 0.96rem; }
.info-row a { font-weight: 700; }

/* FAQ */
.faq details {
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
  padding: 0; margin-bottom: 14px; overflow: hidden;
}
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 24px; font-weight: 700; color: var(--navy-900); font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--sky-100); color: var(--blue-600); display: grid; place-items: center; transition: transform 0.2s ease; }
.faq summary .chev svg { width: 15px; height: 15px; }
.faq details[open] summary .chev { transform: rotate(180deg); background: var(--blue-600); color: #fff; }
.faq details .a { padding: 0 24px 22px; color: var(--muted); }
.faq details .a p { margin: 0; }

/* Panel / callout */
.panel { background: var(--sky-50); border: 1px solid var(--line); border-left: 4px solid var(--blue-500); border-radius: 12px; padding: 22px 26px; margin: 22px 0; }
.panel p:last-child { margin-bottom: 0; }

/* Figure / logos note */
.figure-note { color: var(--muted); font-size: 0.9rem; }

/* Footer */
.site-footer { background: var(--navy-950); color: #9fb4dc; padding-top: clamp(50px, 6vw, 80px); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr); gap: 40px; padding-bottom: 46px; }
.site-footer h4 { color: #fff; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.09em; margin-bottom: 20px; }
.site-footer .brand-name { color: #fff; }
.site-footer a { color: #9fb4dc; }
.site-footer a:hover { color: #fff; }
.footer-about p { font-size: 0.94rem; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: 11px; }
.footer-list a { font-size: 0.95rem; }
.footer-contact p { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; font-size: 0.95rem; }
.footer-contact svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--blue-400); margin-top: 3px; }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255,255,255,0.07); color: #dbe6ff; transition: background 0.18s ease, transform 0.18s ease;
}
.socials a:hover { background: var(--blue-600); color: #fff; transform: translateY(-2px); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.09); padding: 22px 0; font-size: 0.88rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom a { margin-left: 18px; }

/* Anchor scroll offset under sticky header */
[id] { scroll-margin-top: calc(var(--header-h) + 14px); }

/* ---------- Overflow hardening ----------
   Allow grid & flex children to shrink below their intrinsic width
   so content never blows out past the viewport on phones. */
.hero-inner > *, .grid-2 > *, .grid-3 > *, .grid-4 > *, .split > *,
.with-aside > *, .stats-grid > *, .steps > *, .team-grid > *,
.about-stats > *, .footer-grid > *, .service-row > *, .job > *,
.form-grid > *, .footer-bottom > *, .header-inner > *, .brand {
  min-width: 0;
}
.code-card .win { min-width: 0; }
.code-card .win .fname {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
html, body { overflow-x: clip; }
@supports not (overflow: clip) { html, body { overflow-x: hidden; } }

/* Keyboard focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--blue-400); outline-offset: 2px; border-radius: 4px;
}

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-card, .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid-4, .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { max-width: 620px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .with-aside { grid-template-columns: minmax(0, 1fr); }
  .aside-sticky { position: static; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .split .swap { order: -1; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
  .service-row { grid-template-columns: minmax(0, 1fr); }
  .nav-toggle { display: grid; place-items: center; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 99;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    max-height: 0; overflow: hidden; transition: max-height 0.28s ease;
  }
  body.nav-open .main-nav { max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; padding: 14px 5vw 22px; }
  .main-nav a { padding: 13px 14px; font-size: 1.05rem; }
  .main-nav a.active::after { display: none; }
  .main-nav a.active { background: var(--sky-100); }
  .nav-cta { margin: 8px 0 0; }
  .header-actions .btn-header { display: none; }
  .float-1 { left: -6px; }
  .float-2 { right: -4px; }
}
@media (max-width: 640px) {
  .brand-name { font-size: 1.08rem; }
  .brand-sub { display: none; }
  .header-inner { gap: 12px; }
  .grid-2, .grid-3, .grid-4, .team-grid, .steps { grid-template-columns: minmax(0, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .job { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .hero-meta { gap: 14px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .trust-strip .labels { justify-content: center; }
  .footer-bottom { justify-content: center; text-align: center; }
}
