/* ════════════════════════════════════════════════════
   DAYBAR — MARKETING PAGE
   "The Nocturnal Editor"
   Fraunces / Space Grotesk / DM Mono / Inter
════════════════════════════════════════════════════ */

/* ── TOKENS ── */
:root {
  --ink:        #0D141E;
  --ink-deep:   #070E19;
  --ink-low:    #151C27;
  --card:       #19202B;
  --card-hi:    #232A36;
  --card-top:   #2E3541;
  --porcelain:  #F5F3EE;
  --on-surface: #DCE2F2;
  --grey:       #AEB9C7;
  --muted:      #6B7A8A;
  --cyan:       #36C2FF;
  --cyan-dim:   #9AD9FF;
  --violet:     #C6BFFF;
  --mint:       #67EA9F;
  --mint-hi:    #79FBAF;
  --on-cyan:    #001E2C;

  --f-hero:    'Fraunces', Georgia, serif;
  --f-display: 'Space Grotesk', sans-serif;
  --f-mono:    'DM Mono', monospace;
  --f-body:    'Inter', sans-serif;

  --pad:  clamp(24px, 6vw, 96px);
  --r-widget-lg: 1.5rem;
  --r-widget-md: 1rem;
  --r-btn: 0.75rem;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--on-surface);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Grain texture */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.028;
  pointer-events: none;
  z-index: 9000;
}

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--pad);
  background: rgba(13, 20, 30, 0.8);
  backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  animation: nav-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes nav-in {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nav-wordmark {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.04em;
  color: var(--porcelain);
  text-decoration: none;
}
.nav-wordmark em { font-style: normal; color: var(--cyan); }

.nav-right { display: flex; align-items: center; gap: 20px; }

.nav-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
  opacity: 0.6;
}

.nav-badge-dot {
  width: 5px; height: 5px;
  background: var(--mint);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(103,234,159,0.5);
  animation: glow-pulse 2s ease-in-out infinite;
}

.nav-cta {
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--cyan);
  text-decoration: none;
  padding: 8px 18px;
  border: 1px solid rgba(54, 194, 255, 0.35);
  border-radius: var(--r-btn);
  transition: background 0.15s, color 0.15s;
}
.nav-cta:hover { background: rgba(54, 194, 255, 0.08); }

/* ── EYEBROW ── */
.eyebrow {
  display: block;
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  opacity: 0.65;
  margin-bottom: 18px;
}

/* ── APP STORE BUTTON ── */
.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--porcelain);
  color: #000;
  text-decoration: none;
  padding: 13px 24px;
  border-radius: 14px;
  transition: filter 0.15s, transform 0.12s;
  margin-top: 32px;
}
.btn-store:hover { filter: brightness(0.92); }
.btn-store:active { transform: scale(0.97); }

.store-icon { width: 22px; height: 22px; flex-shrink: 0; }

.btn-store span { display: flex; flex-direction: column; }
.store-small {
  font-family: var(--f-body);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1;
}
.store-large {
  font-family: var(--f-body);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.btn-store-lg { padding: 16px 32px; }
.btn-store-lg .store-large { font-size: 20px; }

/* ════════════════════════════════════════════════════
   HERO
════════════════════════════════════════════════════ */

.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 0;
  padding: 120px var(--pad) 80px;
  position: relative;
  overflow: hidden;
}

/* Atmospheric glow blob behind widget */
.hero::before {
  content: '';
  position: absolute;
  top: 10%; right: -5%;
  width: 55%; height: 70%;
  background: radial-gradient(ellipse at center,
    rgba(54, 194, 255, 0.07) 0%,
    transparent 65%
  );
  pointer-events: none;
}

