/* ==========================================
   WINTRY — Landing Page
   Redesigned: no slop, no gradient-text,
   no glassmorphism, no hero-metric template,
   no identical card grids, OKLCH, GSAP-ready.
   ========================================== */

/* --- Reset --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: auto; /* GSAP handles scrolling */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Geist', 'Satoshi', system-ui, -apple-system, sans-serif;
  background: oklch(0.08 0.008 260);
  color: oklch(0.92 0.006 260);
  line-height: 1.6;
  overflow-x: hidden;
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: oklch(0.35 0.04 260);
  border-radius: 99px;
}

/* --- Tokens --- */
:root {
  --bg-deep: oklch(0.08 0.008 260);
  --bg-surface: oklch(0.12 0.008 260);
  --bg-raised: oklch(0.16 0.01 260);
  --bg-hover: oklch(0.19 0.012 260);

  --border-dim: oklch(0.20 0.008 260);
  --border-mid: oklch(0.28 0.01 260);

  --accent: oklch(0.65 0.22 350);       /* warm magenta, not pink-gradient */
  --accent-muted: oklch(0.45 0.12 350);
  --accent-surface: oklch(0.18 0.04 350);

  --text-hi: oklch(0.92 0.006 260);
  --text-mid: oklch(0.65 0.008 260);
  --text-lo: oklch(0.42 0.006 260);

  --font-display: 'Geist', system-ui, sans-serif;
  --font-body: 'Geist', system-ui, sans-serif;

  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 16px;

  --max-w: 1120px;
  --nav-h: 56px;
}

/* --- Utility --- */
.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================
   NAVIGATION
   ========================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.4s, border-color 0.4s;
}

.nav.scrolled {
  background: oklch(0.08 0.008 260 / 0.92);
  border-bottom-color: var(--border-dim);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-hi);
  letter-spacing: -0.01em;
}

.nav-logo .logo-mark {
  font-size: 1.2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-mid);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

.nav-dl {
  padding: 8px 20px;
  border-radius: var(--radius-s);
  background: var(--accent);
  color: oklch(0.98 0.005 260) !important;
  font-weight: 600 !important;
  font-size: 0.82rem !important;
  transition: opacity 0.2s;
}

.nav-dl:hover {
  opacity: 0.88;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text-hi);
}

/* ==========================================
   HERO
   ========================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  position: relative;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-text {
  max-width: 520px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-s);
  background: var(--accent-surface);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-tag .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-h1 {
  font-size: clamp(2.6rem, 4.8vw, 3.8rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--text-hi);
  margin-bottom: 20px;
}

.hero-h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-p {
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.7;
  max-width: 440px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 12px;
}

.btn-accent {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-s);
  background: var(--accent);
  color: oklch(0.98 0.005 260);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-accent:hover { opacity: 0.88; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-s);
  background: transparent;
  border: 1px solid var(--border-mid);
  color: var(--text-hi);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.btn-ghost:hover {
  background: var(--bg-raised);
  border-color: oklch(0.35 0.01 260);
}

/* Hero mockup */
.hero-mockup {
  position: relative;
}

.app-frame {
  background: var(--bg-surface);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: 0 32px 80px oklch(0 0 0 / 0.5);
}

.frame-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: oklch(0.10 0.006 260);
  border-bottom: 1px solid var(--border-dim);
}

.frame-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.frame-dot--r { background: oklch(0.62 0.2 25); }
.frame-dot--y { background: oklch(0.78 0.16 85); }
.frame-dot--g { background: oklch(0.68 0.17 150); }

.frame-title {
  flex: 1;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-lo);
}

.frame-body {
  display: grid;
  grid-template-columns: 160px 1fr;
  min-height: 300px;
}

.frame-side {
  padding: 16px 12px;
  border-right: 1px solid var(--border-dim);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.side-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: var(--radius-s);
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--text-lo);
}

.side-item.active {
  background: var(--bg-raised);
  color: var(--text-hi);
}

.side-item .si-icon { width: 16px; text-align: center; font-size: 0.9rem; }

