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

:root {
  --bg: #2B2BFF;
  --bg-dark: #1a1aee;
  --surface: rgba(255,255,255,0.08);
  --border: rgba(255,255,255,0.15);
  --text: #fff;
  --muted: rgba(255,255,255,0.65);
  --accent: #AAFF00;
  --accent-hover: #ccff55;
  --success: #AAFF00;
  --cta-bg: #ff4466;
  --cta-hover: #ff6688;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: -1;
  background:
    radial-gradient(circle 500px at 0% 0%, rgba(240,120,180,0.35) 0%, transparent 60%),
    radial-gradient(circle 400px at 100% 0%, rgba(180,60,220,0.3) 0%, transparent 55%),
    radial-gradient(circle 450px at 0% 100%, rgba(30,30,180,0.3) 0%, transparent 55%),
    radial-gradient(circle 400px at 100% 100%, rgba(240,160,32,0.3) 0%, transparent 55%),
    radial-gradient(circle 300px at 50% 50%, rgba(60,220,220,0.15) 0%, transparent 50%);
  background-color: #2B2BFF;
}

.container { max-width: 960px; margin: 0 auto; padding: 0 40px; }

/* Lang switch */
.lang-switch {
  position: fixed; top: 16px; left: 16px; z-index: 100;
  font-size: 12px;
}
.lang-switch a {
  color: rgba(255,255,255,0.3); text-decoration: none;
  padding: 4px 10px;
  transition: color 0.2s;
}
.lang-switch a:hover { color: rgba(255,255,255,0.6); }

/* Hero */
.hero {
  height: 100vh; display: flex; flex-direction: column;
  justify-content: center; padding: 80px 0;
  position: relative; overflow: hidden;
}

html, body { overflow: hidden; height: 100vh; }

/* Hero grid: text left, mascot right */
.hero-grid {
  display: flex; align-items: flex-start; gap: 0;
  margin-bottom: 24px;
  position: relative;
}

.hero-grid h1 { flex: 1; margin-bottom: 0; white-space: nowrap; }

.mascot-wrap {
  flex-shrink: 0; position: relative;
  align-self: stretch; overflow: visible;
  z-index: -1;
}

.mascot-inline {
  position: absolute; bottom: -10%; right: -90%;
  height: 160%; width: auto;
  filter: drop-shadow(0 8px 32px rgba(0,0,0,0.3));
  opacity: 0.85;
}

/* Crab inline above form */
.crab-inline {
  display: block;
  width: clamp(60px, 10vw, 100px);
  margin: 0 auto 16px;
  filter: drop-shadow(0 6px 20px rgba(0,0,0,0.3));
  animation: wobble 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes wobble {
  0%, 100% { transform: rotate(-5deg) translateY(0); }
  25% { transform: rotate(5deg) translateY(-6px); }
  50% { transform: rotate(-3deg) translateY(0); }
  75% { transform: rotate(4deg) translateY(-4px); }
}

.site-header {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 32px;
}

.site-name {
  font-family: 'Arial Black', 'Helvetica Neue', sans-serif;
  font-size: 32px; font-weight: 900; letter-spacing: 0.06em;
  text-transform: uppercase; color: #fff;
}

.badge {
  display: inline-block; font-size: 9px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent);
  border: 1px solid var(--accent); border-radius: 100px;
  padding: 3px 8px; opacity: 0.8;
}

h1 {
  font-size: clamp(36px, 7vw, 56px); font-weight: 800;
  line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 24px;
}
h1 .highlight { color: var(--accent); }