.hero-text {
  max-width: 600px;
  animation: hero-text-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

@keyframes hero-text-in {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-title {
  font-family: var(--f-hero);
  font-size: clamp(52px, 8.5vw, 128px);
  font-weight: 700;
  font-style: normal;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--porcelain);
  text-wrap: balance;
  margin-bottom: 24px;

  /* optical size for large display */
  font-variation-settings: "opsz" 72;
}

.hero-title em {
  font-style: italic;
  font-weight: 200;
  color: var(--grey);
  font-variation-settings: "opsz" 72;
}

.hero-body {
  font-size: clamp(15px, 1.5vw, 18px);
  color: var(--grey);
  line-height: 1.75;
  max-width: 440px;
}

/* Visual (right column) */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  animation: hero-widget-in 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

@keyframes hero-widget-in {
  from { opacity: 0; transform: translateY(40px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-glow {
  position: absolute;
  width: 380px; height: 380px;
  background: radial-gradient(ellipse,
    rgba(54, 194, 255, 0.18) 0%,
    rgba(54, 194, 255, 0.05) 40%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}

.hero-widget {
  position: relative;
  z-index: 1;
  width: 300px;
  height: 315px;
  box-shadow:
    0 40px 80px rgba(7, 14, 25, 0.6),
    0 0 0 1px rgba(54, 194, 255, 0.08);
}

/* Scroll hint */
.hero-scroll-hint {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-top: 16px;
  opacity: 0.3;
}
.scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, var(--grey), transparent);
  animation: scroll-line 1.8s ease-in-out infinite;
}
@keyframes scroll-line {
  0%, 100% { transform: scaleY(0.3); transform-origin: top; opacity: 0.4; }
  50%       { transform: scaleY(1);   transform-origin: top; opacity: 1; }
}
.scroll-label {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey);
}

/* ════════════════════════════════════════════════════
   SHARED SECTION STYLES
════════════════════════════════════════════════════ */

.section {
  padding: clamp(72px, 10vw, 140px) var(--pad);
}

.formats-section  { background: var(--ink-low); }
.progress-section { background: var(--ink); }
.themes-section   { background: var(--ink-low); }

.section-header { margin-bottom: clamp(48px, 6vw, 80px); }

.section-title {
  font-family: var(--f-hero);
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.0;
  color: var(--porcelain);
  text-wrap: balance;
  margin-top: 4px;
  font-variation-settings: "opsz" 48;
}

.section-body {
  font-size: clamp(14px, 1.4vw, 17px);
  color: var(--grey);
  line-height: 1.8;
  margin-top: 20px;
}

/* Reveal animation (JS adds .is-visible) */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ════════════════════════════════════════════════════
   WIDGET BASE STYLES
════════════════════════════════════════════════════ */

.widget {
  background: var(--card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.widget-sm {
  width: 158px; height: 158px;
  border-radius: var(--r-widget-lg);
  padding: 18px;
}

.widget-md {
  width: 338px; height: 158px;
  border-radius: var(--r-widget-md);
  padding: 18px 22px;
}

.widget-lg {
  border-radius: var(--r-widget-lg);
  padding: 22px;
}

.widget-accent-line {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--cyan);
}

.widget-time {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -0.045em;
  color: var(--porcelain);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.widget-date {
  font-family: var(--f-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey);
}

.widget-mode {
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan-dim);
  opacity: 0.65;
  margin-top: 6px;
}

.widget-date-row { display: flex; justify-content: flex-start; }
.widget-time-block { text-align: center; }

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

.widget-live-col { text-align: right; }
.widget-live-text {
  display: block;
  font-family: var(--f-body);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 4px;
}

.widget-live-row { display: flex; justify-content: flex-end; }

.live-badge {
  display: flex;
  align-items: center;
  gap: 5px;
}

.live-dot {
  width: 5px; height: 5px;
  background: var(--mint);
  border-radius: 50%;
  box-shadow: 0 0 7px rgba(103, 234, 159, 0.55);
  animation: glow-pulse 2s ease-in-out infinite;
}

.live-label {
  font-family: var(--f-body);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint);
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 5px rgba(103, 234, 159, 0.35); }
  50%       { box-shadow: 0 0 16px rgba(103, 234, 159, 0.8); }
}

/* Progress inside widget */
.widget-progress-block { width: 100%; }

.widget-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.widget-progress-label {
  font-family: var(--f-body);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
  opacity: 0.6;
}

.widget-progress-value {
  font-family: var(--f-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}

.widget-progress-track {
  position: relative;
  height: 5px;
  background: var(--card-top);
  border-radius: 999px;
}

.widget-progress-fill {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan-dim), var(--cyan));
  transition: width 0.8s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.widget-progress-dot {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 9px; height: 9px;
  background: var(--mint-hi);
  border-radius: 50%;
  border: 1.5px solid var(--card);
  box-shadow: 0 0 8px rgba(121, 251, 175, 0.55);
  animation: glow-pulse 2s ease-in-out infinite;
  transition: left 0.8s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.widget-progress-times {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
}
.widget-progress-times span {
  font-family: var(--f-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  color: var(--grey);
  opacity: 0.35;
}

/* ════════════════════════════════════════════════════
   BENTO GRID (FORMAT SECTION)
════════════════════════════════════════════════════ */

.bento {
  display: grid;
  grid-template-columns: 158px 1fr;
  grid-template-rows: 158px auto;
  gap: 14px;
  max-width: 560px;
}

.bento-item { display: flex; flex-direction: column; gap: 12px; }

.bento-small { grid-column: 1; grid-row: 1; }
.bento-medium { grid-column: 2; grid-row: 1; }
.bento-large { grid-column: 1 / -1; grid-row: 2; }

/* Override medium widget width to fill bento cell */
.bento-medium .widget-md { width: 100%; }

/* Large widget in bento: full width, iOS proportion (~338×354) */
.bento-large .widget { width: 100%; height: 280px; }

.bento-label {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.bento-label-name {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--on-surface);
  letter-spacing: 0.06em;
}

.bento-label-size {
  font-family: var(--f-mono);
  font-size: 9px;
  color: var(--grey);
  opacity: 0.4;
  letter-spacing: 0.08em;
}

/* Stagger bento reveals */
.bento-small  { transition-delay: 0s; }
.bento-medium { transition-delay: 0.08s; }
.bento-large  { transition-delay: 0.16s; }

/* ════════════════════════════════════════════════════
   PROGRESS FEATURE SECTION
════════════════════════════════════════════════════ */

.progress-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.feature-list {
  list-style: none;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-list li {
  font-size: 14px;
  color: var(--grey);
  padding-left: 20px;
  position: relative;
}
.feature-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--cyan);
  opacity: 0.6;
}

/* Demo card */
.progress-demo-card {
  background: var(--card);
  border-radius: 1.5rem;
  padding: 32px 36px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 32px 64px rgba(7, 14, 25, 0.5);
}

.demo-eyebrow { margin-bottom: 20px; }

.demo-time-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
}

.demo-time {
  font-family: var(--f-display);
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 700;
  letter-spacing: -0.05em;
  color: var(--porcelain);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.demo-progress-pct {
  font-family: var(--f-display);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}

.demo-track-wrap { margin-bottom: 12px; }

.demo-track {
  position: relative;
  height: 8px;
  background: var(--card-top);
  border-radius: 999px;
}

.demo-fill {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan-dim), var(--cyan));
  transition: width 1s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.demo-dot {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 14px; height: 14px;
  background: var(--mint-hi);
  border-radius: 50%;
  border: 2px solid var(--card);
  box-shadow: 0 0 12px rgba(121, 251, 175, 0.65);
  animation: glow-pulse 2s ease-in-out infinite;
  transition: left 1s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.demo-schedule {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.demo-schedule span {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--grey);
  opacity: 0.4;
}
.demo-days {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  opacity: 0.5 !important;
}

/* ════════════════════════════════════════════════════
   THEMES SECTION
════════════════════════════════════════════════════ */

.themes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 0;
}

.theme-card {
  border-radius: 1.25rem;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.theme-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(7, 14, 25, 0.5);
}

.theme-nocturnal { background: var(--card); }
.theme-paper     { background: #E8E3DA; }
.theme-deepsea   { background: #0D1E2E; }

.theme-preview {
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}

.theme-widget {
  width: 100%;
  max-width: 200px;
  background: var(--card);
  border-radius: 1rem;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.theme-info {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.theme-nocturnal .theme-info { background: var(--card-hi); }
.theme-paper .theme-info     { background: #D4CEBF; }
.theme-deepsea .theme-info   { background: #0A1825; }

.theme-name {
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--on-surface);
  letter-spacing: 0.02em;
}
.theme-paper .theme-name { color: #1A1714; }

.theme-tag {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  background: rgba(54, 194, 255, 0.12);
  color: var(--cyan);
}

.theme-tag-premium {
  background: rgba(198, 191, 255, 0.1);
  color: var(--violet);
}

/* Stagger theme cards */
.themes-grid .theme-card:nth-child(1) { transition-delay: 0s; }
.themes-grid .theme-card:nth-child(2) { transition-delay: 0.07s; }
.themes-grid .theme-card:nth-child(3) { transition-delay: 0.14s; }

/* ════════════════════════════════════════════════════
   FEATURES MARQUEE
════════════════════════════════════════════════════ */

.marquee-section {
  padding: 20px 0;
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.marquee-track {
  display: flex;
  overflow: hidden;
  mask-image: linear-gradient(90deg,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
}

.marquee-inner {
  display: flex;
  gap: 0;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
  will-change: transform;
}

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

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 28px;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
  opacity: 0.5;
}

.marquee-dot {
  width: 4px; height: 4px;
  background: var(--cyan);
  border-radius: 50%;
  opacity: 0.7;
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════════
   CTA SECTION
════════════════════════════════════════════════════ */

.cta-section {
  padding: clamp(80px, 12vw, 160px) var(--pad);
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--ink);
}

.cta-glow {
  position: absolute;
  bottom: -20%; left: 50%;
  transform: translateX(-50%);
  width: 60%; height: 50%;
  background: radial-gradient(ellipse,
    rgba(54, 194, 255, 0.09) 0%,
    transparent 65%
  );
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-title {
  font-family: var(--f-hero);
  font-size: clamp(40px, 7vw, 108px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--porcelain);
  text-wrap: balance;
  margin-top: 8px;
  font-variation-settings: "opsz" 64;
}

.cta-title em {
  font-style: italic;
  font-weight: 200;
  color: var(--grey);
  font-variation-settings: "opsz" 64;
}

/* ════════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════ */

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px var(--pad);
  background: var(--ink-deep);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-wordmark {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.04em;
  color: var(--porcelain);
}
.footer-wordmark em { font-style: normal; color: var(--cyan); }

.footer-copy {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--grey);
  opacity: 0.35;
}

.footer-links { display: flex; gap: 20px; }
.footer-links a {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
  opacity: 0.45;
  text-decoration: none;
  transition: opacity 0.12s;
}
.footer-links a:hover { opacity: 0.8; }

/* ════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════ */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    align-items: start;
    padding-top: 100px;
    gap: 48px;
  }
  .hero::before { display: none; }
  .hero-visual { grid-row: 2; }
  .hero-scroll-hint { display: none; }
  .hero-widget { width: 260px; height: 274px; }
  .hero-glow { width: 300px; height: 300px; }

  .progress-section {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

  .bento {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    max-width: 338px;
  }
  .bento-small  { grid-column: 1; grid-row: 1; }
  .bento-medium { grid-column: 1; grid-row: 2; }
  .bento-large  { grid-column: 1; grid-row: 3; }

  .bento-small .widget-sm { width: 100%; height: auto; aspect-ratio: 1 / 1; }
  .bento-medium .widget-md { width: 100%; height: auto; min-height: 140px; }
  .bento-large .widget { height: auto; min-height: 260px; }
}

@media (max-width: 600px) {
  .themes-grid { grid-template-columns: 1fr; gap: 12px; }
  .nav-badge { display: none; }
  .footer { flex-direction: column; align-items: flex-start; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 2px; }
