:root {
  --bg: #fff8e6;
  --bg-deep: #fff1c9;
  --bg-soft: #fffaef;
  --surface: #fffdf6;
  --line: #ecd89a;
  --accent: #e4ad1a;
  --accent-deep: #c8920d;
  --accent-soft: #ffe29a;
  --ink: #241c10;
  --ink-soft: #5a4e3a;
  --ink-faint: #8a7b62;
  --shadow: 0 24px 60px rgba(180, 130, 20, 0.14);
  --radius: 22px;
  --font-display: "Space Grotesk", "Avenir Next", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --header-h: 4.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, #ffe9a8 0%, transparent 55%),
    radial-gradient(ellipse 70% 45% at 95% 5%, #ffd978 0%, transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 45%, #fff6dc 100%);
  overflow-x: hidden;
}

.ambient {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.35) 0 1px, transparent 1.5px),
    radial-gradient(circle at 70% 60%, rgba(232, 173, 40, 0.12) 0 1px, transparent 1.5px);
  background-size: 48px 48px, 36px 36px;
  opacity: 0.55;
  animation: drift 28s linear infinite;
}

@keyframes drift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 48px 36px, -36px 24px; }
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.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;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding: 0.85rem clamp(1.25rem, 4vw, 3rem);
  backdrop-filter: blur(14px);
  background: rgba(255, 248, 230, 0.78);
  border-bottom: 1px solid rgba(236, 216, 154, 0.65);
}

.logo,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
  text-transform: lowercase;
}

.logo-mark {
  width: 1.7rem;
  height: 1.7rem;
  flex-shrink: 0;
  display: block;
  border-radius: 0.55rem;
  box-shadow: 0 4px 12px rgba(200, 146, 13, 0.28);
}

.nav {
  display: none;
  gap: 1.75rem;
}

.nav a {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-switch {
  display: inline-flex;
  padding: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 246, 0.9);
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--ink-faint);
  cursor: pointer;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-btn.is-active {
  background: var(--accent-soft);
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.35rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #f0c14b 0%, var(--accent-deep) 100%);
  color: #1f1608;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(200, 146, 13, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 14px 28px rgba(200, 146, 13, 0.34);
}

.btn:active {
  transform: translateY(0);
}

.btn-sm {
  min-height: 2.35rem;
  padding: 0.45rem 1rem;
  font-size: 0.9rem;
}

.btn-ghost {
  background: transparent;
  box-shadow: none;
  border: 1px solid var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  background: rgba(255, 253, 246, 0.8);
  box-shadow: none;
  filter: none;
}

/* Hero */
.hero {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: end;
  min-height: calc(100svh - var(--header-h));
  padding: clamp(2rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 3rem) clamp(2.5rem, 6vw, 4rem);
  max-width: 1200px;
  margin: 0 auto;
}

.hero-copy {
  max-width: 34rem;
  animation: rise 0.9s ease both;
}

.brand-lockup {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 7vw, 4.5rem);
  font-weight: 600;
  font-style: normal;
  line-height: 1;
  letter-spacing: -0.045em;
  color: var(--ink);
  text-transform: lowercase;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-body);
  font-size: clamp(1.35rem, 2.8vw, 1.7rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink-soft);
}

.hero-lead {
  margin: 0 0 1.75rem;
  max-width: 32rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-visual {
  position: relative;
  animation: rise 1.05s 0.12s ease both;
}

.hero-glow {
  position: absolute;
  inset: 8% 6% 4%;
  border-radius: 40% 40% 35% 35%;
  background: radial-gradient(circle, rgba(255, 210, 90, 0.55) 0%, transparent 70%);
  filter: blur(18px);
  animation: pulse 5.5s ease-in-out infinite;
}

.hero-art {
  position: relative;
  display: block;
  width: min(100%, 640px);
  height: auto;
  margin-inline: auto;
  filter: drop-shadow(var(--shadow));
}

.spark {
  transform-origin: 560px 274px;
  animation: sparkle 3.2s ease-in-out infinite;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}

@keyframes sparkle {
  0%, 100% { opacity: 0.75; transform: scale(0.92) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.08) rotate(8deg); }
}

