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

:root {
  --bg: #ffffff;
  --bg-card: #f8f8f8;
  --bg-card-hover: #f2f2f2;
  --text: #111111;
  --text-dim: #666666;
  --accent: #111111;
  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.18);
  --radius: 12px;
  --radius-sm: 8px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Inter', 'Noto Sans JP', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  overflow-x: hidden;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== Stars Background (hidden in minimalist mode) ===== */
.stars-container {
  display: none;
}

body::before {
  display: none;
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.9rem 2rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: opacity 0.3s;
}

.nav-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-logo:hover {
  opacity: 0.5;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: color 0.3s;
}

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

.lang-toggle {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.35rem 0.95rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
  letter-spacing: 0.05em;
}

.lang-toggle:hover {
  background: var(--bg-card);
  border-color: var(--border-hover);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

.hero::before {
  display: none;
}

.hero-content {
  animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.hero-philosophy {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 400;
  font-style: italic;
  color: var(--text-dim);
  max-width: 600px;
  letter-spacing: 0.02em;
}

.hero-sub {
  font-family: 'Playfair Display', serif;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  font-weight: 400;
  font-style: italic;
  color: var(--text-dim);
  margin-top: 0.5rem;
  opacity: 0.5;
}

.hero-divider {
  width: 48px;
  height: 1px;
  margin: 2.5rem auto;
  background: var(--text);
  opacity: 0.2;
}

.hero-title {
  font-size: clamp(2.8rem, 9vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.hero-tagline {
  font-size: clamp(0.8rem, 1.5vw, 0.95rem);
  color: var(--text-dim);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-lang {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
}

.hero-lang-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 0.35rem 1rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
  letter-spacing: 0.05em;
}

.hero-lang-btn:hover {
  border-color: var(--border-hover);
  color: var(--text);
}

.hero-lang-btn.active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

/* ===== Sections ===== */
.section {
  position: relative;
  z-index: 1;
  padding: 6rem 2rem;
}

#cosmic-features,
#seiza-features,
#orbit-features {
  scroll-margin-top: 5.5rem;
}

.section-dark {
  background: var(--bg-card);
}

.section-dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 620px;
  margin-bottom: 2.5rem;
  line-height: 1.9;
  font-weight: 400;
}

/* ===== Manifesto ===== */
.manifesto-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.manifesto-block {
  padding: 1.5rem 0;
}

.manifesto-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin-bottom: 1.2rem;
}

.manifesto-paragraph {
  font-size: 1rem;
  line-height: 2;
  color: var(--text-dim);
  margin-bottom: 1.2rem;
}

.manifesto-paragraph:last-child {
  margin-bottom: 0;
}

.manifesto-columns {
  position: relative;
  overflow: hidden;
  transition: max-height 0.6s ease;
}

.manifesto-collapsed {
  max-height: 220px;
}

.manifesto-expanded {
  max-height: 2000px;
}

.manifesto-fade {
  position: relative;
  height: 80px;
  margin-top: -80px;
  background: linear-gradient(to bottom, transparent, var(--bg-card));
  pointer-events: none;
  transition: opacity 0.4s;
}

.manifesto-fade.hidden {
  opacity: 0;
}

.manifesto-toggle {
  display: block;
  margin: 1.5rem auto 0;
  padding: 0.5rem 1.6rem;
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border-hover);
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
}

.manifesto-toggle:hover {
  color: var(--text);
  border-color: var(--text);
}

@media (max-width: 768px) {
  .manifesto-collapsed {
    max-height: 200px;
  }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.6rem;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  font-family: inherit;
}

.btn-outline {
  color: var(--text);
  border: 1px solid var(--border-hover);
  background: transparent;
}

.btn-outline:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
  transform: translateY(-2px);
}

.btn-purchase {
  display: inline-block;
  margin-top: 1.2rem;
  padding: 0.75rem 2.2rem;
  background: var(--text);
  color: var(--bg);
  border: none;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: 0.02em;
}

