:root {
  color-scheme: dark;
  --bg: #08111f;
  --bg-soft: #111b2f;
  --panel: rgba(15, 23, 42, 0.82);
  --panel-strong: rgba(21, 33, 58, 0.96);
  --text: #f7f9ff;
  --muted: #b4bfd9;
  --muted-strong: #d5def4;
  --line: rgba(174, 193, 232, 0.18);
  --accent: #8be9ff;
  --accent-strong: #5ef0cf;
  --warning: #ffd479;
  --danger: #ff8d9d;
  --shadow: 0 22px 54px rgba(0, 0, 0, 0.35);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(94, 240, 207, 0.16), transparent 25%),
    radial-gradient(circle at top right, rgba(139, 233, 255, 0.13), transparent 18%),
    linear-gradient(180deg, #07101e 0%, #091423 52%, #07101b 100%);
  font-family: "Trebuchet MS", "Segoe UI", "Helvetica Neue", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.28), transparent 70%);
  opacity: 0.45;
  animation: ambientDrift 18s ease-in-out infinite alternate;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
.button {
  font: inherit;
}

.hero-shell,
.page,
.page-header {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 20px 16px;
  position: relative;
}

.hero-shell {
  padding-top: 18px;
  padding-bottom: 0;
}

.topbar,
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-sub {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.88rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 9px 12px;
  font-size: 0.82rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted-strong);
}

.chip-accent {
  color: #07101b;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border-color: transparent;
}

.chip-soft {
  background: rgba(255, 255, 255, 0.05);
}

