/* Binyuga PMS — marketing site stylesheet
   Light enterprise: white surfaces, generous whitespace, single accent. */

:root {
  --bg: #FFFFFF;
  --surface: #FAFBFC;
  --surface-2: #F4F6F8;
  --ink: #0E1320;
  --ink-2: #2A3142;
  --ink-3: #5A6478;
  --ink-4: #8C95A8;
  --line: #E5E8EE;
  --line-2: #EFF1F5;

  --accent: #19A974;       /* operational green — same as product */
  --accent-deep: #0F8A5C;
  --accent-soft: #E6F6EE;

  --warn: #F5A524;
  --flag: #E5484D;

  --shadow-sm: 0 1px 2px rgba(14,19,32,.04), 0 1px 1px rgba(14,19,32,.02);
  --shadow-md: 0 8px 24px rgba(14,19,32,.06), 0 2px 6px rgba(14,19,32,.04);
  --shadow-lg: 0 24px 48px rgba(14,19,32,.10), 0 8px 16px rgba(14,19,32,.06);

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;

  --max: 1240px;
  --gutter: clamp(20px, 4vw, 48px);

  --f-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  --f-display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ─── Layout ─────────────────────────────────────────────────── */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ─── Top nav ────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: var(--ink); border-radius: 8px;
  color: #fff;
}
.brand-name {
  font-family: var(--f-display);
  font-weight: 700; font-size: 18px;
  letter-spacing: -.01em;
}
.brand-name span { color: var(--accent); }

.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-link {
  padding: 8px 14px; border-radius: 8px;
  font-size: 14px; font-weight: 500; color: var(--ink-2);
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.nav-link:hover { background: var(--surface-2); color: var(--ink); }

.nav-actions { display: flex; gap: 10px; align-items: center; }
.lang-switch {
  display: inline-flex; gap: 2px; padding: 3px;
  background: var(--surface-2); border-radius: 8px;
  font-size: 12px; font-weight: 600;
}
.lang-switch button {
  padding: 5px 10px; border: 0; background: transparent;
  border-radius: 6px; color: var(--ink-3);
  font-family: inherit; letter-spacing: .02em;
}
.lang-switch button.active {
  background: #fff; color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 10px;
  font-size: 14px; font-weight: 600; letter-spacing: -.005em;
  border: 1px solid transparent;
  transition: transform .1s, box-shadow .15s, background .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 4px 12px rgba(25,169,116,.28);
}
.btn-primary:hover { background: var(--accent-deep); box-shadow: 0 6px 16px rgba(25,169,116,.35); }
.btn-ghost {
  background: transparent; color: var(--ink); border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink-3); background: var(--surface); }
.btn-dark {
  background: var(--ink); color: #fff;
}
.btn-dark:hover { background: var(--ink-2); }
.btn-lg { padding: 14px 24px; font-size: 15px; }

/* ─── Hero ───────────────────────────────────────────────────── */
.hero {
  padding: clamp(60px, 9vw, 120px) 0 clamp(80px, 10vw, 140px);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(900px 400px at 90% -10%, rgba(25,169,116,.07), transparent 60%),
    radial-gradient(600px 300px at 0% 110%, rgba(25,169,116,.05), transparent 60%);
  pointer-events: none;
}
.hero-inner {
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: clamp(32px, 5vw, 80px); align-items: center;
  position: relative;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-deep);
  font-size: 12px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase;
}
.eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px rgba(25,169,116,.18);
}
h1.hero-title {
  font-family: var(--f-display);
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.05; letter-spacing: -.02em;
  font-weight: 700; margin: 18px 0 20px;
  text-wrap: balance;
}
h1.hero-title em { font-style: normal; color: var(--accent); }
.hero-sub {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--ink-3); line-height: 1.6;
  max-width: 560px;
  text-wrap: pretty;
}
.hero-cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero-meta {
  display: flex; gap: 28px; margin-top: 36px;
  font-size: 13px; color: var(--ink-3);
}
.hero-meta b {
  display: block; font-family: var(--f-mono); font-size: 22px;
  color: var(--ink); font-weight: 700; letter-spacing: -.01em;
  margin-bottom: 2px;
}

