/* ==========================================================================
   MeCode × Cito — Landing Page v2 (Teak-Inspired Blueprint + Playful Bento)
   Scope: Header + Section 1 (Hero & Tool Marquee) + Section 2 (Mint Banner & Bento)
   ========================================================================== */

:root {
  /* Paper & Espresso Neutrals */
  --paper: #f8faf7;
  --paper-soft: #f0f2ef;
  --surface: #ffffff;
  --line: #dfe0de;
  --line-strong: rgba(42, 15, 20, 0.16);
  --ink: #2a0f14;
  --ink-body: #544145;
  --ink-muted: #6c5d60;

  /* Teak-inspired Pastel & Vibrant Ramps */
  --yellow-soft: #fdf1b0;
  --yellow: #fae261;
  --yellow-hover: #f4d63d;
  --yellow-ink: #4e340c;

  --mint-soft: #d7f8e6;
  --mint: #03af54;
  --mint-hover: #009344;
  --mint-ink: #06580f;

  --coral-soft: #ffe5dc;
  --coral-mid: #ffab8d;
  --coral: #ff571a;
  --coral-ink: #7d1d00;

  --pink-soft: #ffdcef;
  --pink-mid: #fc7ec7;
  --pink: #d3379f;
  --pink-ink: #4b003a;

  --blue-soft: #e5f9ff;
  --blue-mid: #a6d4e7;
  --blue-ink: #082a4d;

  --purple: #5f44e6;

  /* Typography */
  --font-sans: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Fraunces', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  /* Spacing & Layout */
  --container-max: 1120px;
  --header-h: 68px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3, p, dl, dd, ul {
  margin: 0;
}

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 300;
  background: var(--yellow);
  color: var(--ink);
  padding: 10px 16px;
  border: 1px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
}

/* ==========================================================================
   Graph-Paper Backdrop & Container
   ========================================================================== */

.grid-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: var(--paper);
}

.container {
  width: min(var(--container-max), calc(100% - 48px));
  margin-inline: auto;
}

/* Subtle paper halo so headlines float crisply over the 42x42 grid */
.halo-text {
  background: radial-gradient(ellipse at center, rgba(248, 250, 247, 0.94) 52%, rgba(248, 250, 247, 0) 100%);
}

/* ==========================================================================
   Sticky Architectural Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 250, 247, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(var(--container-max), calc(100% - 48px));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}

.brand-badge {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--yellow);
  border: 1px solid var(--ink);
  border-radius: 8px;
  flex: none;
}

.brand-text {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  font-size: 19px;
  letter-spacing: -0.03em;
  line-height: 1;
}

.brand-x {
  font-weight: 400;
  color: var(--ink-muted);
  font-size: 16px;
}

.brand-cito {
  font-size: 23px;
  letter-spacing: -0.05em;
}

.brand-version {
  margin-left: 6px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-right: 8px;
}

.desktop-nav a {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-body);
  padding: 6px 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.desktop-nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.menu-box {
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 0;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.menu-box:hover {
  border-color: var(--ink);
  background: var(--yellow-soft);
}

.menu-box span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-box[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.menu-box[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-box[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Hairline Drawer Nav */
.drawer-nav {
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.drawer-grid {
  width: min(var(--container-max), calc(100% - 48px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-left: 1px solid var(--line);
}

.drawer-grid a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 22px;
  border-right: 1px solid var(--line);
  background: var(--surface);
  transition: background-color 0.18s ease;
}

.drawer-grid a:hover {
  background: var(--yellow-soft);
}

.mono-idx {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
}

.drawer-grid strong {
  font-size: 15px;
  font-weight: 600;
}

.drawer-grid small {
  font-size: 13px;
  color: var(--ink-body);
  line-height: 1.45;
}

/* ==========================================================================
   Pill Buttons & Highlighter Markers
   ========================================================================== */

.pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

.pill-btn:hover {
  transform: translateY(-1px);
}

.pill-btn:active {
  transform: translateY(0);
}

.btn-arrow {
  flex: none;
  transition: transform 0.18s ease;
}

.pill-btn:hover .btn-arrow {
  transform: translateX(2px);
}

.pill-dark {
  background: var(--ink);
  color: #fffef9;
  min-height: 44px;
  padding: 10px 18px;
}

.pill-dark:hover {
  background: #421a21;
}

.pill-yellow {
  background: var(--yellow);
  color: var(--ink);
  border-color: rgba(42, 15, 20, 0.14);
}

.pill-yellow:hover {
  background: var(--yellow-hover);
}

.pill-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
}

.pill-ghost:hover {
  border-color: var(--ink);
  background: var(--paper-soft);
}

.pill-green {
  background: var(--mint-hover);
  color: #ffffff;
}

.pill-green:hover {
  background: var(--mint-ink);
}

.pill-coral-soft {
  background: var(--coral-soft);
  color: var(--coral-ink);
  border-color: rgba(255, 87, 26, 0.3);
}

.pill-coral-soft:hover {
  background: #ffd3c4;
}

/* Signature Teak Highlighter Marker (Fraunces Serif + Solid Pastel Block) */
.marker {
  display: inline-block;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 1.04em;
  line-height: 1.05;
  letter-spacing: -0.02em;
  padding: 0.04em 0.24em 0.12em;
  border-radius: 6px;
  color: var(--ink);
}

.marker-yellow {
  background-color: var(--yellow);
}

.marker-pink {
  background-color: var(--pink-soft);
  color: var(--pink-ink);
}

.marker-coral {
  background-color: var(--coral-soft);
  color: var(--coral-ink);
}

.marker-mint {
  background-color: var(--mint-soft);
  color: var(--mint-ink);
}

/* ==========================================================================
   SECTION 1: HERO (ASYMMETRIC SPLIT + FLOATING INTERACTIVE STAGE)
   ========================================================================== */

.hero-section {
  padding-top: 56px;
  padding-bottom: 32px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 48px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-body);
}

