/* ============================================================
   GRANDEWORKS — site stylesheet
   Light SaaS design · indigo/violet gradient system
   ============================================================ */

:root {
  --ink: #171c33;
  --ink-2: #2a3150;
  --body: #5b6479;
  --muted: #7d859c;
  --muted-2: #a2a9bd;

  --primary: #4159d8;
  --primary-deep: #3346b4;
  --violet: #7b5cf0;
  --cyan: #21c4ee;

  --grad: linear-gradient(135deg, #4159d8 0%, #7b5cf0 100%);
  --grad-soft: linear-gradient(135deg, rgba(65, 89, 216, 0.08), rgba(123, 92, 240, 0.08));

  --bg: #ffffff;
  --bg-soft: #f5f7ff;
  --bg-soft-2: #eef1fc;
  --line: #e7eaf6;
  --line-2: #dde1f2;

  --green: #14a06a;
  --green-bg: #e3f7ee;
  --amber: #c07d10;
  --amber-bg: #fdf1da;
  --red: #d94848;
  --red-bg: #fdeaea;
  --blue-bg: #e7edfd;
  --lightblue-bg: #e2f4fb;
  --lightblue: #1791bb;

  --shadow-sm: 0 4px 14px rgba(35, 54, 120, 0.07);
  --shadow-md: 0 14px 34px rgba(35, 54, 120, 0.1);
  --shadow-lg: 0 28px 60px rgba(35, 54, 120, 0.14);

  --r: 18px;
  --r-sm: 12px;

  --header-h: 76px;
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.22; font-weight: 700; }
b, strong { color: var(--ink-2); }

.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font); font-size: 15px; font-weight: 700;
  padding: 14px 28px; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 12px 26px rgba(80, 84, 224, 0.32);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 34px rgba(80, 84, 224, 0.4); }
.btn-ghost {
  background: #fff; color: var(--primary);
  border: 1.5px solid var(--line-2); box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: rgba(65, 89, 216, 0.45); box-shadow: var(--shadow-md); }
.btn-white { background: #fff; color: var(--primary); box-shadow: 0 12px 26px rgba(10, 16, 60, 0.25); }
.btn-white:hover { transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: 14px; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 200;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px rgba(35, 54, 120, 0.07);
}
.header-inner { display: flex; align-items: center; gap: 18px; height: var(--header-h); }
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { height: 40px; width: auto; }

/* ── codena.io pill: standout brand link beside the logo ── */
.codena-pill {
  position: relative; margin-left: 16px; flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 15px; border-radius: 999px;
  font-size: 13.5px; font-weight: 800; letter-spacing: 0.01em; color: #fff;
  background: linear-gradient(115deg, #3c50cf, #7b5cf0, #21c4ee, #7b5cf0, #3c50cf);
  background-size: 320% 100%;
  box-shadow: 0 6px 18px rgba(80, 84, 224, 0.35);
  animation: cp-sheen 7s linear infinite;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  overflow: hidden;
}
@keyframes cp-sheen { to { background-position: 320% 0; } }
.codena-pill::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.45) 50%, transparent 60%) no-repeat;
  background-size: 250% 100%; background-position: 200% 0;
  animation: cp-shine 3.6s ease-in-out infinite;
}
@keyframes cp-shine {
  0%, 55% { background-position: 200% 0; }
  85%, 100% { background-position: -120% 0; }
}
.codena-pill:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 12px 28px rgba(80, 84, 224, 0.48);
}
.codena-pill .cp-spark { display: inline-flex; animation: cp-twinkle 2.6s ease-in-out infinite; }
.codena-pill .cp-spark svg { width: 14px; height: 14px; }
@keyframes cp-twinkle {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
  50% { transform: scale(1.25) rotate(20deg); opacity: 0.85; }
}
.codena-pill .cp-text b { color: #9fe8ff; }
.codena-pill .cp-arrow { font-size: 12px; opacity: 0.85; transition: transform 0.2s ease; }
.codena-pill:hover .cp-arrow { transform: translate(2px, -2px); }
@media (prefers-reduced-motion: reduce) {
  .codena-pill, .codena-pill::before, .codena-pill .cp-spark { animation: none; }
}

.main-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 12px; border-radius: 10px;
  font-size: 14.5px; font-weight: 600; color: var(--ink-2);
  white-space: nowrap;
  transition: color 0.18s ease, background 0.18s ease;
  cursor: pointer;
}
.nav-link:hover, .nav-item.is-open > .nav-link, .nav-link.is-active { color: var(--primary); background: var(--bg-soft); }
.nav-link .caret { width: 14px; height: 14px; transition: transform 0.25s ease; }
.nav-item.is-open > .nav-link .caret, .nav-item:hover > .nav-link .caret { transform: rotate(180deg); }
.header-cta { margin-left: 10px; }

/* ── language dropdown (TR / EN) ── */
.lang-dd { position: relative; }
.lang-dd::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px; }
.lang-btn { background: none; border: 0; cursor: pointer; font-family: var(--font); }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 220;
  min-width: 150px; padding: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.lang-dd:hover .lang-menu, .lang-dd.is-open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-opt {
  display: flex; align-items: baseline; gap: 10px;
  padding: 9px 13px; border-radius: 9px;
  font-size: 13.5px; font-weight: 800; color: var(--ink-2);
  transition: background 0.16s ease, color 0.16s ease;
}
.lang-opt span { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.lang-opt:hover, .lang-opt.is-active { background: var(--bg-soft); color: var(--primary); }
.lang-opt.is-active span { color: var(--primary); }

/* ---------- mega menu ---------- */
/* invisible bridge: keeps :hover alive while the cursor travels from the
   nav link down to the panel (the link ends ~16px above the header edge) */
.nav-item.has-mega::after {
  content: ""; position: absolute; left: -20px; right: -20px; top: 100%; height: 22px;
}
.mega {
  position: fixed; left: 0; right: 0; top: var(--header-h); z-index: 190;
  padding: 0 24px;
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s;
  transition-delay: 0.18s; /* grace period on close so diagonal mouse paths survive */
  pointer-events: none;
}
.nav-item:hover .mega, .nav-item.is-open .mega {
  opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto;
  transition-delay: 0s;
}
.mega-panel {
  width: min(1180px, 100%); margin-inline: auto;
  background: #fff; border: 1px solid var(--line);
  border-radius: 22px; box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.mega-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 0; padding: 28px 26px 22px;
}
.mega-col { padding: 0 16px; border-left: 1px solid var(--line); }
.mega-col:first-child { border-left: 0; }
.mega-col-head { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.mega-col-head .cat-ico {
  width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--grad-soft); color: var(--primary);
}
.mega-col-head .cat-ico svg { width: 16px; height: 16px; }
.mega-col-head span { font-size: 12.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }
.mega-col ul { display: flex; flex-direction: column; gap: 2px; }
.mega-link {
  display: block; padding: 7px 9px; border-radius: 9px;
  font-size: 13.5px; font-weight: 600; line-height: 1.35; color: var(--body);
  transition: background 0.16s ease, color 0.16s ease;
}
.mega-link:hover { background: var(--bg-soft); color: var(--primary); }
.mega-link .no { font-size: 11px; font-weight: 800; color: var(--muted-2); margin-right: 7px; font-variant-numeric: tabular-nums; }
.mega-link:hover .no { color: var(--violet); }
.mega-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 15px 30px; background: var(--bg-soft); border-top: 1px solid var(--line);
}
.mega-foot p { font-size: 14px; color: var(--muted); }
.mega-foot p b { color: var(--ink); }
.mega-foot .all-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 700; color: var(--primary);
}
.mega-foot .all-link svg { width: 15px; height: 15px; transition: transform 0.2s ease; }
.mega-foot .all-link:hover svg { transform: translateX(4px); }

