:root {
  --bg: #130d08;
  --bg-soft: #1b120b;
  --panel: rgba(35, 23, 13, 0.82);
  --panel-strong: rgba(28, 18, 10, 0.95);
  --border: rgba(255, 235, 214, 0.1);
  --text: #fff6ed;
  --muted: #e2c7ae;
  --cream: #f7e4cc;
  --orange: #f59a4a;
  --orange-deep: #db6f28;
  --gold: #ffcf7b;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(245, 154, 74, 0.18), transparent 24%),
    radial-gradient(circle at top right, rgba(247, 228, 204, 0.12), transparent 20%),
    linear-gradient(180deg, #140d08 0%, #0e0905 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 246, 237, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 246, 237, 0.03) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent);
}

.page-shell { width: min(1240px, calc(100% - 32px)); margin: 0 auto; padding: 24px 0 64px; }

.topbar {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 16px 22px;
  margin-bottom: 44px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: rgba(21, 14, 8, 0.7);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.dev-topbar { justify-content: space-between; }

.brand-lockup { display: flex; align-items: center; gap: 14px; }
.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #1b120b;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--cream), var(--orange));
}

.image-mark {
  padding: 6px;
  background: linear-gradient(135deg, rgba(247,228,204,0.22), rgba(245,154,74,0.28));
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-lockup h1,
.section-heading h2,
.hero-copy h2,
.panel h4,
.feature-card h3,
.review-card strong,
.community-card strong,
.showcase-content h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.topnav { display: flex; gap: 24px; }
.topnav a { color: var(--muted); text-decoration: none; font-weight: 700; }
.topnav a:hover { color: var(--text); }

.topbar-action {
  min-height: 46px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 235, 214, 0.14);
  color: var(--cream);
  text-decoration: none;
  font-weight: 800;
  background: linear-gradient(135deg, rgba(247, 228, 204, 0.08), rgba(245, 154, 74, 0.18));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.topbar-action:hover { transform: translateY(-1px); }

.secondary-action { background: rgba(255,246,237,0.04); }
.topbar-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
  padding: 24px 0 52px;
}

.public-hero { min-height: 72vh; }

.pill,
.status-chip,
.panel-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 235, 214, 0.12);
  border-radius: 999px;
  background: rgba(255, 246, 237, 0.04);
  color: var(--cream);
  font-size: 0.9rem;
  font-weight: 700;
}

.hero-copy h2 { margin-top: 16px; font-size: clamp(3.2rem, 5vw, 5.3rem); line-height: 0.95; max-width: 10ch; }
.hero-text,
.section-heading p,
.portal-message,
.bug-meta,
.feature-card p,
.community-card p,
.review-card p,
.showcase-content p,
.goal-banner p,
.hours-item p,
.note-card p,
.checklist-item p { color: var(--muted); line-height: 1.6; }

.hero-actions { display: flex; gap: 14px; margin: 28px 0 34px; }
.compact-actions { margin: 18px 0 0; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 18px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.button:hover,
.check-toggle:hover { transform: translateY(-1px); }

.button-primary {
  color: #1a120a;
  background: linear-gradient(135deg, var(--cream), var(--orange));
  box-shadow: 0 20px 40px rgba(245, 154, 74, 0.18);
}

.button-secondary,
.check-toggle {
  color: var(--cream);
  background: rgba(255, 246, 237, 0.04);
  border-color: rgba(255, 235, 214, 0.12);
}

.metric-row,
.summary-grid,
.feature-strip,
.reviews-grid,
.community-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.metric-row article,
.feature-card,
.review-card,
.community-card,
.comparison-card,
.support-banner,
.panel,
.showcase-card,
.goal-banner,
.checklist-item,
.note-card,
.hours-item {
  border: 1px solid var(--border);
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.metric-row article { padding: 18px; border-radius: 22px; }
.metric-row span,
.summary-grid span { display: block; font-family: "Space Grotesk", sans-serif; font-size: 1.7rem; font-weight: 700; }

.hero-panel { padding: 18px; }
.showcase-card {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  padding: 28px;
  border-radius: 32px;
}

.showcase-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 233, 206, 0.28), transparent 34%),
    linear-gradient(135deg, rgba(102, 56, 21, 0.68), rgba(186, 108, 44, 0.72), rgba(120, 67, 27, 0.78)),
    radial-gradient(circle at bottom left, rgba(255, 222, 188, 0.26), transparent 34%);
}

