/* ==========================================================================
   Finsera — boutique finance consultancy
   Ported from the Claude Design handoff (Home.dc.html).
   Palette: navy/copper/gold · Fonts: Space Grotesk (headings) + Inter (body)
   ========================================================================== */

:root {
  --navy: #16243D;
  --navy-2: #23375C;
  --copper: #B0793F;
  --copper-dark: #8a5d2e;
  --gold: #C9A14E;
  --bg: #F7F6F3;
  --text: #22293A;
  --text-2: #5A6472;
  --text-3: #8A93A3;
  --green: #1F8A4C;
  --green-2: #3E9B7A;
  --red: #C0563F;
  --line: rgba(22, 36, 61, 0.07);
  --serif: 'Space Grotesk', sans-serif;
  --sans: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #ffffff;
  font-family: var(--sans);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* ---------------------------------------------------------------- Keyframes */
@keyframes finDash { to { stroke-dashoffset: -130; } }
@keyframes finFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes finScan {
  0% { top: 6px; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; }
  100% { top: calc(100% - 6px); opacity: 0; }
}
@keyframes finFlick { 0%, 100% { opacity: .85; } 50% { opacity: .3; } }
@keyframes finPulse { 0%, 100% { opacity: .25; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.25); } }
@keyframes finGlow {
  0%, 100% { opacity: .5; transform: translateX(-50%) scale(1); }
  50% { opacity: .95; transform: translateX(-50%) scale(1.14); }
}
@keyframes finRise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes finArrow { 0%, 100% { transform: translateX(0); opacity: .6; } 50% { transform: translateX(7px); opacity: 1; } }
@keyframes finDraw { from { stroke-dashoffset: 460; } to { stroke-dashoffset: 0; } }
@keyframes finRingDraw { from { stroke-dashoffset: 226; } to { stroke-dashoffset: 140; } }
@keyframes finDrift1 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-30px, 40px) scale(1.1); } }
@keyframes finDrift2 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(40px, -30px) scale(1.12); } }
@keyframes finDrift3 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-40px, -20px) scale(0.92); } }

@media (prefers-reduced-motion: reduce) {
  [data-anim] { animation: none !important; }
  html { scroll-behavior: auto; }
  .hero__eyebrow, .hero__h1, .hero__sub, .hero__ctas, .hero__trust, .hero .graph { animation: none !important; }
  .hero__bg { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------------------------------------------------------------- Helpers */
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--copper); margin-bottom: 16px;
}
.eyebrow--gold { color: var(--gold); }
.section-h2 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(28px, 3.8vw, 44px); line-height: 1.1;
  letter-spacing: -0.02em; color: var(--navy); margin: 0 0 18px; text-wrap: balance;
}
.btn-copper {
  display: inline-flex; align-items: center; gap: 9px; text-decoration: none;
  font-size: 16px; font-weight: 600; color: #fff; background: var(--copper);
  padding: 15px 28px; border-radius: 999px;
  box-shadow: 0 8px 22px rgba(176, 121, 63, 0.28);
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn-copper:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(176, 121, 63, 0.36); }
.btn-gold {
  display: inline-flex; align-items: center; gap: 9px; text-decoration: none;
  font-size: 16px; font-weight: 600; color: var(--navy); background: var(--gold);
  padding: 14px 26px; border-radius: 999px; transition: transform .18s ease;
}
.btn-gold:hover { transform: translateY(-2px); }

