:root {
  --ink: #1e3239;
  --ink-soft: #435d66;
  --teal: #3b6064;
  --teal-dark: #29464a;
  --sage: #87bba2;
  --sage-light: #c9e4ca;
  --mint-bg: #f4faf5;
  --paper: #ffffff;
  --gold: #f2c144;
  --gold-dark: #c99720;
  --border: rgba(30, 50, 57, 0.1);
  --shadow-sm: 0 4px 14px rgba(30, 50, 57, 0.06);
  --shadow-md: 0 14px 36px rgba(30, 50, 57, 0.11);
  --shadow-lg: 0 24px 60px rgba(30, 50, 57, 0.16);
  --radius: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--mint-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--teal);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 250, 245, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.95rem;
  font-weight: 600;
}

.nav-links a {
  color: var(--ink-soft);
}

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

.nav-cta {
  background: var(--teal);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 999px;
  transition: transform 0.15s ease, background 0.15s ease;
}

.nav-cta:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 84px;
  background:
    radial-gradient(circle at 85% 25%, rgba(135, 187, 162, 0.35), transparent 52%),
    radial-gradient(circle at 12% 80%, rgba(242, 193, 68, 0.16), transparent 45%),
    linear-gradient(180deg, #e7f4ea 0%, var(--mint-bg) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 52px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(59, 96, 100, 0.1);
  color: var(--teal-dark);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-dark);
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.hero h1 span {
  color: var(--teal);
}

.hero-lead {
  margin: 0 0 28px;
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 540px;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.store-btn:hover {
  text-decoration: none;
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.store-btn svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.store-btn-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.store-btn-text small {
  font-size: 0.7rem;
  opacity: 0.82;
  letter-spacing: 0.02em;
}

.store-btn-text strong {
  font-size: 1.02rem;
  font-weight: 700;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.hero-pills span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Interactive Demo Card */
.demo-card {
  background: var(--paper);
  border-radius: 26px;
  padding: 26px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(59, 96, 100, 0.12);
}

.demo-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.demo-score {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ink);
  color: #fff;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
}

.demo-score .star {
  color: var(--gold);
}

.cw-grid {
  display: grid;
  grid-template-columns: repeat(5, 44px);
  grid-template-rows: repeat(4, 44px);
  gap: 6px;
  justify-content: center;
  margin: 8px 0 22px;
}

.cw-cell {
  width: 44px;
  height: 44px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.15rem;
  transition: transform 0.2s ease, background 0.2s ease;
}

.cw-cell.empty {
  background: transparent;
}

.cw-cell.slot {
  background: #e5f1e7;
  border: 1.5px solid rgba(59, 96, 100, 0.28);
  color: transparent;
}

.cw-cell.revealed {
  background: linear-gradient(180deg, #456d72 0%, #35565a 100%);
  border: 1.5px solid #294247;
  color: #d8eed9;
  box-shadow: 0 3px 8px rgba(30, 50, 57, 0.2);
}

.cw-cell.highlight {
  background: linear-gradient(180deg, #fde068 0%, #f2c144 100%);
  border: 1.5px solid var(--gold-dark);
  color: var(--ink);
  transform: scale(1.05);
}

.demo-guess-bar {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--mint-bg);
  border-radius: 12px;
  padding: 6px 12px;
  margin-bottom: 14px;
  border: 1px dashed rgba(59, 96, 100, 0.28);
}

.demo-placeholder {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.demo-letters {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
}

.letter-tile {
  width: 48px;
  height: 48px;
  border-radius: 11px;
  border: 1.5px solid #294247;
  background: linear-gradient(180deg, #55828b 0%, #3b6064 100%);
  color: #e6f6e8;
  font-size: 1.2rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(30, 50, 57, 0.18);
  transition: transform 0.12s ease, opacity 0.15s ease;
}

.letter-tile:hover:not(:disabled) {
  transform: translateY(-2px);
}

.letter-tile:disabled {
  opacity: 0.3;
  cursor: default;
}

.letter-tile.picked {
  width: 36px;
  height: 36px;
  font-size: 1rem;
  background: var(--ink);
  border-color: var(--ink);
}

.demo-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.demo-btn {
  border: none;
  border-radius: 10px;
  padding: 9px 16px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.12s ease;
}

.demo-btn.primary {
  background: var(--teal);
  color: #fff;
}

.demo-btn.primary:hover {
  background: var(--teal-dark);
}

.demo-btn.ghost {
  background: #e7f2ea;
  color: var(--ink);
}

.demo-btn.ghost:hover {
  background: #d7e9dc;
}

.demo-feedback {
  text-align: center;
  min-height: 22px;
  margin-top: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--teal-dark);
}

/* Sections */
.section {
  padding: 80px 0;
}

.section.alt {
  background: var(--paper);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 48px;
}

.section-header h2 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  letter-spacing: -0.025em;
}

.section-header p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, #d7edd9 0%, #b5dac2 100%);
  color: var(--teal-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 16px;
}

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

.feature-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  background: var(--mint-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--teal);
  color: #fff;
  font-weight: 800;
  margin-bottom: 14px;
}

.step-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.step-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Buy Me a Coffee / Support banner */
.coffee-banner {
  background: linear-gradient(135deg, #fffdf4 0%, #f4faf5 100%);
  border: 1.5px solid rgba(242, 193, 68, 0.55);
  border-radius: var(--radius);
  padding: 36px 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--shadow-sm);
}

.coffee-text {
  max-width: 620px;
}

.coffee-text h2 {
  margin: 0 0 8px;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}

.coffee-text p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.bmc-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffdd00;
  color: #1e3239 !important;
  font-weight: 800;
  font-size: 1rem;
  padding: 14px 24px;
  border-radius: 14px;
  border: 1.5px solid #e0be00;
  box-shadow: 0 6px 18px rgba(201, 151, 32, 0.24);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  white-space: nowrap;
}

.bmc-btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(201, 151, 32, 0.34);
  filter: brightness(1.02);
}

.bmc-btn svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* Support / FAQ */
.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.support-box {
  background: linear-gradient(135deg, #29464a 0%, #3b6064 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.support-box h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}

.support-box p {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.99);
}

.support-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: var(--ink) !important;
  font-weight: 800;
  padding: 12px 20px;
  border-radius: 12px;
  word-break: break-all;
}

.support-email:hover {
  text-decoration: none;
  filter: brightness(1.04);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-list details {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 20px;
}

.faq-list summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list details p {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Legal / Privacy page */
.legal-wrapper {
  max-width: 780px;
  margin: 48px auto 80px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.legal-wrapper h1 {
  margin: 0 0 8px;
  font-size: 2rem;
}

.legal-meta {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.legal-wrapper h2 {
  margin: 28px 0 10px;
  font-size: 1.2rem;
  color: var(--teal-dark);
}

.legal-wrapper p,
.legal-wrapper li {
  color: var(--ink-soft);
}

/* Footer */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--ink-soft);
}

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

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.crea-note {
  margin-top: 18px;
  font-size: 0.82rem;
  color: var(--ink-soft);
  opacity: 0.85;
}

/* Responsive */
@media (max-width: 900px) {

  .hero-grid,
  .features-grid,
  .steps-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 48px 0 60px;
  }

  .nav-links a:not(.nav-cta) {
    display: none;
  }
}

@media (max-width: 480px) {
  .cw-grid {
    grid-template-columns: repeat(5, 38px);
    grid-template-rows: repeat(4, 38px);
  }

  .cw-cell {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .letter-tile {
    width: 44px;
    height: 44px;
  }

  .legal-wrapper {
    padding: 24px;
    margin: 24px 16px 48px;
  }
}