.dot-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
}

.hero-title {
  margin-top: 22px;
  font-size: clamp(2.45rem, 4.4vw, 3.85rem);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.hero-lead {
  margin-top: 22px;
  max-width: 520px;
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink-body);
}

.hero-cta-row {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* 3-Column Monospace KPI Strip (Teak Hero Bottom Left) */
.hero-kpis {
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.kpi-item dt {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.kpi-item dd {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink-muted);
}

/* ==========================================================================
   Hero Right Stage: Interactive Floating Micro-World
   ========================================================================== */

.hero-stage {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 12px 6px;
}

.hero-copy {
  min-width: 0;
}

/* Geometric Sparkles */
.sparkle {
  position: absolute;
  pointer-events: none;
  z-index: 4;
  animation: sparkle-pulse 3.6s ease-in-out infinite;
}

.sparkle-1 {
  top: 6px;
  right: 12px;
}

.sparkle-2 {
  top: 112px;
  left: -12px;
  animation-delay: 1.1s;
}

.sparkle-3 {
  bottom: 118px;
  left: -6px;
  animation-delay: 2.1s;
}

@keyframes sparkle-pulse {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.16) rotate(12deg); }
}

/* Floating Micro Chips (Staggered flex flow — playful tilt, zero occlusion!) */
.float-chip {
  position: relative;
  z-index: 3;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 12px 15px;
}

.float-prompt {
  align-self: flex-start;
  max-width: 340px;
  background: var(--coral-soft);
  border-color: rgba(255, 87, 26, 0.35);
  transform: rotate(-1.2deg);
}

.chip-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

.chip-dot-coral {
  background: var(--coral);
}

.mono-small {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--coral-ink);
}

.float-prompt p {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink);
}

/* Central Interactive Link Tracker Widget */
.tracker-card {
  position: relative;
  z-index: 2;
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-radius: 22px;
  padding: 20px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.tracker-card.is-highlighted {
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(95, 68, 230, 0.16);
}

.tracker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.tracker-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tracker-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--yellow);
  border: 1px solid var(--ink);
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 700;
  flex: none;
}

.tracker-title-group strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.mono-tiny {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}

.period-switch {
  display: inline-flex;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}

.period-switch button {
  min-height: 34px;
  padding: 5px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-body);
}

.period-switch button.is-active {
  background: var(--ink);
  color: #ffffff;
}

