/* ============================================================
   Accountitz — Marketing site
   Design system per architecture/22-visual-design-system.md:
   Ming Green #2E7274 · Comet Blue #62668A · Tundora #4C4C4C ·
   Wild Sand #F7F7F7 · Rubik (self-hosted) · 16% logo radius
   ============================================================ */

@font-face {
  font-family: "Rubik";
  src: url("fonts/rubik-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Rubik";
  src: url("fonts/rubik-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/geist-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f7f7f7;
  --surface: #ffffff;
  --surface-2: #fdfdfd;
  --ink: #4c4c4c;
  --ink-strong: #232323;
  --muted: #707070;
  --primary: #2e7274;
  --primary-dark: #1e6264;
  --primary-light: #4b8f91;
  --accent: #c0e3e4;
  --accent-ink: #003436;
  --secondary: #62668a;
  --secondary-muted: #dbdfff;
  --success: #2e9e66;
  --amber: #c98a1b;
  --dark-1: #000709;
  --dark-2: #01272a;
  --dark-3: #063a3d;
  --dark-card: rgba(255, 255, 255, 0.045);
  --dark-border: rgba(255, 255, 255, 0.09);
  --border: #e4e7e7;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(0, 20, 20, 0.05), 0 2px 8px rgba(0, 20, 20, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 25, 25, 0.07), 0 12px 32px rgba(0, 25, 25, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 30, 30, 0.1), 0 24px 64px rgba(0, 30, 30, 0.12);
  --font-sans: "Rubik", system-ui, -apple-system, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

::selection { background: var(--primary); color: #f7f7f7; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.mono { font-family: var(--font-mono); font-size: 0.92em; }
.num { font-variant-numeric: tabular-nums; text-align: right; font-feature-settings: "tnum"; }

/* trend triangles (Rubik has no ▲/▼ glyphs) */
.tri {
  display: inline-block;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  margin-right: 5px;
  vertical-align: 1px;
}
.tri-up { border-bottom: 6px solid currentColor; }
.tri-down { border-top: 6px solid currentColor; }

h1, h2, h3 {
  font-weight: 500;
  color: var(--ink-strong);
  letter-spacing: -0.03em;
  line-height: 1.08;
}

h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }

h2 em, h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--primary) 10%, var(--primary-light) 55%, var(--secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============ scroll progress ============ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2.5px;
  width: 0;
  background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--secondary));
  z-index: 200;
  transition: width 0.08s linear;
}

/* ============ reveal animations ============ */
.reveal, .reveal-scale {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal-scale { transform: translateY(36px) scale(0.97); }
.reveal.in, .reveal-scale.in {
  opacity: 1;
  transform: none;
}

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(247, 247, 247, 0.82);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: var(--border);
  box-shadow: 0 1px 20px rgba(0, 30, 30, 0.06);
}
.nav.on-dark:not(.scrolled) { color: #e8f0f0; }
.nav.on-dark:not(.scrolled) .nav-links a { color: rgba(232, 240, 240, 0.82); }
.nav.on-dark:not(.scrolled) .nav-links a:hover { color: #fff; }
.nav.on-dark:not(.scrolled) .brand-word { color: #f7f7f7; }
.nav.on-dark:not(.scrolled) .lang-current { color: #e8f0f0; border-color: rgba(255,255,255,0.18); }

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  background: var(--primary);
  color: #f7f7f7;
  border-radius: 16.5%;
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.02em;
  box-shadow: 0 2px 10px rgba(46, 114, 116, 0.35);
  transition: transform 0.3s var(--ease-spring);
}
.brand:hover .brand-tile { transform: rotate(-6deg) scale(1.05); }
.brand-tile-sm { width: 26px; height: 26px; font-size: 12px; }
.brand-word {
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ink-strong);
}

.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-size: 14.5px;
  padding: 8px 13px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.nav-links a:hover { background: rgba(46, 114, 116, 0.08); color: var(--primary-dark); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch { position: relative; }
.lang-current {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 13px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.lang-current:hover { border-color: var(--primary); background: rgba(46,114,116,0.06); }
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  padding: 6px;
  min-width: 150px;
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.lang-switch.open .lang-menu {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.lang-menu li {
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  color: var(--ink);
  transition: background 0.15s;
}
.lang-menu li:hover, .lang-menu li.active { background: rgba(46, 114, 116, 0.09); color: var(--primary-dark); }
.lang-menu li.active { font-weight: 500; }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-burger span {
  width: 22px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 20px;
  background: rgba(247, 247, 247, 0.97);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.nav-mobile a {
  text-decoration: none;
  color: var(--ink);
  padding: 11px 12px;
  border-radius: 10px;
  font-size: 15px;
}
.nav-mobile a:hover { background: rgba(46,114,116,0.08); }
.nav-mobile .btn { margin-top: 8px; text-align: center; }
.nav.mobile-open .nav-mobile { display: flex; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius);
  padding: 12px 22px;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s ease, background 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-sm { padding: 9px 17px; font-size: 14px; }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #f7f7f7;
  box-shadow: 0 2px 8px rgba(46, 114, 116, 0.35), inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46, 114, 116, 0.45), inset 0 1px 0 rgba(255,255,255,0.15);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #e8f0f0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255,255,255,0.4); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: var(--primary-dark);
  border: 1.5px solid var(--primary);
}
.btn-outline:hover { background: rgba(46, 114, 116, 0.07); transform: translateY(-2px); }

/* ============ EYEBROW / SECTION HEADS ============ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-dark);
  background: rgba(46, 114, 116, 0.08);
  border: 1px solid rgba(46, 114, 116, 0.18);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.eyebrow-light {
  color: #9fd4d5;
  background: rgba(192, 227, 228, 0.07);
  border-color: rgba(192, 227, 228, 0.18);
}
.pulse-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  position: relative;
  flex-shrink: 0;
}
.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  opacity: 0.6;
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(0.5); opacity: 0.7; }
  70% { transform: scale(1.5); opacity: 0; }
  100% { opacity: 0; }
}

.section-head {
  max-width: 760px;
  margin: 0 auto 64px;
  text-align: center;
}
.section-sub {
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: var(--muted);
  margin-top: 20px;
  line-height: 1.65;
}
.section-head-light h2 { color: #f2f7f7; }
.section-head-light .section-sub { color: rgba(214, 231, 231, 0.72); }

/* ============ HERO ============ */
.hero {
  position: relative;
  background: linear-gradient(168deg, var(--dark-2) 0%, var(--dark-1) 55%, #021114 100%);
  color: #e8f0f0;
  padding: 168px 0 110px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(192, 227, 228, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(192, 227, 228, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 30%, transparent 75%);
}
.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  will-change: transform;
}
.aurora-1 {
  width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(46, 114, 116, 0.55), transparent 65%);
  top: -220px; right: -120px;
  animation: drift1 22s ease-in-out infinite alternate;
}
.aurora-2 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(98, 102, 138, 0.4), transparent 65%);
  bottom: -180px; left: -140px;
  animation: drift2 26s ease-in-out infinite alternate;
}
.aurora-3 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(75, 143, 145, 0.35), transparent 65%);
  top: 30%; left: 38%;
  animation: drift3 19s ease-in-out infinite alternate;
}
@keyframes drift1 { to { transform: translate(-90px, 70px) scale(1.12); } }
@keyframes drift2 { to { transform: translate(110px, -60px) scale(1.08); } }
@keyframes drift3 { to { transform: translate(-70px, -80px) scale(0.92); } }