.showcase-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
}

.showcase-content h3 { font-size: 2.2rem; margin: 18px 0 10px; }

.hero-logo-float {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 120px;
  opacity: 0.12;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,0.25));
}

.feature-card,
.review-card,
.community-card,
.feedback-card { padding: 24px; border-radius: 24px; }

.feature-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 12px;
  background: rgba(245, 154, 74, 0.16);
  color: var(--gold);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.review-card span { display: inline-block; margin: 8px 0 10px; color: var(--gold); font-size: 0.88rem; }
.review-empty { grid-column: 1 / -1; }

.section-block,
.internal-section { padding: 28px 0; }

.section-heading { margin-bottom: 24px; }
.section-heading h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.center-copy { text-align: center; max-width: 760px; margin: 0 auto 24px; }

.community-visual {
  height: 180px;
  margin-bottom: 18px;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  padding: 18px;
  display: flex;
  align-items: flex-end;
}

.community-visual::after {
  content: "VI";
  position: absolute;
  right: 12px;
  top: 4px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 6rem;
  font-weight: 700;
  color: rgba(255, 233, 206, 0.06);
  letter-spacing: -0.08em;
}

.visual-orb {
  position: relative;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  margin-left: auto;
  margin-bottom: auto;
  background: radial-gradient(circle at 30% 30%, rgba(255, 232, 204, 0.42), rgba(255, 232, 204, 0.06) 38%, transparent 64%);
  filter: blur(2px);
  opacity: 0.9;
}

.visual-frame {
  position: relative;
  z-index: 1;
  width: min(82%, 330px);
  padding: 18px 18px 16px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(30, 18, 10, 0.26), rgba(30, 18, 10, 0.46));
  border: 1px solid rgba(255, 235, 214, 0.16);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.visual-kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.visual-frame strong {
  display: block;
  margin-bottom: 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.25rem;
  line-height: 1.15;
}

.visual-frame p {
  margin: 0;
  color: rgba(255, 239, 224, 0.86);
  line-height: 1.45;
  font-size: 0.95rem;
}

.gradient-one { background: linear-gradient(135deg, rgba(171, 120, 79, 0.9), rgba(123, 67, 24, 0.98), rgba(96, 46, 16, 0.96)); }
.gradient-two { background: linear-gradient(135deg, rgba(184, 122, 73, 0.9), rgba(126, 86, 56, 0.96), rgba(156, 106, 61, 0.88)); }
.gradient-three { background: linear-gradient(135deg, rgba(151, 86, 39, 0.94), rgba(104, 64, 40, 0.96), rgba(131, 84, 49, 0.9)); }

.feedback-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  margin-bottom: 18px;
}

.honesty-card,
.review-form-card {
  border: 1px solid var(--border);
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.honesty-card h3,
.review-form-card h4 {
  font-family: "Space Grotesk", sans-serif;
  margin: 16px 0 10px;
}

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

.honesty-stats div {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 246, 237, 0.04);
  border: 1px solid rgba(255, 235, 214, 0.08);
}

.honesty-stats strong {
  display: block;
  margin-bottom: 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.7rem;
}

.honesty-stats span,
.review-helper {
  color: var(--muted);
  line-height: 1.6;
}

.reviews-live {
  margin-top: 10px;
}

.comparison-card,
.support-banner,
.panel,
.goal-banner { padding: 24px; border-radius: 28px; }

.comparison-table { width: 100%; border-collapse: collapse; }
.comparison-table th,
.comparison-table td {
  padding: 18px 16px;
  border-bottom: 1px solid rgba(255, 235, 214, 0.08);
  text-align: left;
}
.comparison-table th { font-family: "Space Grotesk", sans-serif; }