/* Hero visual — composed product preview */
.hero-visual {
  position: relative; aspect-ratio: 1.05/1;
  perspective: 1200px;
}
.hv-card {
  position: absolute; border-radius: var(--r-lg);
  background: #fff; box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  overflow: hidden;
}
.hv-main {
  inset: 0; transform: rotateY(-6deg) rotateX(4deg);
  background: #0E1320;
}
.hv-side {
  width: 56%; aspect-ratio: 4/3;
  right: -8%; bottom: -6%;
  transform: rotateY(-12deg) rotateX(8deg);
  background: #fff;
  z-index: 2;
}
.hv-mini {
  width: 30%; aspect-ratio: 9/16;
  left: -6%; top: 14%;
  transform: rotateY(8deg) rotateX(2deg);
  background: #fff;
  z-index: 1;
}

/* tiny dashboard sketch inside .hv-main */
.hv-screen { padding: 18px; height: 100%; color: #fff; font-size: 11px; }
.hv-bar { height: 22px; background: rgba(255,255,255,.06); border-radius: 6px; margin-bottom: 14px; }
.hv-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.hv-tile { aspect-ratio: 1.5/1; background: rgba(255,255,255,.05); border-radius: 8px; padding: 10px; display: flex; flex-direction: column; justify-content: space-between; }
.hv-tile .lbl { font-size: 9px; color: rgba(255,255,255,.5); letter-spacing: .08em; text-transform: uppercase; }
.hv-tile .val { font-family: var(--f-mono); font-size: 22px; font-weight: 700; }
.hv-tile.green { background: rgba(25,169,116,.18); border: 1px solid rgba(25,169,116,.4); }
.hv-tile.green .val { color: #4FD1A0; }
.hv-chart { height: 80px; background: rgba(255,255,255,.03); border-radius: 8px; padding: 10px; display: flex; align-items: end; gap: 4px; }
.hv-chart i { display: block; flex: 1; background: rgba(25,169,116,.6); border-radius: 2px 2px 0 0; }

.hv-side-screen { padding: 14px; font-size: 11px; height: 100%; }
.hv-side-screen .row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.hv-side-screen .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hv-side-screen .row.warn .dot { background: var(--warn); }
.hv-side-screen .row.flag .dot { background: var(--flag); }
.hv-side-screen .nm { flex: 1; color: var(--ink-2); font-weight: 500; }
.hv-side-screen .vl { font-family: var(--f-mono); color: var(--ink-3); font-size: 10px; }

.hv-mini-screen { padding: 12px; font-size: 10px; height: 100%; display: flex; flex-direction: column; }
.hv-mini-screen .ph { width: 56px; height: 56px; border-radius: 50%; background: var(--surface-2); margin: 14px auto 10px; }
.hv-mini-screen .nm2 { text-align: center; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.hv-mini-screen .rl { text-align: center; color: var(--ink-3); font-size: 9px; margin-bottom: 14px; }
.hv-mini-screen .b { padding: 9px; border-radius: 8px; background: var(--accent); color: #fff; text-align: center; font-weight: 600; font-size: 10px; }

/* ─── Section ────────────────────────────────────────────────── */
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section-tight { padding: clamp(56px, 8vw, 96px) 0; }
.section.alt { background: var(--surface); }
.section-head {
  text-align: center; max-width: 780px; margin: 0 auto clamp(40px, 5vw, 64px);
}
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 {
  font-family: var(--f-display);
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.1; letter-spacing: -.02em;
  font-weight: 700; margin: 0 0 16px;
  text-wrap: balance;
}
.section-head p {
  color: var(--ink-3); font-size: clamp(15px, 1.3vw, 18px);
  margin: 0; text-wrap: pretty;
}

/* ─── Modules grid ───────────────────────────────────────────── */
.modules {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.module {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 28px;
  transition: transform .15s, box-shadow .2s, border-color .2s;
  display: flex; flex-direction: column; gap: 14px;
  position: relative; overflow: hidden;
}
.module:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}
.module-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent-deep);
  display: grid; place-items: center;
}
.module h3 {
  font-family: var(--f-display);
  font-size: 19px; font-weight: 700; letter-spacing: -.01em;
  margin: 0;
}
.module p {
  margin: 0; font-size: 14px; color: var(--ink-3); line-height: 1.55;
  flex: 1;
}
.module-meta {
  display: flex; gap: 16px; padding-top: 14px;
  border-top: 1px solid var(--line-2);
  font-size: 12px; color: var(--ink-4);
}
.module-meta b { color: var(--ink-2); font-weight: 600; }
.module-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px; font-weight: 600; color: var(--accent-deep);
  margin-top: auto;
}

/* ─── Benefits ───────────────────────────────────────────────── */
.benefits {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.benefit {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 28px 24px;
}
.benefit-num {
  font-family: var(--f-mono); font-size: 38px; font-weight: 700;
  color: var(--accent); line-height: 1; margin-bottom: 12px;
  letter-spacing: -.02em;
}
.benefit-num small { font-size: 18px; color: var(--ink-3); }
.benefit h4 {
  font-size: 15px; font-weight: 700; margin: 0 0 6px;
  letter-spacing: -.005em;
}
.benefit p { margin: 0; font-size: 13.5px; color: var(--ink-3); line-height: 1.5; }

/* ─── How it works ───────────────────────────────────────────── */
.how {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  align-items: center;
}
.how-steps { display: flex; flex-direction: column; gap: 4px; }
.how-step {
  display: grid; grid-template-columns: 56px 1fr;
  gap: 20px; padding: 20px 0;
  border-bottom: 1px solid var(--line-2);
}
.how-step:last-child { border-bottom: 0; }
.how-num {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink); color: #fff;
  display: grid; place-items: center;
  font-family: var(--f-mono); font-weight: 700; font-size: 16px;
}
.how-step h4 { font-size: 17px; font-weight: 700; margin: 0 0 4px; letter-spacing: -.01em; }
.how-step p { font-size: 14px; color: var(--ink-3); margin: 0; line-height: 1.55; }

/* Diagram (right side) — vertical pipeline */
.how-diagram {
  background: var(--ink); border-radius: var(--r-xl);
  padding: 32px; aspect-ratio: 1/1;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.how-diagram::before {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, transparent 50%, rgba(25,169,116,.08));
}
.flow-node {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px; padding: 12px 16px;
  display: flex; align-items: center; gap: 12px;
  color: #fff; position: relative; z-index: 1;
}
.flow-node .ic {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
}
.flow-node .lbl { font-size: 12px; color: rgba(255,255,255,.5); }
.flow-node .ttl { font-weight: 600; font-size: 14px; }
.flow-arrow {
  align-self: center; width: 2px; height: 20px;
  background: linear-gradient(180deg, var(--accent), transparent);
  position: relative; z-index: 1;
}
.flow-arrow::after {
  content: ''; position: absolute; bottom: 0; left: -3px;
  border: 4px solid transparent; border-top-color: var(--accent);
}

/* ─── Previews ───────────────────────────────────────────────── */
.previews {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.preview {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .15s;
}
.preview:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.preview-img {
  aspect-ratio: 16/10; background: var(--ink);
  position: relative; overflow: hidden;
}
.preview-body {
  padding: 20px 22px;
}
.preview-body h4 { font-size: 15px; font-weight: 700; margin: 0 0 4px; }
.preview-body p { font-size: 13px; color: var(--ink-3); margin: 0; }

/* ─── CTA strip ──────────────────────────────────────────────── */
.cta-strip {
  background: var(--ink); color: #fff;
  border-radius: var(--r-xl);
  padding: clamp(40px, 5vw, 64px);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px;
  align-items: center; position: relative; overflow: hidden;
}
.cta-strip::before {
  content: ''; position: absolute; right: -60px; top: -60px;
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(25,169,116,.3), transparent 70%);
}
.cta-strip h3 {
  font-family: var(--f-display); font-size: clamp(24px, 3vw, 34px);
  font-weight: 700; margin: 0 0 12px; letter-spacing: -.02em;
}
.cta-strip p {
  margin: 0 0 0; color: rgba(255,255,255,.7); font-size: 16px;
}
.cta-strip .btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: end; }
.cta-strip .btn-ghost { color: #fff; border-color: rgba(255,255,255,.2); }
.cta-strip .btn-ghost:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.4); }

