/* ==== Root + Reset ==== */
:root {
  --bg-main: #0b0806;
  --bg-alt: #14100d;
  --bg-card: #1d1510;
  --bg-card-soft: #241a13;
  --accent: #f6b46c;
  --accent-soft: #f1d3a0;
  --accent-strong: #ff8a3c;
  --text-main: #f9efe4;
  --text-muted: #c5b7a6;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.6);
  --radius-lg: 18px;
  --radius-pill: 999px;
  --transition-fast: 0.18s ease-out;
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Inter",
    "SF Pro Text", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: var(--font-main);
  background: radial-gradient(circle at top, #3a2616 0, #090605 42%, #050304 100%);
  color: var(--text-main);
}

/* ==== Layout ==== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 7vw;
  background: linear-gradient(
    to bottom,
    rgba(5, 3, 2, 0.95),
    rgba(5, 3, 2, 0.85),
    transparent
  );
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.site-header .logo img {
    height: 48px;
    width: auto;
    display: block;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-cookie {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 20%, #ffdf9e, #c47431);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.8);
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo-title {
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 14px;
  text-transform: uppercase;
}

.logo-subtitle {
  font-size: 11px;
  color: var(--text-muted);
}

.nav {
  display: flex;
  gap: 18px;
  font-size: 14px;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 4px 0;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  border-radius: 4px;
  background: var(--accent);
  transition: width var(--transition-fast);
}

.nav a:hover {
  color: var(--text-main);
}

.nav a:hover::after {
  width: 100%;
}

main {
  padding: 32px 7vw 64px;
}

/* ==== Hero ==== */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.4fr);
  gap: 32px;
  align-items: center;
  margin-top: 16px;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 4vw, 2.9rem);
  margin: 10px 0 12px;
}

.hero-tag {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  color: var(--accent-soft);
}

.hero-lead {
  color: var(--text-muted);
  max-width: 40rem;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0 14px;
}

.hero-icon-wrap {
    display: flex;
    justify-content: start;
}

.hero-icon {
    display: inline-flex;         
    align-items: center;
    justify-content: flex-start;   
    padding: 6px 2px;
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.35);
    font-size: 2rem;
    line-height: 1;
    gap: 4px;                   
    white-space: nowrap;    
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
    background var(--transition-fast), border-color var(--transition-fast);
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #26130c;
  box-shadow: var(--shadow-soft);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.8);
}

.btn.ghost {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(10, 6, 3, 0.6);
  color: var(--text-main);
}

.btn.ghost:hover {
  background: rgba(20, 13, 8, 0.9);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.btn-lore {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: rgba(255, 200, 140, 0.12);
    border: 1px solid rgba(255, 200, 140, 0.4);
    border-radius: 10px;
    text-decoration: none;
    color: #ffcc90;
    font-weight: 600;
    transition: 0.25s ease;
    backdrop-filter: blur(4px);
}

.btn-lore:hover {
    background: rgba(255, 200, 140, 0.25);
    border-color: rgba(255, 200, 140, 0.6);
    transform: translateY(-2px);
}

.meta-pill {
  font-size: 11px;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 8, 5, 0.8);
  color: var(--accent-soft);
}

