:root {
  --bg-0: #000000;
  --bg-1: #080808;
  --bg-2: #111111;
  --glass: rgba(255, 255, 255, 0.035);
  --glass-hover: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.22);
  --text-0: #ffffff;
  --text-1: #a3a3a3;
  --text-2: #666666;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg-0);
  color: var(--text-0);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg-0);
  color: var(--text-0);
  line-height: 1.55;
}

.hidden { display: none !important; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Sticky Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-0);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.2px;
}

.nav-logo {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  color: var(--text-1);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--text-0); }

/* Buttons */
.btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #000000;
  text-decoration: none;
  font-weight: 600;
  font-size: 13.5px;
  padding: 11px 22px;
  border-radius: 999px;
  transition: background 0.15s, transform 0.15s;
}

.btn-white:hover {
  background: #e5e5e5;
  transform: translateY(-1px);
}

.btn-white.btn-sm {
  padding: 7px 15px;
  font-size: 12.5px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--glass);
  border: 1px solid var(--border);
  color: var(--text-0);
  text-decoration: none;
  font-weight: 500;
  font-size: 13.5px;
  padding: 11px 22px;
  border-radius: 999px;
  transition: background 0.15s, border-color 0.15s;
}

.btn-ghost:hover {
  background: var(--glass-hover);
  border-color: var(--border-strong);
}

/* Hero */
.hero {
  padding: 84px 0 44px;
  text-align: center;
  background: radial-gradient(circle at 50% 12%, rgba(255, 255, 255, 0.07) 0%, rgba(0, 0, 0, 0) 56%);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--glass);
  font-size: 12px;
  color: var(--text-1);
  margin-bottom: 24px;
}