.btn-purchase:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  opacity: 0.85;
}

/* ===== Film Card ===== */
.film-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  margin-top: 2rem;
}

.film-image-link {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border);
  transition: box-shadow 0.4s;
}

.film-image-link:hover {
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}

.film-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.4s;
}

.play-overlay svg {
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s;
}

.film-image-link:hover .film-image {
  transform: scale(1.03);
}

.film-image-link:hover .play-overlay {
  opacity: 1;
}

.film-image-link:hover .play-overlay svg {
  transform: scale(1.1);
}

.film-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  letter-spacing: -0.01em;
}

.film-work-number {
  font-size: 0.76rem;
  color: var(--text-dim);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}

.film-subtitle {
  font-size: 0.82rem;
  color: var(--text-dim);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.film-desc {
  color: var(--text-dim);
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 1rem;
}

.film-meta {
  font-size: 0.8rem;
  color: var(--text-dim);
  opacity: 0.5;
  margin-bottom: 1.5rem;
}

.film-text-card {
  margin-top: 2rem;
  padding: 2.4rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.film-text-card-header {
  margin-bottom: 1.8rem;
}

.film-title-japanese {
  margin-bottom: 0;
}

.film-title-english {
  margin-top: 0.35rem;
  color: var(--text-dim);
  font-size: 1.05rem;
  font-family: inherit;
  font-style: normal;
  line-height: 1.6;
}

.film-text-note {
  margin-top: 0.85rem;
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.75;
}

.film-text-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.film-text-block {
  padding: 1.4rem 1.5rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-sm);
}

.film-text-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.film-text-paragraph {
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.9;
}

.film-text-paragraph + .film-text-paragraph {
  margin-top: 0.7rem;
}

/* ===== App Hero ===== */
.app-hero {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 4rem;
  padding: 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s;
}

.app-hero::after {
  display: none;
}

.app-hero:hover {
  border-color: var(--border-hover);
}

.app-hero-cosmic {
  background: #f6f7fb;
}

.app-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.app-hero-radio {
  margin-top: 2rem;
}

.app-hero-noise-palette {
  background: #f6f7fb;
}

.app-hero-clearflow {
  border-color: rgba(255, 255, 255, 0.08);
}

.app-hero-joys {
  margin-top: 2rem;
  border-color: rgba(255, 200, 120, 0.12);
}

.app-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 1.2rem;
}

.btn-radio {
  margin-top: 0;
}

.btn-radio:hover {
  background: var(--text);
  color: var(--bg);
}

.btn-purchase {
  margin-top: 0;
}

