:root {
  --bg: #fff9ef;
  --surface: #ffffff;
  --text: #352416;
  --text-muted: #76604d;
  --accent: #bd4a12;
  --accent-mid: #f5b83d;
  --accent-hover: #97380b;
  --accent-cyan: #f5b83d;
  --border: #f1dfc7;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(86, 47, 15, 0.06);
  --max: 1080px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: -20vmax;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(38vmax 38vmax at 15% 20%, rgba(235, 132, 43, 0.12), transparent 60%),
    radial-gradient(34vmax 34vmax at 85% 12%, rgba(250, 190, 55, 0.1), transparent 62%),
    radial-gradient(28vmax 28vmax at 50% 88%, rgba(235, 132, 43, 0.08), transparent 58%);
  filter: blur(20px);
  animation: drift-bg 22s ease-in-out infinite alternate;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
  left: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 249, 239, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.logo-img {
  width: auto;
  height: 44px;
  display: block;
  border-radius: 11px;
  box-shadow: 0 8px 20px rgba(235, 132, 43, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo:hover .logo-img {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 12px 24px rgba(235, 132, 43, 0.28);
}

.logo-text {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-main a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-main a:hover {
  color: var(--accent);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
}

.lang-switcher select {
  height: 34px;
  padding: 0 0.65rem;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.88rem;
  font-family: inherit;
  cursor: pointer;
}

.lang-switcher select:focus-visible {
  outline: 2px solid rgba(235, 132, 43, 0.25);
  outline-offset: 2px;
}

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 4rem;
  text-align: center;
  position: relative;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hero-lead {
  margin: 0 auto 1.5rem;
  max-width: 36rem;
  font-size: 1.15rem;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.btn-play {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1.4rem;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-mid) 100%);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 2px 14px rgba(235, 132, 43, 0.28);
}

.btn-play:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(250, 190, 55, 0.32);
}

.btn-play__icon {
  flex-shrink: 0;
  display: block;
  width: 22px;
  height: 24px;
  transition: transform 0.2s ease;
}

.btn-play:hover .btn-play__icon {
  transform: translateX(2px);
}

.btn-secondary {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.btn-secondary:hover {
  text-decoration: underline;
  transform: translateX(1px);
}

.package-id {
  margin-top: 1.25rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: ui-monospace, monospace;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.section-title {
  text-align: center;
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-intro {
  text-align: center;
  margin: 0 auto 2.5rem;
  max-width: 36rem;
  color: var(--text-muted);
  font-size: 1rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(86, 47, 15, 0.08);
}

.feature-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.steps li {
  position: relative;
  padding-left: 3.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.35rem 1.35rem 3.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.steps li:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(86, 47, 15, 0.08);
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--accent), var(--accent-mid));
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  display: grid;
  place-items: center;
}

.steps strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 1.05rem;
}

.steps span {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.trust-strip {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.trust-strip h2 {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent);
}

.copyright {
  margin: 0;
}

.footer-contact {
  margin: 0 0 0.75rem;
}

.footer-contact a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-contact a:hover {
  color: var(--accent);
}

body.js-ready .hero h1,
body.js-ready .hero-lead,
body.js-ready .hero-actions,
body.js-ready .package-id {
  opacity: 0;
  transform: translateY(14px);
  animation: fade-up 0.7s ease forwards;
}

body.js-ready .hero-lead {
  animation-delay: 0.1s;
}

body.js-ready .hero-actions {
  animation-delay: 0.2s;
}

body.js-ready .package-id {
  animation-delay: 0.3s;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-grid .reveal:nth-child(2) {
  transition-delay: 0.08s;
}

.feature-grid .reveal:nth-child(3) {
  transition-delay: 0.16s;
}

.feature-grid .reveal:nth-child(4) {
  transition-delay: 0.24s;
}

.feature-grid .reveal:nth-child(5) {
  transition-delay: 0.32s;
}

.feature-grid .reveal:nth-child(6) {
  transition-delay: 0.4s;
}

.steps .reveal:nth-child(2) {
  transition-delay: 0.08s;
}

.steps .reveal:nth-child(3) {
  transition-delay: 0.16s;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift-bg {
  from {
    transform: translate3d(-1.5%, -1%, 0) scale(1);
  }
  to {
    transform: translate3d(1.5%, 1%, 0) scale(1.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 600px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-main {
    width: 100%;
    justify-content: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
  }
}

/* Preserve the reference layout while accommodating longer translated text. */
.feature-grid { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
#features { scroll-margin-top: 145px; }
.logo { flex-shrink: 0; }
.package-id, .footer-contact a, .legal-product { overflow-wrap: anywhere; }
.legal-page { max-width: 820px; min-height: 58vh; padding: 3.5rem 1.5rem 4rem; margin: auto; }
.legal-page h1 { font-size: clamp(2rem,5vw,2.75rem); line-height: 1.2; letter-spacing: -.03em; }
.legal-page p { color: var(--text-muted); }
.legal-page a { color: var(--accent); }
.draft-note { border-left: 3px solid var(--accent); padding: .75rem 1rem; background: white; border-radius: 0 8px 8px 0; }
.legal-product { font-size: .85rem; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
@media(max-width: 600px) { .nav-main { gap: .7rem 1rem; } .hero { padding-top: 2.75rem; } }
@media(prefers-reduced-motion: reduce) { body.js-ready .hero h1, body.js-ready .hero-lead, body.js-ready .hero-actions, body.js-ready .package-id { opacity: 1; transform: none; } }

/* Warm orange and honey accents drawn from the Craft Treasure logo. */
.btn-play, .btn-danger { border: 0; cursor: pointer; font-family: inherit; background: linear-gradient(135deg, #ffd588, #ffb95b); color: #592909; box-shadow: 0 3px 15px rgba(209, 120, 32, .19); }
.steps li::before { background: linear-gradient(145deg, #ffe3a1, #ffc66c); color: #713609; }
.logo-img { box-shadow: 0 5px 18px rgba(227, 130, 31, .18); }
.legal a { color: var(--accent); }
.legal code { overflow-wrap: anywhere; }
#coming-soon { width: min(360px, calc(100% - 40px)); padding: 32px; border: 1px solid var(--border); border-radius: 22px; background: #fffaf2; color: var(--text); text-align: center; box-shadow: 0 24px 80px #61390b33; }
#coming-soon::backdrop { background: #37220f60; backdrop-filter: blur(4px); }
#coming-soon img { border-radius: 15px; }
#coming-soon h2 { margin: 18px 0 6px; font-size: 1.8rem; }
#coming-soon p { color: var(--text-muted); margin: 0 0 24px; }
.dialog-close { position: absolute; top: 8px; right: 10px; border: 0; background: none; width: 36px; height: 36px; font-size: 26px; color: var(--text-muted); cursor: pointer; }
.delete-form .btn-danger { background: linear-gradient(135deg, #ffd588, #ffb95b); color: #592909; box-shadow: 0 3px 15px rgba(209, 120, 32, .19); }

.success-page { min-height: calc(100svh - 250px); display: grid; place-items: center; padding: 64px 24px; }
.success-panel { width: 100%; max-width: 600px; text-align: center; }
.success-symbol { display: grid; place-items: center; width: 88px; height: 88px; margin: 0 auto 28px; border-radius: 50%; background: linear-gradient(145deg, #ffe8b7, #ffd18a); color: #9b4c14; box-shadow: 0 8px 32px #eaaa3820; }
.success-symbol svg { width: 48px; height: 48px; }
.success-panel h1 { margin: 0 0 18px; font-size: clamp(1.8rem, 4vw, 2.4rem); line-height: 1.2; letter-spacing: -.025em; text-wrap: balance; }
.success-panel p { max-width: 440px; margin: 0 auto 32px; color: var(--text-muted); line-height: 1.75; }
@media (max-width: 600px) { .success-page { min-height: 58svh; padding: 48px 24px; } }
