/* ========== RENIUM DESIGN SYSTEM ========== */
:root {
  --bg: #FAFAF7;
  --bg-alt: #F3F3EE;
  --bg-dark: #0A0A14;
  --ink: #0A0A14;
  --ink-2: #2A2A38;
  --ink-3: #6B6B7A;
  --ink-4: #9A9AA8;
  --line: #E6E6DE;
  --line-2: #D8D8CE;
  --brand: #1E5EFF;
  --brand-2: #0040E0;
  --brand-soft: #E8EFFF;
  --brand-ink: #0A1F5C;
  --accent: #4AE3B8;
  --warn: #FF8A3D;
  --max: 1280px;
  --pad: clamp(20px, 5vw, 48px);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(10,10,20,.04), 0 1px 1px rgba(10,10,20,.03);
  --shadow: 0 8px 24px rgba(10,10,20,.06), 0 2px 6px rgba(10,10,20,.04);
  --shadow-lg: 0 30px 80px rgba(10,10,20,.12), 0 8px 20px rgba(10,10,20,.06);
  --ease: cubic-bezier(.2,.8,.2,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }

/* ===== TYPOGRAPHY ===== */
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 24px; height: 1px;
  background: currentColor;
}
.eyebrow.no-line::before { display: none; }

h1, .h1 {
  font-size: clamp(44px, 6.5vw, 92px);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.035em;
}
h2, .h2 {
  font-size: clamp(34px, 4.5vw, 60px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.03em;
}
h3, .h3 {
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.015em;
}
.lead {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 640px;
}
.muted { color: var(--ink-3); }
.brand-text { color: var(--brand); }
.brand-grad {
  background: linear-gradient(100deg, var(--brand) 0%, #6B8CFF 60%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== LAYOUT ===== */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}
.section {
  padding: clamp(80px, 12vw, 140px) 0;
  position: relative;
}
.section.tight { padding: clamp(60px, 8vw, 100px) 0; }
.section-head {
  max-width: 820px;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.section-head .eyebrow { margin-bottom: 20px; }
.section-head h2 { margin-bottom: 18px; }
.section-head .lead { max-width: 640px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -.005em;
  transition: all .25s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: #fff;
}
.btn-primary:hover {
  background: var(--brand);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(30,94,255,.25);
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-2);
}
.btn-secondary:hover { border-color: var(--ink); background: var(--bg); }
.btn-ghost { padding: 10px 16px; color: var(--ink-2); }
.btn-ghost:hover { color: var(--ink); }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn .arrow {
  display: inline-block;
  transition: transform .25s var(--ease);
}
.btn:hover .arrow { transform: translateX(3px); }

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250, 250, 247, .72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav.scrolled {
  border-bottom-color: var(--line);
  background: rgba(250, 250, 247, .88);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.nav-logo img {
  height: 36px;
  width: auto;
  transition: height .3s var(--ease);
}
.nav.scrolled .nav-logo img { height: 32px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: 999px;
  transition: all .2s var(--ease);
}
.nav-links a:hover { color: var(--ink); background: rgba(10,10,20,.04); }
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lang-switch {
  display: inline-flex;
  background: rgba(10,10,20,.04);
  border-radius: 999px;
  padding: 3px;
}
.lang-switch button {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  color: var(--ink-3);
  transition: all .2s var(--ease);
}
.lang-switch button.active {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.burger { display: none; }
@media (max-width: 860px) {
  .nav-links, .nav-right .btn { display: none; }
  .burger { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 999px; background: rgba(10,10,20,.04); }
  .burger span { width: 18px; height: 2px; background: var(--ink); position: relative; }
  .burger span::before, .burger span::after { content: ''; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); }
  .burger span::before { top: -6px; }
  .burger span::after { top: 6px; }
}

/* ===== HERO ===== */
.hero {
  padding: 180px 0 120px;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-bg::before {
  content: '';
  position: absolute;
  top: -20%; right: -10%;
  width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(30,94,255,.08) 0%, transparent 60%);
  filter: blur(40px);
}
.hero-bg::after {
  content: '';
  position: absolute;
  bottom: -30%; left: -10%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(74,227,184,.06) 0%, transparent 60%);
  filter: blur(40px);
}
.hero-pattern {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 60%;
  opacity: .05;
  pointer-events: none;
  mix-blend-mode: multiply;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 60px; }
  .hero { padding: 140px 0 80px; }
}
.hero h1 { margin: 24px 0 28px; }
.hero-cta {
  display: flex;
  gap: 12px;
  margin-top: 40px;
  flex-wrap: wrap;
}
/* Hero stats — upgraded */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 56px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-stat {
  padding: 24px 28px;
  border-right: 1px solid var(--line);
  position: relative;
}
.hero-stat:last-child { border-right: none; }
.hero-stat .num {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-size: clamp(34px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1;
  color: var(--ink);
}
.hero-stat .num .suf {
  font-size: 22px;
  color: var(--brand);
  font-weight: 600;
}
.hero-stat .lbl {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 8px;
  font-weight: 500;
  letter-spacing: .02em;
}
.hero-stat .ic {
  position: absolute;
  top: 22px; right: 22px;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid; place-items: center;
}
@media (max-width: 640px) {
  .hero-stats { grid-template-columns: 1fr; }
  .hero-stat { border-right: none; border-bottom: 1px solid var(--line); }
  .hero-stat:last-child { border-bottom: none; }
}

.hero-meta {
  display: flex;
  gap: 40px;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.hero-meta .num {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--ink);
}
.hero-meta .lbl {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 4px;
  letter-spacing: .02em;
}

/* Hero visual — Octo console */
.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
  max-width: 480px;
  justify-self: end;
}
.console {
  position: absolute;
  inset: 0;
  background: #0A0A14;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  color: #fff;
  padding: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.7;
}
.console-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.console-chrome .dot { width: 10px; height: 10px; border-radius: 999px; background: rgba(255,255,255,.15); }
.console-chrome .dot:nth-child(1) { background: #FF5F57; }
.console-chrome .dot:nth-child(2) { background: #FEBC2E; }
.console-chrome .dot:nth-child(3) { background: #28C840; }
.console-chrome .title {
  margin-left: 12px;
  font-size: 11px;
  color: rgba(255,255,255,.5);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.console-line { opacity: 0; animation: consoleIn .4s var(--ease) forwards; }
.console .prompt { color: var(--accent); }
.console .user { color: #fff; }
.console .log { color: rgba(255,255,255,.6); }
.console .ok { color: var(--accent); }
.console .blue { color: #6B8CFF; }
.console .warn { color: var(--warn); }
.cursor {
  display: inline-block;
  width: 7px; height: 14px;
  background: var(--accent);
  vertical-align: -2px;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }
@keyframes consoleIn {
  from { opacity: 0; transform: translateX(-6px); }
  to { opacity: 1; transform: translateX(0); }
}
.hero-visual .floater {
  position: absolute;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
  animation: floatY 4s ease-in-out infinite;
}
.floater.f1 { top: 8%; left: -12%; }
.floater.f2 { bottom: 14%; right: -8%; animation-delay: -2s; }
.floater .ic {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ===== SECTIONS ===== */

/* Value props */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (max-width: 960px) { .values { grid-template-columns: 1fr; } }
.value {
  background: var(--bg);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background .3s var(--ease);
}
.value:hover { background: #fff; }
.value .ic {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center;
  margin-bottom: 8px;
}
.value h3 { font-size: 20px; }
.value p { color: var(--ink-3); font-size: 15px; line-height: 1.55; }

/* Octo v3 — clean dashboard */
.octo-v3 { background: var(--bg-alt); }
.octo3 {
  margin-top: 40px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 40px 80px -30px rgba(20,40,100,.15);
  overflow: hidden;
}
.o3-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  background: #FAFBFD;
  gap: 20px;
}
.o3-top-l { display: flex; align-items: center; gap: 24px; flex: 1; min-width: 0; }
.o3-logo { height: 22px; width: auto; flex-shrink: 0; }
.o3-tabs { display: flex; gap: 2px; }
.o3-tab {
  padding: 7px 14px; border-radius: 8px;
  background: transparent; border: none; cursor: pointer;
  font-size: 13px; color: var(--ink-2); font-weight: 500;
  transition: all .15s var(--ease);
}
.o3-tab:hover { color: var(--ink); background: rgba(42,99,246,.06); }
.o3-tab.on { background: var(--ink); color: #fff; }
.o3-top-r { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.o3-date {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 8px;
  background: #fff; border: 1px solid var(--line);
  font-size: 11.5px; color: var(--ink-2);
  font-family: 'JetBrains Mono', monospace;
}
.o3-user { display: flex; align-items: center; gap: 10px; }
.o3-av {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), #7B2CE8);
  color: #fff; font-size: 11px; font-weight: 700;
  display: grid; place-items: center;
}
.o3-user-txt b { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink); }
.o3-user-txt small { font-size: 10.5px; color: var(--ink-3); }
@media (max-width: 760px) {
  .o3-user-txt { display: none; }
  .o3-tabs { display: none; }
}

.o3-kpis {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 760px) { .o3-kpis { grid-template-columns: repeat(2, 1fr); } }
.o3-kpi {
  padding: 20px 22px;
  border-right: 1px solid var(--line);
}
.o3-kpi:last-child { border-right: none; }
@media (max-width: 760px) { .o3-kpi:nth-child(2) { border-right: none; } }
.o3-kpi-label {
  font-size: 11px; color: var(--ink-3); font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  margin-bottom: 8px;
}
.o3-kpi-value {
  font-size: 26px; font-weight: 700; color: var(--ink);
  letter-spacing: -.02em;
  font-family: 'JetBrains Mono', monospace;
}
.o3-kpi-delta {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11.5px; font-weight: 600;
  margin-top: 6px;
}
.o3-kpi-delta.up { color: #22A06B; }
.o3-kpi-delta.down { color: #EF4444; }

.o3-main { animation: fadeSwap .35s var(--ease); }
.o3-kpis { animation: fadeSwap .35s var(--ease); }
.o3-bottom { animation: fadeSwap .35s var(--ease); }
@keyframes fadeSwap { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.o3-main {
  display: grid; grid-template-columns: 1.8fr 1fr;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 860px) { .o3-main { grid-template-columns: 1fr; } }
.o3-chart-card, .o3-modules-card {
  padding: 20px 22px;
}
.o3-chart-card { border-right: 1px solid var(--line); }
@media (max-width: 860px) {
  .o3-chart-card { border-right: none; border-bottom: 1px solid var(--line); }
}
.o3-card-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 16px;
}
.o3-card-title { font-size: 14px; font-weight: 600; color: var(--ink); }
.o3-card-sub { font-size: 11.5px; color: var(--ink-3); margin-top: 3px; }
.o3-legend { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink-2); }
.lg-dot { width: 8px; height: 8px; border-radius: 50%; }
.o3-chart { width: 100%; height: 200px; display: block; }
.o3-chart-axis {
  display: flex; justify-content: space-between;
  font-size: 10px; color: var(--ink-4);
  font-family: 'JetBrains Mono', monospace;
  margin-top: 6px;
}

.o3-mod-list { display: flex; flex-direction: column; gap: 14px; }
.o3-mod-row {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 6px;
}
.o3-mod-label { font-size: 12.5px; color: var(--ink-2); font-weight: 500; }
.o3-mod-val {
  font-size: 12px; font-weight: 600; color: var(--ink);
  font-family: 'JetBrains Mono', monospace;
}
.o3-mod-bar {
  height: 6px; border-radius: 999px;
  background: #F0F2F6; overflow: hidden;
}
.o3-mod-fill {
  height: 100%; border-radius: 999px;
  transition: width 1s var(--ease);
}

.o3-bottom {
  display: grid; grid-template-columns: 1fr 1.2fr;
}
@media (max-width: 860px) { .o3-bottom { grid-template-columns: 1fr; } }
.o3-ai-card {
  padding: 20px 22px;
  background: linear-gradient(135deg, #F4F7FE 0%, #EEF2FC 100%);
  border-right: 1px solid var(--line);
}
@media (max-width: 860px) { .o3-ai-card { border-right: none; border-bottom: 1px solid var(--line); } }
.o3-ai-head {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; color: var(--ink);
  margin-bottom: 10px;
}
.o3-ai-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 6px;
  background: linear-gradient(135deg, var(--brand), #7B2CE8);
  color: #fff; font-size: 10px; font-weight: 700;
  letter-spacing: .04em;
}
.o3-ai-body {
  font-size: 13px; line-height: 1.55; color: var(--ink);
  margin-bottom: 14px;
}
.o3-ai-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 8px;
  background: var(--ink); color: #fff;
  border: none; cursor: pointer;
  font-size: 12px; font-weight: 600;
  transition: transform .15s var(--ease);
}
.o3-ai-cta:hover { transform: translateX(2px); }

.o3-activity-card { padding: 20px 22px; }
.o3-live {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--ink-3); font-weight: 600;
  text-transform: uppercase; letter-spacing: .04em;
}
.o3-live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #22A06B;
  box-shadow: 0 0 8px #22A06B;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .4; } }
.o3-activity-list { display: flex; flex-direction: column; gap: 10px; }
.o3-act {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 0;
  font-size: 12.5px;
}
.o3-act-av {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, #FEC5C5, #FEA3A3);
  color: var(--ink); font-size: 10px; font-weight: 700;
  display: grid; place-items: center; flex-shrink: 0;
}
.o3-act:nth-child(2) .o3-act-av { background: linear-gradient(135deg, #C5D3FE, #A3B8FE); }
.o3-act:nth-child(3) .o3-act-av { background: linear-gradient(135deg, #B8F2D0, #6DD9A0); }
.o3-act:nth-child(4) .o3-act-av { background: linear-gradient(135deg, #F2D8B8, #D9B06D); }
.o3-act-txt { flex: 1; color: var(--ink-2); line-height: 1.4; }
.o3-act-txt b { color: var(--ink); font-weight: 600; }
.o3-act-txt b.ref { font-family: 'JetBrains Mono', monospace; font-size: 11.5px; color: var(--brand); }
.o3-act-t { font-size: 11px; color: var(--ink-4); font-family: 'JetBrains Mono', monospace; }

/* Modules grid */
.modules {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (max-width: 1100px) { .modules { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .modules { grid-template-columns: repeat(2, 1fr); } }
.module {
  background: var(--bg);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background .25s var(--ease);
  min-height: 140px;
}
.module:hover { background: #fff; }
.module .ic {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center;
  margin-bottom: 6px;
}
.module h4 { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.module p { font-size: 13px; color: var(--ink-3); line-height: 1.5; }

/* Process */
.process {
  background: var(--bg-alt);
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
@media (max-width: 960px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process-grid { grid-template-columns: 1fr; } }
.process-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  counter-increment: step;
}
.process-card::before {
  content: counter(step, decimal-leading-zero);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--brand);
  font-weight: 600;
  letter-spacing: .08em;
}
.process-card h4 { font-size: 18px; margin-top: 16px; margin-bottom: 8px; }
.process-card p { font-size: 14px; color: var(--ink-3); line-height: 1.55; }

/* Projects */
.projects-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s var(--ease);
}
.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.chip.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.chip .cnt {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(10,10,20,.06);
  color: var(--ink-3);
}
.chip.active .cnt {
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.8);
}

.carousel-nav {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.nav-btn {
  width: 40px; height: 40px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  display: grid; place-items: center;
  cursor: pointer;
  transition: all .2s var(--ease);
}
.nav-btn:first-child svg { transform: rotate(180deg); }
.nav-btn:hover:not(:disabled) { border-color: var(--ink); background: var(--ink); color: #fff; }
.nav-btn:disabled { opacity: .3; cursor: not-allowed; }
.carousel-nav .pg {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--ink-3);
  min-width: 48px;
  text-align: center;
}

.carousel-viewport {
  overflow: hidden;
  margin: 0 -8px;
}
.carousel-track {
  display: flex;
  transition: transform .6s cubic-bezier(.22,.8,.22,1);
}
.carousel-page {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 8px;
}
@media (max-width: 960px) { .carousel-page { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .carousel-page { grid-template-columns: 1fr; } }

.project-slot-empty { visibility: hidden; }

.project {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 440px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .3s var(--ease);
  display: flex;
  flex-direction: column;
}
.project:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--line-2);
}
.project-img {
  aspect-ratio: 16/10;
  background: var(--bg-alt);
  overflow: hidden;
  position: relative;
}
.project-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease);
}
.project:hover .project-img img { transform: scale(1.04); }
.project-img.placeholder {
  background:
    repeating-linear-gradient(45deg, transparent 0 12px, rgba(10,10,20,.03) 12px 13px),
    var(--bg-alt);
  display: grid; place-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-4);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.project-body { padding: 24px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.project-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: var(--ink-4);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 600;
}
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}
.carousel-dots .dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--line-2);
  border: none;
  cursor: pointer;
  transition: all .2s var(--ease);
}
.carousel-dots .dot.active { background: var(--ink); width: 24px; }

.project-img.placeholder {
  display: grid;
  place-items: center;
}
.ph-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--ink-3);
  opacity: .7;
}
.project h3 { font-size: 20px; }
.project-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.project-desc {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.6;
  margin-top: 10px;
}
.more-btn {
  display: inline;
  background: none;
  border: none;
  padding: 0 0 0 6px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.more-btn:hover { text-decoration: underline; }
.project-admin {
  position: absolute;
  top: 10px; right: 10px;
  display: flex; gap: 6px;
  opacity: 0;
  transition: opacity .2s var(--ease);
}
.project:hover .project-admin { opacity: 1; }
.project-admin button {
  width: 30px; height: 30px;
  background: rgba(10,10,20,.8);
  color: #fff;
  border-radius: 8px;
  display: grid; place-items: center;
  backdrop-filter: blur(8px);
}
.project-admin button:hover { background: var(--brand); }
.project.add {
  border: 2px dashed var(--line-2);
  background: transparent;
  display: grid; place-items: center;
  min-height: 320px;
  cursor: pointer;
  color: var(--ink-3);
  transition: all .25s var(--ease);
}
.project.add:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-soft);
}
.project.add .add-inner { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.project.add .plus {
  width: 48px; height: 48px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid; place-items: center;
  font-size: 24px;
}

/* CTA band */
.cta-band {
  background: var(--bg-dark);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(50px, 8vw, 90px);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-band h2 { color: #fff; margin-bottom: 18px; }
.cta-band .lead { color: rgba(255,255,255,.65); margin: 0 auto 36px; }
.cta-band .btn-primary { background: #fff; color: var(--ink); }
.cta-band .btn-primary:hover { background: var(--brand); color: #fff; }
.cta-band-pattern {
  position: absolute;
  inset: -20%;
  background-image: url('assets/renium-pattern.png');
  background-size: 800px;
  background-repeat: repeat;
  opacity: .05;
  pointer-events: none;
  mix-blend-mode: screen;
}

/* Footer */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,.6);
  padding: 80px 0 40px;
  position: relative;
  overflow: hidden;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.6fr;
  gap: 60px;
  margin-bottom: 60px;
}
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { height: 40px; width: auto; margin-bottom: 20px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 14px; line-height: 1.6; max-width: 320px; color: rgba(255,255,255,.55); }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  display: grid; place-items: center;
  color: rgba(255,255,255,.6);
  transition: all .2s var(--ease);
}
.footer-social a:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.footer-contact ul { list-style: none; padding: 0; }
.footer-contact .fc-row {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,.7);
}
.footer-contact .fc-ic {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  display: grid; place-items: center;
  color: var(--brand);
}
.footer-contact a { color: rgba(255,255,255,.7); }
.footer-contact a:hover { color: var(--brand); }
  gap: 48px;
  margin-bottom: 60px;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
/* end-dup */
.footer h5 {
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer a { font-size: 14px; transition: color .2s var(--ease); }
.footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom .legal { color: rgba(255,255,255,.4); }
.footer-admin-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.6);
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600;
  transition: all .2s var(--ease);
  cursor: pointer;
}
.footer-admin-btn:hover { color: #fff; border-color: rgba(255,255,255,.2); }
.footer-admin-btn.quiet { padding: 7px; opacity: .35; }
.footer-admin-btn.quiet:hover { opacity: 1; }
.footer-admin-btn .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #4AE3B8; box-shadow: 0 0 8px #4AE3B8;
}

/* ===== MODALS ===== */
.modal-scrim {
  position: fixed; inset: 0;
  background: rgba(10,10,20,.5);
  backdrop-filter: blur(8px);
  display: grid; place-items: center;
  z-index: 200;
  padding: 20px;
  animation: scrimIn .3s var(--ease);
}
@keyframes scrimIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--bg);
  border-radius: 20px;
  padding: 40px;
  max-width: 440px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: modalIn .4s var(--ease);
}
.modal.lg { max-width: 560px; }
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px;
  border-radius: 999px;
  background: rgba(10,10,20,.05);
  display: grid; place-items: center;
  color: var(--ink-2);
  transition: background .2s var(--ease);
}
.modal-close:hover { background: rgba(10,10,20,.1); }
.modal h3 { margin-bottom: 6px; }
.modal .sub { color: var(--ink-3); font-size: 14px; margin-bottom: 26px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.field input, .field textarea, .field select {
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(30,94,255,.1);
}
.field textarea { resize: vertical; min-height: 90px; }
.field .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field .hint { font-size: 11px; color: var(--ink-4); }
.drop-zone {
  border: 2px dashed var(--line-2);
  border-radius: 12px;
  padding: 28px;
  text-align: center;
  background: #fff;
  transition: all .2s var(--ease);
  cursor: pointer;
}
.drop-zone:hover, .drop-zone.drag { border-color: var(--brand); background: var(--brand-soft); }
.drop-zone p { font-size: 13px; color: var(--ink-3); margin-top: 10px; }
.drop-zone .preview { max-height: 120px; margin: 0 auto; border-radius: 8px; }
.modal-footer { display: flex; gap: 10px; margin-top: 22px; }
.modal-footer .btn { flex: 1; justify-content: center; }
.demo-hint {
  background: var(--brand-soft);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 12px;
  color: var(--brand-ink);
  margin-top: 16px;
  font-family: 'JetBrains Mono', monospace;
  line-height: 1.6;
}

/* ===== REVEAL ANIMATIONS — disabled, use natural flow ===== */
.reveal { opacity: 1; }
.stagger > * { opacity: 1; }

/* Admin indicator */
.admin-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  background: var(--accent);
  color: var(--ink);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
}
.admin-pill .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--ink); }

/* Utility */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }


/* ===== Octo Tab Views — Sales / Inventory / Finance ===== */
.o3-body-swap { animation: fadeSwap .4s var(--ease); }

.o3-view {
  padding: 22px 24px 28px;
  background: #fff;
  min-height: 540px;
}
.o3-view-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.o3-view-title {
  font-size: 18px; font-weight: 700; color: var(--ink);
  letter-spacing: -.01em;
}
.o3-view-sub {
  font-size: 12.5px; color: var(--ink-3); margin-top: 4px;
}
.o3-view-actions { display: flex; gap: 8px; flex-shrink: 0; }
.o3-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 8px;
  font-size: 12.5px; font-weight: 600;
  cursor: pointer; border: 1px solid var(--line);
  transition: all .15s var(--ease);
  white-space: nowrap;
}
.o3-btn.ghost { background: #fff; color: var(--ink-2); }
.o3-btn.ghost:hover { border-color: var(--ink); color: var(--ink); }
.o3-btn.primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.o3-btn.primary:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(10,10,20,.3); }

/* Sales table */
.o3-table {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.o3-thead, .o3-trow {
  display: grid;
  grid-template-columns: 1.1fr 2fr 1fr .8fr 1.3fr 1.2fr;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  font-size: 13px;
}
.o3-thead {
  background: #FAFBFD;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.o3-trow { border-bottom: 1px solid var(--line); transition: background .12s; }
.o3-trow:last-child { border-bottom: none; }
.o3-trow:hover { background: #FAFBFD; }
.o3-trow .mono { font-family: 'JetBrains Mono', monospace; font-size: 12px; }
.o3-trow .muted { color: var(--ink-3); }
.o3-trow .bold { font-weight: 700; color: var(--ink); }
.o3-badge {
  display: inline-block;
  padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 600;
  letter-spacing: .02em;
}
.o3-badge.ok { background: #DCFCE7; color: #16A34A; }
.o3-badge.warn { background: #FEF3C7; color: #B45309; }
.o3-badge.blue { background: #DBEAFE; color: #1D4ED8; }
.o3-badge.grey { background: #F1F5F9; color: #64748B; }
@media (max-width: 820px) {
  .o3-thead { display: none; }
  .o3-trow {
    grid-template-columns: 1fr 1fr;
    gap: 6px 12px;
    padding: 14px 16px;
  }
  .o3-trow .c1 { grid-column: 1 / 2; font-weight: 700; }
  .o3-trow .c2 { grid-column: 2 / 3; }
  .o3-trow .c3 { grid-column: 1 / 2; color: var(--ink-3); font-size: 11px; }
  .o3-trow .c4 { grid-column: 1 / 2; font-size: 11px; color: var(--ink-3); }
  .o3-trow .c5 { grid-column: 2 / 3; text-align: right; }
  .o3-trow .c6 { grid-column: 1 / 3; justify-self: start; }
}

/* Product grid */
.o3-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 1100px) { .o3-product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px) { .o3-product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .o3-product-grid { grid-template-columns: 1fr; } }
.o3-product {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: all .2s var(--ease);
  display: flex; flex-direction: column;
}
.o3-product:hover {
  border-color: var(--brand);
  box-shadow: 0 12px 28px -12px rgba(42,99,246,.25);
  transform: translateY(-2px);
}
.o3-p-img {
  aspect-ratio: 1.4 / 1;
  background: linear-gradient(135deg, #F4F7FE 0%, #EEF2FC 100%);
  display: grid; place-items: center;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.o3-p-emoji { font-size: 42px; filter: grayscale(.1); }
.o3-p-low {
  position: absolute; top: 10px; right: 10px;
  padding: 3px 9px; border-radius: 999px;
  background: #FEE2E2; color: #B91C1C;
  font-size: 10px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
}
.o3-p-body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.o3-p-sku {
  font-size: 10.5px; font-weight: 600; color: var(--brand);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: .04em;
}
.o3-p-name {
  font-size: 13.5px; font-weight: 600; color: var(--ink);
  line-height: 1.35;
  min-height: 36px;
}
.o3-p-cat { font-size: 11.5px; color: var(--ink-3); }
.o3-p-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: auto; padding-top: 10px;
  border-top: 1px dashed var(--line);
}
.o3-p-stock {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; color: var(--ink-3); font-weight: 600;
}
.o3-p-stock.low { color: #B91C1C; }
.o3-p-price {
  font-size: 13px; font-weight: 700; color: var(--ink);
  font-family: 'JetBrains Mono', monospace;
}

/* Finance paper report */
.o3-paper {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 44px 54px;
  max-width: 820px;
  margin: 0 auto;
  box-shadow: 0 30px 60px -30px rgba(20,40,100,.12);
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.6;
  position: relative;
}
@media (max-width: 680px) { .o3-paper { padding: 28px 22px; } }
.o3-paper-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 20px;
  padding-bottom: 22px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 24px;
}
.o3-paper-eyebrow {
  font-size: 10.5px; font-weight: 700;
  letter-spacing: .15em; color: var(--brand);
  margin-bottom: 6px;
}
.o3-paper-head h3 {
  font-size: 24px; font-weight: 700; line-height: 1.2;
  margin-bottom: 10px; letter-spacing: -.015em;
}
.o3-paper-meta {
  display: flex; flex-direction: column; gap: 3px;
  font-size: 11.5px; color: var(--ink-3);
  font-family: 'JetBrains Mono', monospace;
}
.o3-paper-stamp {
  border: 2px solid #DC2626;
  color: #DC2626;
  padding: 10px 16px;
  border-radius: 6px;
  text-align: center;
  transform: rotate(-4deg);
  font-family: 'JetBrains Mono', monospace;
  flex-shrink: 0;
}
.stamp-label { font-size: 16px; font-weight: 800; letter-spacing: .2em; }
.stamp-date { font-size: 10px; margin-top: 2px; letter-spacing: .08em; }
.o3-paper-section { margin-bottom: 24px; }
.o3-paper-h {
  font-size: 11.5px; font-weight: 700;
  letter-spacing: .12em;
  color: var(--ink);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}
.o3-paper-section p {
  font-size: 13.5px; line-height: 1.7;
  color: var(--ink-2);
  text-align: justify;
}
.o3-paper-table {
  border: 1px solid var(--line);
  border-radius: 6px; overflow: hidden;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
}
.o3-pt-head, .o3-pt-row {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr .7fr;
  gap: 12px;
  padding: 10px 14px;
  align-items: center;
}
.o3-pt-head {
  background: #FAFBFD;
  font-size: 10.5px; font-weight: 700;
  text-transform: uppercase;
  color: var(--ink-3);
  letter-spacing: .06em;
  border-bottom: 1px solid var(--line);
}
.o3-pt-row { border-bottom: 1px solid var(--line); }
.o3-pt-row:last-child { border-bottom: none; }
.o3-pt-row:hover { background: #FAFBFD; }
.o3-pt-row .mono { font-family: inherit; }
.o3-pt-row .bold { font-weight: 700; }
.o3-pt-row .muted { color: var(--ink-3); }
.o3-pt-row .up { color: #16A34A; font-weight: 600; }
.o3-pt-row .down { color: #DC2626; font-weight: 600; }
.o3-pt-row > div:first-child { font-family: 'Montserrat', sans-serif; font-size: 12.5px; }

.o3-paper-sign {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 50px;
  padding-top: 20px;
}
@media (max-width: 560px) { .o3-paper-sign { grid-template-columns: 1fr; gap: 30px; } }
.sign-col { text-align: center; }
.sign-line {
  border-bottom: 1px solid var(--ink);
  margin-bottom: 8px; height: 30px;
}
.sign-label {
  font-size: 10.5px; color: var(--ink-3);
  text-transform: uppercase; letter-spacing: .08em;
  font-weight: 600;
}
.sign-name {
  font-size: 13px; font-weight: 600; color: var(--ink);
  margin-top: 4px;
  font-style: italic;
}
