/* ============ DossToss site ============ */
:root {
  --navy-900: #10173f;
  --navy-800: #151d52;
  --navy-700: #1b2670;
  --navy-600: #24308a;
  --orange: #f5a11c;
  --orange-deep: #f7821b;
  --keep: #2fbf71;
  --toss: #e94b3c;
  --ink: #1a2050;
  --paper: #ffffff;
  --paper-dim: #f4f5fb;
  --text-on-dark: #eef0ff;
  --muted-on-dark: #aab1e0;
  --muted-on-light: #5b628f;
  --radius: 18px;
  --shadow: 0 12px 40px rgba(6, 10, 35, 0.35);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--navy-800);
  color: var(--text-on-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }

.grad {
  background: linear-gradient(100deg, var(--orange) 20%, var(--orange-deep) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.grad-dark { color: var(--orange-deep); }

/* ============ Nav ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px clamp(20px, 5vw, 56px);
  background: rgba(16, 23, 63, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
}
.nav-brand img { width: 34px; height: 34px; border-radius: 8px; }
.nav-links {
  display: flex;
  gap: 24px;
  margin-left: auto;
  font-size: 0.95rem;
  color: var(--muted-on-dark);
}
.nav-links a { white-space: nowrap; }
.nav-links a:hover { color: #fff; }
.nav-cta { padding: 9px 20px; font-size: 0.95rem; }

/* ============ Buttons ============ */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.05rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: linear-gradient(120deg, var(--orange), var(--orange-deep));
  color: #fff;
  box-shadow: 0 8px 24px rgba(247, 130, 27, 0.35);
}
.btn-primary:hover { box-shadow: 0 10px 30px rgba(247, 130, 27, 0.5); transform: translateY(-2px); }
.btn-ghost {
  border: 2px solid rgba(255, 255, 255, 0.25);
  color: var(--text-on-dark);
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.55); }

/* ============ Hero ============ */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  padding: clamp(48px, 8vw, 110px) clamp(20px, 6vw, 80px);
  max-width: 1280px;
  margin: 0 auto;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(36, 48, 138, 0.55), transparent 65%),
    radial-gradient(700px 420px at 5% 90%, rgba(247, 130, 27, 0.12), transparent 60%);
}
.eyebrow {
  color: var(--orange);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  font-weight: 850;
  margin-bottom: 20px;
}
.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--muted-on-dark);
  max-width: 34em;
  margin-bottom: 32px;
}
.lede em { color: var(--text-on-dark); font-style: normal; font-weight: 700; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.platforms-line {
  margin-top: 26px;
  color: var(--muted-on-dark);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ============ Demo ============ */
.hero-demo { display: flex; justify-content: center; }
.demo-frame {
  width: min(360px, 88vw);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  padding: 18px 18px 14px;
  box-shadow: var(--shadow);
}
.demo-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 2px 6px 12px;
}
.demo-title { font-weight: 800; }
.demo-count { color: var(--muted-on-dark); font-size: 0.9rem; font-variant-numeric: tabular-nums; }

.demo-stack {
  position: relative;
  height: 340px;
  touch-action: none;
}
.demo-card {
  position: absolute;
  inset: 0;
  background: var(--paper);
  border-radius: 20px;
  overflow: hidden;
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(6, 10, 35, 0.45);
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  display: flex;
  flex-direction: column;
  will-change: transform;
}
.demo-card.dragging { cursor: grabbing; transition: none !important; }
.demo-card .thumb {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 84px;
}
.demo-card .meta {
  padding: 12px 16px 14px;
  background: #fff;
  border-top: 1px solid #eceef6;
}
.demo-card .fname {
  font-weight: 700;
  font-size: 0.98rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.demo-card .finfo { color: #8189b4; font-size: 0.82rem; }

.stamp {
  position: absolute;
  top: 22px;
  padding: 6px 16px;
  border-radius: 10px;
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  border: 4px solid;
  opacity: 0;
  background: rgba(255, 255, 255, 0.85);
}
.stamp.keep { left: 18px; color: var(--keep); border-color: var(--keep); transform: rotate(-14deg); }
.stamp.toss { right: 18px; color: var(--toss); border-color: var(--toss); transform: rotate(14deg); }

.demo-done {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: var(--paper);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 24px;
}
.demo-done h3 { font-size: 1.3rem; }
.demo-done p { color: var(--muted-on-light); font-size: 0.95rem; }
.demo-done .nothing { color: var(--keep); font-weight: 700; }
.demo-done button {
  margin-top: 10px;
  padding: 10px 24px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--orange), var(--orange-deep));
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
}

.demo-controls {
  display: flex;
  justify-content: center;
  gap: 22px;
  padding: 16px 0 6px;
}
.ctrl {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: none;
  font-size: 1.35rem;
  font-weight: 800;
  cursor: pointer;
  color: #fff;
  transition: transform 0.12s ease;
}
.ctrl:hover { transform: scale(1.1); }
.ctrl:active { transform: scale(0.94); }
.ctrl-toss { background: var(--toss); }
.ctrl-keep { background: var(--keep); }
.ctrl-undo { background: rgba(255, 255, 255, 0.16); font-size: 1.15rem; }
.demo-hint {
  text-align: center;
  color: var(--muted-on-dark);
  font-size: 0.82rem;
  padding-bottom: 4px;
}

/* ============ Sections ============ */
.section {
  scroll-margin-top: 76px;
  padding: clamp(64px, 9vw, 110px) clamp(20px, 6vw, 80px);
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}
.section h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 850; margin-bottom: 14px; }
.section-sub {
  color: var(--muted-on-dark);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  max-width: 42em;
  margin: 0 auto 48px;
}

