:root {
  --bg: #ffffff;
  --bg-soft: #f4f6fb;
  --bg-alt: #eef1f8;
  --panel: #ffffff;
  --ink: #0e1730;          /* headings / dark navy */
  --text: #26324b;         /* body */
  --muted: #5c6884;
  --line: rgba(14, 23, 48, 0.10);
  --line-soft: rgba(14, 23, 48, 0.06);
  --accent: #2f6bff;       /* brand blue */
  --accent-deep: #3f3fd6;  /* indigo */
  --accent-grad: linear-gradient(120deg, #2f6bff 0%, #4a3fd6 100%);
  --gold: #f5b13d;
  --radius: 18px;
  --shadow-sm: 0 2px 10px rgba(14, 23, 48, 0.06);
  --shadow-md: 0 14px 40px rgba(14, 23, 48, 0.10);
  --shadow-lg: 0 24px 60px rgba(20, 30, 70, 0.16);
  --maxw: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4, .brand, .stat-num {
  font-family: 'Sora', sans-serif;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.12;
}
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.accent-text {
  background: var(--accent-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 26px; border-radius: 10px;
  font-weight: 600; font-size: 0.97rem; cursor: pointer;
  border: 1px solid transparent; transition: transform .2s, box-shadow .2s, background .2s, color .2s, border-color .2s;
  font-family: 'Inter', sans-serif;
}
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-primary { background: var(--accent-grad); color: #fff; box-shadow: 0 10px 24px rgba(47, 107, 255, 0.28); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(47, 107, 255, 0.36); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-light { background: #fff; color: var(--accent-deep); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,0.18); }

/* ---------- Nav ---------- */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.85); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s;
}
header.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { font-weight: 700; font-size: 1.22rem; display: flex; align-items: center; gap: 11px; color: var(--ink); }
.brand .logo-mark { width: 34px; height: 34px; display: block; }
.nav-links { display: flex; gap: 34px; align-items: center; }
.nav-links a { color: var(--muted); font-size: 0.96rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.btn { color: #fff; }
.nav-toggle { display: none; background: none; border: none; color: var(--ink); font-size: 1.6rem; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 150px 0 96px; overflow: hidden; background: linear-gradient(180deg, #f7f9ff 0%, #ffffff 100%); }
.hero-decor { position: absolute; top: -180px; right: -160px; width: 620px; height: 620px; background: radial-gradient(circle, rgba(47,107,255,0.12), transparent 62%); pointer-events: none; }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 15px; border-radius: 999px;
  background: #eaf0ff; color: var(--accent-deep); font-size: 0.82rem; font-weight: 600; margin-bottom: 26px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 3px rgba(22,163,74,0.18); }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 800; margin-bottom: 22px; }
.hero p.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 560px; margin-bottom: 34px; }
.hero-cta { display: flex; gap: 15px; flex-wrap: wrap; }

/* Hero visual */
.hero-visual {
  position: relative; border-radius: 22px; padding: 30px;
  background: var(--accent-grad); box-shadow: var(--shadow-lg); overflow: hidden; min-height: 360px;
}
.hero-visual::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.10) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.10) 1px, transparent 1px); background-size: 34px 34px; }
.hv-card {
  position: relative; z-index: 2; background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.28); border-radius: 14px; padding: 18px 20px;
  backdrop-filter: blur(6px); margin-bottom: 14px; color: #fff;
}
.hv-card:last-child { margin-bottom: 0; }
.hv-card .hv-num { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.9rem; color: #fff; }
.hv-card .hv-label { font-size: 0.88rem; color: rgba(255,255,255,0.85); }
.hv-float { position: absolute; z-index: 3; background: #fff; border-radius: 12px; box-shadow: var(--shadow-md); padding: 12px 16px; font-weight: 600; font-size: 0.88rem; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.hv-card .hv-float { top: -10px; right: -10px; }
.hv-float .pill { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

/* ---------- Sections ---------- */
section { position: relative; padding: 96px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin-bottom: 54px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-tag { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; color: var(--accent); margin-bottom: 14px; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 700; margin-bottom: 16px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* ---------- Stat band ---------- */
.statband { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.statband .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.statband .stat { text-align: center; padding: 44px 16px; border-right: 1px solid var(--line-soft); }
.statband .stat:last-child { border-right: none; }
.stat-num { font-size: clamp(2rem, 3.6vw, 2.9rem); font-weight: 800; }
.stat-label { color: var(--muted); font-size: 0.92rem; margin-top: 6px; }

/* ---------- Services ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; transition: transform .3s, box-shadow .3s, border-color .3s; position: relative; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(47,107,255,0.28); }
.card .icon { width: 52px; height: 52px; border-radius: 13px; background: #eef2ff; display: grid; place-items: center; font-size: 1.45rem; margin-bottom: 20px; }
.card h3 { font-size: 1.24rem; margin-bottom: 11px; }
.card p { color: var(--muted); font-size: 0.98rem; }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip { padding: 7px 13px; border-radius: 999px; font-size: 0.82rem; background: #eef2ff; border: 1px solid var(--line-soft); color: var(--accent-deep); font-weight: 500; }

/* ---------- Case studies ---------- */
.case { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 44px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-sm); margin-bottom: 30px; }
.case:last-child { margin-bottom: 0; }
.case.reverse { grid-template-columns: 1.05fr 0.95fr; }
.case.reverse .case-visual { order: 2; }
.case-visual { position: relative; align-self: stretch; min-height: 340px; display: grid; place-items: center; overflow: hidden; }
.case-visual.v-data { background: linear-gradient(140deg, #1d2b52, #2f6bff); }
.case-visual.v-shop { background: linear-gradient(140deg, #2a2170, #4a3fd6); }
.case-visual::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.09) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.09) 1px, transparent 1px); background-size: 30px 30px; }
/* pipeline motif */
.pipeline { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 12px; width: 78%; }
.stage { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.28); border-radius: 12px; padding: 13px 16px; color: #fff; font-weight: 600; font-size: 0.95rem; backdrop-filter: blur(4px); }
.stage .num { width: 26px; height: 26px; border-radius: 8px; background: rgba(255,255,255,0.22); display: grid; place-items: center; font-size: 0.8rem; }
.stage .arrow-down { position: absolute; }
.shopwrap { position: relative; z-index: 2; text-align: center; color: #fff; }
.shopwrap .big { font-family: 'Sora'; font-weight: 800; font-size: 4.2rem; line-height: 1; color: #fff; }
.shopwrap .cap { font-size: 1rem; color: rgba(255,255,255,0.9); margin-top: 6px; }
.shopwrap .curr { display: flex; gap: 10px; justify-content: center; margin-top: 22px; }
.shopwrap .curr span { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.3); display: grid; place-items: center; font-weight: 700; font-size: 1.1rem; }

.case-body { padding: 40px 42px; }
.case-body .section-tag { margin-bottom: 12px; }
.case-body h3 { font-size: 1.7rem; margin-bottom: 12px; }
.case-lead { color: var(--text); font-size: 1.05rem; margin-bottom: 22px; }
.case-stats { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.case-stats .cs { flex: 1; min-width: 110px; background: var(--bg-soft); border: 1px solid var(--line-soft); border-radius: 12px; padding: 14px 16px; }
.case-stats .cs .n { font-family: 'Sora'; font-weight: 800; font-size: 1.5rem; color: var(--ink); }
.case-stats .cs .l { font-size: 0.8rem; color: var(--muted); }
.case-block { margin-bottom: 16px; }
.case-block h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); margin-bottom: 5px; }
.case-block p { color: var(--muted); font-size: 0.97rem; }
.case-body .chips { margin: 18px 0 22px; }
.case-note { font-size: 0.85rem; color: var(--muted); margin-bottom: 18px; }
.case-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--accent-deep); font-size: 0.97rem; transition: gap .2s; }
.case-link:hover { gap: 12px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.about-grid p { color: var(--muted); margin-bottom: 18px; font-size: 1.05rem; }
.about-grid p strong { color: var(--ink); }
.about-grid .chips { margin-top: 26px; }
.profile-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 38px; text-align: center; box-shadow: var(--shadow-sm); }
.avatar { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 20px; background: var(--accent-grad); display: grid; place-items: center; font-size: 2.1rem; font-weight: 800; color: #fff; font-family: 'Sora'; }
.profile-card h3 { font-size: 1.35rem; margin-bottom: 4px; }
.profile-card .role { color: var(--accent); font-weight: 600; margin-bottom: 14px; }
.profile-card .bio { color: var(--muted); font-size: 0.95rem; }
.profile-links { display: flex; gap: 12px; justify-content: center; margin-top: 22px; }
.profile-links a { padding: 8px 16px; border-radius: 8px; font-size: 0.9rem; font-weight: 500; border: 1px solid var(--line); color: var(--muted); transition: all .2s; }
.profile-links a:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Experience timeline ---------- */
.timeline { position: relative; max-width: 840px; margin: 0 auto; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(180deg, var(--accent), rgba(47,107,255,0.12)); }
.tl-item { position: relative; padding-bottom: 42px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: -34px; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); }
.tl-item.current::before { background: var(--accent); box-shadow: 0 0 0 4px rgba(47,107,255,0.16); }
.tl-meta { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.tl-meta h3 { font-size: 1.18rem; }
.tl-meta .company { color: var(--accent); font-weight: 600; }
.tl-date { font-size: 0.8rem; color: var(--muted); background: var(--bg-soft); padding: 3px 11px; border-radius: 999px; border: 1px solid var(--line-soft); }
.tl-item ul { list-style: none; }
.tl-item li { color: var(--muted); font-size: 0.98rem; padding-left: 20px; position: relative; margin-bottom: 8px; }
.tl-item li::before { content: "▹"; position: absolute; left: 0; color: var(--accent); }
.tl-item li strong { color: var(--ink); }

/* ---------- Contact band ---------- */
.cta-band { background: var(--accent-grad); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px); background-size: 40px 40px; opacity: 0.6; }
.cta-inner { position: relative; z-index: 2; text-align: center; padding: 84px 24px; }
.cta-inner h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 16px; }
.cta-inner p { color: rgba(255,255,255,0.9); font-size: 1.1rem; max-width: 540px; margin: 0 auto 30px; }

/* ---------- Footer ---------- */
footer { background: #0c1428; color: #aab4cc; padding: 54px 0 34px; }
.footer-top { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand { display: flex; align-items: center; gap: 11px; color: #fff; font-family: 'Sora'; font-weight: 700; font-size: 1.2rem; }
.footer-brand img { width: 32px; height: 32px; }
.footer-brand + p { margin-top: 14px; max-width: 320px; font-size: 0.92rem; color: #8592ac; }
.footer-links { display: flex; gap: 16px 26px; align-items: flex-start; flex-wrap: wrap; }
.footer-links a { color: #aab4cc; font-size: 0.92rem; transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-bottom { padding-top: 22px; font-size: 0.88rem; color: #6c7896; }

/* ---------- Theme toggle ---------- */
.nav-right { display: flex; align-items: center; gap: 20px; }
.theme-toggle {
  width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--panel);
  cursor: pointer; display: grid; place-items: center; font-size: 1.05rem;
  line-height: 1; transition: border-color .2s, background .2s;
}
.theme-toggle:hover { border-color: var(--accent); }
.theme-toggle .t-sun { display: none; }
.theme-toggle .t-moon { display: block; }
html.dark .theme-toggle .t-sun { display: block; }
html.dark .theme-toggle .t-moon { display: none; }

/* Smooth theme transition */
body, header, .card, .case, .profile-card, .statband, .chip, .card .icon,
.btn-ghost, .theme-toggle, .eyebrow, .tl-date, .case-stats .cs {
  transition: background-color .3s ease, border-color .3s ease, color .3s ease;
}

/* ---------- Dark mode ---------- */
html.dark {
  --bg: #0b1120;
  --bg-soft: #0f172a;
  --bg-alt: #131c31;
  --panel: #131c31;
  --ink: #f1f5fb;
  --text: #c5cfe0;
  --muted: #93a1bd;
  --line: rgba(255, 255, 255, 0.10);
  --line-soft: rgba(255, 255, 255, 0.06);
  --accent: #5b93ff;
  --accent-deep: #93aaff;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.40);
  --shadow-md: 0 14px 40px rgba(0, 0, 0, 0.50);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.60);
}
html.dark body { background: var(--bg); }
html.dark header { background: rgba(11, 17, 32, 0.85); }
html.dark .hero { background: linear-gradient(180deg, #0e1730 0%, #0b1120 100%); }
html.dark .statband,
html.dark .card,
html.dark .case,
html.dark .profile-card { background: var(--panel); }
html.dark .card .icon { background: rgba(91, 147, 255, 0.14); }
html.dark .chip { background: rgba(91, 147, 255, 0.14); color: var(--accent-deep); }
html.dark .eyebrow { background: rgba(91, 147, 255, 0.16); color: var(--accent-deep); }
html.dark .btn-ghost { background: var(--panel); color: var(--ink); }
html.dark .nav-links.open { background: var(--panel); }
html.dark .tl-item::before { background: var(--bg); }
html.dark .case-stats .cs { background: rgba(255, 255, 255, 0.05); border-color: var(--line-soft); }
html.dark .hv-float { color: #10203f; } /* stays on the blue gradient — keep dark text */

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { min-height: 300px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .case, .case.reverse { grid-template-columns: 1fr; }
  .case.reverse .case-visual { order: 0; }
  .case-visual { min-height: 240px; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 74px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 24px; gap: 18px; box-shadow: var(--shadow-md); }
  section { padding: 68px 0; }
  .hero { padding: 120px 0 70px; }
  .cards { grid-template-columns: 1fr; }
  .statband .container { grid-template-columns: 1fr 1fr; }
  .statband .stat:nth-child(2) { border-right: none; }
  .statband .stat { border-bottom: 1px solid var(--line-soft); }
  .case-body { padding: 30px 26px; }
}

/* ---------- Language switch ---------- */
.lang-switch {
  display: inline-flex; align-items: center; border: 1px solid var(--line);
  border-radius: 10px; overflow: hidden; background: var(--panel); height: 40px;
}
.lang-switch a {
  padding: 0 11px; height: 100%; display: grid; place-items: center;
  font-size: 0.82rem; font-weight: 600; color: var(--muted); transition: background .2s, color .2s;
}
.lang-switch a[aria-current="true"] { background: var(--accent); color: #fff; }
.lang-switch a:not([aria-current="true"]):hover { color: var(--ink); }

/* ---------- WhatsApp button ---------- */
.btn-wa { background: #25d366; color: #04310f; }
.btn-wa:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(37, 211, 102, 0.32); }
.btn-wa svg { width: 19px; height: 19px; fill: currentColor; }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; position: relative;
}
.step .n {
  font-family: 'Sora', sans-serif; font-weight: 800; font-size: 0.85rem;
  color: var(--accent); letter-spacing: .12em; display: block; margin-bottom: 10px;
}
.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.95rem; }
html.dark .step { background: var(--panel); }

/* ---------- Trust / transparency band ---------- */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 34px; }
.trust .t {
  background: var(--bg-soft); border: 1px solid var(--line-soft);
  border-radius: 14px; padding: 22px 24px;
}
.trust .t h4 { font-size: 1rem; margin-bottom: 6px; }
.trust .t p { color: var(--muted); font-size: 0.93rem; margin: 0; }
html.dark .trust .t { background: rgba(255,255,255,0.04); }

/* ---------- Price list ---------- */
.price-note {
  margin-top: 26px; padding: 18px 22px; border-left: 3px solid var(--accent);
  background: var(--bg-soft); border-radius: 0 12px 12px 0; color: var(--muted); font-size: 0.97rem;
}
html.dark .price-note { background: rgba(255,255,255,0.04); }

@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .trust { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .steps { grid-template-columns: 1fr; }
}

/* On narrow screens the floating badge overlapped the card heading. */
@media (max-width: 680px) {
  .hv-card { padding-top: 16px; }
  .hv-card .hv-float {
    position: static; display: inline-flex; margin-bottom: 12px;
    box-shadow: none; border: 1px solid var(--line-soft);
  }
}