/* ─── Footer ─────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 32px;
  background: var(--surface);
  font-size: 14px;
}
.footer-inner {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p { color: var(--ink-3); margin: 16px 0 0; max-width: 320px; line-height: 1.55; }
.footer-col h5 {
  font-size: 12px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-4);
  margin: 0 0 12px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-col a { color: var(--ink-2); }
.footer-col a:hover { color: var(--accent-deep); }
.footer-col p { margin: 0 0 8px; color: var(--ink-2); }
.footer-bottom {
  padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  color: var(--ink-4); font-size: 13px;
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .nav-link { padding: 8px 10px; font-size: 13px; }
}
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; margin: 0 auto; width: 100%; }
  .modules { grid-template-columns: repeat(2, 1fr); }
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .how { grid-template-columns: 1fr; gap: 40px; }
  .how-diagram { max-width: 420px; margin: 0 auto; width: 100%; }
  .previews { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .cta-strip { grid-template-columns: 1fr; }
  .cta-strip .btns { justify-content: start; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .modules, .benefits, .previews { grid-template-columns: 1fr; }
  .hero-meta { gap: 20px; flex-wrap: wrap; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

/* ─── Reveal-on-scroll ───────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s, transform .6s; }
.reveal.in { opacity: 1; transform: none; }

/* ─── Prototype selection page ───────────────────────────────── */
.proto-hero {
  padding: 80px 0 40px; text-align: center;
}
.proto-hero h1 {
  font-family: var(--f-display); font-size: clamp(32px, 4vw, 48px);
  font-weight: 700; letter-spacing: -.02em; margin: 16px 0 12px;
}
.proto-hero p { color: var(--ink-3); max-width: 640px; margin: 0 auto; font-size: 17px; }

