:root {
  --bg: #030712;
  --surface: rgba(17, 24, 39, 0.7);
  --surface-border: rgba(255, 255, 255, 0.08);
  --accent: #10b981;
  --accent-glow: rgba(16, 185, 129, 0.3);
  --text: #f9fafb;
  --text-muted: #9ca3af;
  --glass: blur(16px);
  --font-main: 'Inter', system-ui, sans-serif;
  --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  position: relative;
}

/* Background Effects */
.bg-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-glow::before,
.bg-glow::after {
  content: "";
  position: absolute;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  animation: float 20s infinite alternate;
}

.bg-glow::before {
  top: -10%;
  left: -10%;
  background: radial-gradient(circle, var(--accent), transparent 70%);
}

.bg-glow::after {
  bottom: -10%;
  right: -10%;
  background: radial-gradient(circle, #3b82f6, transparent 70%);
  animation-delay: -10s;
}

@keyframes float {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(5%, 5%) scale(1.1);
  }
}

/* Typography */
h1,
h2,
h3 {
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.gradient-text {
  background: linear-gradient(135deg, #fff 30%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 120px 0;
}

/* Navigation */
nav.scrolled {
  background: var(--bg);
  padding: 16px 0;
  border-bottom: 1px solid var(--surface-border);
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 24px 0;
  z-index: 1000;
  transition: var(--transition);
  background: var(--bg);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  width: 32px;
  height: 32px;
  background: var(--accent);
  border-radius: 9px;
  box-shadow: 0 0 20px var(--accent-glow);
  display: inline-block;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 40px;
  align-items: center;
}

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

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
  font-size: 1rem;
}

.btn-primary {
  background: var(--accent);
  color: #000;
  box-shadow: 0 10px 30px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px var(--accent-glow);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--surface-border);
  backdrop-filter: var(--glass);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  text-align: center;
  padding-top: 160px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 80px;
}

.eyebrow {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 24px;
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: reveal 1s forwards;
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 4.8rem);
  margin-bottom: 40px;
  max-width: 1000px;
  line-height: 1.1;
  text-align: center;
  background: linear-gradient(135deg, #fff 40%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  transform: translateY(20px);
  animation: reveal 1s forwards 0.2s;
}

.hero h1 span {
  display: block;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 48px;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(20px);
  animation: reveal 1s forwards 0.4s;
}

.hero-actions {
  display: flex;
  gap: 16px;
  opacity: 0;
  transform: translateY(20px);
  animation: reveal 1s forwards 0.6s;
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* App Preview */
.app-mockup {
  margin-top: 60px;
  width: calc(100% - 64px);
  max-width: 1200px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 24px;
  padding: 12px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  animation: revealMockup 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.8s;
}

@keyframes revealMockup {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.mockup-inner {
  border-radius: 16px;
  overflow: hidden;
  background: #0a0a0a;
  aspect-ratio: 16/10;
  position: relative;
}

/* Feature Grid */
.features {
  background: rgba(255, 255, 255, 0.02);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 64px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 24px;
  padding: 40px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: rgba(16, 185, 129, 0.3);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--accent);
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.feature-card p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* Download Section */
.downloads {
  text-align: center;
  border-top: 1px solid var(--surface-border);
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 800px;
  margin: 64px auto 0;
}

.download-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 24px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  transition: var(--transition);
  cursor: default;
}

.download-card:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-8px);
}

.os-icon {
  width: 40px;
  height: 40px;
  opacity: 0.6;
}

.download-card .btn {
  width: 100%;
  background: transparent;
  border: 1px solid var(--surface-border);
  color: var(--text);
}

.download-card .btn:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

/* Footer */
footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--surface-border);
  color: var(--text-muted);
}

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

.footer-copy {
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }
}

.preview-shell {
  width: 100%;
  height: auto;
  aspect-ratio: 1160 / 820;
  display: grid;
  grid-template-columns: 210px 1fr;
  border-radius: 32px;
  overflow: hidden;
  position: relative;
  background: var(--bg);
}

@media (max-width: 900px) {
  .preview-shell {
    grid-template-columns: 1fr;
    aspect-ratio: auto;
  }

  .preview-sidebar {
    display: none;
  }
}

display: grid;
grid-template-columns: 188px minmax(0, 1fr);
border-radius: 32px;
}