.subtitle {
  font-size: 18px; line-height: 1.7; color: var(--muted); margin-bottom: 48px;
  max-width: 480px;
}
.subtitle strong { color: #fff; }

/* Form */
.form-wrap { display: flex; gap: 10px; margin-bottom: 16px; }
.form-wrap input {
  flex: 1; padding: 16px 20px; font-size: 16px;
  background: rgba(0,0,0,0.3); border: 1px solid var(--border); border-radius: 14px;
  color: #fff; outline: none; transition: border-color 0.2s;
  backdrop-filter: blur(12px);
}
.form-wrap input:focus { border-color: var(--accent); }
.form-wrap input::placeholder { color: rgba(255,255,255,0.35); }
.form-wrap button {
  padding: 16px 32px; font-size: 16px; font-weight: 700;
  background: var(--cta-bg); color: #fff; border: none; border-radius: 14px;
  cursor: pointer; transition: background 0.2s, transform 0.1s;
  white-space: nowrap;
}
.form-wrap button:hover { background: var(--cta-hover); transform: translateY(-1px); }
.form-wrap button:active { transform: translateY(0); }
.form-wrap button:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.form-note { font-size: 13px; color: var(--muted); }
.form-success {
  padding: 16px 20px; background: rgba(170, 255, 0, 0.15);
  border: 1px solid rgba(170, 255, 0, 0.4); border-radius: 14px;
  color: var(--success); font-size: 15px; font-weight: 600;
}
.form-error { font-size: 14px; color: #ff6b6b; margin-top: 8px; }

/* Story */
.story { padding: 80px 0; }
.story-block { margin-bottom: 72px; position: relative; }
.story-block .label {
  font-size: 13px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.story-block h2 {
  font-size: 28px; font-weight: 700; line-height: 1.35; margin-bottom: 18px;
}
.story-block p { font-size: 16px; line-height: 1.8; color: var(--muted); }

/* How it works */
.steps { margin-top: 24px; }
.step {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px 0; border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom: none; }
.step-num {
  font-size: 24px; font-weight: 800; color: var(--accent);
  min-width: 36px; text-align: center;
}
.step-text .step-title { font-weight: 700; color: #fff; margin-bottom: 4px; font-size: 15px; }
.step-text .step-desc { font-size: 14px; color: var(--muted); }

/* Examples */
.examples { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.example-card {
  padding: 20px; background: rgba(0,0,0,0.15);
  border: 1px solid var(--border); border-radius: 16px; font-size: 14px;
  backdrop-filter: blur(4px);
  transition: transform 0.2s, background 0.2s;
}
.example-card:hover { transform: translateY(-2px); background: rgba(255,255,255,0.1); }
.example-card .emoji { font-size: 28px; margin-bottom: 10px; }
.example-card .name { font-weight: 700; color: #fff; }
.example-card .desc { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* Proof */
.proof-card {
  padding: 28px; background: rgba(0,0,0,0.15);
  border: 1px solid var(--border); border-radius: 20px; margin-top: 24px;
  backdrop-filter: blur(4px);
}
.proof-card .metric { font-size: 36px; font-weight: 800; color: var(--accent); }
.proof-card .metric-label { font-size: 14px; color: var(--muted); margin-top: 6px; }

/* CTA */
.cta {
  padding: 80px 0 120px; text-align: center;
  position: relative;
}
.cta h2 { font-size: 32px; font-weight: 800; margin-bottom: 14px; }
.cta p { color: var(--muted); margin-bottom: 36px; font-size: 16px; }
.cta .form-wrap { justify-content: center; }

/* Footer */
footer {
  position: fixed; bottom: 0; left: 0; right: 0;
  padding: 12px 0;
  text-align: center; font-size: 13px; color: rgba(255,255,255,0.35);
  z-index: 50;
}
footer a { color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
footer a:hover { color: #fff; }

/* GitHub icon */
.gh-icon { display: inline-flex; align-items: center; gap: 6px; }
.gh-icon svg { width: 16px; height: 16px; fill: currentColor; vertical-align: middle; }

.divider { width: 48px; height: 3px; background: var(--accent); margin: 80px auto; border-radius: 2px; }

@media (max-width: 480px) {
  .form-wrap { flex-direction: column; }
  .examples { grid-template-columns: 1fr; }
  .hero-grid { gap: 12px; }
  .hero-grid h1 { white-space: normal; }
  .mascot-inline { height: 200%; right: -80%; }
  .crab-inline { width: 50px; }
  .site-name { font-size: 18px; }
  h1 { font-size: 28px; }
  .subtitle { font-size: 15px; margin-bottom: 32px; }
  .hero { padding: 60px 0 40px; }
}
