/* =========================================================
   Zoftcares.com — new homepage preview (Cloud & AI first)
   ========================================================= */
:root {
  --brand-navy: #2F2E79;
  --brand-blue: #0064E1;
  --brand-blue-2: #2284FF;
  --brand-violet: #7B5CFF;
  --brand-cyan: #22C3F0;
  --accent: #F49819;

  --night: #070B1A;      /* hero / dark sections */
  --night-2: #0E1430;
  --ink: #12152A;
  --text: #2B3140;
  --muted: #5B6475;
  --line: #E3E7EF;
  --bg: #FFFFFF;
  --bg-soft: #F5F7FB;

  --font: "Banter Grotesk", "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 12px 34px rgba(7, 11, 26, .08);
  --container: 1560px;   /* wide layout: uses large screens */
  --gutter: clamp(16px, 4vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--text); background: var(--bg); }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 4.6vw, 4.9rem); font-weight: 800; letter-spacing: -.025em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--brand-blue); }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: 999px; font: 600 1rem/1.2 var(--font); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 10px 18px; font-size: .92rem; }
.btn-primary { background: linear-gradient(135deg, var(--brand-blue), var(--brand-violet)); color: #fff; box-shadow: 0 8px 24px rgba(0, 100, 225, .35); }
.btn-primary:hover { box-shadow: 0 12px 30px rgba(0, 100, 225, .45); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .04); }
.btn-ghost:hover { border-color: #fff; }
.btn-light { background: #fff; color: var(--brand-navy); }
.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .2s ease, box-shadow .2s ease; }
.site-header.scrolled { background: rgba(255, 255, 255, .96); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(8px); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 76px; }
.logo { display: block; flex: 0 0 auto; }
.logo img { height: 46px; width: auto; }
.logo-dark { display: none !important; }
.site-header.scrolled .logo-light { display: none !important; }
.site-header.scrolled .logo-dark { display: block !important; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: rgba(255, 255, 255, .85); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: #fff; }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--brand-cyan); padding-bottom: 4px; }
.site-header.scrolled .nav a:not(.btn) { color: var(--text); }
.site-header.scrolled .nav a:not(.btn):hover, .site-header.scrolled .nav a[aria-current="page"] { color: var(--brand-blue); }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 10px; }
.nav-toggle span:not(.sr-only) { display: block; height: 2px; margin: 5px 0; background: #fff; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.site-header.scrolled .nav-toggle span:not(.sr-only) { background: var(--ink); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--night); color: #C5CCE6; padding: 150px 0 56px; }
.hero::before { /* subtle grid */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 30%, transparent 75%);
}
.hero-glow { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(520px 420px at 78% 32%, rgba(123, 92, 255, .35), transparent 70%),
    radial-gradient(620px 460px at 58% 8%, rgba(0, 100, 225, .45), transparent 70%),
    radial-gradient(420px 320px at 10% 90%, rgba(34, 195, 240, .16), transparent 70%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.25fr .85fr; grid-template-areas: "copy badge" "copy panel"; column-gap: clamp(32px, 5vw, 96px); row-gap: 24px; align-items: center; }
.hero-copy { grid-area: copy; }
.hero-panel { grid-area: panel; }
.hero h1 { color: #fff; margin-bottom: 20px; }
.grad { background: linear-gradient(90deg, var(--brand-cyan), var(--brand-blue-2) 45%, var(--brand-violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.05rem, 1.2vw, 1.3rem); max-width: 640px; color: #B7C0E0; margin-bottom: 28px; }
.hero-badge { grid-area: badge; justify-self: end; align-self: end; width: 100%; max-width: 640px; display: flex; align-items: center; gap: 22px; }
.hero-badge img { width: clamp(96px, 8vw, 124px); height: auto; flex: 0 0 auto; filter: drop-shadow(0 8px 24px rgba(255, 153, 0, .25)); }
.hero-badge-kicker { display: block; margin-bottom: 4px; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #FF9900; }
.hero-badge strong { display: block; color: #fff; font-size: clamp(1.2rem, 1.6vw, 1.6rem); font-weight: 700; line-height: 1.2; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.tagline { margin: 32px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; font-size: clamp(1.25rem, 2vw, 1.9rem); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; line-height: 1; }
.tl-word { position: relative; color: #5B6796; padding-bottom: 10px; animation: tl-word 4.5s ease-in-out infinite; animation-delay: calc(var(--i) * 1.5s); }
.tl-word::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--brand-cyan), var(--brand-violet)); transform: scaleX(0); transform-origin: left; animation: tl-bar 4.5s ease-in-out infinite; animation-delay: inherit; }
.tl-link { position: relative; width: clamp(28px, 4vw, 64px); height: 2px; margin-bottom: 10px; background: rgba(255, 255, 255, .14); border-radius: 2px; }
.tl-link::after { content: ""; position: absolute; top: 50%; left: 0; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--brand-cyan); box-shadow: 0 0 12px 3px rgba(34, 195, 240, .7); opacity: 0; animation: tl-dot 4.5s linear infinite; animation-delay: calc(var(--i) * 1.5s + .6s); }
@keyframes tl-word {
  0%, 36%, 100% { color: #5B6796; text-shadow: none; }
  6%, 30% { color: #fff; text-shadow: 0 0 28px rgba(34, 195, 240, .55); }
}
@keyframes tl-bar {
  0%, 36%, 100% { transform: scaleX(0); }
  8%, 30% { transform: scaleX(1); }
}
@keyframes tl-dot {
  0% { left: 0; opacity: 0; }
  3% { opacity: 1; }
  20% { left: 100%; opacity: 1; }
  24%, 100% { left: 100%; opacity: 0; }
}

.hero-panel { position: relative; border: 1px solid rgba(255, 255, 255, .12); border-radius: 20px; background: linear-gradient(180deg, rgba(20, 28, 64, .85), rgba(11, 16, 40, .9)); box-shadow: 0 30px 80px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .06); overflow: hidden; }
.panel-head { display: flex; align-items: center; gap: 6px; padding: 14px 18px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.panel-head .dot { width: 10px; height: 10px; border-radius: 50%; background: #2A3460; }
.panel-head .dot:first-child { background: #FF5F57; } .panel-head .dot:nth-child(2) { background: #FEBC2E; } .panel-head .dot:nth-child(3) { background: #28C840; }
.panel-title { margin-left: 10px; font: 500 .8rem/1 ui-monospace, "SFMono-Regular", Consolas, monospace; color: #7D88B5; }
.panel-list { list-style: none; margin: 0; padding: 10px 18px; }
.panel-list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; color: #DDE3F7; font-size: .95rem; border-bottom: 1px dashed rgba(255, 255, 255, .08); }
.panel-list li:last-child { border-bottom: 0; }
.pill { flex: 0 0 86px; text-align: center; padding: 4px 0; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.pill-blue { background: rgba(34, 132, 255, .16); color: #6FB0FF; }
.pill-violet { background: rgba(123, 92, 255, .18); color: #A995FF; }
.pill-teal { background: rgba(34, 195, 240, .15); color: #6BDDF8; }
.pill-amber { background: rgba(244, 152, 25, .16); color: #FFB95A; }
.pill-pink { background: rgba(236, 72, 153, .16); color: #F58BC2; }
.panel-foot { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .8rem; color: #8F99C2; }
.status { width: 8px; height: 8px; border-radius: 50%; background: #28C840; box-shadow: 0 0 0 4px rgba(40, 200, 64, .18); }

.trust { position: relative; list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid rgba(255, 255, 255, .1); border-radius: 18px; background: rgba(255, 255, 255, .035); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.trust li { display: flex; align-items: center; gap: 14px; padding: 18px 22px; }
.trust li + li { border-left: 1px solid rgba(255, 255, 255, .08); }
.trust-icon { flex: 0 0 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(135deg, rgba(34, 195, 240, .16), rgba(123, 92, 255, .24)); color: #8FD8FF; }
.trust-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.trust strong { display: block; color: #fff; font-size: 1.15rem; font-weight: 700; line-height: 1.25; }
.trust li div span { display: block; font-size: .86rem; color: #8F99C2; line-height: 1.35; }

/* ---------- Full-screen home hero ---------- */
.hero-full { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; padding: 104px 0 22px; }
@media (min-width: 1200px) { .hero h1 .grad { white-space: nowrap; } }
.hero-full .hero-grid { flex: 1; align-content: center; }
.hero-full .trust { margin-top: 28px; }
.hero-full .hero-panel { justify-self: end; align-self: start; width: 100%; max-width: 640px; }
.scroll-cue { position: absolute; left: 50%; bottom: 18px; width: 26px; height: 40px; margin-left: -13px; border: 2px solid rgba(255, 255, 255, .3); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.6s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- Division logos (lockups) ---------- */
.lockup { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.45rem; letter-spacing: -.02em; line-height: 1; white-space: nowrap; }
.lockup img { width: 36px; height: 36px; }
.lockup-aitect { color: #0B1630; }
.lockup-aitect em { font-style: normal; color: #2F7BFF; }
.lockup-wabza { color: #514C86; letter-spacing: .02em; }
.logo-img { display: block; height: 36px; width: auto; }
.div-logo { display: flex; align-items: center; height: 44px; }
.div-logo-lg .lockup { font-size: 1.9rem; }
.div-logo-lg .lockup img { width: 48px; height: 48px; }
.div-logo-lg .logo-img { height: 46px; }

/* ---------- Hero: scrolling division logos ---------- */
.ticker { position: relative; margin-top: 26px; }
.ticker-viewport { overflow: hidden; padding: 6px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: flex; width: max-content; }
.ticker-group { display: flex; align-items: center; gap: clamp(48px, 6vw, 96px); padding-right: clamp(48px, 6vw, 96px); }
.ticker-item { display: flex; align-items: center; height: 56px; opacity: .78; transition: opacity .2s ease, transform .2s ease; text-decoration: none; }
.ticker-item:hover, .ticker-item:focus-visible { opacity: 1; transform: translateY(-2px); }
.ticker .lockup { color: #fff; font-size: 1.6rem; }
.ticker .lockup img { width: 40px; height: 40px; }
.ticker .lockup-aitect em { color: #6FB0FF; }
.ticker .logo-img { height: 40px; }
.ticker .logo-img[src*="aigosys"] { height: 44px; }
/* Without JS (or with reduced motion) the logos sit still, centred, no edge fade */
.ticker-viewport:not(.is-moving) { -webkit-mask-image: none; mask-image: none; }
.ticker-viewport:not(.is-moving) .ticker-track { width: auto; justify-content: center; }
.ticker-viewport:not(.is-moving) .ticker-group { flex-wrap: wrap; justify-content: center; row-gap: 16px; padding-right: 0; }
.ticker-viewport.is-moving .ticker-track { animation: ticker var(--ticker-duration, 40s) linear infinite; }
.ticker-viewport.is-moving:hover .ticker-track, .ticker-viewport.is-moving:focus-within .ticker-track { animation-play-state: paused; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--night); color: #C5CCE6; padding: 168px 0 96px; }
.page-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 80% at 70% 20%, #000 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 70% 20%, #000 25%, transparent 75%); }
.page-hero-sm { padding-bottom: 72px; }
.page-hero-inner { position: relative; }
.page-hero h1 { color: #fff; font-size: clamp(2.3rem, 4.6vw, 4.4rem); max-width: 16ch; }
.page-hero .eyebrow { color: var(--brand-cyan); }
.page-hero .lead { margin-bottom: 0; }
.page-hero .hero-actions { margin-top: 28px; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; scroll-margin-top: 70px; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--night); color: #B7C0E0; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }
.section-dark .section-head p { color: #9AA4CC; }
.eyebrow { display: inline-block; margin-bottom: 12px; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--brand-blue); }
.section-dark .eyebrow { color: var(--brand-cyan); }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { position: relative; display: block; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: inherit; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #D3DBEA; }
.card p { margin: 0; color: var(--muted); font-size: .96rem; }
.icon { width: 48px; height: 48px; margin-bottom: 18px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(135deg, rgba(0, 100, 225, .12), rgba(123, 92, 255, .14)); color: var(--brand-blue); }
.icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-accent { background: rgba(244, 152, 25, .14); color: #D97F06; }
.card-link { border-color: rgba(244, 152, 25, .45); background: linear-gradient(180deg, #FFF9F0, #fff 60%); }
.more { display: inline-block; margin-top: 14px; font-weight: 600; font-size: .92rem; color: var(--brand-blue); }
.card-link .more { color: #C76F00; }
.card-dark { background: rgba(255, 255, 255, .03); border-color: rgba(255, 255, 255, .1); }
.card-dark:hover { border-color: rgba(123, 92, 255, .5); box-shadow: 0 16px 40px rgba(0, 0, 0, .35); }
.card-dark p { color: #9AA4CC; }
.card-dark .icon { background: linear-gradient(135deg, rgba(34, 195, 240, .16), rgba(123, 92, 255, .22)); color: #8FD8FF; }

.section-more { text-align: center; margin: 40px 0 0; }
.btn-outline { color: var(--brand-blue); border-color: #C9D6F2; background: #fff; }
.btn-outline:hover { border-color: var(--brand-blue); }
.btn-accent { background: #FF9900; color: #0B1F3A; }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Service detail rows (Cloud / AI pages) ---------- */
.svc-list { display: grid; }
.svc { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 72px); padding: 44px 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.svc:first-child { border-top: 0; padding-top: 0; }
.svc h2 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
.svc-head p { color: var(--muted); font-size: 1.05rem; margin: 0; max-width: 560px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; align-content: start; }
.ticks li { position: relative; padding: 14px 16px 14px 46px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-soft); font-size: .97rem; color: var(--text); }
.ticks li::before { content: ""; position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; background: linear-gradient(135deg, var(--brand-blue), var(--brand-violet)); }
.ticks li::after { content: ""; position: absolute; left: 21px; top: 50%; width: 8px; height: 4px; margin-top: -4px; border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.callout { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 48px; padding: 32px 36px; border-radius: var(--radius); background: linear-gradient(120deg, #0B1F3A, #00187D 60%, #0131B7); color: #C9D4F0; text-decoration: none; }
.callout h3 { color: #fff; font-size: 1.5rem; margin-bottom: 6px; }
.callout p { margin: 0; max-width: 620px; }
.callout .eyebrow { color: #FF9900; }

/* ---------- Divisions ---------- */
.division-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.division { display: flex; gap: 20px; align-items: flex-start; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: inherit; text-decoration: none; position: relative; overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; }
.division::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: linear-gradient(180deg, var(--d), var(--d2)); }
.division:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.div-mark { flex: 0 0 56px; height: 56px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(135deg, var(--d), var(--d2)); color: #fff; font-weight: 800; font-size: 1.15rem; }
.division h3 { margin-bottom: 4px; }
.division p { margin: 0; color: var(--muted); font-size: .95rem; }
.div-url { display: inline-block; margin-top: 10px; font-weight: 600; font-size: .9rem; color: var(--d); }

.division-grid-4 { grid-template-columns: repeat(4, 1fr); }
.division-grid-4 .division { flex-direction: column; gap: 16px; }
.division-rows { display: grid; gap: 24px; }
.division-row { display: grid; grid-template-columns: minmax(260px, .8fr) 1.6fr; gap: clamp(24px, 4vw, 64px); padding: 36px; border: 1px solid var(--line); border-radius: var(--radius); position: relative; overflow: hidden; scroll-margin-top: 90px; }
.division-row::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: linear-gradient(180deg, var(--d), var(--d2)); }
.division-row-head { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; align-self: start; }
.division-row-head h2 { font-size: 1.7rem; margin: 0; }
.division-tag { margin: 0; color: var(--d); font-weight: 600; }
.div-mark-lg { flex-basis: 72px; height: 72px; font-size: 1.5rem; border-radius: 18px; }
.division-row-body > p { font-size: 1.05rem; color: var(--muted); }
.division-row-body .ticks { grid-template-columns: 1fr 1fr; margin-bottom: 22px; }
.btn-division { background: linear-gradient(135deg, var(--d), var(--d2)); color: #fff; }

/* ---------- Work ---------- */
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.case { display: flex; flex-direction: column; min-height: 220px; padding: 28px; border-radius: var(--radius); text-decoration: none; color: #fff; background: linear-gradient(150deg, var(--night-2), #1A2370 60%, #3B2B8F); position: relative; overflow: hidden; transition: transform .18s ease; }
.case:nth-child(2) { background: linear-gradient(150deg, var(--night-2), #0B3A7A 60%, #0E6BA8); }
.case:nth-child(3) { background: linear-gradient(150deg, var(--night-2), #2A1F6B 60%, #6B2F8F); }
.case:hover { transform: translateY(-3px); }
.case h3 { color: #fff; font-size: 1.2rem; margin: 10px 0 auto; }
.case-tag { align-self: flex-start; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.case .more { color: #8FD8FF; margin-top: 22px; }

.case-rows { display: grid; gap: 28px; }
.case-row { display: grid; grid-template-columns: minmax(240px, .7fr) 1.6fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; scroll-margin-top: 90px; }
.case-visual { display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; padding: 28px; color: #fff; min-height: 240px; }
.case-visual .case-tag { margin-bottom: auto; }
.case-visual strong { font-size: clamp(2.6rem, 4vw, 3.6rem); line-height: 1; font-weight: 800; }
.case-visual > span:last-child { color: #BFD0FF; }
.case-v1 { background: linear-gradient(150deg, var(--night-2), #1A2370 60%, #3B2B8F); }
.case-v2 { background: linear-gradient(150deg, var(--night-2), #0B3A7A 60%, #0E6BA8); }
.case-v3 { background: linear-gradient(150deg, var(--night-2), #2A1F6B 60%, #6B2F8F); }
.case-body { padding: 32px 36px; }
.case-body h2 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); }
.case-body p { color: var(--muted); }
.case-body b { color: var(--ink); }
.case-meta { display: grid; grid-template-columns: repeat(3, auto); gap: 8px 28px; margin: 0 0 18px; padding: 14px 0; border-block: 1px solid var(--line); font-size: .9rem; }
.case-meta dt { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.case-meta dd { margin: 0; color: var(--ink); font-weight: 500; }

/* ---------- Blog ---------- */
.post-featured { margin-bottom: 24px; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card { display: flex; flex-direction: column; gap: 10px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: inherit; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #D3DBEA; }
.post-card h3 { margin: 0; font-size: 1.2rem; }
.post-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.post-cat { align-self: flex-start; padding: 4px 12px; border-radius: 999px; background: rgba(0, 100, 225, .08); color: var(--brand-blue); font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.post-card-meta { margin-top: auto; padding-top: 8px; font-size: .84rem; color: var(--muted); }
.post-card-lg { padding: clamp(28px, 4vw, 48px); background: linear-gradient(150deg, var(--night-2), #1A2370 60%, #3B2B8F); border: 0; color: #C5CCE6; }
.post-card-lg h3 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.3rem); max-width: 24ch; }
.post-card-lg p { color: #B7C0E0; font-size: 1.05rem; max-width: 720px; }
.post-card-lg .post-cat { background: rgba(255, 255, 255, .12); color: #fff; }
.post-card-lg .post-card-meta { color: #8F99C2; }
.section-soft .post-card { background: #fff; }

.post-hero h1 { max-width: 24ch; font-size: clamp(2rem, 3.8vw, 3.4rem); }
.post-back { display: table; margin-bottom: 18px; color: #8F99C2; font-size: .9rem; font-weight: 600; text-decoration: none; }
.post-back:hover { color: #fff; }
.post-meta { margin: 6px 0 0; color: #9AA4CC; font-size: .95rem; }

.prose { max-width: 760px; margin: 0 auto; font-size: 1.08rem; line-height: 1.75; color: var(--text); }
.prose h2 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); margin: 2em 0 .6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.2rem; margin: 1.6em 0 .5em; }
.prose p { margin: 0 0 1.1em; }
.prose ul, .prose ol { margin: 0 0 1.3em; padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--brand-blue); }
.prose a { color: var(--brand-blue); }
.prose blockquote { margin: 1.6em 0; padding: 18px 22px; border-left: 4px solid var(--brand-blue); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--bg-soft); color: var(--ink); font-weight: 500; }
.table-wrap { margin: 1.4em 0 1.8em; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.5; }
.prose th, .prose td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose th { background: var(--bg-soft); color: var(--ink); font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; }
.prose tr:last-child td { border-bottom: 0; }
.prose td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.steps span { display: inline-block; margin-bottom: 10px; font-weight: 800; font-size: 1.4rem; background: linear-gradient(90deg, var(--brand-blue), var(--brand-violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.steps p { margin: 0; color: var(--muted); font-size: .94rem; }

/* ---------- CTA ---------- */
.cta-band { padding: 72px 0; background: linear-gradient(120deg, #0B1A5C, var(--brand-blue) 55%, var(--brand-violet)); color: #fff; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: 6px; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.cta-band p { margin: 0; opacity: .85; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(260px, 1fr) 2fr; gap: 24px; align-items: start; }
.contact-card { display: grid; gap: 4px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-title { margin: 4px 12px 2px; font-weight: 700; font-size: 1.1rem; color: var(--ink); }
.contact-sub { margin: 0 12px 12px; font-size: .9rem; color: var(--muted); }
.wa-topics { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 12px 14px; }
.wa-topic { padding: 7px 14px; border: 1px solid #BFEBD0; border-radius: 999px; background: #F1FBF5; color: #0E7A3E; font-size: .86rem; font-weight: 600; text-decoration: none; }
.wa-topic:hover { border-color: #25D366; background: #E3F8EB; }
.btn-wa { margin: 0 12px 6px; background: #25D366; color: #fff; box-shadow: 0 8px 22px rgba(37, 211, 102, .3); }
.btn-wa:hover { background: #1FBE5A; }
.contact-line { display: block; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--ink); font-weight: 600; text-decoration: none; }
.contact-line:hover { background: var(--bg-soft); color: var(--brand-blue); }
.contact-line small { display: block; font-size: .78rem; font-weight: 500; color: var(--muted); }
.office-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.office { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); }
.office h3 { margin: 0 0 6px; font-size: 1rem; color: var(--brand-navy); }
.office p { margin: 0; font-size: .92rem; color: var(--muted); line-height: 1.55; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: #8F99C2; padding: 64px 0 96px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand img { height: 44px; width: auto; margin-bottom: 14px; }
.site-footer a.footer-wa { display: inline-block; margin-top: 6px; color: #4ADE80; font-weight: 600; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 12px; }
.site-footer a { display: block; color: #8F99C2; text-decoration: none; padding: 3px 0; }
.site-footer a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .08); }
.footer-bottom p { margin: 0; }
.footer-bottom nav { display: flex; gap: 18px; }

.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: #25D366; color: #fff; box-shadow: 0 10px 24px rgba(37, 211, 102, .4); }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .card-grid-4, .division-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-full { min-height: 0; }
  .hero-full .hero-panel { justify-self: start; }
  .hero-grid { grid-template-columns: 1fr; grid-template-areas: "badge" "copy" "panel"; }
  .hero-badge { justify-self: start; }
  .scroll-cue { display: none; }
  .svc, .division-row, .case-row { grid-template-columns: 1fr; }
  .case-meta { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-panel { max-width: 560px; }
  .card-grid, .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px; background: #fff; box-shadow: 0 16px 30px rgba(7, 11, 26, .15); display: none; }
  .nav.open { display: flex; }
  .nav a:not(.btn) { color: var(--text) !important; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-cta { margin-top: 14px; }
  .site-header.menu-open { background: #fff; }
  .site-header.menu-open .logo-light { display: none !important; }
  .site-header.menu-open .logo-dark { display: block !important; }
  .site-header.menu-open .nav-toggle span:not(.sr-only) { background: var(--ink); }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .trust li + li { border-left: 0; }
  .trust li:nth-child(even) { border-left: 1px solid rgba(255, 255, 255, .08); }
  .trust li:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .08); }
  .division-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .trust li { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; }
  .trust-icon { flex-basis: auto; width: 38px; height: 38px; }
  .trust strong { font-size: 1.02rem; }
  .trust li div span { font-size: .8rem; }
  .hero-badge { gap: 16px; }
  .hero-badge img { width: 84px; }
  .tagline { flex-wrap: nowrap; font-size: 1.08rem; letter-spacing: .08em; gap: 10px; }
  .tl-link { width: 18px; flex: 0 0 18px; }
  .post-grid { grid-template-columns: 1fr; }
  .prose { font-size: 1.02rem; }
  .prose td:first-child { white-space: normal; }
  .ticker .lockup { font-size: 1.3rem; }
  .ticker .lockup img { width: 32px; height: 32px; }
  .ticker .logo-img { height: 32px; }
  .ticker .logo-img[src*="aigosys"] { height: 36px; }
  .div-logo-lg .lockup { font-size: 1.5rem; }
  .div-logo-lg .logo-img { height: 38px; }
  .card-grid-4, .division-grid-4, .division-row-body .ticks { grid-template-columns: 1fr; }
  .page-hero { padding: 128px 0 64px; }
  .division-row, .case-body { padding: 24px; }
  .callout { padding: 26px 22px; }
  .container { padding: 0 16px; }
  .hero { padding: 120px 0 44px; }
  .section { padding: 64px 0; }
  .card-grid, .card-grid-3, .steps, .office-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
  .pill { flex-basis: 74px; }
  .footer-grid { grid-template-columns: 1fr; }
  .division { padding: 22px; gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-cue span { animation: none; }
  .tl-word, .tl-word::after, .tl-link::after { animation: none; }
  .tl-word { color: #fff; }
  .tl-word::after { transform: scaleX(1); }
  * { transition: none !important; }
}