.badge-logo {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.hero h1 {
  font-size: clamp(42px, 6.5vw, 72px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 20px;
}

.hero-sub {
  max-width: 600px;
  font-size: 16px;
  color: var(--text-1);
  margin-bottom: 30px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* Interactive Player Mockup */
.demo-section {
  padding: 20px 0 84px;
}

.demo-caption {
  text-align: center;
  font-size: 12.5px;
  color: var(--text-2);
  margin-bottom: 14px;
}

.demo-caption span {
  color: var(--text-0);
  font-weight: 600;
}

.player-frame {
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-1);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.pf-titlebar {
  height: 32px;
  background: #090909;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  font-size: 12px;
}

.pf-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.pf-hato {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.pf-title {
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pf-pill {
  font-size: 10px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-1);
}

.pf-pill.active {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--border-strong);
  color: #ffffff;
}

.pf-win-dots {
  display: flex;
  gap: 14px;
  color: var(--text-2);
  font-size: 11px;
}

.pf-toolbar {
  min-height: 40px;
  background: #090909;
  padding: 4px 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pf-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pf-play {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: #ffffff;
  color: #000000;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.pf-time {
  font-size: 11.5px;
  color: var(--text-1);
  font-variant-numeric: tabular-nums;
}

.pf-pill-btn {
  background: transparent;
  color: var(--text-1);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 3px 9px;
  font-size: 11.5px;
  cursor: pointer;
  transition: all 0.15s;
}

.pf-pill-btn:hover {
  background: var(--glass-hover);
  color: #ffffff;
}

.pf-pill-btn.active {
  background: #ffffff;
  border-color: #ffffff;
  color: #000000;
  font-weight: 600;
}

.pf-slider {
  width: 96px;
  accent-color: #ffffff;
  cursor: pointer;
}

.pf-title-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pf-upload-btn {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  padding: 2px 8px;
  color: #ffffff;
  border-color: var(--border-strong);
}

.pf-timeline {
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  width: 100%;
  cursor: pointer;
}

.pf-timeline:hover { height: 6px; }

.demo-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
  display: block;
}

.pf-drop {
  position: absolute;
  inset: 12px;
  border: 1.5px dashed rgba(255, 255, 255, 0.65);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  pointer-events: none;
}

.pf-timeline-fill {
  height: 100%;
  width: 27%;
  background: #ffffff;
  transition: width 0.3s linear;
}

.pf-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  overflow: hidden;
  cursor: default;
}

.pf-stage.zoomed { cursor: grab; }
.pf-stage.zoomed.panning { cursor: grabbing; }

.pf-scene {
  width: 100%;
  height: 100%;
  transform-origin: center center;
  transition: filter 0.35s ease;
  will-change: transform;
}

.scene-art {
  width: 100%;
  height: 100%;
  display: block;
}

.pf-toast {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  border: 1px solid var(--border-strong);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  pointer-events: none;
}

/* Sections */
.section {
  padding: 84px 0;
}

.border-top {
  border-top: 1px solid var(--border);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.eyebrow {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-2);
  margin-bottom: 10px;
}

.section-header h2 {
  font-size: clamp(26px, 3.8vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* Bento Grid */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s, background 0.2s;
}

.card:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.05);
}

.card-wide {
  grid-column: span 2;
}

.card-tag {
  font-size: 11px;
  color: var(--text-2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.card h3 {
  font-size: 18px;
  font-weight: 600;
}

.card p {
  font-size: 13.5px;
  color: var(--text-1);
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.pill-list span {
  font-size: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-1);
}

/* Comparison Table */
.table-wrap {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow-x: auto;
  background: var(--glass);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.compare-table th,
.compare-table td {
  padding: 15px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

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

.compare-table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.02);
}

.compare-table td:first-child { font-weight: 600; color: var(--text-0); }
.compare-table td:last-child { color: var(--text-2); }
.col-hato { color: #ffffff !important; background: rgba(255, 255, 255, 0.03); }

/* Download Card */
.download-card {
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 56px 28px;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015) 65%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.dl-logo {
  width: 76px;
  height: 76px;
  object-fit: contain;
}

.download-card h2 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.dl-sub {
  color: var(--text-1);
  font-size: 14.5px;
}

.dl-actions {
  margin-top: 8px;
}

.pwyw-box {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}

.pwyw-presets {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.pwyw-chip {
  background: var(--glass);
  border: 1px solid var(--border);
  color: var(--text-1);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
}

.pwyw-chip:hover {
  background: var(--glass-hover);
  color: var(--text-0);
}

.pwyw-chip.active {
  background: #ffffff;
  border-color: #ffffff;
  color: #000000;
}

.chip-note {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.7;
}

.pwyw-custom {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 10px;
  color: var(--text-1);
  font-size: 13px;
}

.pwyw-custom:focus-within {
  border-color: var(--border-strong);
  color: var(--text-0);
}

.pwyw-custom input {
  width: 54px;
  background: transparent;
  border: none;
  color: var(--text-0);
  font-size: 13px;
  font-weight: 600;
  outline: none;
  padding: 8px 0;
  font-variant-numeric: tabular-nums;
}

.pwyw-cta {
  width: 100%;
  max-width: 340px;
  padding: 13px 24px;
  font-size: 14px;
}

.dl-req {
  font-size: 12px;
  color: var(--text-1);
}

/* Free vs Pro vs Suite Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}

.pricing-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
}

.pricing-pro {
  border-color: var(--border-strong);
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02) 65%);
}

.pricing-top {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tier-badge {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-1);
}

.tier-badge.solid {
  background: #ffffff;
  border-color: #ffffff;
  color: #000000;
}

.pricing-card h3 {
  font-size: 22px;
  font-weight: 700;
}

.price-line {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.price-line span {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-2);
}

.tier-desc {
  font-size: 13.5px;
  color: var(--text-1);
}

.tier-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--text-1);
  flex: 1;
}

.tier-list li::before {
  content: '✓ ';
  color: #ffffff;
  font-weight: 700;
  margin-right: 4px;
}

.full-btn {
  width: 100%;
  text-align: center;
}

.center-meta {
  text-align: center;
  margin-top: 22px;
}

.dl-meta {
  font-size: 12px;
  color: var(--text-2);
  margin-top: 6px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 26px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12.5px;
  color: var(--text-2);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-logo {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--text-2);
  text-decoration: none;
}

.footer-links a:hover { color: var(--text-0); }

@media (max-width: 820px) {
  .nav-links { display: none; }
  .bento { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .card-wide { grid-column: span 1; }
  .footer-inner { flex-direction: column; text-align: center; }
}

/* Hato Suite 4-App Grid */
.suite-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.suite-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.suite-card:hover {
  border-color: rgba(255, 255, 255, 0.24);
  transform: translateY(-2px);
}

.suite-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.suite-icon {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  flex-shrink: 0;
}

.suite-card h3 {
  font-size: 16px;
  margin: 0;
}

.suite-tag {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
}

.suite-card p {
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
  flex: 1;
}

/* Legal Anchor Grid (#eula, #privacy, #refund) */
.legal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.legal-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-margin-top: 78px;
}

.legal-card h3 {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text-0);
}

.legal-card p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-1);
}

.legal-card a,
.dl-meta a {
  color: var(--text-0);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 980px) {
  .pricing-grid { grid-template-columns: 1fr; }
}
