:root {
  --bg: #f8f7f4;
  --surface: #ffffff;
  --surface-muted: #f1efe9;
  --ink: #0d0d0d;
  --ink-secondary: #52525b;
  --ink-muted: #71717a;
  --border: #e4e2dc;
  --border-strong: #c8c5bc;
  --accent: #0d0d0d;
  --accent-hover: #27272a;
  --emerald: #047857;
  --emerald-bg: #ecfdf5;
  --amber: #b45309;
  --amber-bg: #fffbeb;
  --rose: #be123c;
  --rose-bg: #fff1f2;
  --blue: #1d4ed8;
  --blue-bg: #eff6ff;
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

body {
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
}

.serif {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
}

.mono {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  font-variant-numeric: tabular-nums;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* Architectural Grid Frame */
.frame {
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  background: var(--bg);
}

/* Ref Banner */
.ref-bar {
  display: none;
  background: var(--ink);
  color: #f8f7f4;
  font-size: 0.8rem;
  padding: 9px 16px;
  text-align: center;
  letter-spacing: 0.01em;
}

.ref-bar strong {
  color: #fde68a;
  font-weight: 600;
}

/* Navbar */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(248, 247, 244, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.96rem;
  letter-spacing: -0.02em;
}

.logo-box {
  width: 26px;
  height: 26px;
  background: var(--ink);
  color: var(--bg);
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 5px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.86rem;
  color: var(--ink-secondary);
}

.nav-menu a:hover {
  color: var(--ink);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-dark {
  background: var(--ink);
  color: #ffffff;
}

.btn-dark:hover {
  background: var(--accent-hover);
}

.btn-light {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border-strong);
}

.btn-light:hover {
  border-color: var(--ink);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.82rem;
}

/* Hero */
.hero {
  padding: 76px 40px 64px;
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-secondary);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: end;
}

.hero h1 {
  font-size: clamp(2.6rem, 5.2vw, 4.35rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 600;
}

.hero h1 .serif {
  font-style: italic;
  font-size: 1.08em;
  font-weight: 400;
}

.hero-right p {
  font-size: 1rem;
  color: var(--ink-secondary);
  margin-bottom: 24px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Metrics Strip */
.metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.metric-cell {
  padding: 24px 28px;
  border-right: 1px solid var(--border);
}

.metric-cell:last-child {
  border-right: none;
}

.metric-num {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.metric-label {
  font-size: 0.8rem;
  color: var(--ink-secondary);
}

/* Section */
.sec {
  padding: 72px 40px;
  border-bottom: 1px solid var(--border);
}

.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 40px;
}

.sec-head h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 600;
  max-width: 600px;
}

.sec-head p {
  color: var(--ink-secondary);
  font-size: 0.94rem;
  max-width: 380px;
}

/* Bento Product Preview Grid */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.bento-card {
  background: var(--surface);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.span-7 { grid-column: span 7; }
.span-5 { grid-column: span 5; }
.span-12 { grid-column: span 12; }

.kicker {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.k-blue { background: var(--blue-bg); color: var(--blue); }
.k-rose { background: var(--rose-bg); color: var(--rose); }
.k-emerald { background: var(--emerald-bg); color: var(--emerald); }
.k-amber { background: var(--amber-bg); color: var(--amber); }

.bento-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.bento-card p {
  font-size: 0.9rem;
  color: var(--ink-secondary);
}

/* Live UI Mockup Widgets inside Bento */
.mock-panel {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  font-size: 0.78rem;
}

.mock-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 10px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}

.mock-row:last-child {
  border-bottom: none;
}

.badge-pill {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  white-space: nowrap;
}

/* Heatmap Mini Widget (Arcanviq Jam Panen) */
.heatmap {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 4px;
  margin-top: 10px;
}

.hm-cell {
  height: 18px;
  border-radius: 3px;
  background: #e7e5e4;
}

.hm-1 { background: #d1fae5; }
.hm-2 { background: #6ee7b7; }
.hm-3 { background: #10b981; }
.hm-4 { background: #047857; }

/* Pricing */
.toggle-group {
  display: inline-flex;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}

.t-btn {
  border: none;
  background: transparent;
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-secondary);
  border-radius: 6px;
  cursor: pointer;
}

.t-btn.active {
  background: var(--ink);
  color: #ffffff;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.price-col {
  background: var(--surface);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.price-col.dark {
  background: var(--ink);
  color: #ffffff;
}

.price-col.dark p,
.price-col.dark .p-sub,
.price-col.dark li {
  color: #a1a1aa;
}

.price-col.dark .btn-dark {
  background: #ffffff;
  color: var(--ink);
}

.price-col.dark .btn-dark:hover {
  background: #e4e4e7;
}

.p-val {
  font-size: 2.3rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin: 6px 0 4px;
}

.p-strike-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.p-strike {
  font-size: 0.92rem;
  color: var(--ink-muted);
  text-decoration: line-through;
}

.price-col.dark .p-strike {
  color: #71717a;
}

.p-save-tag {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--rose-bg);
  color: var(--rose);
  letter-spacing: 0.03em;
}

.price-col.dark .p-save-tag {
  background: rgba(251, 113, 133, 0.2);
  color: #fda4af;
}

.urgency-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(253, 230, 138, 0.28);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 18px;
}

.urgency-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: #fde68a;
  font-weight: 600;
  margin-bottom: 8px;
}

.slot-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 8px;
}

.slot-fill {
  height: 100%;
  width: 83%;
  background: linear-gradient(90deg, #f59e0b, #fb7185);
  border-radius: 999px;
  animation: pulseBar 2.2s ease-in-out infinite;
}

@keyframes pulseBar {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}

.countdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.74rem;
  color: #d4d4d8;
}

.countdown-timer {
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.p-sub {
  font-size: 0.82rem;
  color: var(--ink-secondary);
  margin-bottom: 24px;
  min-height: 20px;
}

.p-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 0.88rem;
  color: var(--ink-secondary);
  margin-bottom: 32px;
}

.p-list li {
  display: flex;
  gap: 10px;
}

/* Tables */
.table-box {
  border: 1px solid var(--border);
  background: var(--surface);
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

th, td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--surface-muted);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-secondary);
  font-weight: 600;
}

tr:last-child td {
  border-bottom: none;
}

tbody tr:hover td {
  background: #fafaf8;
}

/* Calculator (Partner) */
.calc-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.calc-left, .calc-right {
  background: var(--surface);
  padding: 32px;
}

.calc-right {
  background: var(--ink);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--ink);
  cursor: pointer;
  margin: 20px 0 8px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.f-btn {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink-secondary);
  padding: 7px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
}

