/* ============================================================
   Wasili — sales deck
   Presentable in-browser. Arrow keys / space to advance,
   O for overview, F for fullscreen, P for print-to-PDF layout.
   ============================================================ */

:root {
  --ink:    #090c12;
  --ink-2:  #0f141c;
  --ink-3:  #161d27;
  --ink-4:  #202935;

  /* "Arrival" — sunrise. Amber → coral is the signature. */
  --sun:    #ffb703;
  --coral:  #fb6f52;
  --rose:   #f4557f;
  /* Cool counterpoint for anything technical (data, security, infra). */
  --sky:    #4cc9f0;
  --mint:   #34d399;

  --paper:  #f7f6f3;
  --white:  #ffffff;

  --line:  rgba(255, 255, 255, 0.10);
  --line-2:rgba(255, 255, 255, 0.16);
  --muted: rgba(255, 255, 255, 0.62);
  --faint: rgba(255, 255, 255, 0.38);

  --grad: linear-gradient(100deg, var(--sun) 0%, var(--coral) 55%, var(--rose) 100%);
  --grad-soft: linear-gradient(100deg, rgba(255,183,3,0.16), rgba(251,111,82,0.16));

  --f-display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --f-body:    'Inter', ui-sans-serif, system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html, body {
  margin: 0;
  height: 100%;
  background: var(--ink);
  color: var(--white);
  font-family: var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============================================================
   Slide frame
   ============================================================ */

.deck { height: 100%; }

.slide {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  padding: 5vh 6vw;
  overflow: hidden;
}
.slide.active { display: flex; animation: slideIn 0.55s var(--ease) both; }

@keyframes slideIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.slide-inner { width: 100%; max-width: 1180px; margin: 0 auto; }

/* subtle ambient glow, top-right of every slide */
.slide::after {
  content: '';
  position: absolute;
  top: -30vh; right: -20vw;
  width: 70vw; height: 70vh;
  background: radial-gradient(circle, rgba(251,111,82,0.10), transparent 62%);
  pointer-events: none;
}

.kicker {
  display: inline-block;
  font-family: var(--f-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sun);
  margin-bottom: 1.5rem;
}

.rule {
  width: 76px; height: 3px;
  background: var(--grad);
  border-radius: 2px;
  margin: 1.8rem 0;
}

.slide h1 { font-size: clamp(2.6rem, 6.4vw, 5.4rem); }
.slide h2 { font-size: clamp(1.9rem, 3.9vw, 3.3rem); margin-bottom: 1.4rem; }
.slide h3 { font-size: clamp(1.05rem, 1.6vw, 1.35rem); }

.lead {
  font-size: clamp(1rem, 1.55vw, 1.3rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 62ch;
}
.slide p { line-height: 1.65; color: var(--muted); margin: 0; }
b, strong { color: var(--white); font-weight: 600; }

/* ============================================================
   Cover
   ============================================================ */

.cover { align-items: center; }
.cover::after { display: none; }
.cover-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 90% at 78% 18%, rgba(251,111,82,0.30), transparent 60%),
    radial-gradient(ellipse 60% 80% at 12% 88%, rgba(255,183,3,0.16), transparent 62%);
}
.cover h1 { font-size: clamp(3rem, 8.2vw, 7rem); line-height: 0.98; }

.meta {
  display: flex; flex-wrap: wrap; gap: 2.6rem;
  margin-top: 2.4rem;
  font-size: 0.86rem; color: var(--faint);
}
.meta span { display: flex; flex-direction: column; gap: 0.3rem; }
.meta b { color: var(--white); font-weight: 500; font-size: 0.95rem; }

/* ============================================================
   Statement slide — one big idea
   ============================================================ */

.statement { justify-content: center; text-align: center; }
.statement .slide-inner { max-width: 980px; }
.statement h2 { font-size: clamp(2.2rem, 5.2vw, 4.2rem); line-height: 1.06; }
.statement .rule { margin-left: auto; margin-right: auto; }
.statement .lead { margin-left: auto; margin-right: auto; }

/* ============================================================
   Grids & cards
   ============================================================ */

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

.cell {
  background: var(--ink-2);
  padding: 1.9rem 1.7rem;
  display: flex; flex-direction: column; gap: 0.7rem;
}
.cell .n {
  font-family: var(--f-display);
  font-size: 0.72rem; letter-spacing: 0.2em;
  color: var(--coral); font-weight: 600;
}
.cell h3 { margin-bottom: 0.1rem; }
.cell p { font-size: 0.92rem; }

.cards { display: grid; gap: 1.1rem; }
.card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.7rem 1.6rem;
}
.card.accent { border-color: rgba(251,111,82,0.42); background: linear-gradient(180deg, rgba(251,111,82,0.09), transparent); }
.card h3 { margin-bottom: 0.55rem; }
.card p { font-size: 0.92rem; }