.proto-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-bottom: 24px;
}
@media (max-width: 1024px) { .proto-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .proto-grid { grid-template-columns: 1fr; } }
.proto-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 28px;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .15s, box-shadow .2s, border-color .2s;
}
.proto-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}
.proto-card .pc-head { display: flex; justify-content: space-between; align-items: start; }
.proto-card .pc-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent-deep);
  display: grid; place-items: center;
}
.proto-card .pc-tag {
  font-size: 11px; font-weight: 600; padding: 4px 10px;
  background: var(--surface-2); color: var(--ink-3);
  border-radius: 999px; letter-spacing: .04em;
}
.proto-card h3 { font-family: var(--f-display); font-size: 20px; font-weight: 700; margin: 0; letter-spacing: -.01em; }
.proto-card p { font-size: 14px; color: var(--ink-3); margin: 0; line-height: 1.55; flex: 1; }
.proto-card .pc-flow {
  font-size: 12px; color: var(--ink-4);
  padding: 10px 12px; background: var(--surface);
  border-radius: 8px; font-family: var(--f-mono);
  letter-spacing: -.01em;
}
.proto-card .pc-cta {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px; border-top: 1px solid var(--line-2);
}
.proto-card .pc-cta span { font-size: 13px; color: var(--ink-3); }
.proto-card .pc-cta .btn { padding: 8px 14px; font-size: 13px; }