.chip-warning {
  color: #3b2400;
  background: linear-gradient(135deg, #ffd479, #ffb95f);
  border-color: transparent;
}

.chip-danger {
  color: #350611;
  background: linear-gradient(135deg, #ffb0bd, var(--danger));
  border-color: transparent;
}

.hero-card,
.info-card,
.stat-card,
.step-card,
.proof-card,
.build-card,
.check-panel,
.streak-panel,
.highlight-box {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-card,
.info-card,
.stat-card,
.step-card,
.proof-card,
.build-card,
.check-panel,
.streak-panel,
.highlight-box,
.timeline-item {
  animation: riseIn 700ms ease both;
}

.info-card,
.step-card,
.proof-card,
.timeline-item,
.stat-card {
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.info-card:hover,
.step-card:hover,
.proof-card:hover,
.timeline-item:hover,
.stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(139, 233, 255, 0.3);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.42);
}

.hero-card {
  margin-top: 18px;
  border-radius: var(--radius-lg);
  padding: 22px 16px;
  position: relative;
  overflow: hidden;
  animation-delay: 80ms;
}

.hero-card::after {
  content: '';
  position: absolute;
  inset: -18% auto auto 60%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(94, 240, 207, 0.22), transparent 65%);
  filter: blur(10px);
  pointer-events: none;
  animation: glowPulse 8s ease-in-out infinite;
}

.hero-kicker,
.section-label,
.task-meta,
.proof-meta,
.brand-sub,
.support-text,
.streak-note,
.stat-detail,
.proof-detail,
.timeline-item span,
.trust-item span,
.check-item,
.hero-copy {
  color: var(--muted);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  margin-top: 14px;
  font-size: clamp(2.2rem, 9vw, 4.8rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

h2 {
  font-size: clamp(1.25rem, 4.9vw, 2.1rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.hero-copy {
  margin-top: 14px;
  font-size: 1rem;
  max-width: 60ch;
}

.cta-row,
.signal-row,
.stats-row,
.section-grid,
.dashboard-grid,
.proof-grid,
.timeline-grid {
  display: grid;
  gap: 14px;
}

.cta-row {
  margin-top: 20px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid transparent;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.button-primary {
  color: #05101d;
  background: linear-gradient(135deg, #a8f5ff 0%, #76ffcf 100%);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.button:hover {
  transform: translateY(-2px) scale(1.01);
  filter: brightness(1.08);
}

.button:active {
  transform: translateY(0);
}

.wide {
  width: 100%;
}

.trust-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.trust-item {
  padding: 12px;
  border-radius: 18px;
  background: rgba(7, 15, 27, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.trust-item:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 233, 255, 0.25);
  background: rgba(9, 19, 34, 0.6);
}

.trust-item strong,
.step-card strong,
.proof-top strong,
.timeline-item strong {
  display: block;
  font-size: 0.96rem;
}

.trust-item span {
  display: block;
  margin-top: 6px;
  font-size: 0.84rem;
}

.page {
  padding-top: 18px;
  padding-bottom: 32px;
}

.section-grid,
.dashboard-grid {
  margin-top: 16px;
}

.info-card,
.stat-card,
.step-card,
.proof-card,
.build-card,
.check-panel,
.streak-panel,
.highlight-box,
.timeline-item {
  border-radius: var(--radius-md);
}

.info-card,
.step-card,
.proof-card,
.build-card,
.check-panel,
.streak-panel,
.highlight-box,
.timeline-item {
  padding: 16px;
}

.section-block {
  margin-top: 16px;
}

.section-label {
  margin-bottom: 10px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.spotlight {
  background:
    radial-gradient(circle at top right, rgba(94, 240, 207, 0.18), transparent 35%),
    linear-gradient(180deg, rgba(18, 30, 53, 0.9), rgba(10, 18, 32, 0.98));
}

.night-card,
.primary-card,
.standing-card,
.build-card,
.proof-card,
.check-panel {
  background: linear-gradient(180deg, rgba(15, 25, 44, 0.96), rgba(9, 16, 30, 0.94));
}

.steps-grid {
  display: grid;
  gap: 12px;
}

.step-card {
  background: linear-gradient(180deg, rgba(18, 27, 47, 0.96), rgba(10, 16, 29, 0.9));
}

.step-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  margin-bottom: 12px;
  color: #05101d;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  font-weight: 800;
}

.step-card p,
.info-card p,
.build-card p,
.proof-detail,
.support-text,
.streak-note,
.highlight-box {
  font-size: 0.95rem;
}

.stats-row {
  margin-top: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat-card {
  padding: 18px;
}

.stat-value {
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1;
}

.stat-label {
  margin-top: 8px;
  font-weight: 700;
}

.stat-detail {
  margin-top: 8px;
  font-size: 0.86rem;
}

.bottom-cta {
  margin-top: 18px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(139, 233, 255, 0.12), rgba(94, 240, 207, 0.08));
  border: 1px solid rgba(174, 193, 232, 0.18);
  position: relative;
  overflow: hidden;
}

.bottom-cta::after {
  content: '';
  position: absolute;
  inset: auto -12% -44% auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 233, 255, 0.16), transparent 64%);
  filter: blur(8px);
  pointer-events: none;
  animation: glowPulse 9s ease-in-out infinite;
}

.streak-panel {
  margin-top: 16px;
  display: grid;
  gap: 14px;
}

.streak-value {
  margin-top: 8px;
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
}

.streak-value.accent {
  color: var(--accent-strong);
}

.streak-value.danger {
  color: var(--danger);
}

.progress-block {
  margin-top: 18px;
}

.progress-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
}

.progress-track {
  height: 12px;
  margin-top: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  background-size: 200% 100%;
  animation: progressShimmer 3.5s linear infinite;
}

.task-meta {
  margin-top: 10px;
}

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

.timeline-item {
  background: linear-gradient(180deg, rgba(17, 27, 47, 0.96), rgba(9, 16, 30, 0.92));
  border: 1px solid var(--line);
}

.timeline-done {
  outline: 1px solid rgba(94, 240, 207, 0.22);
}

.timeline-missed {
  outline: 1px solid rgba(255, 141, 157, 0.2);
}

.timeline-today {
  outline: 1px solid rgba(139, 233, 255, 0.24);
}

.timeline-locked {
  opacity: 0.7;
}

.timeline-item strong {
  margin-top: 8px;
}

.dashboard-hero,
.day-hero {
  padding: 18px 16px 6px;
}

.hero-badge,
.day-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.84rem;
  color: #05101d;
  background: linear-gradient(135deg, #fff2b7, #ffd479);
}

.hero-badge {
  color: #20314f;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(170, 241, 255, 0.92));
}

.highlight-box {
  margin-top: 16px;
  background: rgba(255, 255, 255, 0.05);
}

.check-list {
  margin: 12px 0 0;
  padding-left: 18px;
}

.check-list li {
  margin-top: 10px;
}

.proof-grid {
  margin-top: 6px;
}

.proof-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.proof-meta {
  margin-top: 12px;
  font-size: 0.88rem;
  word-break: break-word;
}

.proof-detail {
  margin-top: 12px;
  color: var(--muted-strong);
}

.check-panel {
  display: grid;
  gap: 12px;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
}

.check-item span {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 0 0 4px rgba(94, 240, 207, 0.1);
  animation: softPulse 2.8s ease-in-out infinite;
}

.day-page .bottom-cta,
.dashboard-page .bottom-cta {
  display: grid;
  gap: 14px;
}

.support-text {
  margin-top: 14px;
}

@media (min-width: 720px) {
  .hero-shell,
  .page,
  .page-header {
    padding-left: 24px;
    padding-right: 24px;
  }

  .hero-card {
    padding: 30px;
  }

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

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

  .stats-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .bottom-cta {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .day-page .bottom-cta,
  .dashboard-page .bottom-cta {
    padding: 22px 24px;
  }
}

@media (min-width: 960px) {
  .hero-card {
    padding: 36px;
  }

  h1 {
    font-size: clamp(3rem, 5.4vw, 5.4rem);
  }

  .section-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .dashboard-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .section-block,
  .dashboard-grid,
  .section-grid,
  .stats-row {
    margin-top: 22px;
  }

  .page-header,
  .topbar {
    padding-left: 0;
    padding-right: 0;
  }
}

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

@keyframes ambientDrift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(0, -10px, 0);
  }
}

@keyframes glowPulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.96);
  }
  50% {
    opacity: 0.95;
    transform: scale(1.04);
  }
}

@keyframes progressShimmer {
  from {
    background-position: 0% 50%;
  }
  to {
    background-position: 200% 50%;
  }
}

@keyframes softPulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(94, 240, 207, 0.1);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(94, 240, 207, 0.04);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}