.preview-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(66, 211, 146, 0.14), transparent 24%),
    radial-gradient(circle at 88% 8%, rgba(91, 192, 235, 0.08), transparent 18%);
  pointer-events: none;
}

.preview-windowbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  background: rgba(8, 14, 20, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.traffic-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.traffic-red {
  background: #ff5f57;
}

.traffic-yellow {
  background: #ffbd2e;
}

.traffic-green {
  background: #28c840;
}

.preview-sidebar {
  padding: 18px 12px 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(15, 30, 35, 0.88), rgba(10, 23, 31, 0.82));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.plus-button {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent);
  color: #000;
  font-size: 1.5rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  margin: 10px;
  box-shadow: 0 8px 20px rgba(66, 211, 146, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.plus-button:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(66, 211, 146, 0.4);
}

.preview-goal-card,
.preview-stat-card,
.preview-focus-card,
.preview-apps-card,
.preview-player,
.feature-card,
.stack-panel {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.preview-goal-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
}

.goal-avatar {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  flex: 0 0 auto;
  background:
    radial-gradient(circle at 28% 28%, rgba(255, 255, 255, 0.42), transparent 18%),
    linear-gradient(135deg, #ff8dcf, #9f7cff 56%, #5bc0eb);
}

.goal-copy {
  flex: 1;
}

.goal-copy strong,
.card-time,
.feature-card h3,
.stack-panel strong,
.preview-logo {
  display: block;
}

.goal-copy span,
.card-label {
  color: var(--muted);
}

.ui-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.ui-icon-nav {
  width: 20px;
  height: 20px;
}

.ui-icon-muted {
  color: #b1c0cd;
}

.preview-nav {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.preview-nav-item {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 12px;
  border-radius: 18px;
  color: #b9c6d3;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease;
}

.preview-nav-item:hover:not(.is-active) {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.preview-nav-item.is-active {
  background: linear-gradient(90deg, rgba(66, 211, 146, 0.16), rgba(255, 255, 255, 0.03));
  color: var(--text);
  box-shadow: inset 3px 0 0 var(--accent);
}

.preview-main {
  padding: 24px;
  height: calc(100% - 50px);
  overflow-y: auto;
  position: relative;
}

/* Custom scrollbar for preview-main */
.preview-main::-webkit-scrollbar {
  width: 6px;
}

.preview-main::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.preview-main::-webkit-scrollbar-track {
  background: transparent;
}

.preview-topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
}

.preview-logo {
  font-size: 1.72rem;
  font-weight: 800;
  color: color-mix(in srgb, var(--accent) 70%, white);
}

.preview-toggle {
  justify-self: center;
  display: inline-flex;
  gap: 8px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(5, 12, 18, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.preview-toggle span {
  min-width: 102px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
  transition: all 200ms ease;
}

.preview-toggle span:hover:not(.is-active) {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.preview-toggle .is-active {
  color: var(--text);
  background: linear-gradient(180deg, rgba(66, 211, 146, 0.14), rgba(66, 211, 146, 0.06));
  box-shadow: inset 0 0 0 2px rgba(66, 211, 146, 0.92);
}

.preview-status {
  min-height: 48px;
  padding: 0 12px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.028);
  color: #edf5f8;
  font-size: 0.92rem;
  font-weight: 600;
}

.preview-status small {
  color: var(--muted);
  font-size: 0.84rem;
}

.ui-icon-status {
  color: #ffffff;
}

.preview-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.preview-stat-card {
  min-height: 146px;
  padding: 16px;
  border-radius: 18px;
}

.preview-stat-icon,
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.preview-stat-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 12px;
}

.icon-green,
.feature-icon {
  color: #58e3a1;
  background: linear-gradient(135deg, rgba(66, 211, 146, 0.24), rgba(66, 211, 146, 0.07));
}

.icon-blue,
.feature-icon-blue {
  color: #63c4ef;
  background: linear-gradient(135deg, rgba(91, 192, 235, 0.25), rgba(91, 192, 235, 0.08));
}

.icon-orange,
.feature-icon-orange {
  color: #ffc074;
  background: linear-gradient(135deg, rgba(247, 178, 103, 0.25), rgba(247, 178, 103, 0.08));
}

.icon-violet,
.feature-icon-pink {
  color: #c59bff;
  background: linear-gradient(135deg, rgba(176, 132, 245, 0.24), rgba(176, 132, 245, 0.08));
}

.card-time {
  margin-top: 12px;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.02;
}

.preview-content {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(210px, 0.82fr);
  gap: 14px;
  margin-top: 14px;
}

.preview-focus-card,
.preview-apps-card {
  border-radius: 18px;
  padding: 16px;
}

.panel-header,
.panel-heading {
  display: flex;
  align-items: center;
}

.panel-header {
  justify-content: space-between;
  gap: 14px;
}

.panel-heading {
  gap: 10px;
  font-size: 1.02rem;
}

.panel-heading strong {
  font-size: 1.02rem;
}

.panel-icon {
  color: #eef6f4;
}

.mini-button {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(91, 113, 148, 0.16);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.94rem;
  font-weight: 700;
}

.preview-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.preview-chip {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #d7e0e7;
  font-size: 0.88rem;
  font-weight: 700;
}

.preview-chip i,
.app-item-name i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

.chip-green i,
.app-green i {
  background: var(--accent);
}

.chip-red i,
.app-red i {
  background: var(--accent-5);
}

.chip-gray i,
.app-gray i {
  background: #a0aab7;
}

.preview-controls {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.preview-control {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #d7e0e7;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 200ms ease;
}

.preview-control:hover:not(.is-active) {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.preview-control.is-active {
  background: linear-gradient(180deg, rgba(66, 211, 146, 0.14), rgba(66, 211, 146, 0.06));
  box-shadow: inset 0 0 0 2px rgba(66, 211, 146, 0.4);
}

.preview-control-wide {
  min-width: 120px;
}

.preview-graph {
  margin-top: 18px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(3, 9, 15, 0.24);
}

.preview-graph svg {
  width: 100%;
  height: 260px;
  display: block;
}

.graph-grid line {
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 1;
  stroke-dasharray: 4 5;
}

.graph-area {
  opacity: 0.16;
}

.graph-area-green {
  fill: #42d392;
}

.graph-area-red {
  fill: #ff6b6b;
}

.graph-line {
  fill: none;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.graph-line-green {
  stroke: #42d392;
}

.graph-line-red {
  stroke: #ff6b6b;
}

.graph-line-gray {
  stroke: #a0aab7;
  opacity: 0.76;
}

.preview-donut {
  width: 184px;
  aspect-ratio: 1;
  margin: 18px auto 16px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(9, 16, 24, 0.95) 57%, transparent 58%),
    conic-gradient(#42d392 0 28%,
      #58b8e6 28% 50%,
      #f7b267 50% 70%,
      #ff6b6b 70% 85%,
      #b084f5 85% 93%,
      #4ecdc4 93% 100%);
}

.preview-app-list {
  display: grid;
  gap: 10px;
}

.preview-app-item {
  min-height: 50px;
  padding: 0 12px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.92rem;
  font-weight: 700;
}

.app-item-name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.app-green {
  color: #c9f8de;
  background: rgba(66, 211, 146, 0.12);
}

.app-red {
  color: #ffd2d2;
  background: rgba(255, 107, 107, 0.12);
}

.app-gray {
  color: #dde5ed;
  background: rgba(255, 255, 255, 0.05);
}

.preview-player {
  margin-top: 14px;
  border-radius: 18px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(170px, 230px);
  align-items: center;
  gap: 14px;
}

.player-track strong {
  display: block;
  margin-top: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.player-button {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #dbe6ee;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 200ms ease;
}

.player-button:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.player-button:active {
  transform: scale(0.95);
}

.player-button-play {
  background: rgba(66, 211, 146, 0.18);
  color: #ffffff;
}

.player-progress {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.player-bar {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.player-bar b {
  display: block;
  width: 60%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(66, 211, 146, 0.94), rgba(91, 192, 235, 0.54));
}

.feature-section,
.about-section,
.download-band {
  padding-top: 72px;
}

.section-heading {
  max-width: 760px;
}

.section-heading h2,
.download-panel h2 {
  font-size: clamp(2.1rem, 3.8vw, 3.5rem);
}

.section-heading p {
  margin-top: 16px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.feature-card {
  border-radius: 24px;
  padding: 22px;
}

.feature-heading {
  display: flex;
  align-items: center;
  gap: 14px;
}

.feature-card h3 {
  margin: 0;
  font-size: 1.12rem;
}

.feature-card p {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.72;
}

.about-card {
  border-radius: 32px;
  padding: 30px;
}

.section-heading.compact h2 {
  max-width: 14ch;
}

.about-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 28px;
  margin-top: 26px;
}

.about-stack {
  display: grid;
  gap: 14px;
}

.stack-panel {
  border-radius: 22px;
  padding: 18px 20px;
}

.stack-panel span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stack-panel strong {
  margin-top: 8px;
  font-size: 1rem;
  line-height: 1.6;
}

.download-band {
  padding-bottom: 88px;
}

.download-panel {
  border-radius: 32px;
  padding: 36px;
  text-align: center;
}

.download-panel .eyebrow {
  margin: 0 auto;
}

.download-panel p {
  max-width: 58ch;
  margin: 18px auto 0;
}

.download-panel .button {
  margin-top: 28px;
}

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 0 0 34px;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-links {
  display: inline-flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
}

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

.footer-copy {
  text-align: right;
}

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

  .hero-copy {
    max-width: 760px;
  }

  .hero-preview {
    justify-content: center;
  }

  .preview-shell {
    width: min(100%, 1080px);
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-columns,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-copy {
    text-align: left;
  }
}

@media (max-width: 900px) {
  .site-header-inner {
    min-height: 74px;
  }

  .header-actions {
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .preview-shell {
    grid-template-columns: 1fr;
    padding-top: 50px;
  }

  .preview-sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .preview-topbar {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .preview-toggle,
  .preview-status {
    justify-self: start;
  }

  .preview-stats,
  .preview-content {
    grid-template-columns: 1fr 1fr;
  }

  .preview-player {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {

  .site-header-inner,
  .hero,
  .feature-section,
  .about-section,
  .download-band,
  .site-footer {
    width: min(100vw - 16px, 1320px);
  }

  .site-header-inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 14px;
    padding: 14px 0;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .hero {
    padding-top: 22px;
  }

  .hero h1 {
    font-size: clamp(2.9rem, 13vw, 4.9rem);
  }

  .preview-stats,
  .preview-content,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .preview-toggle span {
    min-width: 112px;
  }

  .download-panel,
  .about-card {
    padding: 24px;
  }
}

/* --- Preview Pages --- */
.preview-page {
  display: none;
  animation: fadeIn 0.3s ease;
}

.preview-page.is-active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Pulse Page Refinements --- */
.preview-bottom-row {
  display: grid;
  grid-template-columns: 1.38fr 0.82fr;
  gap: 14px;
  margin-top: 14px;
}

.live-records-card,
.task-pressure-card {
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.record-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  margin-bottom: 8px;
}

.record-info {
  display: flex;
  gap: 12px;
  align-items: center;
}

.record-time-meta {
  color: var(--muted);
  font-size: 0.85rem;
}

/* --- Tools Page (Timer) --- */
.timer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
  text-align: center;
}

.timer-display {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 4.5rem;
  font-weight: 800;
  margin-bottom: 30px;
}

.timer-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.timer-arrow {
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s;
}

.timer-arrow:hover {
  color: var(--text);
}

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

.timer-presets {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 40px;
}

.preset-btn {
  padding: 12px 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

.preset-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* --- Tasks Page --- */
.tasks-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.tasks-tabs {
  display: flex;
  gap: 8px;
}

.task-tab {
  padding: 8px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}

.task-tab.is-active {
  background: var(--surface-soft);
  color: var(--text);
  border-color: var(--accent);
}

.empty-state {
  height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  gap: 16px;
  border: 2px dashed rgba(255, 255, 255, 0.05);
  border-radius: 24px;
}

/* --- Calendar Page --- */
.calendar-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 20px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.calendar-day-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--muted);
  padding-bottom: 10px;
}

.calendar-cell {
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.calendar-cell.has-data {
  background: rgba(66, 211, 146, 0.05);
}

.calendar-cell.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(66, 211, 146, 0.15);
}

.cell-date {
  font-weight: 800;
  font-size: 0.9rem;
}

.cell-stats {
  font-size: 0.7rem;
  font-weight: 700;
}

.stat-time {
  color: var(--text);
}

.stat-productive {
  color: var(--accent);
}

/* --- Locks Page --- */
.locks-inputs {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
}

.lock-input {
  flex: 1;
  height: 52px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0 18px;
  color: var(--text);
  font-family: inherit;
}

.lock-input::placeholder {
  color: var(--muted);
}