/* two-column split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.4rem; align-items: center; }
.split.wide-left { grid-template-columns: 1.15fr 1fr; }

/* before / after comparison */
.vs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1.6rem; align-items: stretch; }
.vs-col {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.8rem 1.6rem;
  background: var(--ink-2);
}
.vs-col.bad { border-color: rgba(255,255,255,0.10); }
.vs-col.good { border-color: rgba(255,183,3,0.40); background: linear-gradient(180deg, rgba(255,183,3,0.07), transparent); }
.vs-col h3 { margin-bottom: 1rem; font-size: 1.15rem; }
.vs-col .tag {
  display: inline-block; font-size: 0.66rem; letter-spacing: 0.18em;
  text-transform: uppercase; font-weight: 600; margin-bottom: 0.9rem;
  color: var(--faint);
}
.vs-col.good .tag { color: var(--sun); }
.vs-mid { display: flex; align-items: center; font-family: var(--f-display); color: var(--faint); font-size: 0.85rem; }

ul.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.85rem; }
ul.ticks li {
  position: relative; padding-left: 1.7rem;
  font-size: 0.94rem; line-height: 1.55; color: var(--muted);
}
ul.ticks li::before {
  content: '';
  position: absolute; left: 0; top: 0.52em;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--grad);
}
ul.ticks.plain li::before { background: var(--line-2); }

/* stat row */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.4rem; margin-top: 2.4rem; }
.stat .v {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1; margin-bottom: 0.55rem;
}
.stat .k { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }

/* ============================================================
   Product shots
   ============================================================ */

.shot {
  border: 1px solid var(--line-2);
  border-radius: 12px;
  overflow: hidden;
  background: var(--ink-3);
  box-shadow: 0 30px 70px -30px rgba(0,0,0,0.85);
}
.shot img { width: 100%; display: block; }
.shot-bar {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 0.85rem;
  background: var(--ink-4);
  border-bottom: 1px solid var(--line);
}
.shot-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.18); }
.shot-bar .url {
  margin-left: 0.6rem; font-size: 0.72rem; color: var(--faint);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.shot-cap { margin-top: 0.9rem; font-size: 0.82rem; color: var(--faint); text-align: center; }

/* side-by-side white-label proof */
.twin { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.twin .shot img { height: 40vh; object-fit: cover; object-position: top center; }

.demo-frame {
  width: 100%; height: 56vh;
  border: 1px solid var(--line-2); border-radius: 12px;
  background: var(--ink-3);
}

/* ============================================================
   Roadmap / timeline
   ============================================================ */

.rail { display: grid; gap: 0; }
.rail-item {
  display: grid; grid-template-columns: 130px 1fr;
  gap: 2rem; padding: 1.35rem 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.rail-item:last-child { border-bottom: 1px solid var(--line); }
.rail-when {
  font-family: var(--f-display); font-size: 0.78rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--sun);
}
.rail-item.done .rail-when { color: var(--mint); }
.rail-item.next .rail-when { color: var(--faint); }
.rail-what h3 { font-size: 1.1rem; margin-bottom: 0.35rem; }
.rail-what p { font-size: 0.9rem; }

.pill {
  display: inline-block; font-size: 0.64rem; letter-spacing: 0.14em;
  text-transform: uppercase; font-weight: 600;
  padding: 0.28rem 0.6rem; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--faint);
  margin-left: 0.6rem; vertical-align: middle;
}
.pill.live { color: var(--mint); border-color: rgba(52,211,153,0.4); }
.pill.soon { color: var(--sun); border-color: rgba(255,183,3,0.4); }

/* pricing */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.tier {
  border: 1px solid var(--line); border-radius: 16px;
  padding: 1.9rem 1.6rem; background: var(--ink-2);
  display: flex; flex-direction: column; gap: 0.9rem;
}
.tier.feature { border-color: rgba(251,111,82,0.5); background: linear-gradient(180deg, rgba(251,111,82,0.10), transparent); }
.tier .name { font-family: var(--f-display); font-size: 1.2rem; font-weight: 600; }
.tier .price { font-family: var(--f-display); font-size: 1.5rem; font-weight: 600; color: var(--sun); }
.tier .price small { font-size: 0.78rem; color: var(--faint); font-weight: 400; letter-spacing: 0; }
.tbd {
  border: 1px dashed var(--line-2); border-radius: 8px;
  padding: 0.5rem 0.7rem; color: var(--faint);
  font-size: 0.78rem; font-style: italic;
}

.note {
  margin-top: 1.6rem; padding: 0.9rem 1.1rem;
  border-left: 2px solid var(--sun);
  background: rgba(255,183,3,0.06);
  font-size: 0.85rem; color: var(--muted);
}

/* ============================================================
   Chrome
   ============================================================ */

.progress {
  position: fixed; top: 0; left: 0; height: 3px;
  background: var(--grad); z-index: 60;
  transition: width 0.4s var(--ease);
}

.brandmark {
  position: fixed; top: 1.8rem; left: 2rem; z-index: 55;
  font-family: var(--f-display); font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  font-size: 0.72rem; color: var(--faint);
}
.brandmark b { color: var(--white); font-weight: 600; }

.hud {
  position: fixed; bottom: 1.5rem; right: 1.8rem; z-index: 60;
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.78rem; color: var(--faint);
}
.hud button {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--line-2); background: rgba(255,255,255,0.04);
  color: var(--white); cursor: pointer;
  display: grid; place-items: center;
  transition: background 0.25s, opacity 0.25s;
}
.hud button:hover:not(:disabled) { background: rgba(255,255,255,0.12); }
.hud button:disabled { opacity: 0.28; cursor: default; }