.ledger-stream {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0.5;
}
.stream-line {
  position: absolute;
  left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 6%;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(159, 212, 213, 0.16);
  white-space: nowrap;
  animation: streamUp linear infinite;
}
@keyframes streamUp {
  from { transform: translateY(110vh); }
  to { transform: translateY(-12vh); }
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.15fr);
  gap: 64px;
  align-items: center;
}

.hero-title {
  font-size: clamp(2.7rem, 5.6vw, 4.35rem);
  color: #f4f9f9;
  margin: 0 0 24px;
}
.hero-title em {
  background: linear-gradient(100deg, #8fd0d1 0%, #c0e3e4 50%, #a8b0e0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: clamp(1.04rem, 1.5vw, 1.2rem);
  color: rgba(214, 231, 231, 0.78);
  max-width: 540px;
  line-height: 1.65;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  margin: 36px 0 48px;
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  gap: 44px;
  flex-wrap: wrap;
}
.hero-stat dt {
  font-size: 12.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(159, 212, 213, 0.55);
  order: 2;
  margin-top: 4px;
}
.hero-stat dd {
  font-size: 30px;
  font-weight: 500;
  color: #f4f9f9;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.hero-stat { display: flex; flex-direction: column; }

/* hero visual: app window */
.hero-visual { position: relative; }
.app-window {
  background: #fbfdfd;
  border-radius: 16px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.09), 0 0 120px rgba(46, 114, 116, 0.25);
  overflow: hidden;
  transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
  transition: transform 0.6s var(--ease-out);
}
.hero-visual:hover .app-window { transform: perspective(1400px) rotateY(-2deg) rotateX(0.5deg); }
.app-titlebar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 16px;
  background: #eef2f2;
  border-bottom: 1px solid #e2e8e8;
}
.tb-dot { width: 10px; height: 10px; border-radius: 50%; background: #d3dbdb; }
.tb-dot:nth-child(1) { background: #e8a09a; }
.tb-dot:nth-child(2) { background: #ecd39a; }
.tb-dot:nth-child(3) { background: #9fd4a8; }
.tb-title {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #8a9a9a;
}
.app-body {
  display: grid;
  grid-template-columns: 148px 1fr;
  min-height: 380px;
}
.app-sidebar {
  background: #f2f6f6;
  border-right: 1px solid #e4eaea;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.sb-logo { padding: 2px 8px 12px; }
.sb-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12.5px;
  color: #5a6a6a;
}
.sb-item.active { background: rgba(46, 114, 116, 0.1); color: var(--primary-dark); font-weight: 500; }
.sb-ico {
  width: 13px; height: 13px;
  border-radius: 4px;
  background: currentColor;
  opacity: 0.35;
  flex-shrink: 0;
}
.app-main { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi-card {
  background: var(--surface);
  border: 1px solid #e6ebeb;
  border-radius: 10px;
  padding: 11px 13px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.kpi-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.05em; color: #7d8d8d; }
.kpi-value { font-size: 16.5px; font-weight: 500; color: var(--ink-strong); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.kpi-unit { font-size: 11px; color: #7d8d8d; font-weight: 400; }
.kpi-trend { font-size: 10.5px; font-weight: 500; }
.kpi-trend.up { color: var(--success); }
.kpi-trend.down { color: var(--secondary); }

.chart-card {
  background: var(--surface);
  border: 1px solid #e6ebeb;
  border-radius: 10px;
  padding: 12px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.chart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-strong);
  margin-bottom: 10px;
}
.chart-legend { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; color: #7d8d8d; font-weight: 400; }
.lg { width: 10px; height: 3px; border-radius: 2px; display: inline-block; }
.lg.cur { background: var(--primary); }
.lg.prev { background: #c3d4d4; margin-left: 8px; }
.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  flex: 1;
  min-height: 88px;
}
.bar-group { flex: 1; display: flex; align-items: flex-end; gap: 3px; height: 100%; }
.bar {
  flex: 1;
  border-radius: 3px 3px 1px 1px;
  height: var(--h);
  transform-origin: bottom;
  animation: barGrow 1.1s var(--ease-out) backwards;
}
.bar.prev { background: #cfdcdc; }
.bar.cur { background: linear-gradient(180deg, var(--primary-light), var(--primary)); }
.bar-group:nth-child(1) .bar { animation-delay: 0.15s; }
.bar-group:nth-child(2) .bar { animation-delay: 0.25s; }
.bar-group:nth-child(3) .bar { animation-delay: 0.35s; }
.bar-group:nth-child(4) .bar { animation-delay: 0.45s; }
.bar-group:nth-child(5) .bar { animation-delay: 0.55s; }
.bar-group:nth-child(6) .bar { animation-delay: 0.65s; }
.bar-group:nth-child(7) .bar { animation-delay: 0.75s; }
@keyframes barGrow { from { transform: scaleY(0); } }

.ai-panel {
  background: linear-gradient(135deg, #062e30, #02181a);
  border: 1px solid rgba(159, 212, 213, 0.16);
  border-radius: 10px;
  padding: 11px 14px;
}
.ai-panel-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 500;
  color: #c0e3e4;
  margin-bottom: 7px;
}
.ai-badge {
  margin-left: auto;
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(159, 212, 213, 0.6);
  border: 1px solid rgba(159, 212, 213, 0.22);
  padding: 2.5px 8px;
  border-radius: 999px;
}
.ai-badge-light {
  color: var(--primary-dark);
  border-color: rgba(46, 114, 116, 0.3);
  background: rgba(46, 114, 116, 0.07);
}
.ai-line {
  display: flex;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #d9ecec;
  min-height: 34px;
  align-items: baseline;
}
.ai-q-label { color: var(--primary-light); font-weight: 500; }
.caret {
  display: inline-block;
  width: 7px; height: 14px;
  background: #8fd0d1;
  transform: translateY(2px);
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.ai-orb {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: conic-gradient(from 120deg, #4b8f91, #c0e3e4, #62668a, #4b8f91);
  animation: orbSpin 5s linear infinite;
  box-shadow: 0 0 12px rgba(143, 208, 209, 0.55);
  flex-shrink: 0;
}
.ai-orb-sm { width: 13px; height: 13px; }
@keyframes orbSpin { to { transform: rotate(360deg); } }

.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(6, 46, 48, 0.86);
  border: 1px solid rgba(159, 212, 213, 0.22);
  backdrop-filter: blur(10px);
  color: #d9ecec;
  font-size: 12.5px;
  font-weight: 500;
  padding: 10px 15px;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  animation: floaty 6s ease-in-out infinite;
  white-space: nowrap;
}
.float-chip svg { color: #8fd0d1; flex-shrink: 0; }
.chip-1 { top: 6%; left: -34px; animation-delay: 0.4s; }
.chip-2 { bottom: 22%; right: -26px; animation-delay: 1.6s; }
.chip-3 { bottom: -20px; left: 12%; animation-delay: 2.8s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-11px); }
}

.conf-pill {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  padding: 2.5px 9px;
  border-radius: 999px;
  background: rgba(46, 158, 102, 0.16);
  color: #4fd695;
  border: 1px solid rgba(46, 158, 102, 0.35);
  flex-shrink: 0;
}

.hero-fade {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 90px;
  background: linear-gradient(transparent, rgba(0, 7, 9, 0.6));
}

/* ============ TRUST BAR ============ */
.trustbar {
  background: var(--dark-1);
  padding: 26px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.trustbar-label {
  text-align: center;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(159, 212, 213, 0.4);
  margin-bottom: 16px;
}
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent); }
.marquee-track {
  display: flex;
  align-items: center;
  gap: 34px;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.mq-item {
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(214, 231, 231, 0.55);
  white-space: nowrap;
}
.mq-sep { color: rgba(159, 212, 213, 0.25); }

/* ============ AI SECTION ============ */
.ai-section {
  position: relative;
  background: linear-gradient(180deg, var(--dark-1) 0%, #02191c 50%, var(--dark-1) 100%);
  color: #e8f0f0;
  padding: 130px 0;
  overflow: hidden;
}
.ai-bg { position: absolute; inset: 0; pointer-events: none; }
.aurora-ai-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(46, 114, 116, 0.4), transparent 65%);
  top: -260px; left: -180px;
  animation: drift1 24s ease-in-out infinite alternate;
}
.aurora-ai-2 {
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(98, 102, 138, 0.32), transparent 65%);
  bottom: -220px; right: -160px;
  animation: drift2 28s ease-in-out infinite alternate;
}
.ai-section .container { position: relative; }

.ai-demo {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  gap: 36px;
  align-items: start;
}

.ai-chat {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(14px);
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  min-height: 620px;
}
.ai-chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--dark-border);
  background: rgba(255, 255, 255, 0.02);
}
.ai-chat-title { display: flex; flex-direction: column; line-height: 1.3; }
.ai-chat-title strong { color: #f0f7f7; font-size: 14.5px; font-weight: 500; }
.ai-chat-sub { font-size: 11px; color: rgba(159, 212, 213, 0.5); }
.ai-live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #4fd695;
}
.ai-messages {
  flex: 1;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  scroll-behavior: smooth;
}
.ai-msg {
  max-width: 92%;
  animation: msgIn 0.5s var(--ease-out) backwards;
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
}
.ai-msg-user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #f2f9f9;
  border-radius: 16px 16px 4px 16px;
  padding: 11px 16px;
  font-size: 14.5px;
  box-shadow: 0 4px 16px rgba(46, 114, 116, 0.3);
}
.ai-msg-bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--dark-border);
  border-radius: 4px 16px 16px 16px;
  padding: 14px 16px;
  font-size: 14px;
  color: #dcecec;
  width: 92%;
}
.ai-msg-bot p { margin-bottom: 10px; }
.ai-msg-bot p:last-child { margin-bottom: 0; }
.ai-msg-bot strong { color: #f0f7f7; font-weight: 500; }
.ai-msg-bot .mono { color: #9fd4d5; }

.ai-answer-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
}
.ai-answer-head .conf-pill { margin-left: auto; }
.ai-answer-title { font-weight: 500; color: #f0f7f7; font-size: 14px; }

.ai-table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0;
  font-size: 13px;
}
.ai-table th {
  text-align: left;
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(159, 212, 213, 0.55);
  padding: 6px 8px;
  border-bottom: 1px solid var(--dark-border);
}
.ai-table th.num, .ai-table td.num { text-align: right; }
.ai-table td {
  padding: 7px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #d5e8e8;
  font-variant-numeric: tabular-nums;
}
.ai-table tr:last-child td { border-bottom: none; }
.ai-table tr.ai-table-total td { font-weight: 500; color: #f0f7f7; border-top: 1px solid var(--dark-border); }

.ai-bars { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.ai-bar-row { display: grid; grid-template-columns: 128px 1fr 84px; align-items: center; gap: 10px; font-size: 12.5px; }
.ai-bar-row .num { color: #d5e8e8; }
.ai-bar-label { color: rgba(214, 231, 231, 0.75); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-bar-track { height: 7px; background: rgba(255, 255, 255, 0.07); border-radius: 4px; overflow: hidden; }
.ai-bar-fill {
  height: 100%;
  width: 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--primary-light), #8fd0d1);
  transition: width 1.1s var(--ease-out);
}

.ai-rationale {
  display: flex;
  gap: 9px;
  background: rgba(98, 102, 138, 0.14);
  border: 1px solid rgba(98, 102, 138, 0.3);
  border-radius: 10px;
  padding: 10px 13px;
  font-size: 12.5px;
  color: #c9cdea;
  margin-top: 12px;
  line-height: 1.5;
}
.ai-rationale svg { flex-shrink: 0; margin-top: 2px; color: #a8b0e0; }

.ai-sources { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.src-chip {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #9fd4d5;
  background: rgba(46, 114, 116, 0.14);
  border: 1px solid rgba(46, 114, 116, 0.32);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.ai-actions { display: flex; gap: 9px; margin-top: 14px; }
.ai-action {
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  border-radius: 9px;
  padding: 8px 15px;
  cursor: pointer;
  transition: transform 0.2s var(--ease-spring), background 0.2s, border-color 0.2s;
}
.ai-action:hover { transform: translateY(-1px); }
.ai-action-accept {
  background: var(--primary);
  border: 1px solid var(--primary-light);
  color: #f2f9f9;
}
.ai-action-accept:hover { background: var(--primary-dark); }
.ai-action-accept.done { background: rgba(46, 158, 102, 0.2); border-color: rgba(46, 158, 102, 0.5); color: #4fd695; pointer-events: none; }
.ai-action-secondary {
  background: transparent;
  border: 1px solid var(--dark-border);
  color: rgba(214, 231, 231, 0.8);
}
.ai-action-secondary:hover { border-color: rgba(159, 212, 213, 0.4); }
.ai-approved-note {
  display: none;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: #4fd695;
  margin-top: 10px;
}
.ai-approved-note.show { display: flex; animation: msgIn 0.4s var(--ease-out); }

.ai-typing { display: inline-flex; gap: 5px; padding: 6px 2px; }
.ai-typing i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #8fd0d1;
  animation: typingDot 1.2s ease-in-out infinite;
}
.ai-typing i:nth-child(2) { animation-delay: 0.18s; }
.ai-typing i:nth-child(3) { animation-delay: 0.36s; }
@keyframes typingDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-5px); opacity: 1; }
}

.ai-questions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 18px;
  border-top: 1px solid var(--dark-border);
  background: rgba(255, 255, 255, 0.015);
}
.ai-q-chip {
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: #c0e3e4;
  background: rgba(192, 227, 228, 0.06);
  border: 1px solid rgba(192, 227, 228, 0.2);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease-spring);
  text-align: left;
}
.ai-q-chip:hover { background: rgba(192, 227, 228, 0.13); border-color: rgba(192, 227, 228, 0.45); transform: translateY(-1px); }
.ai-q-chip:disabled { opacity: 0.45; cursor: default; transform: none; }

.ai-inputbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 18px 18px;
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--dark-border);
  border-radius: 12px;
}
.ai-input-placeholder { font-size: 13.5px; color: rgba(159, 212, 213, 0.4); }
.ai-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--primary);
  color: #f2f9f9;
}