/* ---------- mobile nav toggle ---------- */
.nav-toggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line-2); background: #fff; cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle span { width: 20px; height: 2px; border-radius: 2px; background: var(--ink); transition: 0.25s ease; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + 72px) 0 0;
  background: linear-gradient(180deg, #f1f4ff 0%, #fbfcff 78%, #ffffff 100%);
}
.hero-blob { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; }
.hero-blob.b1 { width: 480px; height: 480px; top: -160px; right: -120px; background: rgba(123, 92, 240, 0.16); }
.hero-blob.b2 { width: 420px; height: 420px; top: 220px; left: -180px; background: rgba(65, 89, 216, 0.13); }
.hero-blob.b3 { width: 300px; height: 300px; bottom: -80px; right: 26%; background: rgba(33, 196, 238, 0.12); }

.hero-canvas {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%;
  pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.02fr 0.98fr;
  gap: 56px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: 13px; font-weight: 700; color: var(--primary);
}
.eyebrow .dot-pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--grad);
  box-shadow: 0 0 0 0 rgba(101, 88, 230, 0.5); animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(101, 88, 230, 0.45); }
  70% { box-shadow: 0 0 0 9px rgba(101, 88, 230, 0); }
  100% { box-shadow: 0 0 0 0 rgba(101, 88, 230, 0); }
}
.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(34px, 4.6vw, 54px);
  font-weight: 800; letter-spacing: -0.02em; line-height: 1.12;
}
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-sub { font-size: 17.5px; max-width: 520px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-points { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 30px; }
.hero-points span { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.hero-points svg { width: 16px; height: 16px; color: var(--green); flex-shrink: 0; }

/* hero visual */
.hero-visual { position: relative; }
.hero-visual .mock-window { box-shadow: var(--shadow-lg); }
.float-card {
  position: absolute; z-index: 3;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-md); padding: 12px 16px;
  display: flex; align-items: center; gap: 11px;
  animation: floaty 5.5s ease-in-out infinite;
}
.float-card .f-ico {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; background: var(--grad);
}
.float-card .f-ico.is-green { background: linear-gradient(135deg, #17b877, #0e9a82); }
.float-card .f-ico.is-cyan { background: linear-gradient(135deg, #21c4ee, #4159d8); }
.float-card .f-ico svg { width: 17px; height: 17px; }
.float-card b { display: block; font-size: 13.5px; color: var(--ink); line-height: 1.3; }
.float-card small { font-size: 11.5px; color: var(--muted); }
.float-card.fc1 { top: -26px; right: -8px; animation-delay: 0.6s; }
.float-card.fc2 { bottom: -26px; left: -30px; }
.float-card.fc3 { top: 42%; right: -26px; animation-delay: 1.4s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-wave { position: relative; z-index: 1; margin-top: 54px; }
.hero-wave svg { display: block; width: 100%; height: 70px; }

/* ---------- sections ---------- */
.section { padding: 88px 0; }
.section.is-soft { background: var(--bg-soft); }
.section-head { max-width: 640px; margin: 0 auto 54px; text-align: center; }
.section-head.is-left { margin-inline: 0; text-align: left; }
.kicker {
  display: inline-block; font-size: 12.5px; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; letter-spacing: -0.015em; margin-bottom: 14px; }
.section-head p { font-size: 16.5px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }
.reveal.d5 { transition-delay: 0.4s; }

/* ---------- services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r); padding: 34px 30px;
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.service-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: var(--grad); opacity: 0; transition: opacity 0.28s ease;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: rgba(65, 89, 216, 0.28); }
.service-card:hover::before { opacity: 1; }
.service-ico {
  width: 58px; height: 58px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-soft); color: var(--primary);
  margin-bottom: 22px; transition: background 0.28s ease, color 0.28s ease;
}
.service-ico svg { width: 27px; height: 27px; }
.service-card:hover .service-ico { background: var(--grad); color: #fff; }
.service-card h3 { font-size: 19px; margin-bottom: 10px; }
.service-card p { font-size: 14.5px; }

/* ---------- solutions preview (index) ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.cat-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  display: flex; flex-direction: column;
}
.cat-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: rgba(65, 89, 216, 0.28); }
.cat-card-head { display: flex; align-items: center; gap: 13px; margin-bottom: 8px; }
.cat-card-head .cat-ico {
  width: 46px; height: 46px; border-radius: 13px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad); color: #fff;
}
.cat-card-head .cat-ico svg { width: 22px; height: 22px; }
.cat-card-head h3 { font-size: 17px; line-height: 1.3; }
.cat-card-head small { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-top: 2px; }
.cat-card ul { margin: 14px 0 18px; display: flex; flex-direction: column; }
.cat-card ul a {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 4px; font-size: 14px; font-weight: 600; color: var(--body);
  border-bottom: 1px dashed var(--line);
  transition: color 0.16s ease, padding-left 0.16s ease;
}
.cat-card ul li:last-child a { border-bottom: 0; }
.cat-card ul a:hover { color: var(--primary); padding-left: 9px; }
.cat-card ul a svg { width: 13px; height: 13px; color: var(--violet); flex-shrink: 0; }
.cat-card .cat-more {
  margin-top: auto; display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 700; color: var(--primary);
}
.cat-card .cat-more svg { width: 15px; height: 15px; transition: transform 0.2s ease; }
.cat-card .cat-more:hover svg { transform: translateX(4px); }
.solutions-cta { text-align: center; margin-top: 46px; }

/* 6th card: all-solutions gradient CTA */
.cat-card.is-all {
  background: linear-gradient(140deg, #3c50cf 0%, #5b4fe0 55%, #7b5cf0 100%);
  border-color: transparent; color: rgba(255, 255, 255, 0.85);
  align-items: center; justify-content: center; text-align: center;
  position: relative; overflow: hidden;
}
.cat-card.is-all::before {
  content: ""; position: absolute; width: 240px; height: 240px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.1); top: -110px; right: -70px;
}
.cat-card.is-all .all-num {
  font-size: 58px; font-weight: 800; letter-spacing: -0.03em; color: #fff; line-height: 1;
  margin-bottom: 6px; position: relative;
}
.cat-card.is-all h3 { color: #fff; font-size: 19px; margin-bottom: 8px; }
.cat-card.is-all p { font-size: 14px; margin-bottom: 20px; max-width: 250px; }
.cat-card.is-all .btn { position: relative; }

/* ---------- process ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.process-step { position: relative; text-align: center; padding: 0 8px; }
.process-step::after {
  content: ""; position: absolute; top: 34px; left: calc(50% + 46px); right: calc(-50% + 46px);
  border-top: 2px dashed var(--line-2);
}
.process-step:last-child::after { display: none; }
.process-num {
  width: 68px; height: 68px; margin: 0 auto 20px; border-radius: 50%;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800; position: relative;
}
.process-num span {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.process-step h3 { font-size: 17px; margin-bottom: 8px; }
.process-step p { font-size: 14px; }

/* ---------- why / about ---------- */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.why-list { display: flex; flex-direction: column; gap: 18px; margin-top: 28px; }
.why-item { display: flex; gap: 15px; }
.why-item .w-ico {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-soft); color: var(--primary);
}
.why-item .w-ico svg { width: 20px; height: 20px; }
.why-item h4 { font-size: 16px; margin-bottom: 3px; }
.why-item p { font-size: 14.5px; }
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 38px; }
.stat-tile {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 20px 14px; text-align: center; box-shadow: var(--shadow-sm);
}
.stat-tile b {
  display: block; font-size: 28px; font-weight: 800; letter-spacing: -0.02em;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-tile span { font-size: 12.5px; font-weight: 600; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { padding: 40px 0 96px; }
.cta-box {
  position: relative; overflow: hidden;
  border-radius: 28px; padding: 68px 56px;
  background: linear-gradient(130deg, #3c50cf 0%, #5b4fe0 55%, #7b5cf0 100%);
  color: #fff; text-align: center;
  box-shadow: 0 30px 70px rgba(64, 70, 210, 0.35);
}
.cta-box::before, .cta-box::after {
  content: ""; position: absolute; border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
}
.cta-box::before { width: 340px; height: 340px; top: -170px; right: -90px; }
.cta-box::after { width: 260px; height: 260px; bottom: -140px; left: -70px; }
.cta-box h2 { color: #fff; font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; letter-spacing: -0.015em; margin-bottom: 14px; position: relative; z-index: 1; }
.cta-box p { max-width: 560px; margin: 0 auto 32px; font-size: 16.5px; color: rgba(255, 255, 255, 0.85); position: relative; z-index: 1; }
.cta-box .btn { position: relative; z-index: 1; }

/* ---------- references marquee band (fused to the footer) ---------- */
.refs-band {
  background: #161b33; color: #9aa1bb;
  padding: 60px 0 54px; overflow: hidden;
}
.refs-head { text-align: center; margin-bottom: 38px; }
.refs-head h2 { color: #fff; font-size: clamp(20px, 2.6vw, 27px); font-weight: 800; letter-spacing: -0.01em; }
.refs-head p { font-size: 13.5px; color: #7d859c; margin-top: 6px; }
.refs-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.refs-marquee + .refs-marquee { margin-top: 30px; }
.refs-track {
  display: flex; align-items: center; gap: 44px;
  width: max-content; padding-right: 44px;
  animation: refs-scroll 60s linear infinite;
  will-change: transform;
}
.refs-marquee.is-reverse .refs-track { animation-direction: reverse; animation-duration: 72s; }
.refs-marquee:hover .refs-track { animation-play-state: paused; }
@keyframes refs-scroll { to { transform: translateX(-50%); } }
.ref-item {
  font-size: 15px; font-weight: 800; letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.38); white-space: nowrap;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}
.ref-item:hover { color: #fff; text-shadow: 0 0 18px rgba(124, 92, 240, 0.6); }
.ref-sep { color: rgba(124, 92, 240, 0.5); font-size: 9px; }
@media (prefers-reduced-motion: reduce) {
  .refs-track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }
  .refs-marquee { mask-image: none; -webkit-mask-image: none; }
}

/* ---------- cursor ring (fine pointers only; JS-driven) ---------- */
.cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 999;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1.5px solid rgba(65, 89, 216, 0.6);
  background: rgba(123, 92, 240, 0);
  pointer-events: none;
  opacity: 0;
  transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease,
              background 0.25s ease, opacity 0.3s ease;
}
.cursor-ring.is-on { opacity: 1; }
.cursor-ring.is-active {
  width: 52px; height: 52px;
  border-color: rgba(123, 92, 240, 0.85);
  background: rgba(123, 92, 240, 0.08);
}
.cursor-ring.is-down { width: 26px; height: 26px; }
@media (hover: none), (pointer: coarse) { .cursor-ring { display: none; } }

/* ---------- footer ---------- */
.footer { background: #12162b; color: #9aa1bb; padding: 72px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 44px; padding-bottom: 52px; }
.footer-brand img { height: 34px; width: auto; filter: brightness(0) invert(1); margin-bottom: 18px; }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 300px; }
.footer h4 { color: #fff; font-size: 14.5px; font-weight: 700; margin-bottom: 18px; letter-spacing: 0.02em; }
.footer ul { display: flex; flex-direction: column; gap: 10px; }
.footer ul a { font-size: 14px; transition: color 0.16s ease; }
.footer ul a:hover { color: #fff; }
.footer .f-contact { display: flex; flex-direction: column; gap: 12px; }
.footer .f-contact a {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; transition: color 0.16s ease;
}
.footer .f-contact a:hover { color: #fff; }
.footer .f-contact span { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; }
.footer .f-contact svg { width: 16px; height: 16px; color: var(--cyan); flex-shrink: 0; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px 0; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; font-size: 13px;
}
.footer-bottom a { color: #c3c8db; }
.footer-bottom a:hover { color: #fff; }

/* ============================================================
   SOLUTION PAGES
   ============================================================ */
.page-hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + 56px) 0 64px;
  background: linear-gradient(180deg, #f1f4ff 0%, #ffffff 100%);
}
.page-hero .hero-blob.b1 { width: 380px; height: 380px; top: -140px; right: -100px; }
.page-hero .hero-blob.b2 { width: 320px; height: 320px; bottom: -160px; left: -140px; }
.breadcrumb {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  font-size: 13.5px; font-weight: 600; color: var(--muted); margin-bottom: 26px;
}
.breadcrumb a { color: var(--muted); transition: color 0.16s ease; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb svg { width: 13px; height: 13px; color: var(--muted-2); }
.breadcrumb .current { color: var(--ink-2); }

.sol-hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
.sol-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: 12px; font-weight: 800; letter-spacing: 0.08em; color: var(--primary);
  margin-bottom: 18px;
}
.sol-kicker .no {
  background: var(--grad); color: #fff; border-radius: 999px;
  font-size: 11px; padding: 2px 9px; letter-spacing: 0;
}
.sol-hero-grid h1 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 18px; }
.sol-problem { font-size: 16.5px; }
.sol-hero-actions { display: flex; gap: 13px; flex-wrap: wrap; margin-top: 28px; }

/* steps */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step-card {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r); padding: 30px 26px; box-shadow: var(--shadow-sm);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.step-num {
  width: 44px; height: 44px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad); color: #fff;
  font-size: 17px; font-weight: 800; margin-bottom: 18px;
  box-shadow: 0 8px 18px rgba(80, 84, 224, 0.3);
}
.step-card h3 { font-size: 17px; margin-bottom: 9px; }
.step-card p { font-size: 14.5px; }

/* value + AI band */
.value-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.value-grid.is-single { grid-template-columns: 1fr; }
.value-card {
  border-radius: var(--r); padding: 34px 32px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.value-card .v-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.value-card .v-head .w-ico {
  width: 44px; height: 44px; border-radius: 13px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #17b877, #0e9a82); color: #fff;
}
.value-card.is-ai .v-head .w-ico { background: var(--grad); }
.value-card .v-head .w-ico svg { width: 21px; height: 21px; }
.value-card h3 { font-size: 18px; }
.value-card p { font-size: 15px; }
.value-card.is-ai { background: linear-gradient(135deg, rgba(65, 89, 216, 0.05), rgba(123, 92, 240, 0.07)); border-color: rgba(101, 88, 230, 0.22); }

/* prev / next */
.sol-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.sol-nav-card {
  display: flex; flex-direction: column; gap: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 24px 28px; box-shadow: var(--shadow-sm);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}
.sol-nav-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(65, 89, 216, 0.3); }
.sol-nav-card.is-next { text-align: right; align-items: flex-end; }
.sol-nav-card small {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.sol-nav-card small svg { width: 13px; height: 13px; }
.sol-nav-card b { font-size: 16px; color: var(--ink); }

/* mock window */
.mock-window {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-md); overflow: hidden;
}
.mock-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 13px 18px; background: var(--bg-soft); border-bottom: 1px solid var(--line);
}
.mock-bar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.mock-bar i:nth-child(1) { background: #fc6058; }
.mock-bar i:nth-child(2) { background: #fec12e; }
.mock-bar i:nth-child(3) { background: #2aca44; }
.mock-bar .mock-url {
  margin-left: 10px; flex: 1; max-width: 260px;
  background: #fff; border: 1px solid var(--line); border-radius: 7px;
  font-size: 11px; color: var(--muted-2); padding: 3px 12px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mock-content { padding: 20px 22px; }
.mock-caption { text-align: center; font-size: 12.5px; color: var(--muted-2); margin-top: 14px; font-style: italic; }

/* ---------- mock components (representative screens) ---------- */
.mock-title { font-size: 14px; font-weight: 800; color: var(--ink); margin-bottom: 12px; }
.mock-search {
  position: relative; background: var(--bg-soft); border: 1px solid var(--line-2);
  border-radius: 10px; padding: 9px 14px 9px 34px;
  font-size: 13.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px;
}
.mock-search::before { content: "⌕"; position: absolute; left: 12px; top: 8px; font-size: 15px; color: var(--muted-2); }
.mock-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 11px 2px; border-bottom: 1px solid var(--line);
}
.mock-row:last-child { border-bottom: 0; }
.mock-row-main { font-size: 13.5px; font-weight: 700; color: var(--ink-2); line-height: 1.4; }
.mock-row-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.mock-meta { display: flex; align-items: center; gap: 7px; flex-shrink: 0; }
.tag {
  font-size: 10.5px; font-weight: 700; color: var(--primary);
  background: var(--blue-bg); border-radius: 6px; padding: 2px 8px;
}
.mock-date { font-size: 11.5px; color: var(--muted-2); white-space: nowrap; }
.mock-tabs { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.mock-tab {
  font-size: 12px; font-weight: 700; color: var(--muted);
  border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 13px;
}
.mock-tab.is-active { background: var(--grad); border-color: transparent; color: #fff; }

.badge {
  flex-shrink: 0; font-size: 10.5px; font-weight: 800; letter-spacing: 0.04em;
  border-radius: 999px; padding: 4px 11px; white-space: nowrap;
}
.badge.is-green { background: var(--green-bg); color: var(--green); }
.badge.is-amber { background: var(--amber-bg); color: var(--amber); }
.badge.is-blue { background: var(--blue-bg); color: var(--primary); }
.badge.is-red { background: var(--red-bg); color: var(--red); }
.badge.is-lightblue { background: var(--lightblue-bg); color: var(--lightblue); }

.mock-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.mock-table th {
  text-align: left; font-size: 10.5px; font-weight: 800; letter-spacing: 0.07em;
  color: var(--muted-2); padding: 7px 8px; border-bottom: 1.5px solid var(--line-2);
}
.mock-table td { padding: 9px 8px; border-bottom: 1px solid var(--line); color: var(--ink-2); font-weight: 600; }
.mock-table tr:last-child td { border-bottom: 0; }
.mock-table s { color: var(--muted-2); font-weight: 500; }
.pill {
  font-size: 9.5px; font-weight: 800; color: var(--violet);
  background: rgba(123, 92, 240, 0.12); border-radius: 5px; padding: 1.5px 7px; margin-left: 5px;
  letter-spacing: 0.04em; vertical-align: middle;
}
.is-danger { color: var(--red) !important; }
.is-green { color: var(--green); }
.is-accent { color: var(--primary) !important; font-weight: 700; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11.5px; font-weight: 700; color: var(--muted); }

/* approval chain */
.chain { margin-top: 4px; }
.chain-step { display: flex; align-items: center; gap: 12px; padding: 9px 0; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.chain-dot {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid var(--line-2); background: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; color: #fff;
}
.chain-step.is-done .chain-dot { background: var(--grad); border-color: transparent; }
.chain-step.is-active .chain-dot { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(65, 89, 216, 0.15); }
.chain-step:not(.is-done):not(.is-active) { color: var(--muted-2); }

/* stats + bars */
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.stat-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; }
.stat-label { font-size: 10px; font-weight: 800; letter-spacing: 0.08em; color: var(--muted-2); }
.stat-val { font-size: 22px; font-weight: 800; color: var(--ink); letter-spacing: -0.01em; margin-top: 3px; }
.stat-sub { font-size: 11.5px; font-weight: 700; margin-top: 2px; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 84px; padding: 0 4px; }
.bars span { flex: 1; background: var(--bg-soft-2); border-radius: 5px 5px 0 0; }
.bars span.is-mid { background: #a9b8f2; }
.bars span.is-hi { background: var(--grad); }
.bars-x { display: flex; gap: 10px; padding: 6px 4px 0; }
.bars-x span { flex: 1; text-align: center; font-size: 11px; font-weight: 600; color: var(--muted-2); }

/* progress rows */
.prog-row { padding: 12px 0; border-top: 1px solid var(--line); }
.mock-content > .mock-title + .prog-row, .prog-row:first-child { border-top: 0; }
.prog-head { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.prog-sub { font-size: 12px; color: var(--muted); margin: 2px 0 8px; }
.prog-bar { height: 7px; border-radius: 99px; background: var(--bg-soft-2); overflow: hidden; }
.prog-bar span { display: block; height: 100%; border-radius: 99px; background: var(--grad); }
.prog-bar span.is-danger { background: var(--red); }
.prog-bar span.is-amber { background: #eeb63f; }
.prog-pct { font-size: 11px; font-weight: 800; color: var(--muted); margin-top: 4px; text-align: right; }

/* funnel */
.funnel { padding: 8px 0; }
.fn-head { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 700; color: var(--ink-2); margin-bottom: 5px; }
.fn-head span:last-child { color: var(--muted); font-weight: 600; }
.fn-bar { height: 14px; border-radius: 99px; background: var(--bg-soft-2); overflow: hidden; }
.fn-bar span { display: block; height: 100%; border-radius: 99px; background: var(--grad); }
.fn-bar span.is-green { background: linear-gradient(135deg, #17b877, #0e9a82); }

/* shift table */
.shift { width: 100%; border-collapse: separate; border-spacing: 4px; }
.shift th { font-size: 10.5px; font-weight: 800; color: var(--muted-2); padding: 3px; letter-spacing: 0.05em; }
.shift td { padding: 3px; }
.shift td:first-child { font-size: 12.5px; color: var(--ink-2); font-weight: 700; text-align: left; white-space: nowrap; padding-right: 10px; }
.shift td.d, .shift td.n, .shift td.i { height: 24px; border-radius: 7px; }
.shift td.d { background: linear-gradient(135deg, #5a71e6, #7b5cf0); }
.shift td.n { background: #232a4d; }
.shift td.i { background: var(--bg-soft-2); }
.shift-legend { display: flex; gap: 16px; margin-top: 12px; font-size: 12px; font-weight: 600; color: var(--muted); }
.shift-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 6px; vertical-align: middle; }
.shift-legend i.d { background: linear-gradient(135deg, #5a71e6, #7b5cf0); }
.shift-legend i.n { background: #232a4d; }
.shift-legend i.i { background: var(--bg-soft-2); }

/* checklist */
.check-row { display: flex; align-items: center; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.check-row:last-of-type { border-bottom: 0; }
.check {
  width: 22px; height: 22px; border-radius: 8px; flex-shrink: 0;
  border: 2px solid var(--line-2); background: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; color: #fff;
}
.check-row.is-done .check { background: var(--grad); border-color: transparent; }
.check-main { font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.check-row.is-done .check-main { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(123, 130, 155, 0.5); }
.check-tag {
  margin-left: auto; flex-shrink: 0;
  font-size: 10.5px; font-weight: 800; color: var(--primary);
  background: var(--blue-bg); border-radius: 6px; padding: 3px 9px;
}
.mock-foot { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.mock-cta-row { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.mini-btn {
  background: var(--grad); color: #fff; font-size: 12px; font-weight: 700;
  border-radius: 999px; padding: 7px 16px;
}

/* status rows (live presence) */
.status-row { display: flex; align-items: center; gap: 11px; padding: 9px 2px; border-bottom: 1px solid var(--line); font-size: 13px; }
.status-row:last-child { border-bottom: 0; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.dot.is-green { background: #1cba76; }
.dot.is-amber { background: #efb43c; }
.dot.is-blue { background: var(--primary); }
.dot.is-gray { background: #c2c8d8; }
.status-name { font-weight: 700; color: var(--ink-2); min-width: 76px; }
.status-info { color: var(--muted); font-size: 12.5px; }

/* score rows */
.score-row { padding: 8px 0; }
.score-head { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 5px; }
.score-head b { color: var(--primary); }

.avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: var(--grad); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; margin-right: 12px;
}
.amount { font-size: 14px; font-weight: 800; color: var(--ink); white-space: nowrap; flex-shrink: 0; }

/* ============================================================
   ALL-SOLUTIONS PAGE
   ============================================================ */
.cat-section { padding: 34px 0; }
.cat-section-head { display: flex; align-items: center; gap: 15px; margin-bottom: 26px; }
.cat-section-head .cat-ico {
  width: 50px; height: 50px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad); color: #fff; box-shadow: 0 10px 22px rgba(80, 84, 224, 0.28);
}
.cat-section-head .cat-ico svg { width: 24px; height: 24px; }
.cat-section-head h2 { font-size: 22px; }
.cat-section-head small { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-top: 2px; }
.sol-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.sol-card {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r); padding: 26px 24px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 10px;
  transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
}
.sol-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(65, 89, 216, 0.3); }
.sol-card .sol-no {
  align-self: flex-start; font-size: 11px; font-weight: 800; letter-spacing: 0.06em;
  background: var(--grad-soft); color: var(--primary);
  border-radius: 999px; padding: 4px 12px;
}
.sol-card h3 { font-size: 16.5px; line-height: 1.35; }
.sol-card p { font-size: 13.5px; flex: 1; }
.sol-more { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--primary); }
.sol-more svg { width: 14px; height: 14px; transition: transform 0.2s ease; }
.sol-more:hover svg { transform: translateX(4px); }
.sol-card:hover .sol-more svg { transform: translateX(4px); }

/* ============================================================
   APPS & GAMES PAGE
   ============================================================ */
.apps-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 56px 34px; margin-top: 10px;
}
.app-card { text-align: center; }
.app-card .app-info { margin-top: 24px; }
.app-card h3 { font-size: 19px; }
.app-chip {
  display: inline-block; margin: 8px 0 10px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase;
  background: var(--grad-soft); color: var(--primary);
  border-radius: 999px; padding: 5px 14px;
}
.app-card p { font-size: 14.5px; max-width: 300px; margin-inline: auto; }

/* iPhone-style portrait mockup */
.phone {
  position: relative; width: 236px; height: 486px; margin-inline: auto;
  background: linear-gradient(160deg, #3a3f4d, #14161f 60%);
  border-radius: 54px; padding: 9px;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255, 255, 255, 0.14);
  transition: transform 0.32s ease, box-shadow 0.32s ease;
}
.app-card:hover .phone { transform: translateY(-10px) rotate(-1deg); }
.phone-screen {
  position: relative; width: 100%; height: 100%;
  border-radius: 46px; overflow: hidden;
  display: flex; flex-direction: column; align-items: center;
  padding: 64px 22px 26px; color: #fff;
}
.p-island {
  position: absolute; top: 13px; left: 50%; transform: translateX(-50%);
  width: 78px; height: 24px; border-radius: 999px; background: #06070c;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.p-icon {
  width: 62px; height: 62px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25), 0 10px 24px rgba(0, 0, 0, 0.22);
  font-size: 26px; font-weight: 800; color: #fff; margin-bottom: 14px;
}
.p-name { font-size: 17px; font-weight: 800; letter-spacing: 0.01em; }
.p-tag { font-size: 11px; font-weight: 600; opacity: 0.75; margin-top: 3px; }
.p-ui { width: 100%; margin-top: 26px; display: flex; flex-direction: column; gap: 10px; }
.p-block {
  height: 54px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.p-block.is-tall { height: 84px; background: rgba(255, 255, 255, 0.2); }
.p-row { display: flex; gap: 10px; }
.p-row .p-block { flex: 1; }
.p-dock {
  margin-top: auto; width: 100%; display: flex; justify-content: center; gap: 14px;
}
.p-dock i {
  width: 34px; height: 34px; border-radius: 11px; display: block;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

/* game feature (dark band, landscape phone) */
.game-feature {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 160% at 85% 10%, #4a1626 0%, #241019 45%, #120711 100%);
  border-radius: 28px; padding: 64px 56px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center;
  color: #aab0c8; box-shadow: 0 30px 70px rgba(12, 16, 48, 0.4);
}
.game-feature .kicker { margin-bottom: 10px; }
.game-feature h2 { color: #fff; font-size: clamp(24px, 3vw, 34px); font-weight: 800; margin-bottom: 14px; }
.game-feature p { font-size: 15.5px; }
.game-points { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.game-points span {
  font-size: 12.5px; font-weight: 700; color: #cdd3ea;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px; padding: 7px 15px;
}
.phone-land {
  position: relative; width: 100%; max-width: 460px; aspect-ratio: 460 / 222;
  margin-inline: auto;
  background: linear-gradient(160deg, #3a3f4d, #14161f 60%);
  border-radius: 38px; padding: 8px;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.45), inset 0 0 0 2px rgba(255, 255, 255, 0.14);
  transform: rotate(-2deg);
}
.phone-land-screen {
  position: relative; width: 100%; height: 100%;
  border-radius: 32px; overflow: hidden;
  background:
    radial-gradient(150% 120% at 50% 118%, rgba(219, 112, 60, 0.4) 0%, rgba(219, 112, 60, 0) 44%),
    radial-gradient(120% 140% at 12% -10%, #4b3d7a 0%, #221f3f 48%, #131228 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #fff;
}
.phone-land-screen .p-island {
  top: 50%; left: 13px; transform: translateY(-50%);
  width: 22px; height: 72px; z-index: 2;
}
.phone-land-screen .g-art {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.g-title {
  font-size: 21px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase;
  text-shadow: 0 2px 18px rgba(123, 92, 240, 0.55);
}
.g-sub { font-size: 10px; font-weight: 700; letter-spacing: 0.34em; text-transform: uppercase; opacity: 0.68; margin-top: 7px; }
.g-hearts { position: absolute; top: 14px; left: 50px; display: flex; gap: 6px; }
.g-hearts i {
  width: 12px; height: 12px; display: block; background: #e35d6a;
  clip-path: polygon(50% 100%, 6% 42%, 18% 8%, 50% 26%, 82% 8%, 94% 42%);
}
.g-hearts i.is-off { background: rgba(255, 255, 255, 0.22); }
.g-stick {
  position: absolute; bottom: 16px; left: 46px;
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  background: radial-gradient(circle at 40% 36%, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.05) 60%);
}
.g-btns { position: absolute; bottom: 18px; right: 42px; display: flex; gap: 9px; align-items: flex-end; }
.g-btns i { display: block; border-radius: 50%; background: rgba(255, 255, 255, 0.2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); }
.g-btns i:nth-child(1) { width: 22px; height: 22px; }
.g-btns i:nth-child(2) { width: 32px; height: 32px; background: rgba(227, 93, 106, 0.55); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .mega-grid { grid-template-columns: repeat(3, 1fr); row-gap: 26px; }
  .mega-col:nth-child(4) { border-left: 0; }
  .services-grid, .cat-grid, .sol-grid { grid-template-columns: repeat(2, 1fr); }
  .apps-grid { grid-template-columns: repeat(2, 1fr); }
  .game-feature { grid-template-columns: 1fr; padding: 48px 40px; gap: 40px; }
  .process-grid { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .process-step::after { display: none; }
  .hero-grid, .sol-hero-grid, .why-grid { grid-template-columns: 1fr; gap: 52px; }
  .hero-sub { max-width: none; }
  .hero-visual { max-width: 620px; margin-inline: auto; }
  .steps-grid { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1120px) {
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 195;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: 16px 20px 22px;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    display: none;
  }
  .main-nav.is-open { display: flex; }
  .nav-toggle { display: inline-flex; }
  .nav-link { padding: 13px 12px; font-size: 16px; border-radius: 12px; justify-content: space-between; width: 100%; }
  .lang-btn { width: 100%; }
  .lang-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    display: none; border: 0; box-shadow: none; padding: 0 8px 6px;
  }
  .lang-dd.is-open .lang-menu, .lang-dd:hover .lang-menu { display: block; }
  .header-cta { margin: 12px 0 0; }
  .header-cta .btn { width: 100%; }

  /* mega menu becomes accordion */
  .mega { position: static; padding: 0; opacity: 1; visibility: visible; transform: none; pointer-events: auto; display: none; }
  .nav-item.is-open .mega { display: block; }
  .nav-item:hover .mega { opacity: 1; }
  .mega-panel { border: 0; box-shadow: none; border-radius: 0; }
  .mega-grid { grid-template-columns: 1fr; padding: 4px 8px 10px; gap: 18px; }
  .mega-col { border-left: 0; padding: 0; }
  .mega-foot { border-radius: 12px; padding: 13px 16px; flex-direction: column; align-items: flex-start; gap: 6px; }
}

@media (max-width: 640px) {
  .wrap { width: min(1180px, 100% - 36px); }
  .section { padding: 64px 0; }
  .codena-pill { margin-left: 10px; padding: 7px 12px; font-size: 12.5px; }
  .codena-pill .cp-arrow { display: none; }
  .hero { padding-top: calc(var(--header-h) + 48px); }
  .services-grid, .cat-grid, .sol-grid, .process-grid, .sol-nav, .apps-grid { grid-template-columns: 1fr; }
  .game-feature { padding: 40px 24px; }
  .stats-row { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .stat-tile b { font-size: 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .cta-box { padding: 48px 26px; }
  .float-card.fc2 { left: -8px; }
  .float-card.fc1 { right: -4px; }
  .sol-nav-card.is-next { text-align: left; align-items: flex-start; }
  .hero-actions .btn, .sol-hero-actions .btn { width: 100%; }
}

/* ============================================================
   CODENA.IO MAGIC DEMO — faithful replica of the v2 /magic
   screen (daylight aurora), looping inside a browser mock.
   Namespace: .cdm-*  (chart marks: .cdmc-*)
   ============================================================ */
.codena-promo { background: linear-gradient(180deg, #f5f7ff 0%, #ebeefb 55%, #f5f7ff 100%); }
.cdm-frame {
  position: relative; max-width: 980px; margin: 0 auto;
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.cdm-visit {
  position: absolute; right: 16px; bottom: 16px; z-index: 20;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: 999px;
  background: rgba(35, 33, 66, 0.9); color: #efeaff;
  font-size: 12.5px; font-weight: 700;
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.cdm-frame:hover .cdm-visit { opacity: 1; transform: none; }
.codena-cta { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 36px; }
.codena-note { font-size: 12.5px; color: var(--muted-2); }

/* ── the stage ── */
.cdm {
  --cdm-ink: #23233c;
  --cdm-ink-soft: #4e4e6e;
  --cdm-ink-muted: #8b8ba8;
  --cdm-cyan: #0b8fb0;
  --cdm-violet: #7c5cf0;
  --cdm-magenta: #d3417f;
  --cdm-glass: rgba(255, 255, 255, 0.68);
  --cdm-shadow: 0 18px 44px rgba(101, 88, 200, 0.14), 0 4px 12px rgba(101, 88, 200, 0.07);
  --cdm-ease: cubic-bezier(0.22, 1, 0.36, 1);
  position: relative; height: 600px; overflow: hidden;
  background: linear-gradient(180deg, #f7f8fe, #eef0fa);
  color: var(--cdm-ink);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px; line-height: 1.5;
  cursor: default; user-select: none;
}
.cdm-bgwrap { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.cdm-bgwrap::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 38%, transparent 52%, rgba(94, 92, 154, 0.14));
}
.cdm-orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; }
.cdm-orb-a { width: 46%; height: 80%; left: -12%; top: -22%; background: radial-gradient(circle, #9fdff0, transparent 70%); animation: cdm-drift-a 26s ease-in-out infinite alternate; }
.cdm-orb-b { width: 40%; height: 72%; right: -10%; top: 6%; background: radial-gradient(circle, #c9bdf8, transparent 70%); animation: cdm-drift-b 32s ease-in-out infinite alternate; }
.cdm-orb-c { width: 38%; height: 66%; left: 26%; bottom: -30%; background: radial-gradient(circle, #f7c6de, transparent 70%); animation: cdm-drift-c 29s ease-in-out infinite alternate; }
@keyframes cdm-drift-a { to { transform: translate(9%, 8%) scale(1.18); } }
@keyframes cdm-drift-b { to { transform: translate(-8%, 10%) scale(1.12); } }
@keyframes cdm-drift-c { to { transform: translate(-10%, -8%) scale(1.15); } }
.cdm-ground {
  position: absolute; left: 50%; bottom: -14%; width: 130%; height: 42%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.9), rgba(201, 189, 248, 0.25) 55%, transparent 72%);
}
.cdm-star { position: absolute; border-radius: 50%; opacity: 0; width: 6px; height: 6px; background: #fff; box-shadow: 0 0 12px 4px rgba(124, 92, 240, 0.7); animation: cdm-twinkle 4s ease-in-out infinite; }
.cdm-star:nth-child(1) { left: 14%; top: 26%; animation-delay: 0.4s; }
.cdm-star:nth-child(2) { left: 74%; top: 18%; animation-delay: 1.6s; box-shadow: 0 0 12px 4px rgba(11, 143, 176, 0.7); }
.cdm-star:nth-child(3) { left: 88%; top: 52%; animation-delay: 2.8s; }
.cdm-star:nth-child(4) { left: 8%; top: 70%; animation-delay: 2s; box-shadow: 0 0 12px 4px rgba(211, 65, 127, 0.6); }
.cdm-star:nth-child(5) { left: 42%; top: 14%; animation-delay: 3.4s; }
.cdm-star:nth-child(6) { left: 60%; top: 78%; animation-delay: 0.9s; box-shadow: 0 0 12px 4px rgba(11, 143, 176, 0.7); }
@keyframes cdm-twinkle { 0%, 100% { opacity: 0; transform: scale(0.5); } 50% { opacity: 0.9; transform: scale(1.2); } }

.cdm-top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; align-items: center; justify-content: center;
  padding: 16px 22px; min-height: 56px; pointer-events: none;
}
.cdm-logo { position: absolute; left: 22px; font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.cdm-logo b { color: var(--cdm-cyan); }
.cdm-chip {
  display: none; align-items: center; gap: 9px;
  max-width: 62%; padding: 7px 16px;
  background: rgba(255, 255, 255, 0.75); border: 1px solid rgba(255, 255, 255, 0.9); border-radius: 999px;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: var(--cdm-shadow);
  font-size: 12.5px; color: var(--cdm-ink-soft);
  animation: cdm-rise 0.4s var(--cdm-ease);
}
.cdm-chip.is-on { display: flex; }
.cdm-chip-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cdm-chip-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--cdm-violet); box-shadow: 0 0 8px var(--cdm-violet); }
.cdm-chip.is-live .cdm-chip-dot { animation: cdm-blink 1.1s ease-in-out infinite; }
@keyframes cdm-blink { 50% { opacity: 0.25; } }

.cdm-scene {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 22px; padding: 62px 30px 74px;
}
.cdm-hello {
  margin: 0; font-size: clamp(19px, 2.6vw, 27px); font-weight: 650; letter-spacing: -0.01em;
  background: linear-gradient(100deg, var(--cdm-ink) 25%, var(--cdm-violet) 60%, var(--cdm-cyan));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.cdm-prompt {
  position: relative; display: flex; align-items: center; gap: 10px;
  width: min(520px, 92%); min-height: 54px;
  padding: 8px 8px 8px 22px;
  background: rgba(255, 255, 255, 0.9); border: 1px solid rgba(255, 255, 255, 0.95); border-radius: 999px;
  box-shadow: 0 24px 60px rgba(101, 88, 200, 0.2), 0 6px 16px rgba(101, 88, 200, 0.1);
  animation: cdm-levitate 5.5s ease-in-out infinite; will-change: transform;
}
.cdm-prompt::before {
  content: ""; position: absolute; inset: -3px; z-index: -1; border-radius: 999px;
  background: linear-gradient(115deg, #7ad0e8, #b9a6f7, #f3aed0, #9fdff0);
  filter: blur(11px) hue-rotate(0deg); opacity: 0.75;
  animation: cdm-iris 9s linear infinite;
}
@keyframes cdm-iris { to { filter: blur(11px) hue-rotate(360deg); } }
@keyframes cdm-levitate { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.cdm-type { flex: 1; font-size: 15px; color: var(--cdm-ink); white-space: nowrap; overflow: hidden; text-align: left; }
.cdm-type:empty::before { content: attr(data-ph); color: var(--cdm-ink-muted); }
.cdm-caret {
  flex: none; width: 2px; height: 18px; margin-left: -6px; border-radius: 2px;
  background: var(--cdm-violet); box-shadow: 0 0 8px var(--cdm-violet);
  animation: cdm-blink 0.9s ease-in-out infinite;
}
.cdm-go {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--cdm-cyan), var(--cdm-violet));
  color: #fff; font-size: 15px;
  box-shadow: 0 6px 18px rgba(124, 92, 240, 0.45);
  transition: transform 0.18s var(--cdm-ease);
}
.cdm-go.is-press { transform: scale(0.88); }
.cdm-sugs { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; max-width: 560px; }
.cdm-sug {
  padding: 7px 15px;
  background: rgba(255, 255, 255, 0.55); border: 1px solid rgba(255, 255, 255, 0.85); border-radius: 999px;
  box-shadow: 0 6px 18px rgba(101, 88, 200, 0.1);
  color: var(--cdm-ink-soft); font-size: 11.5px;
  animation: cdm-rise 0.5s var(--cdm-ease) backwards, cdm-levitate 6s ease-in-out infinite;
  animation-delay: calc(200ms + var(--i) * 90ms), calc(var(--i) * 800ms + 900ms);
  will-change: transform;
}

/* thinking */
.cdm-beats { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; max-width: 90%; }
.cdm-beat {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 14px;
  background: var(--cdm-glass); border: 1px solid rgba(255, 255, 255, 0.85); border-radius: 999px;
  box-shadow: 0 8px 22px rgba(101, 88, 200, 0.12);
  font-size: 12px; color: var(--cdm-ink-soft);
  animation: cdm-rise 0.35s var(--cdm-ease) backwards;
}
.cdm-beat-spark {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cdm-violet); box-shadow: 0 0 8px var(--cdm-violet);
  animation: cdm-blink 1s ease-in-out infinite;
}
.cdm-beat.is-done { color: var(--cdm-ink-muted); }
.cdm-beat.is-done .cdm-beat-spark { background: var(--cdm-cyan); box-shadow: none; animation: none; }
.cdm-live {
  width: min(560px, 92%); max-height: 130px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  font-size: 13.5px; line-height: 1.6; color: var(--cdm-ink-soft); text-align: center;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 40px);
  mask-image: linear-gradient(to bottom, transparent 0, #000 40px);
}
.cdm-live .cdm-caret { display: inline-block; height: 14px; vertical-align: text-bottom; margin-left: 3px; }

/* result */
.cdm-result {
  position: relative; width: min(620px, 94%);
  display: flex; flex-direction: column; gap: 13px;
  margin: auto 0;
}
.cdm-wave {
  position: absolute; left: 50%; top: 38%; z-index: 0;
  width: 60px; height: 60px; border-radius: 50%; pointer-events: none;
  border: 2px solid rgba(124, 92, 240, 0.5);
  box-shadow: 0 0 60px 24px rgba(124, 92, 240, 0.25), inset 0 0 30px rgba(159, 223, 240, 0.4);
  animation: cdm-wave 1.1s cubic-bezier(0.2, 0.6, 0.3, 1) forwards;
}
@keyframes cdm-wave {
  from { opacity: 1; transform: translate(-50%, -50%) scale(0.2); }
  to { opacity: 0; transform: translate(-50%, -50%) scale(13); }
}
.cdm-rise { animation: cdm-rise 0.65s var(--cdm-ease) backwards; animation-delay: var(--d, 0ms); }
@keyframes cdm-rise {
  0% { opacity: 0; transform: translateY(30px) scale(0.85); }
  70% { opacity: 1; transform: translateY(-4px) scale(1.015); }
  100% { opacity: 1; transform: none; }
}
.cdm-float {
  will-change: transform;
  animation: cdm-rise 0.65s var(--cdm-ease) backwards, cdm-levitate 7s ease-in-out infinite;
  animation-delay: var(--d, 0ms), calc(var(--d, 0ms) + 750ms);
}
.cdm-card {
  position: relative;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.95); border-radius: 18px;
  padding: 14px 16px;
  box-shadow: var(--cdm-shadow);
}
.cdm-card::before {
  content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.95), rgba(201, 189, 248, 0.35) 70%);
  opacity: 0; animation: cdm-flash 0.9s ease-out backwards; animation-delay: var(--d, 0ms);
}
@keyframes cdm-flash { 0% { opacity: 1; } 100% { opacity: 0; } }
.cdm-card::after {
  content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.85) 50%, transparent 62%) no-repeat;
  background-size: 250% 100%; background-position: 200% 0;
  animation: cdm-shimmer 1s ease-out backwards; animation-delay: calc(var(--d, 0ms) + 450ms);
}
@keyframes cdm-shimmer { from { background-position: 200% 0; } to { background-position: -120% 0; } }
.cdm-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }

.cdm-count { text-align: center; padding: 4px 0 0; position: relative; }
.cdm-count::before {
  content: ""; position: absolute; left: 50%; top: 42%; z-index: -1;
  width: 220px; height: 220px; border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.4);
  background: radial-gradient(circle, rgba(124, 92, 240, 0.35), rgba(159, 223, 240, 0.2) 55%, transparent 72%);
  opacity: 0; animation: cdm-bloom 1.5s ease-out forwards; pointer-events: none;
}
@keyframes cdm-bloom {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.4); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.7); }
}
.cdm-count-value {
  font-size: clamp(40px, 6vw, 60px); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em;
  background: linear-gradient(115deg, var(--cdm-ink) 30%, var(--cdm-violet) 72%, var(--cdm-cyan));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 6px 22px rgba(124, 92, 240, 0.3));
}
.cdm-count-label { margin-top: 2px; font-size: 13.5px; color: var(--cdm-ink-soft); letter-spacing: 0.02em; }

.cdm-caption { font-size: 13px; color: var(--cdm-ink-soft); line-height: 1.6; text-align: center; }
.cdm-caption b { color: var(--cdm-ink); }
.cdm-whisper { font-size: 11px; color: var(--cdm-ink-muted); text-align: center; letter-spacing: 0.03em; }
.cdm-whisper .cdm-pin { color: var(--cdm-violet); }

/* records table */
.cdm-table { width: 100%; border-collapse: collapse; font-size: 12px; position: relative; z-index: 0; }
.cdm-table th {
  text-align: left; font-size: 9.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--cdm-ink-muted); padding: 5px 8px; border-bottom: 1px solid rgba(94, 92, 154, 0.16);
}
.cdm-table td { padding: 6px 8px; border-bottom: 1px solid rgba(94, 92, 154, 0.09); color: var(--cdm-ink-soft); }
.cdm-table tr:last-child td { border-bottom: 0; }
.cdm-table td:first-child { font-weight: 600; color: var(--cdm-ink); }
.cdm-pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 9.5px; font-weight: 700; letter-spacing: 0.04em; }
.cdm-pill.is-ok { background: rgba(18, 138, 99, 0.12); color: #128a63; }
.cdm-pill.is-wait { background: rgba(184, 119, 0, 0.12); color: #b87700; }

/* follow-up bar + narrator caption */
.cdm-follow {
  position: absolute; z-index: 4; left: 0; right: 0; bottom: 18px; margin: 0 auto;
  display: none; align-items: center; gap: 8px;
  width: min(480px, 88%);
  padding: 5px 5px 5px 18px;
  background: rgba(255, 255, 255, 0.85); border: 1px solid rgba(255, 255, 255, 0.9); border-radius: 999px;
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: 0 16px 44px rgba(101, 88, 200, 0.22);
  animation: cdm-rise 0.5s var(--cdm-ease) backwards;
}
.cdm-follow.is-on { display: flex; }
.cdm-follow .cdm-type { font-size: 13.5px; }
.cdm-follow .cdm-go { width: 32px; height: 32px; font-size: 13px; }
.cdm-cap {
  position: absolute; z-index: 45; left: 0; right: 0; bottom: 64px;
  margin: 0 auto; width: fit-content; max-width: 82%;
  padding: 8px 20px; border-radius: 999px;
  background: rgba(35, 33, 66, 0.88); color: #efeaff;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.02em;
  box-shadow: 0 14px 40px rgba(35, 33, 66, 0.35), 0 0 24px rgba(124, 92, 240, 0.3);
  animation: cdm-cap-in 0.45s var(--cdm-ease);
  pointer-events: none;
  display: none;
}
.cdm-cap.is-on { display: block; }
@keyframes cdm-cap-in { from { opacity: 0; transform: translateY(14px) scale(0.92); } }

/* chart marks */
.cdmc-head { display: flex; flex-direction: column; gap: 1px; margin-bottom: 6px; position: relative; z-index: 0; }
.cdmc-title { font-size: 12.5px; font-weight: 600; color: var(--cdm-ink); }
.cdmc-sub { font-size: 10.5px; color: var(--cdm-ink-muted); }
.cdmc-legend { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 6px; }
.cdmc-key { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; color: var(--cdm-ink-soft); }
.cdmc-key i { width: 8px; height: 8px; border-radius: 3px; display: inline-block; }
.cdmc-svg { width: 100%; height: auto; max-height: 190px; display: block; overflow: visible; position: relative; z-index: 0; }
.cdmc-grid { stroke: rgba(35, 35, 60, 0.08); stroke-width: 1; }
.cdmc-axis { stroke: rgba(35, 35, 60, 0.2); stroke-width: 1; }
.cdmc-tick, .cdmc-xlab { font-size: 10px; fill: var(--cdm-ink-muted); font-family: inherit; }
.cdmc-bar { transform-box: fill-box; transform-origin: bottom; animation: cdmc-grow 0.55s var(--cdm-ease) backwards; }
.cdmc-line {
  fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: cdmc-draw 0.9s cubic-bezier(0.4, 0, 0.2, 1) 0.1s forwards;
  filter: drop-shadow(0 2px 5px rgba(11, 143, 176, 0.3));
}
.cdmc-area { opacity: 0; animation: cdmc-fade 0.6s ease 0.55s forwards; fill-opacity: 0.14; }
.cdmc-dot { opacity: 0; animation: cdmc-fade 0.4s ease 0.7s forwards; }
.cdmc-slice { transform-box: fill-box; transform-origin: center; animation: cdmc-pop 0.5s var(--cdm-ease) backwards; }
@keyframes cdmc-grow { from { transform: scaleY(0); } }
@keyframes cdmc-draw { to { stroke-dashoffset: 0; } }
@keyframes cdmc-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cdmc-pop { from { transform: scale(0.6); opacity: 0; } }

@media (max-width: 860px) {
  .cdm { height: 560px; }
  .cdm-duo { grid-template-columns: 1fr; }
  .cdm-duo .cdm-card:nth-child(2) { display: none; }
  .cdmc-svg { max-height: 160px; }
}
@media (prefers-reduced-motion: reduce) {
  .cdm-orb, .cdm-star, .cdm-prompt, .cdm-prompt::before, .cdm-caret,
  .cdm-beat-spark, .cdm-wave, .cdm-card::before, .cdm-card::after,
  .cdm-float, .cdm-sug { animation: none; }
  .cdm-star { opacity: 0.5; }
  .cdmc-bar, .cdmc-line, .cdmc-area, .cdmc-dot, .cdmc-slice { animation: none; opacity: 1; stroke-dashoffset: 0; transform: none; }
}