.tracker-stats {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.stat-pill {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
}

.stat-pill-mint {
  background: var(--mint-soft);
  border-color: rgba(3, 175, 84, 0.25);
}

.stat-pill strong {
  display: block;
  margin-top: 4px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
}

.tracker-chart-box {
  margin-top: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px 10px;
}

.chart-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.live-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--mint-ink);
  background: var(--mint-soft);
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.v2-bars {
  margin-top: 14px;
  height: 122px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  align-items: end;
  background: repeating-linear-gradient(
    to top,
    transparent 0,
    transparent 29px,
    #e8ebe5 29px,
    #e8ebe5 30px
  );
}

.v2-bar-col {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.v2-bar-fill {
  width: 100%;
  max-width: 34px;
  height: var(--bar-h, 40%);
  min-height: 12px;
  border-radius: 6px 6px 2px 2px;
  border: 1px solid var(--ink);
  background: var(--yellow);
  position: relative;
  padding: 0;
  transition: height 0.35s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.16s ease;
}

.v2-bar-fill:hover,
.v2-bar-fill:focus-visible {
  background: var(--coral-mid);
}

.v2-bar-fill::after {
  content: attr(data-val);
  position: absolute;
  bottom: calc(100% + 5px);
  left: 50%;
  transform: translateX(-50%);
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.14s ease;
}

.v2-bar-fill:hover::after,
.v2-bar-fill:focus-visible::after {
  opacity: 1;
}

.v2-bar-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
}

.channel-bar {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ch-pill {
  min-height: 36px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-body);
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ch-pill:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.ch-pill.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}

/* Floating Live UTM Pill (Bottom Right, cleanly below tracker card) */
.float-utm {
  align-self: flex-end;
  width: min(390px, 100%);
  background: var(--blue-soft);
  border-color: rgba(8, 42, 77, 0.25);
  transform: rotate(0.9deg);
}

.utm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.utm-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--blue-ink);
  background: #ffffff;
  border: 1px solid rgba(8, 42, 77, 0.18);
  padding: 2px 8px;
  border-radius: 999px;
}

.copy-mini-btn {
  min-height: 32px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--yellow);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
}

.copy-mini-btn:hover {
  background: var(--yellow-hover);
}

.float-utm code {
  display: block;
  margin-top: 8px;
  padding: 7px 10px;
  background: #ffffff;
  border: 1px solid rgba(8, 42, 77, 0.14);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.utm-status {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--blue-ink);
}

/* ==========================================================================
   Hairline Marquee Strip (Teak "Trusted By" Architectural Anchor)
   ========================================================================== */

.tool-box {
  margin-top: 44px;
  position: relative;
  border: 1px solid var(--line);
  background: var(--surface);
}

.tool-box-tab {
  position: absolute;
  top: -13px;
  left: 20px;
  padding: 3px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
}

.marquee-viewport {
  overflow: hidden;
  padding: 24px 0 20px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 26px;
  width: max-content;
  animation: marquee-scroll 26s linear infinite;
}

.tool-box:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.tool-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.tool-item i {
  font-style: normal;
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 13px;
}

.tool-sep {
  font-family: var(--font-mono);
  color: var(--line);
  font-size: 16px;
}

/* ==========================================================================
   SECTION 2: MINT MASTERCLASS BANNER + ARCHITECTURAL BENTO STACK
   ========================================================================== */

.section-two {
  padding-top: 40px;
  padding-bottom: 84px;
}

/* Teak Pastel Mint Banner */
.mint-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 34px 40px;
  background: var(--mint-soft);
  border: 1px solid rgba(6, 88, 15, 0.2);
  overflow: hidden;
}

.mint-banner-copy {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.mint-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--mint-ink);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(6, 88, 15, 0.16);
  padding: 4px 10px;
}

.mint-banner h2 {
  margin-top: 12px;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--mint-ink);
}

.mint-banner .pill-green {
  position: relative;
  z-index: 1;
  flex: none;
}

.banner-sparkle {
  position: absolute;
  pointer-events: none;
  opacity: 0.85;
}

.banner-sparkle-l {
  top: 14px;
  left: 14px;
}

.banner-sparkle-r {
  bottom: 14px;
  right: 18px;
}

/* 2-Column Editorial Intro Split (Teak "CRM that's all about...") */
.split-intro {
  margin-top: 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 48px;
  align-items: end;
}

.mono-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
}