.support-banner { display: flex; justify-content: space-between; gap: 24px; align-items: center; }

.dashboard-header,
.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.dashboard-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.status-neutral { color: var(--muted); }

.internal-section { border-top: 1px solid rgba(255, 235, 214, 0.08); margin-top: 24px; }
.dev-auth-shell { max-width: 460px; }
.dev-portal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.summary-panel,
.wide-panel { grid-column: 1 / -1; }

.goal-banner { margin-top: 18px; background: rgba(255, 246, 237, 0.04); }
.goal-banner strong { display: block; margin-bottom: 8px; }

.ops-form { display: grid; gap: 12px; }
.hours-form { grid-template-columns: 180px 160px minmax(0, 1fr) 180px; align-items: center; }
.timer-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 18px; align-items: start; }
.timer-display {
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(255, 235, 214, 0.08);
  background: rgba(255, 246, 237, 0.04);
}
.timer-display span {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
}
.timer-form { gap: 14px; }
.timer-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.admin-developer-list { display: grid; gap: 14px; }
.admin-dev-card {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 235, 214, 0.08);
  background: rgba(255, 246, 237, 0.03);
}
.admin-dev-top,
.admin-dev-metrics {
  display: flex;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.admin-dev-metrics {
  margin: 14px 0;
  color: var(--muted);
}
.hours-mini-list,
.task-mini-list {
  display: grid;
  gap: 8px;
}
.hours-mini-item,
.task-mini-item {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 246, 237, 0.04);
  border: 1px solid rgba(255, 235, 214, 0.06);
}

input,
textarea,
select {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 235, 214, 0.1);
  border-radius: 16px;
  outline: none;
  color: var(--text);
  background: rgba(255, 246, 237, 0.04);
  font: inherit;
}

option {
  color: #1f140d;
  background: #f7e4cc;
}

textarea { min-height: 110px; resize: vertical; }
input:focus,
textarea:focus,
select:focus { border-color: rgba(245, 154, 74, 0.58); box-shadow: 0 0 0 4px rgba(245, 154, 74, 0.1); }

.portal-message { margin-top: 18px; padding: 16px; border-radius: 18px; background: rgba(255, 246, 237, 0.04); }
.portal-message.error { color: #ffd0c1; background: rgba(219, 111, 40, 0.14); }
.portal-message.success { color: #ffe9c8; background: rgba(245, 154, 74, 0.14); }

.checklist-list,
.notes-list,
.hours-list { display: grid; gap: 12px; }

.checklist-item,
.note-card,
.hours-item { padding: 18px; border-radius: 20px; }

.checklist-top,
.note-top,
.hours-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }

.check-meta,
.hours-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-top: 10px; color: var(--muted); font-size: 0.88rem; }

.check-toggle {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 235, 214, 0.12);
  border-radius: 999px;
  cursor: pointer;
}

.check-status {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
}

.check-status.done { color: #fff1d5; background: rgba(245, 154, 74, 0.22); }
.check-status.in_progress { color: #fff4df; background: rgba(255, 207, 123, 0.18); }
.check-status.todo { color: var(--cream); background: rgba(255, 246, 237, 0.08); }

@media (max-width: 1100px) {
  .hero,
  .feature-strip,
  .feedback-layout,
  .reviews-grid,
  .community-grid,
  .dev-portal-grid,
  .hours-form,
  .timer-grid {
    grid-template-columns: 1fr;
  }

  .support-banner,
  .topbar,
  .dashboard-header,
  .panel-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-action { width: 100%; }
  .topbar-actions { width: 100%; }
}

@media (max-width: 720px) {
  .page-shell { width: min(100% - 20px, 1240px); }
  .topnav { gap: 14px; flex-wrap: wrap; }
  .hero-actions { flex-direction: column; }
  .metric-row,
  .summary-grid { grid-template-columns: 1fr; }
}