.frame-main {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.frame-greeting {
  font-size: 0.72rem;
  color: var(--text-lo);
  font-weight: 500;
}

.frame-time {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1;
}

.frame-time-label {
  font-size: 0.68rem;
  color: var(--text-lo);
  margin-top: 2px;
}

.frame-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.bar-row {
  display: grid;
  grid-template-columns: 72px 1fr 44px;
  align-items: center;
  gap: 8px;
}

.bar-name {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-mid);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bar-track {
  height: 6px;
  background: oklch(0.16 0.006 260);
  border-radius: 3px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 3px;
  transform-origin: left;
}

.bar-fill--1 { width: 82%; background: oklch(0.55 0.15 250); }
.bar-fill--2 { width: 62%; background: oklch(0.50 0.14 280); }
.bar-fill--3 { width: 38%; background: oklch(0.55 0.16 270); }
.bar-fill--4 { width: 26%; background: oklch(0.60 0.18 155); }

.bar-dur {
  font-size: 0.64rem;
  color: var(--text-lo);
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ==========================================
   CAPABILITIES (replaces identical-card grid)
   ========================================== */
.capabilities {
  padding: 120px 0;
}

.cap-header {
  margin-bottom: 64px;
}

.cap-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.cap-title {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  max-width: 480px;
}

.cap-desc {
  font-size: 0.95rem;
  color: var(--text-mid);
  max-width: 420px;
  margin-top: 14px;
  line-height: 1.65;
}

/* Asymmetric capability rows, not identical cards */
.cap-rows {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cap-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
  padding: 28px 0;
  border-top: 1px solid var(--border-dim);
  align-items: start;
  transition: background 0.2s;
}

.cap-row:last-child {
  border-bottom: 1px solid var(--border-dim);
}

.cap-row:hover {
  background: var(--bg-surface);
}

.cap-row-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-hi);
  padding-right: 24px;
}

.cap-row-text {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.6;
  max-width: 560px;
}

/* ==========================================
   PREVIEW
   ========================================== */
.preview {
  padding: 120px 0;
  position: relative;
}

.preview-header {
  margin-bottom: 64px;
}

.preview-frame {
  max-width: 920px;
  margin: 0 auto;
}

.preview-window {
  background: var(--bg-surface);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: 0 48px 100px oklch(0 0 0 / 0.6);
}

.preview-bar {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  background: oklch(0.10 0.006 260);
  border-bottom: 1px solid var(--border-dim);
  gap: 6px;
}

.preview-content {
  display: grid;
  grid-template-columns: 180px 1fr;
}

.preview-side {
  padding: 16px;
  border-right: 1px solid var(--border-dim);
}

.preview-side-group {
  margin-bottom: 20px;
}

.preview-side-label {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-lo);
  padding: 0 10px;
  margin-bottom: 4px;
}

.preview-side-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: var(--radius-s);
  font-size: 0.76rem;
  color: var(--text-lo);
  font-weight: 500;
}

.preview-side-item.active {
  background: var(--bg-raised);
  color: var(--text-hi);
}

.preview-side-item .psi-icon { width: 16px; text-align: center; font-size: 0.88rem; }

.preview-main {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pm-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.pm-greet {
  font-size: 0.78rem;
  color: var(--text-lo);
}

.pm-total {
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--accent);
  line-height: 1;
}

.pm-total-label {
  font-size: 0.72rem;
  color: var(--text-lo);
  margin-top: 2px;
}

.pm-date {
  padding: 6px 14px;
  border-radius: var(--radius-s);
  background: var(--bg-raised);
  font-size: 0.72rem;
  color: var(--text-mid);
  font-weight: 500;
}

.pm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.pm-card {
  background: var(--bg-raised);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-m);
  padding: 16px;
}

.pm-card-title {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 12px;
}

/* Weekly bars in preview */
.pm-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 80px;
}

.pm-bar {
  flex: 1;
  border-radius: 3px 3px 0 0;
  min-height: 4px;
  background: var(--accent-muted);
  transform-origin: bottom;
}

.pm-bar:last-child { background: var(--accent); }

.pm-bar-labels {
  display: flex;
  gap: 5px;
  margin-top: 6px;
}

.pm-bar-label {
  flex: 1;
  text-align: center;
  font-size: 0.55rem;
  color: var(--text-lo);
  font-weight: 500;
}