.btn-description:hover {
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.app-name {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.app-tagline {
  color: var(--text-dim);
  font-size: 1rem;
  max-width: 580px;
  line-height: 1.8;
}

/* ===== Feature Showcase (large image layout) ===== */
.feature-showcase {
  display: flex;
  flex-direction: column;
  gap: 6rem;
}

.feature-showcase-item {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: center;
}

.feature-showcase-item.reverse {
  grid-template-columns: 1.4fr 1fr;
}

.feature-showcase-item.reverse .feature-showcase-text {
  order: 2;
}

.feature-showcase-item.reverse .feature-showcase-image {
  order: 1;
}

.feature-showcase-image {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.4s;
}

.feature-showcase-image:hover {
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
}

.feature-showcase-image img {
  width: 100%;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-showcase-image:hover img {
  transform: scale(1.02);
}

/* ===== Cosmic Tasks Showcase ===== */
.cosmic-showcase {
  margin-top: 3rem;
}

@media (min-width: 769px) {
  .cosmic-showcase {
    gap: 4.5rem;
  }

  .cosmic-showcase .feature-showcase-item,
  .cosmic-showcase .feature-showcase-item.reverse {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 2.5rem;
    align-items: center;
  }

  .cosmic-showcase .feature-showcase-text {
    max-width: 360px;
  }

  .cosmic-frame {
    max-width: 470px;
    margin-inline: auto;
    padding: 1.1rem;
  }

  .cosmic-device {
    width: min(100%, 430px);
    aspect-ratio: 390 / 520;
    border-radius: 30px;
  }

  .cosmic-device-shell {
    padding: 0.95rem 0.9rem 0.9rem;
    gap: 0.65rem;
  }

  .cosmic-screen-header h4 {
    font-size: 1.3rem;
  }
}

.cosmic-frame {
  padding: 1rem;
  background:
    radial-gradient(circle at top, rgba(105, 119, 168, 0.26), transparent 38%),
    linear-gradient(180deg, #111420 0%, #0a0d16 100%);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 40px rgba(6, 8, 18, 0.26);
}

.cosmic-device {
  position: relative;
  width: min(100%, 390px);
  margin: 0 auto;
  aspect-ratio: 390 / 844;
  border-radius: 34px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 40px rgba(0, 0, 0, 0.35);
}

.cosmic-device::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 8%, rgba(255, 255, 255, 0.9) 0 1px, transparent 1.6px),
    radial-gradient(circle at 32% 18%, rgba(255, 255, 255, 0.42) 0 1px, transparent 1.6px),
    radial-gradient(circle at 76% 10%, rgba(255, 255, 255, 0.7) 0 1px, transparent 1.7px),
    radial-gradient(circle at 84% 26%, rgba(255, 255, 255, 0.45) 0 1px, transparent 1.7px),
    radial-gradient(circle at 14% 62%, rgba(255, 255, 255, 0.45) 0 1px, transparent 1.7px),
    radial-gradient(circle at 72% 72%, rgba(255, 255, 255, 0.5) 0 1px, transparent 1.7px),
    radial-gradient(circle at 24% 84%, rgba(255, 255, 255, 0.65) 0 1px, transparent 1.7px),
    linear-gradient(180deg, #05070c 0%, #090b12 40%, #05070c 100%);
}

.cosmic-device-shell {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 1.1rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  color: #fff;
}

.cosmic-topnav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.3rem;
  padding: 0.25rem;
  background: rgba(20, 20, 20, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.cosmic-tab {
  display: block;
  padding: 0.42rem 0.2rem;
  border-radius: 999px;
  text-align: center;
  font-size: 0.64rem;
  letter-spacing: 0.05em;
  color: #6d7487;
  text-transform: uppercase;
}

.cosmic-tab-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cosmic-xpbar,
.cosmic-input,
.cosmic-goal-card,
.cosmic-habit-card,
.cosmic-chart-card,
.cosmic-rank-card {
  background: rgba(18, 18, 22, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.cosmic-xpbar {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.8rem;
  border-radius: 16px;
}

.cosmic-level,
.cosmic-rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.cosmic-level {
  width: 2rem;
  height: 2rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cfd5eb;
  font-size: 0.75rem;
}

.cosmic-xpcontent {
  flex: 1;
  min-width: 0;
}

.cosmic-xpline,
.cosmic-meta-row,
.cosmic-rank-row,
.cosmic-habit-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.cosmic-muted {
  color: #d7dcef;
  font-size: 0.72rem;
}

.cosmic-subtle,
.cosmic-meta-row,
.cosmic-goal-copy,
.cosmic-chart-title,
.cosmic-stat-label,
.cosmic-streak {
  color: #848b9d;
  font-size: 0.62rem;
}

.cosmic-align-right {
  text-align: right;
}

.cosmic-progress {
  margin-top: 0.25rem;
  height: 0.28rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.cosmic-progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7078a9 0%, #c1ceff 55%, #ffffff 100%);
}

.cosmic-progress-fill-45 {
  width: 45%;
}

.cosmic-progress-rank {
  margin-top: 0.7rem;
}

.cosmic-screen-header {
  text-align: center;
  margin-top: 0.25rem;
}

.cosmic-screen-header h4 {
  font-size: clamp(1.1rem, 3vw, 1.55rem);
  font-weight: 300;
  letter-spacing: -0.03em;
}

.cosmic-screen-header p {
  margin-top: 0.3rem;
  color: #7f879a;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cosmic-input {
  padding: 0.9rem 1rem;
  border-radius: 16px;
  color: #6e7486;
  font-size: 0.75rem;
}

.cosmic-meta-row {
  padding: 0 0.25rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cosmic-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.cosmic-list-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.88rem 1rem;
  border-radius: 14px;
  background: rgba(18, 18, 22, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #d9deef;
  font-size: 0.8rem;
  line-height: 1.45;
}

.cosmic-check,
.cosmic-habit-toggle {
  flex-shrink: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
}

.cosmic-check {
  width: 1rem;
  height: 1rem;
}

.cosmic-goal-card {
  border-radius: 18px;
  padding: 1rem;
}

.cosmic-goal-card-compact {
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.cosmic-goal-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #ecefff;
  font-size: 0.84rem;
  margin-bottom: 0.55rem;
}

.cosmic-goal-icon {
  color: #f4f7ff;
}

.cosmic-goal-copy {
  line-height: 1.5;
  margin-bottom: 0.7rem;
}

.cosmic-project-pill {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #d4d9eb;
  font-size: 0.75rem;
}

.cosmic-project-pill + .cosmic-project-pill {
  margin-top: 0.45rem;
}

.cosmic-project-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}

.cosmic-ring-wrap {
  display: flex;
  justify-content: center;
  padding: 0.3rem 0 0.1rem;
}

.cosmic-ring {
  width: 5.6rem;
  height: 5.6rem;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 4px solid rgba(255, 255, 255, 0.08);
  border-top-color: rgba(255, 255, 255, 0.62);
  color: #ffffff;
}

.cosmic-ring-value {
  font-size: 1.25rem;
  font-weight: 300;
}

.cosmic-ring-label {
  font-size: 0.65rem;
  color: #848b9d;
}

.cosmic-habit-card {
  border-radius: 14px;
  padding: 0.85rem 0.9rem;
}

.cosmic-habit-card-done {
  background: rgba(255, 255, 255, 0.06);
}

.cosmic-habit-toggle {
  width: 1.9rem;
  height: 1.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.72rem;
}

.cosmic-habit-toggle-done {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
}

.cosmic-habit-top {
  justify-content: flex-start;
  gap: 0.7rem;
  color: #eef1ff;
  font-size: 0.76rem;
}

.cosmic-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.3rem;
  margin-top: 0.7rem;
}

.cosmic-week-cell {
  aspect-ratio: 1;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.cosmic-week-cell-filled {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.22);
}

.cosmic-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem;
}

.cosmic-stat-card {
  padding: 0.75rem;
  border-radius: 12px;
  background: rgba(18, 18, 22, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.cosmic-stat-card strong {
  display: block;
  margin-top: 0.22rem;
  font-size: 1.05rem;
  font-weight: 400;
  color: #ffffff;
}

.cosmic-chart-card,
.cosmic-rank-card {
  border-radius: 14px;
  padding: 0.9rem;
}

.cosmic-heatmap {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.25rem;
  margin-top: 0.65rem;
}

.cosmic-heat {
  aspect-ratio: 1;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.cosmic-heat-1 { background: rgba(255, 255, 255, 0.04); }
.cosmic-heat-2 { background: rgba(255, 255, 255, 0.12); }
.cosmic-heat-3 { background: rgba(255, 255, 255, 0.2); }
.cosmic-heat-4 { background: rgba(255, 255, 255, 0.28); }
.cosmic-heat-5 { background: rgba(255, 255, 255, 0.38); }

.cosmic-rank-row + .cosmic-rank-row {
  margin-top: 0.45rem;
}

.cosmic-rank-badge {
  width: 1.5rem;
  height: 1.5rem;
  font-size: 0.62rem;
}

.cosmic-rank-badge-reached {
  color: #a5acc0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.cosmic-rank-badge-current {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.cosmic-rank-name {
  flex: 1;
  font-size: 0.74rem;
}

.cosmic-rank-name-reached {
  color: #adb5cb;
}

.cosmic-rank-name-current {
  color: #ffffff;
}

/* ===== Features Grid ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.features-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: all 0.35s;
  overflow: hidden;
  position: relative;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
}

.feature-number {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
  font-variant-numeric: tabular-nums;
}

.feature-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.feature-desc {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 0;
}

/* ===== Mikopedia Idea Block ===== */
.mikopedia-idea {
  margin: 0 0 3rem;
  padding: 1.8rem 2rem;
  border-left: 2px solid var(--text);
  opacity: 0.72;
}

.mikopedia-idea p {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.95;
  color: var(--text);
}

/* ===== Keyboard Shortcuts Block ===== */
.kbd-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.kbd-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--border-hover);
  border-radius: 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  color: var(--text);
  background: var(--bg-card);
  min-width: 1.8rem;
}

/* ===== Footer ===== */
.footer {
  position: relative;
  z-index: 1;
  padding: 4rem 2rem;
  border-top: 1px solid var(--border);
}

.footer::before {
  display: none;
}

.footer-content {
  text-align: center;
}

.footer-logo {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}

.footer-philosophy {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  opacity: 0.6;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s;
}

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

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-dim);
  opacity: 0.4;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll reveal */
.section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Focus & Selection ===== */
:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection {
  background: rgba(0, 0, 0, 0.12);
  color: var(--text);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .features-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav {
    padding: 0.8rem 1.2rem;
  }

  .nav-links {
    gap: 1.2rem;
  }

  .nav-links a {
    font-size: 0.82rem;
  }

  .section {
    padding: 4rem 1.2rem;
  }

  .film-card {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .film-text-columns {
    grid-template-columns: 1fr;
  }

  .feature-showcase-item,
  .feature-showcase-item.reverse {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .feature-showcase-item.reverse .feature-showcase-text,
  .feature-showcase-item.reverse .feature-showcase-image {
    order: unset;
  }

  .feature-showcase {
    gap: 4rem;
  }

  .features-grid,
  .features-grid-3 {
    grid-template-columns: 1fr;
  }

  .app-hero {
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding: 2rem 1.5rem;
  }

  .app-actions {
    justify-content: center;
  }

  .app-tagline {
    max-width: 100%;
  }

  .cosmic-device-shell {
    padding: 0.95rem 0.85rem 0.85rem;
    gap: 0.65rem;
  }

  .cosmic-list-item,
  .cosmic-goal-card,
  .cosmic-chart-card,
  .cosmic-rank-card,
  .cosmic-habit-card {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.4rem;
  }

  .nav {
    padding: 0.7rem 0.9rem;
  }

  .nav-links {
    gap: 0.7rem;
  }

  .nav-links a {
    font-size: 0.72rem;
  }

  .nav-logo {
    font-size: 0.9rem;
  }

  .app-hero {
    padding: 1.5rem;
  }

  .film-text-card {
    padding: 1.5rem;
  }

  .film-text-block {
    padding: 1.2rem;
  }

  .cosmic-frame {
    padding: 0.7rem;
  }

  .cosmic-topnav {
    gap: 0.22rem;
  }

  .cosmic-tab {
    font-size: 0.56rem;
    padding: 0.36rem 0.12rem;
  }
}

/* ===== Screenshot Gallery (Noise Palette) ===== */
.screenshot-gallery {
  margin-top: 2rem;
}
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.screenshot-img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.screenshot-img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .section { opacity: 1; transform: none; }
  .hero-content { animation: none; }
}