.section-light {
  max-width: none;
  background: var(--paper-dim);
  color: var(--ink);
}
.section-light > * { max-width: 1280px; margin-left: auto; margin-right: auto; }
.section-light .section-sub { color: var(--muted-on-light); margin-bottom: 48px; }

/* ============ Grids & cards ============ */
.grid { display: grid; gap: 22px; text-align: left; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.22); }
.card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card p { color: var(--muted-on-dark); font-size: 0.95rem; }

.section-light .card {
  background: #fff;
  border-color: #e4e7f4;
  box-shadow: 0 4px 18px rgba(26, 32, 80, 0.07);
}
.section-light .card:hover { border-color: #cdd3ee; }
.section-light .card p { color: var(--muted-on-light); }

.gesture-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 16px;
}
.gesture-icon.toss { background: var(--toss); }
.gesture-icon.keep { background: var(--keep); }
.gesture-icon.undo { background: #7a63f1; }
.gesture-icon.file { background: var(--orange-deep); }

.step-num {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--orange), var(--orange-deep));
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 16px;
}
.safety-line {
  margin-top: 44px;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 800;
  color: var(--ink);
}

.feat-icon { font-size: 2rem; margin-bottom: 14px; }

/* ============ Screenshots ============ */
.tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.tab {
  padding: 10px 26px;
  border-radius: 999px;
  border: 1px solid #d6daf0;
  background: #fff;
  color: var(--muted-on-light);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.tab:hover { border-color: var(--orange-deep); color: var(--ink); }
.tab.active {
  background: var(--navy-700);
  border-color: var(--navy-700);
  color: #fff;
}

.shots {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 8px 4px 20px;
  scroll-snap-type: x mandatory;
}
.shots img {
  border-radius: 14px;
  box-shadow: 0 10px 34px rgba(26, 32, 80, 0.18);
  scroll-snap-align: center;
  flex: 0 0 auto;
}
.shots.landscape img { height: min(340px, 48vw); }
.shots.portrait img { height: min(480px, 70vw); }

/* ============ Download ============ */
.store-badges {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.store {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  text-align: left;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.store svg { width: 30px; height: 30px; fill: #fff; flex: 0 0 auto; }
.store small { display: block; font-size: 0.72rem; color: var(--muted-on-dark); line-height: 1.2; }
.store strong { font-size: 1.05rem; }
.store.soon { opacity: 0.65; cursor: default; }
.store:not(.soon):hover {
  transform: translateY(-3px);
  border-color: var(--orange);
  background: rgba(255, 255, 255, 0.12);
}
.download-note { margin-top: 28px; color: var(--muted-on-dark); font-size: 0.92rem; }

/* ============ Footer ============ */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 36px 20px 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--muted-on-dark);
  font-size: 0.9rem;
  text-align: center;
}
.footer img { border-radius: 10px; }

/* ============ Reveal on scroll ============ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.shown { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============ Responsive ============ */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero-actions { justify-content: center; }
}
@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
}
@media (max-width: 640px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .store { width: 100%; max-width: 320px; }
}
