:root {
  --sauda-red: #e53935;
  --sauda-deep: #b91c1c;
  --sauda-white: #ffffff;
  --sauda-bg: #f8fafc;
  --sauda-ink: #171717;
  --sauda-muted: #64748b;
  --sauda-line: #e5e7eb;
  --sauda-shadow: 0 18px 50px rgba(185, 28, 28, 0.08);
  --sauda-radius: 22px;
  --sauda-font: "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.sauda-body {
  margin: 0;
  font-family: var(--sauda-font);
  color: var(--sauda-ink);
  background: var(--sauda-bg);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input { font: inherit; }

.skip {
  position: absolute; left: -999px;
}
.skip:focus { left: 12px; top: 12px; z-index: 50; background: #fff; padding: 8px 12px; }

.sauda-wrap { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }
.sauda-header {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(248, 250, 252, 0.88);
  border-bottom: 1px solid transparent;
}
.sauda-header.is-scrolled { border-bottom-color: var(--sauda-line); }
.sauda-nav {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; gap: 16px;
}
.sauda-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; font-weight: 800; letter-spacing: -0.04em;
}
.sauda-mark {
  width: 36px; height: 36px; border-radius: 11px;
  background: linear-gradient(160deg, var(--sauda-red), var(--sauda-deep));
  color: #fff; display: grid; place-items: center; font-weight: 800;
  box-shadow: 0 8px 20px rgba(229, 57, 53, 0.28);
}
.sauda-nav-links { display: flex; gap: 22px; color: var(--sauda-muted); font-size: 0.92rem; font-weight: 600; }
.sauda-nav-links a { text-decoration: none; }
.sauda-nav-links a:hover { color: var(--sauda-ink); }
.sauda-nav-end { display: flex; gap: 10px; align-items: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 0.78rem 1.2rem;
  font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:active { transform: scale(0.98); }
.btn-red {
  background: var(--sauda-red); color: #fff;
  box-shadow: 0 10px 24px rgba(229, 57, 53, 0.28);
}
.btn-red:hover { background: var(--sauda-deep); }
.btn-ghost {
  background: #fff; color: var(--sauda-ink); border: 1px solid var(--sauda-line);
}
.btn-ghost:hover { border-color: #cbd5e1; }
.btn[disabled] { opacity: .7; cursor: wait; }

.hero {
  position: relative;
  padding: 3.2rem 0 2.4rem;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: -20% auto auto 40%;
  width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(229, 57, 53, 0.14), transparent 68%);
  pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center;
}
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--sauda-line);
  color: var(--sauda-deep); font-size: 0.8rem; font-weight: 700;
  padding: 6px 12px; border-radius: 999px; margin-bottom: 16px;
}
.hero h1, .pitch h1, .section-title {
  letter-spacing: -0.045em; line-height: 1.08; margin: 0 0 14px;
}
.hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); }
.lede { color: var(--sauda-muted); font-size: 1.08rem; line-height: 1.65; max-width: 36rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.trust { display: flex; gap: 18px; margin-top: 22px; color: var(--sauda-muted); font-size: 0.86rem; }

/* 3D POS scene */
.scene {
  position: relative; height: 460px; perspective: 1200px;
}
.scene-stage {
  position: absolute; inset: 18px 8px 8px;
  transform-style: preserve-3d;
  animation: floaty 7s ease-in-out infinite;
}
.terminal {
  position: absolute; left: 12%; top: 28px; width: 72%;
  transform: rotateY(-18deg) rotateX(8deg);
  transform-style: preserve-3d;
}
.terminal-body {
  background: linear-gradient(180deg, #1f1f1f, #111);
  border-radius: 22px; padding: 12px;
  box-shadow: var(--sauda-shadow), 0 30px 40px rgba(0,0,0,.18);
}
.terminal-screen {
  background: #fff; border-radius: 14px; min-height: 230px; overflow: hidden;
  padding: 14px;
}
.dash-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #e5e7eb; display: inline-block; margin-right: 4px; }
.dot.red { background: var(--sauda-red); }
.kpi-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kpi {
  background: #f8fafc; border: 1px solid var(--sauda-line); border-radius: 12px; padding: 10px;
}
.kpi b { display: block; font-size: 1.15rem; }
.kpi span { color: var(--sauda-muted); font-size: 0.72rem; }
.chart {
  margin-top: 12px; height: 72px; width: 100%;
}
.chart path {
  fill: none; stroke: var(--sauda-red); stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 240; stroke-dashoffset: 240;
  animation: draw 1.8s ease forwards 0.4s;
}
.chart area {
  fill: url(#saudaFill); opacity: .35;
}
.float-card {
  position: absolute; background: #fff; border: 1px solid var(--sauda-line);
  border-radius: 16px; padding: 12px 14px; box-shadow: var(--sauda-shadow);
  animation: floaty 5.5s ease-in-out infinite;
}
.card-product { right: 0; top: 18px; width: 168px; animation-delay: .4s; }
.card-stock { left: 0; bottom: 36px; width: 170px; animation-delay: .9s; }
.card-receipt { right: 18px; bottom: 8px; width: 150px; animation-delay: 1.2s; }
.barcode {
  height: 28px; display: flex; gap: 2px; align-items: stretch; margin-top: 8px;
}
.barcode i { width: 2px; background: #171717; display: block; }
.barcode i:nth-child(odd) { width: 1px; }
.barcode i:nth-child(3n) { width: 3px; }
.pill { font-size: .7rem; font-weight: 700; color: var(--sauda-deep); background: #fee2e2; border-radius: 999px; padding: 2px 8px; }
.low { color: var(--sauda-red); font-weight: 700; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.section { padding: 4.2rem 0; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.center { text-align: center; }
.muted { color: var(--sauda-muted); line-height: 1.65; }

.story {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center;
  margin: 2.2rem 0;
}
.story.reverse { direction: rtl; }
.story.reverse > * { direction: ltr; }
.panel {
  background: #fff; border: 1px solid var(--sauda-line); border-radius: var(--sauda-radius);
  padding: 22px; box-shadow: var(--sauda-shadow); min-height: 240px;
}
.messy {
  background:
    radial-gradient(circle at 20% 30%, #fee2e2, transparent 40%),
    #fff;
}
.paper {
  background: #fff7ed; border: 1px dashed #fdba74; border-radius: 10px;
  padding: 10px; margin: 8px 0; transform: rotate(-2deg); color: #9a3412; font-size: .9rem;
}
.paper:nth-child(2) { transform: rotate(2.4deg); background: #f1f5f9; color: #334155; border-color: #cbd5e1; }
.stock-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.box-item {
  height: 64px; border-radius: 12px; background: #f1f5f9; border: 1px solid var(--sauda-line);
  display: grid; place-items: center; font-size: .75rem; font-weight: 700; color: var(--sauda-muted);
}
.box-item.warn { background: #fef2f2; color: var(--sauda-deep); border-color: #fecaca; }

.benefits {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.benefit {
  background: #fff; border: 1px solid var(--sauda-line); border-radius: var(--sauda-radius);
  padding: 22px; box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}
.benefit h3 { margin: 10px 0 8px; font-size: 1.1rem; }
.mini-viz { height: 92px; border-radius: 14px; background: #f8fafc; border: 1px solid var(--sauda-line); overflow: hidden; position: relative; }
.receipt-line { height: 8px; background: #e5e7eb; border-radius: 99px; margin: 10px 14px; width: 70%; }
.receipt-line:first-child { margin-top: 18px; width: 40%; background: var(--sauda-red); }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 100%; padding: 14px; }
.bars span { flex: 1; background: #fecaca; border-radius: 6px 6px 0 0; animation: grow 1.2s ease both; }
.bars span:nth-child(2) { height: 55%; animation-delay: .1s; }
.bars span:nth-child(3) { height: 80%; background: var(--sauda-red); animation-delay: .2s; }
.bars span:nth-child(1) { height: 35%; }
.bars span:nth-child(4) { height: 62%; animation-delay: .3s; }
@keyframes grow { from { transform: scaleY(0); transform-origin: bottom; } }

.checks { list-style: none; padding: 0; margin: 18px 0 0; }
.checks li {
  display: flex; gap: 10px; align-items: flex-start;
  margin: 0 0 10px; color: #334155; font-size: .95rem; line-height: 1.45;
}
.checks li::before {
  content: "✓";
  color: var(--sauda-red);
  font-weight: 800;
  flex: none;
  width: 1.1rem;
}

.cta-band {
  background: #fff; border: 1px solid var(--sauda-line); border-radius: 28px;
  padding: 2rem; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  box-shadow: var(--sauda-shadow);
}
.sauda-footer {
  padding: 2rem 0 3rem; color: var(--sauda-muted); font-size: .9rem;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.sauda-footer a { color: var(--sauda-ink); text-decoration: none; font-weight: 600; }

/* Login split */
.login-page { min-height: 100vh; }
.login-split {
  display: grid; grid-template-columns: 1.1fr 0.9fr; min-height: 100vh;
}
.pitch {
  background:
    radial-gradient(circle at 20% 10%, rgba(229,57,53,.16), transparent 42%),
    linear-gradient(180deg, #fff, #f8fafc);
  padding: 32px 48px 48px;
  display: flex; flex-direction: column;
}
.pitch-inner { max-width: 520px; margin: auto 0; }
.form-col {
  display: flex; align-items: center; justify-content: center;
  padding: 32px 24px;
  background: #fff;
  border-left: 1px solid var(--sauda-line);
}
.form-card { width: min(400px, 100%); }
.form-card h2 { font-size: 1.55rem; letter-spacing: -0.04em; margin: 0 0 6px; }
.field { margin: 0 0 14px; }
.field label { display: block; font-size: .82rem; font-weight: 700; margin-bottom: 6px; }
.field input {
  width: 100%; border: 1px solid var(--sauda-line); border-radius: 14px;
  padding: 0.85rem 0.95rem; background: #fff; outline: none;
  transition: border-color .16s, box-shadow .16s;
}
.field input:focus {
  border-color: var(--sauda-red);
  box-shadow: 0 0 0 4px rgba(229, 57, 53, 0.12);
}
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 3rem; }
.toggle-pw {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  border: 0; background: transparent; color: var(--sauda-muted); cursor: pointer; font-weight: 700; font-size: .8rem;
}
.form-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 4px 0 16px; font-size: .86rem; }
.form-row a { color: var(--sauda-deep); text-decoration: none; font-weight: 700; }
.err {
  background: #fef2f2; color: #991b1b; border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; font-size: .9rem;
}
.form-note { margin-top: 16px; color: var(--sauda-muted); font-size: .9rem; }
.form-note a { color: var(--sauda-deep); font-weight: 700; text-decoration: none; }
.login-benefits { padding: 2.4rem 0 3.4rem; background: var(--sauda-bg); border-top: 1px solid var(--sauda-line); }

.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }

@media (max-width: 960px) {
  .hero-grid, .story, .login-split, .benefits, .cta-band { grid-template-columns: 1fr; }
  .story.reverse { direction: ltr; }
  .sauda-nav-links { display: none; }
  .scene { height: 380px; }
  .login-split .form-col { order: -1; border-left: 0; border-bottom: 1px solid var(--sauda-line); }
  .form-col { border-left: 0; }
  .pitch { padding: 24px 20px 8px; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scene-stage, .float-card { animation: none; }
  .chart path { animation: none; stroke-dashoffset: 0; }
  .reveal { opacity: 1; transform: none; }
  .bars span { animation: none; }
}