.f-btn.active,
.f-btn:hover {
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
}

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.faq-item {
  background: var(--surface);
  padding: 28px;
}

.faq-item h4 {
  font-size: 0.96rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.faq-item p {
  font-size: 0.88rem;
  color: var(--ink-secondary);
}

/* Footer */
.foot {
  padding: 36px 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--ink-secondary);
}

/* ==========================================================================
   5-LAYER PARALLAX STAGE & STAGED SCROLL REVEALS (OXVA / APPLE LAUNCH STYLE)
   ========================================================================== */
.parallax-section {
  position: relative;
  padding: 48px 40px 64px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg);
}

.parallax-stage {
  position: relative;
  width: 100%;
  min-height: 520px;
  display: grid;
  place-items: center;
  perspective: 1200px;
}

.p-layer {
  will-change: transform;
  transition: transform 0.08s linear;
}

/* Layer 1: Subtle Warm Architectural Spotlight (Anti-Slop: No stock grid lines) */
.p-layer-1 {
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle at 50% 42%, rgba(180, 138, 62, 0.09), transparent 62%);
  pointer-events: none;
  z-index: 1;
}

/* Layer 2: Main Editorial Visual Canvas */
.p-layer-2 {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 920px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: 0 28px 70px rgba(13, 13, 13, 0.12);
  background: var(--surface);
}

.p-layer-2 img {
  width: 100%;
  height: auto;
  display: block;
}

/* Layer 3: Floating Card Top-Left (Solid Surface - Anti-Slop R-10) */
.p-layer-3 {
  position: absolute;
  top: 24px;
  left: 16px;
  z-index: 3;
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 14px 18px;
  box-shadow: 0 14px 32px rgba(13, 13, 13, 0.08);
  max-width: 250px;
}

/* Layer 4: Floating Card Bottom-Right (Solid Obsidian Surface) */
.p-layer-4 {
  position: absolute;
  bottom: 28px;
  right: 16px;
  z-index: 4;
  background: #0d0d0d;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 14px 18px;
  box-shadow: 0 18px 38px rgba(13, 13, 13, 0.22);
  max-width: 260px;
}

.real-shot {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: block;
  object-fit: cover;
}

/* Layer 5: Foreground Crisp Accent Pill */
.p-layer-5 {
  position: absolute;
  top: 38px;
  right: 28px;
  z-index: 5;
  background: var(--surface);
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(13, 13, 13, 0.1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Editorial Media Banner inside Sections */
.editorial-banner {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 28px;
  background: var(--surface);
}

.editorial-banner img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  display: block;
}

/* Staged Scroll-Reveal Animations */
.reveal {
  opacity: 0;
  transform: translate3d(0, 36px, 0);
  transition:
    opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.95) translate3d(0, 24px, 0);
  transition:
    opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible,
.reveal-scale.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .p-layer {
    transform: none !important;
  }
}

@media (max-width: 960px) {
  .parallax-section { padding: 32px 16px 44px; }
  .parallax-stage { min-height: 320px; }
  .p-layer-3, .p-layer-4, .p-layer-5 { display: none; }
}

@media (max-width: 960px) {
  .hero, .sec { padding: 48px 20px; }
  .hero-grid, .metrics-strip, .pricing-grid, .calc-grid, .faq-grid {
    grid-template-columns: 1fr;
  }
  .span-7, .span-5 { grid-column: span 12; }
  .metric-cell { border-right: none; border-bottom: 1px solid var(--border); }
  .metric-cell:last-child { border-bottom: none; }
  .sec-head { flex-direction: column; align-items: flex-start; }
  .nav-menu { display: none; }
}