/* Categories in preview */
.pm-cats {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pm-cat {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pm-cat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pm-cat-name {
  flex: 1;
  font-size: 0.72rem;
  color: var(--text-mid);
}

.pm-cat-bar {
  width: 72px;
  height: 4px;
  background: oklch(0.16 0.006 260);
  border-radius: 2px;
  overflow: hidden;
}

.pm-cat-fill {
  height: 100%;
  border-radius: 2px;
  transform-origin: left;
}

.pm-cat-time {
  font-size: 0.66rem;
  color: var(--text-lo);
  font-weight: 600;
  min-width: 36px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Activity items */
.pm-activity {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pm-act-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: var(--radius-s);
  background: var(--bg-raised);
  border: 1px solid var(--border-dim);
}

.pm-act-icon { font-size: 1rem; width: 20px; text-align: center; }

.pm-act-info { flex: 1; }

.pm-act-name {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-hi);
}

.pm-act-detail {
  font-size: 0.62rem;
  color: var(--text-lo);
}

.pm-act-badge {
  padding: 2px 8px;
  border-radius: var(--radius-s);
  font-size: 0.6rem;
  font-weight: 600;
}

.pm-act-badge--live {
  background: oklch(0.22 0.05 155);
  color: oklch(0.72 0.16 155);
}

.pm-act-badge--ago {
  background: var(--bg-surface);
  color: var(--text-lo);
}

/* ==========================================
   DOWNLOAD
   ========================================== */
.download {
  padding: 120px 0;
}

.dl-block {
  padding: 64px 48px;
  border-radius: var(--radius-l);
  background: var(--bg-surface);
  border: 1px solid var(--border-dim);
  text-align: center;
}

.dl-block .cap-title {
  max-width: 520px;
  margin: 0 auto 12px;
}

.dl-block .cap-desc {
  max-width: 480px;
  margin: 0 auto 32px;
}

.dl-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.dl-meta {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 28px;
}

.dl-meta-item {
  font-size: 0.76rem;
  color: var(--text-lo);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
  padding: 40px 0 24px;
  border-top: 1px solid var(--border-dim);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.footer-mark { font-size: 1.1rem; }

.footer-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-hi);
}

.footer-copy {
  font-size: 0.72rem;
  color: var(--text-lo);
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  color: var(--text-lo);
  text-decoration: none;
  font-size: 0.78rem;
  transition: color 0.2s;
}

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

/* ==========================================
   GSAP ANIMATION STATES
   ========================================== */
.reveal {
  visibility: hidden;
}

/* ==========================================
   SNOWFLAKES (subtle, not decorative noise)
   ========================================== */
.snowflakes {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  overflow: hidden;
}

.snowflake {
  position: absolute;
  top: -6px;
  width: 3px;
  height: 3px;
  background: oklch(0.92 0.006 260 / 0.2);
  border-radius: 50%;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-text { max-width: 100%; }
  .hero-mockup { max-width: 540px; }

  .frame-body { grid-template-columns: 1fr; }
  .frame-side { display: none; }

  .cap-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .preview-content { grid-template-columns: 1fr; }
  .preview-side { display: none; }
}

@media (max-width: 600px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: oklch(0.08 0.008 260 / 0.96);
    flex-direction: column;
    padding: 32px;
  }

  .hero-actions { flex-direction: column; }
  .btn-accent, .btn-ghost { width: 100%; justify-content: center; }

  .pm-grid { grid-template-columns: 1fr; }

  .dl-block { padding: 40px 24px; }
  .dl-meta { flex-direction: column; align-items: center; gap: 8px; }

  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
}

/* ==========================================
   MODALS
   ========================================== */
.legal-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.8);
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  padding: 20px;
}
.legal-modal-overlay.active {
  display: flex;
}
.legal-modal {
  background: var(--bg-surface);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-l);
  padding: 40px;
  max-width: 600px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}
.legal-modal h2 {
  font-size: 1.8rem;
  margin-bottom: 24px;
  color: var(--text-hi);
}
.legal-content {
  color: var(--text-mid);
  line-height: 1.6;
  max-height: 60vh;
  overflow-y: auto;
}
.legal-content p {
  margin-bottom: 16px;
}
.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-mid);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s;
}
.close-modal:hover {
  color: var(--text-hi);
}