.ai-side { display: flex; flex-direction: column; gap: 20px; }

.conf-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(14px);
}
.conf-card h3 { color: #f0f7f7; font-size: 19px; margin-bottom: 8px; }
.conf-card > p { font-size: 13.5px; color: rgba(214, 231, 231, 0.65); margin-bottom: 20px; }
.conf-tiers { display: flex; flex-direction: column; gap: 14px; }
.conf-tier { display: flex; gap: 14px; align-items: flex-start; }
.conf-tier > div { display: flex; flex-direction: column; gap: 2px; }
.conf-tier strong { color: #eef6f6; font-size: 14px; font-weight: 500; }
.conf-tier span:not(.conf-pill) { font-size: 12.5px; color: rgba(214, 231, 231, 0.6); line-height: 1.5; }
.pill-high { background: rgba(46, 158, 102, 0.16); color: #4fd695; border-color: rgba(46, 158, 102, 0.35); }
.pill-mid { background: rgba(201, 138, 27, 0.16); color: #ecb45c; border: 1px solid rgba(201, 138, 27, 0.4); }
.pill-low { background: rgba(98, 102, 138, 0.2); color: #a8b0e0; border: 1px solid rgba(98, 102, 138, 0.45); }

.boundary-cards { display: flex; flex-direction: column; gap: 14px; }
.boundary-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--dark-border);
  border-radius: 16px;
  padding: 20px 22px;
  transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease-out);
}
.boundary-card:hover {
  border-color: rgba(143, 208, 209, 0.35);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-3px);
}
.bc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 11px;
  background: rgba(46, 114, 116, 0.18);
  border: 1px solid rgba(46, 114, 116, 0.35);
  color: #8fd0d1;
  margin-bottom: 13px;
}
.boundary-card strong { display: block; color: #eef6f6; font-size: 15px; font-weight: 500; margin-bottom: 6px; }
.boundary-card p { font-size: 13px; color: rgba(214, 231, 231, 0.62); line-height: 1.6; }

/* ============ PRODUCT TOUR ============ */
.product-section { padding: 130px 0 90px; background: var(--bg); }

.tour {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.tour-tabs {
  display: flex;
  gap: 4px;
  padding: 10px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  overflow-x: auto;
}
.tour-tab {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  background: transparent;
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.tour-tab:hover { color: var(--primary-dark); background: rgba(46, 114, 116, 0.06); }
.tour-tab.active { background: var(--primary); color: #f7f7f7; box-shadow: 0 2px 8px rgba(46, 114, 116, 0.3); }

.tour-panel { display: none; padding: 28px; }
.tour-panel.active { display: block; animation: panelIn 0.45s var(--ease-out); }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } }

.mock {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: var(--shadow-sm);
}
.mock-topbar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  background: #eef2f2;
  border-bottom: 1px solid var(--border);
}
.mock-url { margin-left: 8px; font-family: var(--font-mono); font-size: 11px; color: #8a9a9a; }
.mock-body { padding: 20px; }

.mock-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.mock-kpi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.mock-kpi span { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.mock-kpi strong { font-size: 20px; font-weight: 500; color: var(--ink-strong); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.mock-kpi strong i { font-style: normal; font-size: 12px; color: var(--muted); font-weight: 400; }
.mock-kpi em { font-style: normal; font-size: 11.5px; font-weight: 500; }
.mock-kpi em.up { color: var(--success); }
.mock-kpi em.down { color: var(--secondary); }

.mock-chart {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 16px;
}
.mock-chart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-strong);
  margin-bottom: 8px;
}
.sparkline { width: 100%; height: 150px; display: block; }
.spark-path { stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: drawLine 2.2s var(--ease-out) forwards; }
.spark-forecast { opacity: 0; animation: fadeIn 0.8s ease 1.6s forwards; }
.spark-area { opacity: 0; animation: fadeIn 1s ease 0.9s forwards; }
@keyframes drawLine { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }

.mock-rows { display: flex; flex-direction: column; gap: 8px; }
.mock-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 15px;
  font-size: 13.5px;
}
.mr-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.mr-dot.ok { background: var(--success); }
.mr-dot.warn { background: var(--amber); }
.mr-dot.info { background: var(--secondary); }
.mr-text { color: var(--ink); }
.mr-val { margin-left: auto; font-size: 12.5px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.mr-val.ok { color: var(--success); }
.mr-val.ai { color: var(--secondary); font-family: var(--font-mono); font-size: 11.5px; }

/* ledger mockup */
.ledger-table { display: flex; flex-direction: column; font-size: 13.5px; }
.lt-row {
  display: grid;
  grid-template-columns: 120px 92px 1fr 96px 96px;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
  background: var(--surface);
}
.lt-row.lt-head {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 500;
  background: var(--surface-2);
}
.lt-row.lt-sub { color: var(--muted); background: var(--surface-2); font-size: 12.5px; }
.lt-row.lt-selected { background: rgba(46, 114, 116, 0.06); border-left: 3px solid var(--primary); }
.lt-row i { font-style: normal; }
.lt-explain {
  margin: 4px 14px 12px calc(120px + 12px);
  background: linear-gradient(135deg, rgba(46, 114, 116, 0.06), rgba(98, 102, 138, 0.06));
  border: 1px solid rgba(46, 114, 116, 0.22);
  border-radius: 12px;
  padding: 14px 16px;
  animation: panelIn 0.5s var(--ease-out);
}
.lt-explain-head { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.lt-explain-head strong { font-size: 13px; color: var(--primary-dark); font-weight: 500; }
.lt-explain-head .conf-pill { margin-left: auto; background: rgba(46, 158, 102, 0.12); color: #1e7a4c; border-color: rgba(46, 158, 102, 0.3); }
.lt-explain p { font-size: 13px; color: var(--ink); line-height: 1.6; }
.lt-sources { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.lt-sources .src-chip { color: var(--primary-dark); background: rgba(46, 114, 116, 0.08); border-color: rgba(46, 114, 116, 0.25); }

/* QR mockup */
.mock-qr-body { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 20px; align-items: start; }
.qr-invoice {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}
.qr-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 14px; }
.qr-head strong { font-size: 15.5px; color: var(--ink-strong); font-weight: 500; }
.qr-head span { font-size: 12.5px; color: var(--muted); }
.qr-lines { border-top: 1px solid var(--border); }
.qr-line {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  font-size: 13.5px;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
}
.qr-line.qr-total { font-weight: 500; color: var(--ink-strong); border-bottom: none; }
.qr-slip {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 16px;
  border: 1.5px dashed #b9c6c6;
  border-radius: 10px;
  padding: 16px;
  background: #fbfdfd;
}
.qr-code { width: 108px; height: 108px; flex-shrink: 0; }
.qr-svg { width: 100%; height: 100%; border: 1px solid var(--border); }
.qr-slip-info { display: flex; flex-direction: column; gap: 5px; }
.qr-amount { font-size: 19px; font-weight: 500; color: var(--ink-strong); font-variant-numeric: tabular-nums; }
.qr-ref { font-size: 11px; color: var(--muted); }
.qr-note { font-size: 11px; color: var(--primary-dark); font-weight: 500; }
.qr-side { display: flex; flex-direction: column; gap: 10px; }
.qr-check {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(46, 158, 102, 0.07);
  border: 1px solid rgba(46, 158, 102, 0.22);
  color: #1e6e47;
  font-size: 13px;
  font-weight: 500;
  border-radius: 10px;
  padding: 12px 14px;
}
.qr-check svg { flex-shrink: 0; }

/* VAT mockup */
.vat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.vat-head strong { font-size: 15.5px; color: var(--ink-strong); font-weight: 500; }
.vat-grid { display: flex; flex-direction: column; }
.vat-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 14px;
  align-items: baseline;
  padding: 11px 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--ink);
}
.vat-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(98, 102, 138, 0.1);
  border: 1px solid rgba(98, 102, 138, 0.25);
  color: var(--secondary);
  border-radius: 7px;
  font-size: 11.5px;
  padding: 3px 0;
}
.vat-row .num { font-variant-numeric: tabular-nums; }
.vat-row.vat-total {
  background: rgba(46, 114, 116, 0.06);
  font-weight: 500;
  color: var(--ink-strong);
  border-bottom: none;
}
.vat-row.vat-total .vat-box { background: var(--primary); border-color: var(--primary); color: #f7f7f7; }
.vat-recon {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  background: rgba(46, 158, 102, 0.07);
  border: 1px solid rgba(46, 158, 102, 0.22);
  color: #1e6e47;
  font-size: 13px;
  font-weight: 500;
  border-radius: 10px;
  padding: 12px 15px;
}

/* ============ FEATURES ============ */
.features-section { padding: 110px 0 120px; background: linear-gradient(180deg, var(--bg), #eef2f2 60%, var(--bg)); }
.feature-groups { display: flex; flex-direction: column; gap: 46px; }
.feature-group-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}
.feature-group-head .fg-index {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--primary);
  font-weight: 500;
}
.feature-group-head h3 { font-size: 21px; letter-spacing: -0.02em; }
.feature-group-head span { margin-left: auto; font-size: 13px; color: var(--muted); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 14px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease, border-color 0.3s;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(46, 114, 116, 0.3);
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 11px;
  background: rgba(46, 114, 116, 0.09);
  border: 1px solid rgba(46, 114, 116, 0.18);
  color: var(--primary-dark);
  margin-bottom: 14px;
}
.feature-card strong { display: block; font-size: 15px; font-weight: 500; color: var(--ink-strong); margin-bottom: 6px; letter-spacing: -0.01em; }
.feature-card p { font-size: 13px; color: var(--muted); line-height: 1.6; }
.feature-card .fc-tag {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--secondary);
  background: rgba(98, 102, 138, 0.09);
  border: 1px solid rgba(98, 102, 138, 0.2);
  padding: 3px 8px;
  border-radius: 999px;
}

/* ============ HOW IT WORKS ============ */
.how-section { padding: 110px 0 120px; background: var(--bg); }
.how-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 20px;
  align-items: stretch;
}
.how-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  position: relative;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease;
}
.how-step:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.how-num {
  position: absolute;
  top: 20px; right: 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(46, 114, 116, 0.4);
  font-weight: 500;
}
.how-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(46, 114, 116, 0.12), rgba(98, 102, 138, 0.1));
  border: 1px solid rgba(46, 114, 116, 0.22);
  color: var(--primary-dark);
  margin-bottom: 18px;
}
.how-step h3 { font-size: 18.5px; margin-bottom: 10px; letter-spacing: -0.02em; }
.how-step p { font-size: 14px; color: var(--muted); line-height: 1.65; }
.how-arrow {
  align-self: center;
  color: rgba(46, 114, 116, 0.45);
  display: flex;
}