/* ================================================================ NAV ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px clamp(20px, 5vw, 64px);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav__logo {
  display: inline-flex; width: 30px; height: 30px; border-radius: 8px;
  background: var(--navy); align-items: center; justify-content: center;
}
.nav__logo span { width: 11px; height: 11px; border: 2px solid var(--copper); border-radius: 3px; display: block; }
.nav__wordmark { font-family: var(--serif); font-size: 22px; font-weight: 700; color: var(--navy); letter-spacing: -0.02em; }

.nav__links { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 34px); }
.nav__link {
  position: relative; text-decoration: none; font-size: 15px; font-weight: 500;
  color: var(--text-2); padding-bottom: 4px;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 2px;
  width: 0; background: var(--copper); transition: width .25s ease;
}
.nav__link:hover::after { width: 100%; }
.nav__link.is-active { color: var(--navy); }
.nav__link.is-active::after { width: 100%; }

.lang-toggle { display: flex; align-items: center; background: #F2F1ED; border-radius: 999px; padding: 3px; }
.lang-toggle__btn {
  font-family: var(--sans); font-size: 12.5px; font-weight: 700; letter-spacing: 0.02em;
  border: none; cursor: pointer; padding: 6px 11px; border-radius: 999px;
  background: transparent; color: var(--text-2); transition: all .15s ease;
}
.lang-toggle__btn.is-on { background: var(--navy); color: #fff; }

.nav__cta {
  display: inline-flex; align-items: center; gap: 7px; text-decoration: none;
  font-size: 15px; font-weight: 600; color: #fff; background: var(--copper);
  padding: 11px 20px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 6px 18px rgba(176, 121, 63, 0.28);
  transition: transform .18s ease, box-shadow .18s ease;
}
.nav__cta:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(176, 121, 63, 0.38); }

.nav__burger {
  display: none; background: none; border: none; cursor: pointer; padding: 8px;
  color: var(--navy); align-items: center;
}
.nav__mobile {
  position: fixed; top: 65px; left: 0; right: 0; background: #fff;
  border-bottom: 1px solid rgba(22, 36, 61, 0.1);
  padding: 14px clamp(20px, 5vw, 64px) 22px;
  display: flex; flex-direction: column; gap: 6px;
  box-shadow: 0 16px 32px rgba(22, 36, 61, 0.1); z-index: 49;
}
.nav__mobile[hidden] { display: none; }
.nav__mobile a {
  text-decoration: none; font-size: 17px; font-weight: 500; color: var(--text);
  padding: 11px 0; border-bottom: 1px solid rgba(22, 36, 61, 0.06);
}
.nav__mobile-langs { display: flex; gap: 8px; padding: 12px 0; }
.nav__mobile-cta {
  text-align: center; text-decoration: none; font-size: 16px; font-weight: 600;
  color: #fff !important; background: var(--copper); padding: 13px 20px;
  border-radius: 999px; margin-top: 4px; border-bottom: none !important;
}

/* ================================================================ HERO ==== */
.main { overflow: hidden; background: #fff; }
.hero { position: relative; max-width: 1240px; margin: 0 auto; padding: clamp(40px, 6vw, 80px) clamp(20px, 5vw, 64px) clamp(48px, 7vw, 90px); }
.hero__bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.hero__orb { position: absolute; border-radius: 50%; filter: blur(64px); will-change: transform; }
.hero__orb--1 { width: 440px; height: 440px; background: radial-gradient(circle, rgba(176,121,63,0.22), transparent 70%); top: -130px; right: -70px; animation: finDrift1 18s ease-in-out infinite; }
.hero__orb--2 { width: 400px; height: 400px; background: radial-gradient(circle, rgba(201,161,78,0.16), transparent 70%); bottom: -160px; left: -90px; animation: finDrift2 22s ease-in-out infinite; }
.hero__orb--3 { width: 320px; height: 320px; background: radial-gradient(circle, rgba(35,55,92,0.10), transparent 70%); top: 28%; left: 42%; animation: finDrift3 26s ease-in-out infinite; }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(36px, 5vw, 64px); align-items: center; }
.hero__eyebrow {
  animation: finRise .6s cubic-bezier(.22,1,.36,1) both;
  display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--copper); margin-bottom: 26px;
}
.hero__eyebrow span { width: 24px; height: 1px; background: var(--copper); display: inline-block; }
.hero__h1 {
  font-family: var(--serif); font-weight: 700; font-size: clamp(40px, 5.4vw, 68px);
  line-height: 1.02; letter-spacing: -0.03em; color: var(--navy); margin: 0 0 26px; text-wrap: balance;
  animation: finRise .6s cubic-bezier(.22,1,.36,1) .08s both;
}
.hero__h1 .accent { color: var(--copper); }
.hero__sub { font-size: clamp(16px, 1.25vw, 18.5px); line-height: 1.62; color: var(--text-2); max-width: 500px; margin: 0 0 34px; text-wrap: pretty; animation: finRise .6s cubic-bezier(.22,1,.36,1) .16s both; }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 30px; animation: finRise .6s cubic-bezier(.22,1,.36,1) .24s both; }
.hero__cta2 { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 16px; font-weight: 600; color: var(--navy); }
.hero__cta2 .arrow { color: var(--copper); }
.hero__trust { font-size: 13px; color: var(--text-3); font-weight: 500; letter-spacing: 0.01em; animation: finRise .6s cubic-bezier(.22,1,.36,1) .32s both; }
.hero .graph { animation: finRise .7s cubic-bezier(.22,1,.36,1) .3s both; }

/* node graph */
.graph {
  position: relative; width: 100%; aspect-ratio: 560 / 520; background-color: #FBFAF8;
  background-image: radial-gradient(circle, rgba(22, 36, 61, 0.07) 1.1px, transparent 1.1px);
  background-size: 19px 19px; border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
}
/* Fixed 560x520 design canvas; JS scales it to the container width so the whole
   node graph shrinks proportionally on small screens instead of overlapping. */
