:root {
  --bg: #000000;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-hover: rgba(255, 255, 255, 0.055);
  --border: rgba(255, 255, 255, 0.08);
  --text: #f4f7f6;
  --muted: #7f8b88;
  --muted-2: #4c5855;
  --green: #38d6b0;
  --green-bright: #55f2cc;
  --blue: #35a7a0;
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(
      circle at 50% -20%,
      rgba(34, 133, 113, 0.12),
      transparent 45%
    ),
    #000;
  color: var(--text);
  font-family:
    Inter,
    "SF Pro Display",
    "Segoe UI",
    sans-serif;
  min-height: 100vh;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.ambient {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

.ambient-one {
  top: 15%;
  left: -200px;
  background: #00d7a5;
}

.ambient-two {
  bottom: 10%;
  right: -200px;
  background: #1d8c82;
}

.app {
  position: relative;
  z-index: 1;
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 20px rgba(56, 214, 176, 0.5);
}

.brand-name {
  font-size: 14px;
  letter-spacing: 0.18em;
  font-weight: 700;
}

.brand-sub {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

.today-button {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  border-radius: 100px;
  padding: 10px 18px;
}

.today-button:hover {
  color: white;
  border-color: rgba(255, 255, 255, 0.2);
}

main {
  padding-bottom: 70px;
}

.date-section {
  display: grid;
  grid-template-columns: 50px 1fr 50px;
  align-items: center;
  padding: 75px 0 55px;
}

.date-center {
  text-align: center;
}

.date-day {
  color: var(--green);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.date-center h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 500;
  letter-spacing: -0.04em;
}

.date-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 19px;
  transition: 0.2s ease;
}

.date-arrow:hover {
  background: var(--surface-hover);
  color: white;
}

.hero {
  min-height: 255px;
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 45px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background: linear-gradient(
    135deg,
    rgba(38, 208, 165, 0.08),
    rgba(255, 255, 255, 0.015)
  );
}

.eyebrow {
  color: var(--green);
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 600;
  margin-bottom: 12px;
}

.hero h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.04em;
  font-weight: 500;
}

.hero p {
  max-width: 530px;
  line-height: 1.65;
  color: var(--muted);
  margin: 16px 0 0;
}

.score-circle {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(56, 214, 176, 0.3);
  background: radial-gradient(
    circle,
    rgba(56, 214, 176, 0.1),
    transparent 68%
  );
  box-shadow: 0 0 50px rgba(56, 214, 176, 0.07);
}

.score-circle span {
  font-size: 37px;
  font-weight: 500;
}

.score-circle small {
  color: var(--muted);
  margin-left: 2px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.stat-card,
.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.stat-card {
  padding: 24px;
}

.stat-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 20px;
}

.stat-value {
  font-size: 27px;
  margin-bottom: 18px;
  min-height: 37px;
}

.stat-value small {
  font-size: 13px;
  color: var(--muted);
  margin-left: 3px;
}

.mood-value {
  font-size: 20px;
}

.stat-card input,
.stat-card select {
  width: 100%;
  border: none;
  outline: none;
  border-bottom: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  padding: 9px 0;
}

.stat-card select option {
  background: #111;
}

.panel {
  margin-top: 14px;
  padding: 32px;
}

.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

.section-header h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.completion-text {
  color: var(--muted);
  font-size: 13px;
}

.goal-list {
  display: grid;
  gap: 2px;
}

.goal-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 18px 0;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.goal-item:last-child {
  border-bottom: 0;
}

.goal-item input {
  position: absolute;
  opacity: 0;
}

.custom-check {
  width: 21px;
  height: 21px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: 0.2s ease;
}

.goal-item input:checked + .custom-check {
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 0 20px rgba(56, 214, 176, 0.25);
}

.goal-item input:checked + .custom-check::after {
  content: "✓";
  display: flex;
  align-items: center;
  justify-content: center;
  color: black;
  font-size: 13px;
  font-weight: 800;
}

.goal-item strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
}

.goal-item small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
  font-size: 12px;
}

.activity-note {
  color: var(--muted);
  font-size: 12px;
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  gap: 8px;
}

.activity-cell {
  aspect-ratio: 1;
  min-width: 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  transition: 0.2s ease;
}

.activity-cell:hover {
  transform: scale(1.15);
}

.activity-1 {
  background: rgba(56, 214, 176, 0.18);
}

.activity-2 {
  background: rgba(56, 214, 176, 0.38);
}

.activity-3 {
  background: rgba(56, 214, 176, 0.65);
}

.activity-4 {
  background: linear-gradient(135deg, #2dc9a5, #46e3b8);
  box-shadow: 0 0 12px rgba(56, 214, 176, 0.12);
}

.journal-panel textarea {
  width: 100%;
  min-height: 180px;
  resize: vertical;
  border: none;
  outline: none;
  padding: 0;
  background: transparent;
  color: var(--text);
  font-size: 17px;
  line-height: 1.7;
}

.journal-panel textarea::placeholder {
  color: var(--muted-2);
}

.journal-actions {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.save-state {
  color: var(--muted);
  font-size: 12px;
}

.primary-button {
  border: none;
  background: linear-gradient(135deg, #36d8b2, #2eae9c);
  color: #001b15;
  font-weight: 600;
  border-radius: 100px;
  padding: 12px 22px;
}

.primary-button:hover {
  filter: brightness(1.08);
}

.quote {
  text-align: center;
  padding: 100px 20px 70px;
}

.quote p {
  margin: 0;
  color: var(--muted-2);
  font-size: 15px;
  line-height: 1.8;
}

footer {
  border-top: 1px solid var(--border);
  height: 100px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted-2);
  font-size: 11px;
  letter-spacing: 0.1em;
}

footer span {
  opacity: 0.4;
}

@media (max-width: 800px) {
  .app {
    width: min(calc(100% - 26px), 1100px);
  }

  .topbar {
    height: 80px;
  }

  .brand-sub {
    display: none;
  }

  .date-section {
    padding: 50px 0 40px;
  }

  .hero {
    padding: 30px;
    flex-direction: column;
    align-items: flex-start;
  }

  .score-circle {
    width: 90px;
    height: 90px;
  }

  .score-circle span {
    font-size: 28px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .panel {
    padding: 25px;
  }

  .activity-grid {
    gap: 5px;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat-card {
    padding: 19px;
  }

  .date-arrow {
    width: 40px;
    height: 40px;
  }

  .date-section {
    grid-template-columns: 40px 1fr 40px;
  }

  .activity-grid {
    grid-template-columns: repeat(14, 1fr);
    gap: 3px;
  }

  .journal-actions {
    align-items: flex-end;
  }
}