/* Sections */
.section {
  padding: clamp(3.5rem, 9vw, 6.5rem) clamp(1.25rem, 4vw, 3rem);
  max-width: 1100px;
  margin: 0 auto;
}

.section-intro {
  max-width: 38rem;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.section h2,
.cta h2,
.ai-copy h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-intro p,
.ai-copy > p:not(.eyebrow),
.cta-inner > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent-deep);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Help list */
.help-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.help-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
}

.help-index {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--accent-deep);
  line-height: 1.2;
}

.help-list h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.help-list p {
  margin: 0;
  color: var(--ink-soft);
}

/* AI */
.ai {
  max-width: 1200px;
}

.ai-stage {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border-radius: calc(var(--radius) + 8px);
  background:
    linear-gradient(145deg, rgba(255, 253, 246, 0.95) 0%, rgba(255, 232, 168, 0.75) 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.ai-copy {
  max-width: 32rem;
}

.ai-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.ai-panel-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.ai-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(228, 173, 26, 0.22);
  animation: pulse 2.8s ease-in-out infinite;
}

.ai-messages {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.ai-bubble {
  margin: 0;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.ai-bubble-user {
  justify-self: end;
  max-width: 92%;
  background: var(--accent-soft);
  color: var(--ink);
}

.ai-bubble-bot {
  justify-self: start;
  max-width: 96%;
  background: #fff6dc;
  border: 1px solid var(--line);
  color: var(--ink-soft);
}

.ai-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hint {
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.hint:hover {
  background: var(--accent-soft);
  color: var(--ink);
  border-color: #e0c46a;
}

/* Flow */
.flow-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  counter-reset: step;
}

.flow-steps li {
  position: relative;
  padding: 0 0 0 3.25rem;
  counter-increment: step;
}

.flow-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffe29a, var(--accent));
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
}

.flow-steps strong {
  display: block;
  margin-bottom: 0.25rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.flow-steps span {
  color: var(--ink-soft);
}

/* CTA */
.cta {
  max-width: 900px;
}

.cta-inner {
  text-align: center;
  padding: clamp(2rem, 5vw, 3rem);
  border-radius: calc(var(--radius) + 10px);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 226, 154, 0.85) 0%, transparent 60%),
    linear-gradient(180deg, #fff9e8 0%, #ffe9b0 100%);
  border: 1px solid var(--line);
}

.cta-inner h2 {
  max-width: 18ch;
  margin-inline: auto;
}

.cta-inner > p {
  max-width: 36rem;
  margin: 0 auto 1.5rem;
}

.cta-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  max-width: 32rem;
  margin: 0 auto;
}

.cta-form input {
  flex: 1 1 14rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 246, 0.95);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cta-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(228, 173, 26, 0.22);
}

.form-note {
  margin: 1rem 0 0;
  color: var(--accent-deep);
  font-weight: 500;
}

.form-note.is-error {
  color: #9a3b1a;
}

/* Footer */
.site-footer {
  display: grid;
  gap: 0.5rem;
  justify-items: start;
  padding: 2.5rem clamp(1.25rem, 4vw, 3rem) 3rem;
  max-width: 1100px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}

.footer-brand .logo-text {
  font-size: 1.1rem;
}

.site-footer p {
  margin: 0;
}

.footer-meta {
  font-size: 0.9rem;
  color: var(--ink-faint);
}

@media (min-width: 720px) {
  .nav {
    display: flex;
  }

  .flow-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem 2rem;
  }
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
  }

  .ai-stage {
    grid-template-columns: 1fr 1.05fr;
  }

  .help-list li {
    gap: 2rem;
    padding: 1.85rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .ambient,
  .hero-copy,
  .hero-visual,
  .hero-glow,
  .spark,
  .ai-dot {
    animation: none;
  }
}