.graph__inner { position: absolute; top: 0; left: 0; width: 560px; height: 520px; transform-origin: top left; }
.graph__halo { position: absolute; right: 8%; top: 6%; width: 46%; height: 46%; background: radial-gradient(circle, rgba(176, 121, 63, 0.13), transparent 70%); pointer-events: none; }
.graph__wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.graph__node { position: absolute; background: #fff; border: 1px solid rgba(22, 36, 61, 0.1); border-radius: 13px; box-shadow: 0 8px 22px rgba(22, 36, 61, 0.08); z-index: 2; }
.graph__node--a { left: 2.5%; top: 6.9%; width: 42.1%; overflow: hidden; }
.graph__node--b { left: 2.5%; top: 38.4%; width: 42.1%; }
.graph__node--c { left: 7.1%; top: 75.4%; width: 41%; }
.graph__node-title { padding: 8px 13px; border-bottom: 1px solid var(--line); font-size: 11.5px; font-weight: 600; color: var(--navy); letter-spacing: 0.01em; }
.graph__chips { padding: 11px 13px; display: flex; flex-wrap: wrap; gap: 6px; }
.graph__chip {
  font-family: var(--sans); font-size: 12px; font-weight: 600; border-radius: 8px; padding: 6px 11px;
  cursor: pointer; transition: all .15s ease; display: inline-flex; align-items: center; gap: 6px;
  background: #fff; color: var(--text-2); border: 1px solid rgba(22, 36, 61, 0.16);
}
.graph__chip.is-on { background: var(--navy); color: #fff; border-color: var(--navy); }
.graph__metrics { padding: 10px 13px; display: flex; flex-direction: column; gap: 8px; }
.graph__metric { display: flex; align-items: center; gap: 9px; background: none; border: none; cursor: pointer; padding: 1px 0; text-align: left; }
.graph__metric-dot { width: 14px; height: 14px; border-radius: 999px; flex-shrink: 0; border: 1.5px solid rgba(22, 36, 61, 0.25); box-sizing: border-box; background: #fff; transition: border .15s ease; }
.graph__metric.is-on .graph__metric-dot { border: 4px solid var(--copper); }
.graph__metric-label { font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--text-2); }
.graph__metric.is-on .graph__metric-label { font-weight: 600; color: var(--navy); }
.graph__detail { padding: 13px 13px 14px; }
.graph__detail input[type=range] { width: 100%; accent-color: var(--copper); cursor: pointer; }
.graph__detail-labels { display: flex; justify-content: space-between; font-size: 10px; color: var(--text-3); margin-top: 4px; font-weight: 600; }
.graph__port { position: absolute; right: -5px; top: 50%; width: 9px; height: 9px; border-radius: 999px; background: var(--copper); border: 2px solid #fff; transform: translateY(-50%); }
.graph__out {
  position: absolute; left: 60%; top: 23%; width: 37.9%; background: #fff;
  border: 1px solid rgba(22, 36, 61, 0.12); border-radius: 14px;
  box-shadow: 0 18px 40px rgba(22, 36, 61, 0.14); z-index: 3; animation: finFloat 6s ease-in-out infinite;
}
.graph__out-head { padding: 9px 13px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.graph__out-head .title { font-size: 11.5px; font-weight: 600; color: var(--navy); }
.graph__live { font-size: 9.5px; color: var(--green); font-weight: 700; background: rgba(31, 138, 76, 0.1); padding: 2px 7px; border-radius: 5px; }
.graph__out-body { padding: 14px 14px 16px; }
.graph__kpi-label { font-size: 10.5px; color: var(--text-3); font-weight: 600; margin-bottom: 3px; }
.graph__kpi-value { font-family: var(--serif); font-size: clamp(20px, 2.4vw, 28px); font-weight: 700; color: var(--navy); letter-spacing: -0.01em; }
.graph__kpi-sub { font-size: 10.5px; color: var(--green); font-weight: 600; margin-bottom: 14px; }
.graph__bars { display: flex; align-items: flex-end; gap: 4px; height: 74px; }
.graph__bar { border-radius: 3px 3px 0 0; transition: height .3s cubic-bezier(.22,1,.36,1); min-width: 3px; flex: 1; }
.graph__tags { display: flex; gap: 4px; margin-top: 12px; flex-wrap: wrap; }
.graph__tag { font-size: 9.5px; font-weight: 600; color: var(--text-2); background: #F2F1ED; padding: 3px 8px; border-radius: 6px; }
.graph__out-port { position: absolute; left: -5px; width: 9px; height: 9px; border-radius: 999px; background: var(--navy); border: 2px solid #fff; }

/* ============================================================ PAIN POINTS = */
.pain { background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pain__inner { max-width: 1200px; margin: 0 auto; padding: clamp(64px, 9vw, 112px) clamp(20px, 5vw, 64px); }
.pain__head { max-width: 700px; margin-bottom: 48px; }
.pain__head p { font-size: 16px; color: var(--text-2); margin: 0; }
.pain__grid { display: grid; grid-template-columns: 1.12fr 0.88fr; gap: clamp(20px, 3vw, 40px); align-items: start; }
.pain__list { display: flex; flex-direction: column; gap: 8px; }
.pain__row {
  display: flex; align-items: center; gap: 12px; padding: 12px 15px; border-radius: 12px;
  cursor: pointer; border: 1px solid rgba(22, 36, 61, 0.08); background: transparent;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.pain__row.is-active { background: #fff; border-color: var(--copper); box-shadow: 0 6px 16px rgba(22, 36, 61, 0.07); }
.pain__check {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 999px; display: flex;
  align-items: center; justify-content: center; transition: all .18s ease;
  background: transparent; border: 1.5px solid rgba(22, 36, 61, 0.22);
}
.pain__check svg { display: none; }
.pain__row.is-selected .pain__check { background: var(--copper); border: 1px solid var(--copper); }
.pain__row.is-selected .pain__check svg { display: block; }
.pain__quote { font-family: var(--sans); font-size: 14.5px; line-height: 1.35; font-weight: 500; color: #3A4252; }
.pain__row.is-selected .pain__quote, .pain__row.is-active .pain__quote { color: var(--navy); }
.pain__row.is-selected .pain__quote { font-weight: 600; }

.pain__panel {
  position: sticky; top: 96px; background: linear-gradient(150deg, var(--navy), var(--navy-2));
  border-radius: 22px; padding: clamp(24px, 3vw, 32px); color: var(--bg);
  box-shadow: 0 24px 50px rgba(22, 36, 61, 0.18); overflow: hidden;
}
.pain__panel-halo { position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; background: radial-gradient(circle, rgba(201, 161, 78, 0.2), transparent 70%); pointer-events: none; }
.pain__panel-inner { position: relative; }
.pain__ringwrap { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.pain__ring { position: relative; width: 84px; height: 84px; flex-shrink: 0; }
.pain__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.pain__ring-progress { transition: stroke-dashoffset .55s cubic-bezier(.22,1,.36,1); }
.pain__ring-num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.pain__ring-num .count { font-family: var(--serif); font-size: 26px; font-weight: 700; line-height: 1; }
.pain__ring-num .total { font-size: 10px; color: rgba(247, 246, 243, 0.55); font-weight: 600; }
.pain__ring-caption { font-size: 13.5px; line-height: 1.45; color: rgba(247, 246, 243, 0.7); font-weight: 500; }
.pain__preview { background: rgba(247, 246, 243, 0.05); border: 1px solid rgba(247, 246, 243, 0.1); border-radius: 14px; padding: 18px; min-height: 128px; }
.pain__preview-quote { font-family: var(--serif); font-size: 17px; font-weight: 600; color: var(--bg); line-height: 1.32; margin-bottom: 10px; text-wrap: pretty; }
.pain__preview-desc { font-size: 13.5px; line-height: 1.55; color: rgba(247, 246, 243, 0.66); margin: 0; text-wrap: pretty; }
.pain__tailored { margin-top: 18px; animation: finRise .45s cubic-bezier(.22,1,.36,1) both; }
.pain__tailored[hidden] { display: none; }
.pain__tailored p { font-size: 14px; line-height: 1.45; color: var(--gold); font-weight: 600; margin: 0 0 14px; text-wrap: pretty; }
.pain__tailored a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; text-decoration: none; font-size: 15px; font-weight: 600; color: var(--navy); background: var(--gold); padding: 13px 22px; border-radius: 999px; }
.pain__hint { margin-top: 16px; font-size: 12.5px; color: rgba(247, 246, 243, 0.5); text-align: center; }
.pain__hint[hidden] { display: none; }
.pain__bridge { margin-top: 40px; max-width: 780px; }
.pain__bridge p { font-family: var(--serif); font-size: clamp(19px, 2.3vw, 26px); line-height: 1.38; color: var(--navy); font-weight: 600; margin: 0; text-wrap: pretty; }
.pain__bridge .dash { color: var(--copper); }

/* ============================================================== SOLUTION == */
.sol { max-width: 1200px; margin: 0 auto; padding: clamp(64px, 9vw, 112px) clamp(20px, 5vw, 64px); }
.sol__head { max-width: 700px; margin-bottom: 48px; }
.sol__head p { font-size: 18px; line-height: 1.6; color: var(--text-2); margin: 0; text-wrap: pretty; }
.sol__box {
  position: relative; background: linear-gradient(135deg, #FBFAF8, #F2F0EB);
  border: 1px solid rgba(22, 36, 61, 0.08); border-radius: 24px; padding: clamp(26px, 4vw, 52px); overflow: hidden;
}
.sol__box-grid-bg { position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(22, 36, 61, 0.05) 1px, transparent 1px); background-size: 20px 20px; pointer-events: none; }
.sol__grid { position: relative; display: grid; grid-template-columns: 1fr 130px 0.94fr; gap: clamp(12px, 2vw, 26px); align-items: center; }
.sol__cards { display: flex; flex-direction: column; gap: 12px; }
.sol__card { display: flex; align-items: center; gap: 13px; background: #fff; border: 1px solid rgba(22, 36, 61, 0.08); border-radius: 14px; padding: 15px 16px; box-shadow: 0 4px 14px rgba(22, 36, 61, 0.05); }
.sol__card-icon { flex-shrink: 0; width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.sol__card-icon--navy { background: rgba(35, 55, 92, 0.08); }
.sol__card-icon--copper { background: rgba(176, 121, 63, 0.1); }
.sol__card-title { font-family: var(--serif); font-size: 15px; font-weight: 600; color: var(--navy); line-height: 1.25; }
.sol__conn { position: relative; height: 180px; }
.sol__conn svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sol__hub { position: relative; background: linear-gradient(150deg, var(--navy), var(--navy-2)); border-radius: 18px; padding: 22px; color: var(--bg); box-shadow: 0 18px 40px rgba(22, 36, 61, 0.2); animation: finFloat 6s ease-in-out infinite; }
.sol__hub-live { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.sol__hub-live .dot { width: 7px; height: 7px; border-radius: 999px; background: var(--green-2); animation: finFlick 1.6s ease-in-out infinite; }
.sol__hub-live .label { font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.sol__hub-spark { width: 100%; height: 46px; margin-bottom: 14px; }
.sol__hub-title { font-family: var(--serif); font-size: 17px; font-weight: 600; line-height: 1.25; margin-bottom: 5px; }
.sol__hub-sub { font-size: 12.5px; color: rgba(247, 246, 243, 0.62); line-height: 1.45; }

/* ============================================================== DIAGNOSE == */
.diag { margin-top: 48px; position: relative; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); border-radius: 24px; padding: clamp(32px, 4.5vw, 52px); overflow: hidden; }
.diag__halo { position: absolute; right: -60px; top: -60px; width: 280px; height: 280px; background: radial-gradient(circle, rgba(201, 161, 78, 0.22), transparent 70%); }
.diag__grid { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.diag__eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; border: 1px solid rgba(201, 161, 78, 0.4); padding: 6px 12px; border-radius: 999px; }
.diag__title { font-family: var(--serif); font-size: clamp(25px, 3.2vw, 35px); font-weight: 700; color: var(--bg); margin: 0 0 18px; line-height: 1.15; letter-spacing: -0.01em; }
.diag__body { font-size: 16.5px; line-height: 1.62; color: rgba(247, 246, 243, 0.78); margin: 0 0 28px; max-width: 560px; text-wrap: pretty; }
.diag__visual { display: flex; flex-direction: column; gap: 16px; }
.diag__report { position: relative; background: rgba(247, 246, 243, 0.05); border: 1px solid rgba(247, 246, 243, 0.12); border-radius: 16px; padding: 20px; overflow: hidden; }
.diag__scanline { position: absolute; left: 14px; right: 14px; top: 6px; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); border-radius: 2px; z-index: 2; animation: finScan 3.4s ease-in-out infinite; }
.diag__report-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.diag__report-label { font-size: 12.5px; font-weight: 600; color: var(--bg); }
.diag__report-status { font-size: 10px; color: var(--gold); font-weight: 700; display: flex; align-items: center; gap: 6px; text-transform: uppercase; letter-spacing: 0.06em; }
.diag__report-status .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--gold); animation: finFlick 1.3s ease-in-out infinite; }
.diag__lines { display: flex; flex-direction: column; gap: 11px; }
.diag__line { display: flex; gap: 9px; align-items: center; }
.diag__line .pt { width: 5px; height: 5px; border-radius: 999px; flex-shrink: 0; }
.diag__line .pt--gold { background: var(--gold); }
.diag__line .pt--dim { background: rgba(247, 246, 243, 0.3); }
.diag__line .bar { height: 7px; border-radius: 4px; }
.diag__line .bar--gold { flex: 1; background: rgba(201, 161, 78, 0.5); }
.diag__line .bar--gold2 { width: 92%; background: rgba(201, 161, 78, 0.38); }
.diag__line .bar--dim { background: rgba(247, 246, 243, 0.16); }
.diag__line .bar--w84 { width: 84%; }
.diag__line .bar--w68 { width: 68%; }
.diag__chart { display: flex; align-items: flex-end; gap: 6px; height: 48px; margin-top: 18px; }
.diag__chart .b { flex: 1; border-radius: 3px 3px 0 0; background: rgba(247, 246, 243, 0.22); }
.diag__chart .b1 { height: 40%; } .diag__chart .b2 { height: 60%; } .diag__chart .b3 { height: 50%; }
.diag__chart .b4 { height: 80%; background: var(--copper); } .diag__chart .b5 { height: 100%; background: var(--gold); }
.diag__chips { display: flex; gap: 8px; flex-wrap: wrap; }
.diag__chip { font-size: 12px; font-weight: 600; color: var(--gold); background: rgba(201, 161, 78, 0.12); border: 1px solid rgba(201, 161, 78, 0.25); padding: 6px 12px; border-radius: 999px; }

/* ============================================================== METHOD ==== */
.method { margin-top: 48px; position: relative; }
.method__line { position: absolute; top: 24px; left: 16%; right: 16%; height: 2px; background: rgba(176, 121, 63, 0.16); overflow: hidden; border-radius: 2px; }
.method__line .runner { position: absolute; inset: 0; background-image: linear-gradient(90deg, transparent, var(--copper), transparent); background-size: 45% 100%; animation: finDash 2.6s linear infinite; }
.method__grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.method__step { text-align: center; padding: 0 6px; }
.method__num { width: 50px; height: 50px; margin: 0 auto 16px; border-radius: 999px; color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 18px; font-weight: 700; }
.method__num--copper { background: var(--copper); box-shadow: 0 8px 18px rgba(176, 121, 63, 0.3); }
.method__num--navy { background: var(--navy); box-shadow: 0 8px 18px rgba(22, 36, 61, 0.25); }
.method__step h4 { font-family: var(--serif); font-size: 18px; font-weight: 600; color: var(--navy); margin: 0 0 7px; }
.method__step p { font-size: 13.5px; line-height: 1.5; color: var(--text-2); margin: 0; max-width: 260px; margin-left: auto; margin-right: auto; text-wrap: pretty; }

/* ================================================================ DEMO ==== */
.demo { background: var(--navy); position: relative; overflow: hidden; }
.demo__halo { position: absolute; left: 50%; top: 0; width: 900px; height: 500px; transform: translateX(-50%); background: radial-gradient(ellipse, rgba(176, 121, 63, 0.14), transparent 65%); }
.demo__inner { position: relative; max-width: 1200px; margin: 0 auto; padding: clamp(64px, 9vw, 116px) clamp(20px, 5vw, 64px); }
.demo__head { text-align: center; max-width: 700px; margin: 0 auto 56px; }
.demo__head h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(28px, 3.8vw, 44px); line-height: 1.1; letter-spacing: -0.02em; color: var(--bg); margin: 0; text-wrap: balance; }
.demo__row { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 3.5vw, 44px); flex-wrap: wrap; }
.demo__excel { position: relative; width: 184px; height: 206px; flex-shrink: 0; }
.demo__excel .sheet { position: absolute; inset: 0; border-radius: 12px; }
.demo__excel .sheet1 { transform: rotate(-7deg); background: rgba(247, 246, 243, 0.04); border: 1px solid rgba(247, 246, 243, 0.1); }
.demo__excel .sheet2 { transform: rotate(-3deg); background: rgba(247, 246, 243, 0.05); border: 1px solid rgba(247, 246, 243, 0.12); }
.demo__excel .sheet-top { background: #1b2c47; border: 1px solid rgba(201, 161, 78, 0.35); padding: 15px; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35); }
.demo__excel-title { font-size: 11px; font-weight: 700; letter-spacing: 0.03em; color: var(--gold); margin-bottom: 13px; }
.demo__excel-rows { display: flex; flex-direction: column; gap: 7px; }
.demo__excel-row { display: grid; grid-template-columns: 1fr 1fr 0.7fr; gap: 6px; font-family: monospace; }
.demo__excel-row.head { font-size: 9px; color: rgba(247, 246, 243, 0.4); text-transform: uppercase; }
.demo__excel-row.data { font-size: 10px; color: rgba(247, 246, 243, 0.75); }
.demo__excel-row .up { color: var(--green-2); }
.demo__excel-row .down { color: var(--red); }
.demo__excel-err { height: 18px; margin-top: 2px; border-radius: 3px; background: rgba(192, 86, 63, 0.3); display: flex; align-items: center; padding-left: 8px; font-size: 8.5px; color: rgba(247, 246, 243, 0.6); font-family: monospace; animation: finFlick 2.6s ease-in-out infinite; }
.demo__arrow { flex-shrink: 0; color: var(--copper); animation: finArrow 1.6s ease-in-out infinite; }
.demo__dash-wrap { flex: 1; min-width: 300px; max-width: 600px; }
.demo__dash { background: #0f1e34; border: 1px solid rgba(247, 246, 243, 0.1); border-radius: 14px; padding: 14px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.42); }
.demo__dash-head { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.demo__dot { width: 8px; height: 8px; border-radius: 999px; }
.demo__dot--red { background: var(--red); } .demo__dot--gold { background: var(--gold); } .demo__dot--green { background: var(--green-2); }
.demo__dash-name { margin-left: 8px; font-size: 11px; color: rgba(247, 246, 243, 0.6); font-weight: 500; }
.demo__rt { margin-left: auto; font-size: 9px; color: var(--green-2); font-weight: 700; background: rgba(62, 155, 122, 0.16); padding: 2px 7px; border-radius: 5px; display: flex; align-items: center; gap: 5px; }
.demo__rt .dot { width: 5px; height: 5px; border-radius: 999px; background: var(--green-2); animation: finFlick 1.5s ease-in-out infinite; }
.demo__kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 10px; }
.demo__kpi { background: var(--navy); border-radius: 8px; padding: 9px 10px; }
.demo__kpi--copper { border-top: 3px solid var(--copper); }
.demo__kpi--gold { border-top: 3px solid var(--gold); }
.demo__kpi--green { border-top: 3px solid var(--green-2); }
.demo__kpi--grey { border-top: 3px solid #6B7A90; }
.demo__kpi-label { font-size: 8.5px; font-weight: 700; letter-spacing: 0.04em; color: rgba(247, 246, 243, 0.5); text-transform: uppercase; margin-bottom: 3px; }
.demo__kpi-value { font-family: var(--serif); font-size: 17px; font-weight: 700; color: var(--bg); line-height: 1; }
.demo__kpi-delta { font-size: 9px; font-weight: 600; margin-top: 3px; }
.demo__kpi-delta.up { color: var(--green-2); } .demo__kpi-delta.down { color: var(--green-2); }
.demo__lower { display: grid; grid-template-columns: 1.55fr 1fr; gap: 8px; }
.demo__panel { background: var(--navy); border: 1px solid rgba(247, 246, 243, 0.06); border-radius: 10px; padding: 11px 12px; }
.demo__panel-title { font-size: 8.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(247, 246, 243, 0.45); margin-bottom: 8px; }
.demo__trend svg { width: 100%; height: 74px; }
.demo__right { display: flex; flex-direction: column; gap: 8px; }
.demo__dept { flex: 1; }
.demo__dept .title { font-size: 8px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: rgba(247, 246, 243, 0.45); margin-bottom: 8px; }
.demo__dept-bars { display: flex; flex-direction: column; gap: 6px; }
.demo__dept-bars .b { height: 6px; border-radius: 3px; }
.demo__dept-bars .b1 { width: 88%; background: var(--copper); }
.demo__dept-bars .b2 { width: 62%; background: var(--gold); }
.demo__dept-bars .b3 { width: 40%; background: #6B7A90; }
.demo__donut { display: flex; align-items: center; gap: 10px; }
.demo__donut svg { transform: rotate(-90deg); flex-shrink: 0; }
.demo__donut .val { font-family: var(--serif); font-size: 15px; font-weight: 700; color: var(--bg); line-height: 1; }
.demo__donut .lbl { font-size: 8.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(247, 246, 243, 0.45); margin-top: 2px; }
.demo__stand1 { width: 66px; height: 13px; margin: 0 auto; background: linear-gradient(#1b2c47, #0f1e34); border-radius: 0 0 5px 5px; }
.demo__stand2 { width: 120px; height: 6px; margin: 0 auto; background: #0f1e34; border-radius: 3px; }

/* ================================================================ CASES === */
.cases { max-width: 1200px; margin: 0 auto; padding: clamp(64px, 9vw, 112px) clamp(20px, 5vw, 64px); }
.cases__head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px; margin-bottom: 44px; }
.cases__head > div { max-width: 560px; }
.cases__link { text-decoration: none; font-size: 15px; font-weight: 600; color: var(--navy); display: inline-flex; align-items: center; gap: 7px; }
.cases__link span { color: var(--copper); }
.cases__viewport { position: relative; }
.cases__window { overflow: hidden; border-radius: 24px; }
.cases__track { display: flex; transition: transform .55s cubic-bezier(.22,1,.36,1); }
.cases__slide { flex: 0 0 100%; min-width: 100%; }
.cases__card { display: grid; grid-template-columns: 1fr 1fr; background: #fff; border: 1px solid rgba(22, 36, 61, 0.08); border-radius: 24px; overflow: hidden; }
.cases__visual { position: relative; min-height: 268px; padding: 26px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.cases__visual--navy { background: linear-gradient(135deg, var(--navy-2), var(--navy)); }
.cases__visual--copper { background: linear-gradient(135deg, var(--copper), var(--copper-dark)); }
.cases__visual svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cases__tag { position: relative; align-self: flex-start; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 13px; border-radius: 999px; }
.cases__tag--gold { color: var(--gold); background: rgba(22, 36, 61, 0.45); }
.cases__tag--navy { color: var(--navy); background: rgba(247, 246, 243, 0.85); }
.cases__stat { position: relative; font-family: var(--serif); font-size: 34px; font-weight: 700; color: var(--bg); line-height: 1; }
.cases__stat small { font-size: 13px; font-weight: 500; color: rgba(247, 246, 243, 0.6); margin-left: 8px; }
.cases__content { padding: clamp(26px, 3vw, 40px); display: flex; flex-direction: column; justify-content: center; }
.cases__content h3 { font-family: var(--serif); font-size: clamp(21px, 2.3vw, 27px); font-weight: 700; color: var(--navy); margin: 0 0 14px; line-height: 1.2; text-wrap: balance; }
.cases__content p { font-size: 15px; line-height: 1.6; color: var(--text-2); margin: 0 0 24px; text-wrap: pretty; }
.cases__read { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 15px; font-weight: 600; color: var(--navy); }
.cases__read span { color: var(--copper); }
.cases__more { position: relative; min-height: 268px; background: linear-gradient(135deg, var(--navy), var(--navy-2)); border-radius: 24px; padding: clamp(32px, 5vw, 56px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.cases__more-halo { position: absolute; right: -40px; top: -40px; width: 240px; height: 240px; background: radial-gradient(circle, rgba(201, 161, 78, 0.18), transparent 70%); }
.cases__more h3 { position: relative; font-family: var(--serif); font-size: clamp(24px, 3vw, 34px); font-weight: 700; color: var(--bg); margin: 0 0 14px; letter-spacing: -0.01em; }
.cases__more p { position: relative; font-size: 16px; line-height: 1.6; color: rgba(247, 246, 243, 0.75); margin: 0 0 28px; max-width: 420px; }
.cases__more a { position: relative; }
.cases__nav { display: flex; align-items: center; justify-content: space-between; margin-top: 24px; }
.cases__dots { display: flex; gap: 8px; align-items: center; }
.cases__dot { height: 8px; border-radius: 999px; border: none; cursor: pointer; transition: all .3s ease; width: 8px; background: rgba(22, 36, 61, 0.18); }
.cases__dot.is-on { width: 26px; background: var(--copper); }
.cases__arrows { display: flex; gap: 10px; }
.cases__arrow { width: 44px; height: 44px; border-radius: 999px; border: 1px solid rgba(22, 36, 61, 0.14); background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--navy); transition: all .18s ease; }
.cases__arrow:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(22, 36, 61, 0.1); }

/* ================================================================ CTA ===== */
.cta { max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 64px) clamp(72px, 9vw, 112px); }
.cta__box { position: relative; background: linear-gradient(135deg, var(--navy), var(--navy-2)); border-radius: 28px; padding: clamp(48px, 7vw, 88px) clamp(28px, 5vw, 72px); text-align: center; overflow: hidden; }
.cta__glow { position: absolute; left: 50%; bottom: -120px; width: 600px; height: 400px; transform: translateX(-50%); background: radial-gradient(ellipse, rgba(176, 121, 63, 0.2), transparent 65%); animation: finGlow 7s ease-in-out infinite; }
.cta__inner { position: relative; }
.cta__inner h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(30px, 4.2vw, 50px); line-height: 1.08; letter-spacing: -0.02em; color: var(--bg); margin: 0 0 20px; text-wrap: balance; }
.cta__inner p { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.6; color: rgba(247, 246, 243, 0.78); max-width: 560px; margin: 0 auto 36px; text-wrap: pretty; }
.cta__inner .btn-gold { font-size: 17px; padding: 16px 32px; box-shadow: 0 12px 30px rgba(201, 161, 78, 0.3); }

/* ================================================================ FOOTER == */
.footer { background: var(--navy); color: var(--bg); padding: clamp(56px, 8vw, 88px) clamp(20px, 5vw, 64px) 40px; }
.footer__top { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between; align-items: flex-start; }
.footer__brand { max-width: 420px; }
.footer__brand-row { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; }
.footer__logo { display: inline-flex; width: 34px; height: 34px; border-radius: 9px; background: rgba(247, 246, 243, 0.06); border: 1px solid rgba(247, 246, 243, 0.12); align-items: center; justify-content: center; }
.footer__logo span { width: 12px; height: 12px; border: 2px solid var(--gold); border-radius: 3px; display: block; }
.footer__wordmark { font-family: var(--serif); font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.footer__tagline { margin: 0; font-size: 17px; line-height: 1.6; color: rgba(247, 246, 243, 0.74); text-wrap: pretty; }
.footer__cols { display: flex; gap: clamp(40px, 6vw, 96px); flex-wrap: wrap; }
.footer__col-title { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.footer__col-links { display: flex; flex-direction: column; gap: 11px; }
.footer__col-links a, .footer__col-links span { text-decoration: none; color: rgba(247, 246, 243, 0.82); font-size: 15px; }
.footer__col-links span { color: rgba(247, 246, 243, 0.6); }
.footer__col-links a.gold { color: var(--gold); font-weight: 600; }
.footer__bottom { max-width: 1200px; margin: 48px auto 0; padding-top: 26px; border-top: 1px solid rgba(247, 246, 243, 0.1); display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; }
.footer__bottom span { font-size: 13.5px; color: rgba(247, 246, 243, 0.5); }
.footer__bottom a { text-decoration: none; color: rgba(247, 246, 243, 0.5); font-size: 13.5px; }

/* ============================================================ RESPONSIVE == */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .demo__row { flex-direction: column; }
  .demo__arrow { transform: rotate(90deg); }
}
@media (max-width: 920px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
}
@media (max-width: 860px) {
  .pain__grid { grid-template-columns: 1fr; }
  .pain__panel { position: static; }
}
@media (max-width: 760px) {
  .diag__grid { grid-template-columns: 1fr; }
  .method__grid { grid-template-columns: 1fr; }
  .sol__grid { grid-template-columns: 1fr; }
  .sol__conn { display: none; }
  .method__line { display: none; }
  .cases__card { grid-template-columns: 1fr; }
}

/* Scroll reveal — elements fade/slide in as they enter the viewport.
   Hidden state only applies once JS adds .reveal, so no-JS users see content. */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s cubic-bezier(.22,1,.36,1), transform .6s cubic-bezier(.22,1,.36,1); }
.reveal.reveal-in { opacity: 1; transform: none; }
.method__step.reveal:nth-child(2) { transition-delay: .08s; }
.method__step.reveal:nth-child(3) { transition-delay: .16s; }
.over-card.reveal:nth-child(2) { transition-delay: .1s; }
