:root {
  --bg: #141118;
  --bg-alt: #1b1622;
  --surface: #231d2b;
  --surface-border: rgba(232, 161, 71, 0.22);
  --text: #f5e9d3;
  --muted: #c2b29b;
  --accent: #e8a147;
  --accent-strong: #d97634;
  --sage: #6ba368;
  --scrim: linear-gradient(180deg, rgba(20, 17, 24, 0.35) 0%, rgba(20, 17, 24, 0.72) 58%, #141118 100%);
  --glow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

html[data-theme="night"] {
  --bg: #0c0e1a;
  --bg-alt: #121528;
  --surface: #181c33;
  --surface-border: rgba(255, 184, 77, 0.38);
  --accent: #ffb84d;
  --scrim: linear-gradient(180deg, rgba(12, 14, 26, 0.55) 0%, rgba(12, 14, 26, 0.82) 58%, #0c0e1a 100%);
  --glow: 0 18px 54px rgba(255, 168, 52, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.35s ease;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
code {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.88em;
  background: rgba(232, 161, 71, 0.14);
  color: var(--accent);
  padding: 0.12rem 0.4rem;
  border-radius: 5px;
}

.container {
  width: min(1160px, 92vw);
  margin: 0 auto;
}

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(20, 17, 24, 0.82);
  border-bottom: 1px solid var(--surface-border);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: "Bitter", Georgia, serif;
  font-weight: 800;
  letter-spacing: 0.05em;
  font-size: 1.05rem;
}
.brand-badge {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #161114;
  font-size: 1rem;
}
.nav-links {
  display: flex;
  gap: 1.35rem;
  font-size: 0.92rem;
  color: var(--muted);
}
.nav-links a:hover { color: var(--accent); }

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--surface-border);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}
.btn-pill:hover { border-color: var(--accent); }

/* Hero */
.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: flex-end;
  padding: 6.5rem 0 4rem;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.06);
  transition: filter 0.4s ease;
}
html[data-theme="night"] .hero-media img {
  filter: brightness(0.68) contrast(1.12) saturate(1.18);
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: var(--scrim);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}
.eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
h1, h2, h3 {
  font-family: "Bitter", Georgia, serif;
  margin: 0 0 0.85rem;
  line-height: 1.15;
}
h1 { font-size: clamp(2.35rem, 5vw, 3.85rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.18rem; }

.hero-lead {
  font-size: 1.12rem;
  color: #efe2cc;
  max-width: 660px;
  margin: 0 0 1.6rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2.25rem;
}
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.96rem;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #161114;
  box-shadow: 0 10px 28px rgba(232, 161, 71, 0.28);
}
.btn-secondary {
  background: rgba(35, 29, 43, 0.78);
  border: 1px solid var(--surface-border);
  color: var(--text);
}
.btn-secondary:hover { border-color: var(--accent); }

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}
.stat-pill {
  background: rgba(24, 19, 31, 0.82);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  backdrop-filter: blur(8px);
}
.stat-pill strong {
  display: block;
  font-family: "Bitter", Georgia, serif;
  font-size: 1.25rem;
  color: var(--accent);
}
.stat-pill span {
  font-size: 0.82rem;
  color: var(--muted);
}

/* Sections */
.section { padding: 5.2rem 0; }
.section-alt { background: var(--bg-alt); }
.section-head {
  max-width: 720px;
  margin-bottom: 2.4rem;
}
.section-head p { color: var(--muted); margin: 0; }

.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.8rem;
  align-items: center;
}
.split-reverse { grid-template-columns: 1fr 1.1fr; }

.media-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--surface-border);
  box-shadow: var(--glow);
  cursor: zoom-in;
}
.media-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.media-card:hover img { transform: scale(1.03); }
.media-tag {
  position: absolute;
  left: 14px;
  bottom: 14px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.76rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(20, 17, 24, 0.86);
  border: 1px solid var(--surface-border);
  color: var(--accent);
}

.feature-list {
  padding-left: 1.15rem;
  margin: 1.1rem 0 1.5rem;
  color: var(--muted);
}
.feature-list li { margin-bottom: 0.65rem; }
.feature-list strong { color: var(--text); }

/* Interactive Widgets */
.widget-box {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 14px;
  padding: 1.15rem;
  margin-top: 1.25rem;
}
.widget-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}
.widget-title {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.seg-control {
  display: inline-flex;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 9px;
  padding: 3px;
  gap: 3px;
}
.seg-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: 7px;
  cursor: pointer;
}
.seg-btn.active {
  background: var(--accent);
  color: #161114;
}
.widget-body {
  font-size: 0.93rem;
  color: var(--muted);
}
.widget-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.7rem;
}
.chip {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.76rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(232, 161, 71, 0.14);
  color: var(--text);
  border: 1px solid rgba(232, 161, 71, 0.25);
}
.callout-strip {
  margin-top: 1rem;
  padding: 0.9rem 1.05rem;
  border-left: 3px solid var(--accent);
  background: rgba(232, 161, 71, 0.08);
  border-radius: 0 10px 10px 0;
  font-size: 0.92rem;
  color: var(--muted);
}

/* Schedule Bar */
.schedule-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 14px;
  padding: 1.25rem;
  margin-bottom: 1.8rem;
}
.schedule-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
  font-size: 0.9rem;
}
.schedule-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  color: var(--muted);
  font-size: 0.82rem;
}
.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-right: 5px;
}
.dot.sleep, .hour-cell.sleep { background: #3b4b7a; }
.dot.bath, .hour-cell.bath { background: #3b8ea5; }
.dot.work, .hour-cell.work { background: #c96a32; }
.dot.eat, .hour-cell.eat { background: #6ba368; }
.dot.relax, .hour-cell.relax { background: #e8a147; color: #161114; }

.schedule-bar {
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  gap: 4px;
}
.hour-cell {
  border-radius: 6px;
  padding: 0.45rem 0;
  text-align: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
}

/* Cards */
.cards-grid {
  display: grid;
  gap: 1.3rem;
}
.four-col { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.three-col { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.info-card, .showcase-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 14px;
  overflow: hidden;
}
.info-card { padding: 1.35rem; }
.info-card p, .showcase-body p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--muted);
}
.showcase-card img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  cursor: zoom-in;
}
.showcase-body { padding: 1.2rem; }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}
.gallery-item {
  border: 1px solid var(--surface-border);
  border-radius: 14px;
  overflow: hidden;
  padding: 0;
  background: var(--surface);
  cursor: zoom-in;
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.gallery-item:hover img { transform: scale(1.04); }

/* Footer */
.footer {
  border-top: 1px solid var(--surface-border);
  padding: 2.4rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.footer strong {
  color: var(--text);
  font-family: "Bitter", Georgia, serif;
}
.footer p { margin: 0.25rem 0 0; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(8, 7, 12, 0.92);
  display: grid;
  place-items: center;
  padding: 2rem;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-height: 78vh;
  max-width: 92vw;
  border-radius: 14px;
  border: 1px solid var(--surface-border);
}
.lightbox p {
  color: var(--text);
  max-width: 780px;
  text-align: center;
  margin-top: 0.9rem;
}
.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--surface-border);
  background: var(--surface);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
}

@media (max-width: 960px) {
  .nav-links { display: none; }
  .split, .split-reverse { grid-template-columns: 1fr; }
  .trust-strip, .four-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .three-col, .gallery-grid { grid-template-columns: 1fr; }
  .schedule-bar { grid-template-columns: repeat(12, minmax(0, 1fr)); }
}