.hero-card {
  background: radial-gradient(circle at top left, #3e2716, #140d09 52%);
  border-radius: 22px;
  padding: 20px 18px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.grandma-avatar {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.4);
  display: grid;
  place-items: center;
  font-size: 28px;
  margin-bottom: 10px;
}

.hero-card h2 {
  margin: 0 0 6px;
  font-size: 18px;
}

.hero-card-text {
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: 14px;
}

.progress-wrap {
  margin-bottom: 10px;
}

.progress-label {
  display: block;
  font-size: 12px;
  color: var(--accent-soft);
  margin-bottom: 6px;
}

.progress-bar {
  position: relative;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.progress-bar.small {
  height: 6px;
}

.progress-bar.disabled {
  opacity: 0.4;
}

.progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  width: 0;
  transition: width 0.6s ease-out;
}

.hero-card-foot {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
}

/* ==== Sections ==== */

.section {
  margin-top: 64px;
}

.section-alt {
  background: radial-gradient(circle at top, #2b1a10 0, #0b0705 55%);
  margin-left: -7vw;
  margin-right: -7vw;
  padding: 52px 7vw 56px;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  max-width: 40rem;
  margin-bottom: 24px;
}

.section-header h2 {
  margin: 0 0 8px;
  font-size: 1.6rem;
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
}

/* ==== Cards & Grids ==== */

.card {
  background: linear-gradient(145deg, var(--bg-card), var(--bg-card-soft));
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.7);
  position: relative;
  overflow: hidden;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

/* ==== Upgrades ==== */

.upgrade-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.upgrade-card .card-badge {
  position: absolute;
  top: 10px;
  right: 12px;
  left: 12px;
  text-align: center;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.16);
  z-index: 3;
}

.card-badge.locked {
  color: #ffb9b9;
  border-color: rgba(255, 103, 103, 0.5);
  background: rgba(65, 16, 16, 0.9);
}

.card-badge.soon {
  color: #ffe2a7;
  border-color: rgba(244, 204, 126, 0.6);
  background: rgba(70, 46, 15, 0.9);
}

.upgrade-icon {
  font-size: 28px;
  margin-bottom: 6px;
}

.upgrade-desc {
  margin-bottom: 10px;
}

.upgrade-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.upgrade-list li {
  margin-bottom: 4px;
}

.upgrade-progress {
  font-size: 0.8rem;
}

.upgrade-label {
  display: block;
  margin-bottom: 4px;
  color: var(--accent-soft);
}

.upgrade-status-text {
  display: block;
  margin-top: 6px;
  color: var(--text-muted);
}

.upgrade-image-wrap {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 10px;
  background: #120c08;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upgrade-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.4);
  opacity: 0.85;
  transition: filter 0.25s ease-out, opacity 0.25s ease-out,
    transform 0.25s ease-out;
}

.upgrade-card.unlocked .upgrade-image {
  filter: saturate(1.15);
  opacity: 1;
  transform: scale(1.02);
}

.upgrade-card.unlocked .card-badge {
  background: rgba(31, 97, 53, 0.9);
  border-color: rgba(138, 255, 165, 0.7);
  color: #d9ffe3;
}

/* ==== Steps ==== */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.step {
  padding-top: 22px;
  overflow: visible;
}

.step-number {
  position: absolute;
  top: -14px;
  left: 16px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at top, var(--accent), var(--accent-strong));
  color: #28130a;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: var(--shadow-soft);
}

/* ==== Log ==== */

.log-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: rgba(10, 7, 5, 0.7);
  overflow: hidden;
}

.log-list li {
  display: flex;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 0.9rem;
}

.log-list li:last-child {
  border-bottom: none;
}

.log-date {
  flex: 0 0 90px;
  color: var(--accent-soft);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.log-text {
  color: var(--text-muted);
}

/* ==== FAQ ==== */

.faq-list {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr);
  gap: 10px;
}

.faq-item {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: rgba(9, 6, 4, 0.85);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 12px 16px;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text-main);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  cursor: pointer;
}

.faq-toggle {
  font-size: 1.1rem;
  color: var(--accent-soft);
  transition: transform var(--transition-fast);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  transition: max-height 0.25s ease-out, padding-bottom 0.25s ease-out;
}

.faq-item.open .faq-answer {
  max-height: 200px;
  padding-bottom: 12px;
}

.faq-item.open .faq-toggle {
  transform: rotate(45deg);
}

/* ==== Footer ==== */

.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 18px 7vw 26px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.86rem;
  background: radial-gradient(circle at bottom, #2a1b11 0, #050303 60%);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--accent-soft);
  text-decoration: none;
  font-size: 0.86rem;
}

.footer-links a:hover {
  color: var(--accent);
}

/* ==== Responsive ==== */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-card {
    order: -1;
  }

  .nav {
    display: none;
  }

  .site-header {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  main {
    padding-inline: 5vw;
  }

  .section-alt {
    margin-inline: -5vw;
    padding-inline: 5vw;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}