/* ============ SECURITY ============ */
.security-section {
  position: relative;
  background: linear-gradient(160deg, var(--dark-2) 0%, var(--dark-1) 70%);
  color: #e8f0f0;
  padding: 120px 0;
  overflow: hidden;
}
.security-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 70px;
  align-items: center;
}
.security-copy h2 { color: #f2f7f7; }
.security-copy h2 em {
  background: linear-gradient(100deg, #8fd0d1, #c0e3e4 60%, #a8b0e0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.security-copy .section-sub { color: rgba(214, 231, 231, 0.7); }
.security-list {
  list-style: none;
  margin-top: 34px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.security-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 22px;
  border-left: 2px solid rgba(143, 208, 209, 0.3);
  transition: border-color 0.3s;
}
.security-list li:hover { border-left-color: #8fd0d1; }
.security-list strong { color: #eef6f6; font-size: 15.5px; font-weight: 500; }
.security-list span { font-size: 13.5px; color: rgba(214, 231, 231, 0.62); line-height: 1.6; }

.hashchain {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}
.hc-title {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(159, 212, 213, 0.5);
  margin-bottom: 18px;
}
.hc-chain { display: flex; flex-direction: column; align-items: stretch; }
.hc-block {
  background: rgba(6, 46, 48, 0.7);
  border: 1px solid rgba(159, 212, 213, 0.16);
  border-radius: 12px;
  padding: 13px 16px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: border-color 0.3s, transform 0.3s var(--ease-out);
}
.hc-block:hover { border-color: rgba(143, 208, 209, 0.45); transform: translateX(4px); }
.hc-hash { font-size: 11px; color: #8fd0d1; }
.hc-action { font-size: 13px; font-weight: 500; color: #eef6f6; letter-spacing: 0.02em; }
.hc-meta { font-size: 10.5px; color: rgba(214, 231, 231, 0.45); }
.hc-block-live { border-style: dashed; opacity: 0.75; }
.hc-link { display: flex; justify-content: center; padding: 3px 0; }
.hc-link i {
  width: 2px; height: 18px;
  background: linear-gradient(180deg, rgba(143, 208, 209, 0.6), rgba(143, 208, 209, 0.15));
  position: relative;
  overflow: hidden;
}
.hc-link i::after {
  content: "";
  position: absolute;
  left: 0; top: -8px;
  width: 100%; height: 8px;
  background: #c0e3e4;
  animation: hashFlow 1.8s ease-in-out infinite;
}
.hc-link:nth-of-type(2) i::after { animation-delay: 0.6s; }
.hc-link:nth-of-type(3) i::after { animation-delay: 1.2s; }
@keyframes hashFlow { to { transform: translateY(28px); } }
.hc-verify {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  padding: 11px 14px;
  background: rgba(46, 158, 102, 0.1);
  border: 1px solid rgba(46, 158, 102, 0.3);
  border-radius: 10px;
  color: #4fd695;
  font-size: 12.5px;
  font-weight: 500;
}

/* ============ PRICING ============ */
.pricing-section { padding: 120px 0; background: var(--bg); }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease;
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.price-card-featured {
  background: linear-gradient(170deg, #063a3d, #02181a);
  border: 1px solid rgba(143, 208, 209, 0.25);
  color: #e8f0f0;
  box-shadow: 0 24px 60px rgba(0, 30, 30, 0.25);
}
.price-card-featured:hover { box-shadow: 0 30px 80px rgba(0, 30, 30, 0.35); }
.price-flag {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  color: #f7f7f7;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(46, 114, 116, 0.4);
  white-space: nowrap;
}
.price-card h3 { font-size: 21px; margin-bottom: 4px; }
.price-card-featured h3 { color: #f2f7f7; }
.price-for { font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.price-card-featured .price-for { color: rgba(214, 231, 231, 0.6); }
.price-amount { display: flex; align-items: baseline; gap: 6px; margin-bottom: 24px; }
.price-cur { font-size: 15px; font-weight: 500; color: var(--muted); }
.price-card-featured .price-cur { color: rgba(214, 231, 231, 0.6); }
.price-num {
  font-size: 52px;
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--ink-strong);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.price-card-featured .price-num { color: #fff; }
.price-per { font-size: 13.5px; color: var(--muted); }
.price-card-featured .price-per { color: rgba(214, 231, 231, 0.6); }
.price-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 28px;
  flex: 1;
}
.price-list li {
  font-size: 13.8px;
  color: var(--ink);
  padding-left: 26px;
  position: relative;
  line-height: 1.5;
}
.price-card-featured .price-list li { color: rgba(232, 240, 240, 0.85); }
.price-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: rgba(46, 114, 116, 0.12) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%232E7274" stroke-width="3.2" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>') center/9px no-repeat;
}
.price-card-featured .price-list li::before {
  background-color: rgba(143, 208, 209, 0.15);
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%238fd0d1" stroke-width="3.2" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>');
}
.pricing-note {
  text-align: center;
  margin-top: 34px;
  font-size: 13.5px;
  color: var(--muted);
}

/* ============ COMPANY ============ */
.company-section {
  padding: 120px 0;
  background: linear-gradient(180deg, var(--bg) 0%, #eef2f2 100%);
}
.company-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 70px;
  align-items: center;
}
.company-facts { display: flex; gap: 40px; margin-top: 36px; flex-wrap: wrap; }
.fact { display: flex; flex-direction: column; gap: 3px; }
.fact strong { font-size: 19px; font-weight: 500; color: var(--ink-strong); letter-spacing: -0.01em; }
.fact span { font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }

.company-card {
  background: linear-gradient(150deg, #063a3d 0%, #02181a 100%);
  border-radius: 26px;
  padding: 3px;
  box-shadow: var(--shadow-lg);
  transform: rotate(1.5deg);
  transition: transform 0.5s var(--ease-out);
}
.company-card:hover { transform: rotate(0deg) scale(1.01); }
.cc-inner {
  border: 1px solid rgba(143, 208, 209, 0.2);
  border-radius: 24px;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  color: #e8f0f0;
}
.cc-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px; height: 62px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  font-size: 24px;
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.cc-inner strong { font-size: 26px; font-weight: 500; letter-spacing: -0.02em; color: #f2f7f7; }
.cc-line { font-size: 14.5px; color: rgba(214, 231, 231, 0.65); }
.cc-swiss {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(232, 240, 240, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 9px 16px;
  border-radius: 999px;
}

/* ============ CTA ============ */
.cta-section {
  position: relative;
  background: linear-gradient(150deg, var(--dark-2), var(--dark-1));
  color: #e8f0f0;
  padding: 130px 0;
  overflow: hidden;
  text-align: center;
}
.cta-bg { position: absolute; inset: 0; pointer-events: none; }
.aurora-cta-1 {
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(46, 114, 116, 0.5), transparent 65%);
  top: -240px; left: 20%;
  animation: drift1 20s ease-in-out infinite alternate;
}
.aurora-cta-2 {
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(98, 102, 138, 0.4), transparent 65%);
  bottom: -200px; right: 12%;
  animation: drift2 25s ease-in-out infinite alternate;
}
.cta-inner { position: relative; max-width: 760px; }
.cta-inner h2 { color: #f4f9f9; font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
.cta-inner h2 em {
  background: linear-gradient(100deg, #8fd0d1, #c0e3e4 60%, #a8b0e0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cta-inner > p {
  margin-top: 20px;
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: rgba(214, 231, 231, 0.72);
}
.cta-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.cta-note { margin-top: 26px; font-size: 13px; color: rgba(159, 212, 213, 0.5); }

/* ============ FOOTER ============ */
.footer {
  background: var(--dark-1);
  color: rgba(214, 231, 231, 0.65);
  padding: 70px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 54px;
}
.footer-brand .brand-word { color: #f2f7f7; }
.footer-brand p { font-size: 13.5px; margin-top: 16px; max-width: 300px; line-height: 1.65; }
.footer-lang { display: flex; gap: 6px; margin-top: 20px; }
.footer-lang button {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  color: rgba(214, 231, 231, 0.6);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 6px 11px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.footer-lang button:hover { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.footer-lang button.active { color: #c0e3e4; border-color: rgba(143, 208, 209, 0.5); background: rgba(46, 114, 116, 0.18); }
.footer-col { display: flex; flex-direction: column; gap: 11px; }
.footer-col strong {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(159, 212, 213, 0.55);
  margin-bottom: 6px;
}
.footer-col a {
  color: rgba(214, 231, 231, 0.65);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  padding-bottom: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
  flex-wrap: wrap;
}
.footer-swiss { display: inline-flex; align-items: center; gap: 8px; color: rgba(214, 231, 231, 0.65); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { max-width: 640px; }
  .ai-demo { grid-template-columns: 1fr; }
  .security-grid, .company-grid { grid-template-columns: 1fr; gap: 48px; }
  .how-steps { grid-template-columns: 1fr; }
  .how-arrow { transform: rotate(90deg); justify-self: center; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .price-card-featured { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav .btn-sm { display: none; }
  .hero { padding: 130px 0 80px; }
  .hero-stats { gap: 26px; }
  .app-body { grid-template-columns: 1fr; }
  .app-sidebar { flex-direction: row; overflow-x: auto; border-right: none; border-bottom: 1px solid #e4eaea; padding: 10px; }
  .sb-logo { padding: 0 6px 0 0; display: flex; align-items: center; }
  .sb-item span { display: none; }
  .kpi-row { grid-template-columns: 1fr; }
  .float-chip { display: none; }
  .mock-kpis { grid-template-columns: 1fr 1fr; }
  .lt-row { grid-template-columns: 90px 1fr 80px; }
  .lt-row span:nth-child(2), .lt-row .num:last-child { display: none; }
  .lt-explain { margin-left: 14px; }
  .mock-qr-body { grid-template-columns: 1fr; }
  .tour-panel { padding: 14px; }
  .ai-chat { min-height: 540px; }
  .ai-bar-row { grid-template-columns: 92px 1fr 74px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .company-card { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal, .reveal-scale { opacity: 1; transform: none; }
}