.hint {
  position: fixed; bottom: 1.7rem; left: 2rem; z-index: 55;
  font-size: 0.72rem; color: var(--faint);
  transition: opacity 0.8s;
}

.overview {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(9,12,18,0.97);
  padding: 4rem 3rem; overflow-y: auto;
  display: none;
}
.overview.open { display: block; }
.ov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0.9rem; }
.ov-item {
  text-align: left; cursor: pointer;
  background: var(--ink-2); border: 1px solid var(--line);
  border-radius: 10px; padding: 1rem 1.1rem; color: var(--white);
  transition: border-color 0.2s, transform 0.2s;
}
.ov-item:hover { border-color: var(--coral); transform: translateY(-2px); }
.ov-item.current { border-color: var(--sun); background: rgba(255,183,3,0.08); }
.ov-item .n { font-family: var(--f-display); font-size: 0.7rem; color: var(--faint); margin-bottom: 0.4rem; }
.ov-item .t { font-size: 0.88rem; line-height: 1.35; }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 900px) {
  /* Slides are content-tall on narrow screens, so let each one scroll instead
     of clipping (overflow:hidden). Padding clears the fixed brandmark above
     and the HUD below. */
  .slide {
    padding: 5.5rem 6vw 5.5rem;
    align-items: flex-start;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .statement { justify-content: flex-start; }
  .slide h1 { font-size: clamp(2.2rem, 9vw, 3rem); }
  .slide h2 { font-size: clamp(1.6rem, 6.4vw, 2.2rem); }
  .statement h2 { font-size: clamp(1.9rem, 7.6vw, 2.6rem); }

  .split, .split.wide-left, .vs, .twin,
  .grid-2, .grid-3, .grid-4, .tiers { grid-template-columns: 1fr; }
  .vs-mid { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
  .rail-item { grid-template-columns: 1fr; gap: 0.4rem; }
  .twin .shot img { height: auto; }
  .meta { gap: 1.4rem; }
  .cell, .card, .tier, .vs-col { padding: 1.4rem 1.25rem; }

  /* Keyboard hints are meaningless on touch, and they sit on top of content. */
  .hint { display: none; }
}

@media print {
  html, body { overflow: visible; height: auto; background: var(--ink); }
  .deck { height: auto; }
  .slide {
    position: relative;
    display: flex !important;
    height: 100vh;
    page-break-after: always;
    break-after: page;
    animation: none;
  }
  .hud, .hint, .progress, .brandmark, .overview { display: none !important; }
  .demo-frame { height: 480px; }
}