.split-intro-left h2 {
  margin-top: 12px;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-wrap: balance;
}

.split-intro-right p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-body);
}

.split-intro-right .pill-btn {
  margin-top: 22px;
}

/* ==========================================================================
   Stacked 1px-Bordered Architectural Bento Cards
   ========================================================================== */

.bento-stack {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.bento-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.bento-copy {
  padding: 44px 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--line);
}

.bento-index {
  align-self: flex-start;
  padding: 5px 11px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
}

.badge-coral {
  background: var(--coral-soft);
  color: var(--coral-ink);
  border-color: rgba(255, 87, 26, 0.22);
}

.badge-pink {
  background: var(--pink-soft);
  color: var(--pink-ink);
  border-color: rgba(211, 55, 159, 0.22);
}

.badge-mint {
  background: var(--mint-soft);
  color: var(--mint-ink);
  border-color: rgba(3, 175, 84, 0.22);
}

.bento-copy h3 {
  margin-top: 18px;
  font-size: clamp(1.5rem, 2.2vw, 1.95rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.bento-copy p {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-body);
}

.bento-inline-action {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.mono-hint {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
}

.bento-meta-row {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mono-chip {
  padding: 6px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-body);
}

/* Bento Right Visual Panel */
.bento-visual {
  padding: 34px 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background-color: var(--paper);
  background-image: radial-gradient(rgba(42, 15, 20, 0.08) 1px, transparent 1px);
  background-size: 18px 18px;
}

.visual-coral {
  background-color: #fff8f5;
}

.visual-slots {
  background-color: #fdf9fc;
}

.visual-blue {
  background-color: #f5fcff;
}

/* Shared Inner UI Micro-Widget Card */
.ui-card {
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-radius: 20px;
  padding: 18px;
}

.ui-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ui-pill-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

.tag-coral {
  background: var(--coral-soft);
  color: var(--coral-ink);
}

.tag-blue {
  background: var(--blue-soft);
  color: var(--blue-ink);
}

/* Card 1 Widget: Mini Agent Runner */
.agent-prompt-box {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.5;
}

.agent-mini-steps {
  list-style: none;
  padding: 0;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.agent-mini-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  opacity: 0.65;
  transition: opacity 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.agent-mini-steps li.is-running {
  opacity: 1;
  background: var(--yellow-soft);
  border-color: var(--ink);
}

.agent-mini-steps li.is-done {
  opacity: 1;
  background: var(--mint-soft);
  border-color: rgba(3, 175, 84, 0.35);
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  flex: none;
}

.agent-mini-steps strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.agent-mini-steps li > div span {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 2px;
}

.step-check {
  margin-left: auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  color: transparent;
  background: transparent;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.agent-mini-steps li.is-done .step-check {
  background: var(--mint);
  color: #ffffff;
}

/* Card 2 Widget: Teak Signature Dual Vertical Slot Pill Marquee */
.slot-machine {
  width: 100%;
  max-width: 440px;
  height: 276px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.slot-col {
  height: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 82%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 82%, transparent 100%);
}

.slot-track {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.slot-col-up .slot-track {
  animation: slot-up 14s linear infinite;
}

.slot-col-down .slot-track {
  animation: slot-down 16s linear infinite;
}

.slot-machine:hover .slot-track {
  animation-play-state: paused;
}

@keyframes slot-up {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}

@keyframes slot-down {
  from { transform: translateY(-50%); }
  to { transform: translateY(0); }
}

.slot-pill {
  display: block;
  text-align: center;
  padding: 11px 14px;
  border-radius: 999px;
  border: 1px solid rgba(42, 15, 20, 0.14);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.sp-coral { background: var(--coral-soft); color: var(--coral-ink); }
.sp-pink { background: var(--pink-soft); color: var(--pink-ink); }
.sp-yellow { background: var(--yellow-soft); color: var(--yellow-ink); }
.sp-mint { background: var(--mint-soft); color: var(--mint-ink); }
.sp-blue { background: var(--blue-soft); color: var(--blue-ink); }

.slot-connector {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--yellow);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  flex: none;
}

/* Card 3 Widget: Interactive Release Tiers */
.release-tiers {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tier-row {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1.5px solid transparent;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.tier-row:hover {
  transform: translateX(2px);
}

.tier-yellow { background: var(--yellow-soft); }
.tier-blue { background: var(--blue-soft); }
.tier-mint { background: var(--mint-soft); }

.tier-row.is-selected {
  border-color: var(--ink);
}

.tier-ver {
  padding: 4px 8px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  flex: none;
}

.tier-info {
  min-width: 0;
}

.tier-info strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.tier-info small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--ink-body);
}

.tier-badge {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  padding: 4px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.release-footer {
  margin-top: 12px;
  padding: 11px 13px;
  border-radius: 12px;
  background: var(--paper);
  border: 1px dashed var(--line-strong);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-body);
}

/* Preview Boundary Banner */
.preview-boundary {
  margin-top: 40px;
  padding: 20px 24px;
  border: 1px dashed var(--line-strong);
  background: rgba(255, 255, 255, 0.88);
  text-align: center;
}

.preview-boundary p {
  margin-top: 6px;
  font-size: 14px;
  color: var(--ink-body);
}

/* ==========================================================================
   Responsive Breakpoints (Tablet <= 980px, Mobile <= 640px)
   ========================================================================== */

@media (max-width: 980px) {
  .desktop-nav,
  .brand-version {
    display: none;
  }

  .drawer-grid {
    grid-template-columns: minmax(0, 1fr);
    border-left: 0;
  }

  .drawer-grid a {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .hero-stage {
    max-width: 560px;
    margin-inline: auto;
    width: 100%;
    padding: 0;
  }

  .mint-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 26px;
  }

  .split-intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    margin-top: 56px;
  }

  .bento-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .bento-copy {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 32px 26px;
    min-width: 0;
  }

  .bento-visual {
    padding: 28px 22px;
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .container,
  .header-inner,
  .drawer-grid {
    width: calc(100% - 32px);
  }

  .header-inner {
    gap: 8px;
    min-height: 60px;
  }

  .brand {
    gap: 7px;
    min-width: 0;
  }

  .brand-badge {
    width: 28px;
    height: 28px;
    border-radius: 6px;
  }

  .brand-badge svg {
    width: 15px;
    height: 15px;
  }

  .brand-text {
    font-size: 15px;
    gap: 3px;
  }

  .brand-x {
    font-size: 13px;
  }

  .brand-cito {
    font-size: 18px;
  }

  .header-actions {
    gap: 8px;
    flex-shrink: 0;
  }

  .header-cta {
    padding: 8px 12px;
    min-height: 40px;
    font-size: 12px;
    gap: 6px;
  }

  .menu-box {
    width: 40px;
    height: 40px;
  }

  .hero-section {
    padding-top: 30px;
  }

  .hero-title {
    font-size: clamp(2rem, 8.6vw, 2.65rem);
  }

  .hero-lead {
    font-size: 15px;
  }

  .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-kpis {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .kpi-item {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
  }

  .kpi-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .kpi-item dt {
    font-size: 28px;
  }

  .kpi-item dd {
    margin-top: 0;
    text-align: right;
  }

  .hero-stage {
    padding: 0;
    gap: 12px;
  }

  .sparkle,
  .banner-sparkle-l {
    display: none;
  }

  .float-prompt,
  .float-utm {
    align-self: stretch;
    width: 100%;
    max-width: none;
    transform: none;
  }

  .tracker-card {
    padding: 16px;
    min-width: 0;
  }

  .tracker-head {
    flex-wrap: wrap;
  }

  .period-switch button {
    min-height: 40px;
  }

  .ch-pill {
    min-height: 42px;
    flex: 1 1 calc(50% - 6px);
  }

  .mint-banner {
    padding: 24px 20px;
  }

  .bento-copy {
    padding: 26px 20px;
  }

  .bento-visual {
    padding: 20px 16px;
  }

  .slot-machine {
    grid-template-columns: minmax(0, 1fr);
    height: auto;
    gap: 10px;
  }

  .slot-col {
    height: 124px;
  }

  .slot-connector {
    margin-inline: auto;
    width: 68px;
    height: 36px;
  }

  .tier-row {
    flex-wrap: wrap;
    padding: 12px;
  }

  .tier-badge {
    margin-left: 0;
  }
}

/* ==========================================================================
   Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
