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

:root {
  --accent: #00d4aa;
  --accent-light: #00f0c0;
  --accent-wash: rgba(0, 212, 170, 0.08);
  --accent-wash-strong: rgba(0, 212, 170, 0.15);

  --bg: #faf8f5;
  --bg-warm: #f5f0ea;
  --bg-cool: #f0f4f8;

  --text: #1a1a2e;
  --text-secondary: #4a4a5a;
  --text-muted: #7a7a8a;

  --surface: #ffffff;
  --surface-elevated: #ffffff;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.12);

  --font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --radius: 12px;
  --radius-lg: 20px;

  --watercolor-teal: radial-gradient(ellipse at center, rgba(0, 212, 170, 0.12) 0%, rgba(0, 212, 170, 0.04) 40%, transparent 70%);
  --watercolor-blue: radial-gradient(ellipse at center, rgba(100, 180, 255, 0.08) 0%, rgba(100, 180, 255, 0.03) 40%, transparent 70%);
  --watercolor-warm: radial-gradient(ellipse at center, rgba(255, 200, 150, 0.08) 0%, rgba(255, 200, 150, 0.03) 40%, transparent 70%);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Watercolor backgrounds ── */

.watercolor-bg {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  filter: blur(60px);
}

.hero-bg {
  top: -120px;
  right: -200px;
  width: 800px;
  height: 600px;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(0, 212, 170, 0.14) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 60%, rgba(100, 180, 255, 0.09) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 80%, rgba(255, 190, 140, 0.07) 0%, transparent 50%);
}

.section-bg-1 {
  top: -60px;
  left: -150px;
  width: 600px;
  height: 400px;
  background:
    radial-gradient(ellipse at 40% 50%, rgba(0, 212, 170, 0.10) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(180, 140, 255, 0.06) 0%, transparent 50%);
}

.section-bg-2 {
  bottom: -80px;
  right: -100px;
  width: 500px;
  height: 400px;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(0, 212, 170, 0.10) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 70%, rgba(100, 200, 255, 0.07) 0%, transparent 50%);
}

.section-bg-3 {
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 350px;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(0, 212, 170, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 30% 30%, rgba(255, 200, 150, 0.06) 0%, transparent 50%);
}

/* ── Nav ── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}

.nav.scrolled {
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

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

.nav-cta {
  background: var(--text);
  color: var(--bg) !important;
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 13px !important;
  transition: background 0.2s !important;
}

.nav-cta:hover {
  background: var(--text-secondary) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ── Hero ── */

.hero {
  position: relative;
  padding: 140px 0 80px;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.hero-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--text);
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

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

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0, 212, 170, 0.3);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

/* Hero illustration */

.hero-illustration {
  position: relative;
  z-index: 1;
  max-width: 580px;
  margin: 60px auto 0;
}

.browser-frame {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  overflow: hidden;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.06),
    0 1px 4px rgba(0, 0, 0, 0.04);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-warm);
  border-bottom: 1px solid var(--border);
}

.browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.browser-dot.red { background: #ff5f57; }
.browser-dot.yellow { background: #ffbd2e; }
.browser-dot.green { background: #28c840; }

.browser-url {
  margin-left: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.browser-body {
  position: relative;
  padding: 24px;
  min-height: 200px;
  background:
    linear-gradient(135deg, rgba(0, 212, 170, 0.03) 0%, transparent 50%),
    var(--surface);
}

.browser-element {
  border-radius: 6px;
  background: var(--accent-wash);
  border: 1px solid rgba(0, 212, 170, 0.12);
}

.browser-element.el-1 {
  width: 60%;
  height: 18px;
  margin-bottom: 12px;
}

.browser-element.el-2 {
  width: 40%;
  height: 18px;
  margin-bottom: 20px;
}

.browser-element.el-3 {
  width: 100%;
  height: 80px;
  margin-bottom: 12px;
}

.browser-element.el-4 {
  width: 25%;
  height: 32px;
  background: var(--accent-wash-strong);
  border-color: rgba(0, 212, 170, 0.2);
}

.browser-cursor {
  position: absolute;
  right: 100px;
  top: 80px;
  width: 16px;
  height: 20px;
  background: var(--accent);
  clip-path: polygon(0 0, 100% 60%, 40% 60%, 55% 100%, 35% 100%, 20% 60%, 0 80%);
  animation: cursor-move 4s ease-in-out infinite;
  opacity: 0.8;
}

@keyframes cursor-move {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-60px, 40px); }
  50% { transform: translate(-30px, 70px); }
  75% { transform: translate(20px, 20px); }
}

/* ── How it works ── */

.how-it-works {
  position: relative;
  padding: 100px 0;
}

h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.8px;
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 17px;
  margin-bottom: 56px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.step {
  flex: 0 1 260px;
  text-align: center;
  padding: 0 16px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 20px;
}

.step-icon {
  margin-bottom: 16px;
}

.step h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.step p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.step-connector {
  flex: 0 0 auto;
  padding-top: 52px;
  opacity: 0.6;
}

/* ── Features ── */

.features {
  padding: 100px 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  border-color: rgba(0, 212, 170, 0.3);
  box-shadow: 0 4px 24px rgba(0, 212, 170, 0.08);
}

.feature-icon {
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

.feature-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ── Demo ── */

.demo {
  position: relative;
  padding: 100px 0;
}

.demo-placeholder {
  max-width: 720px;
  margin: 0 auto;
}

.demo-frame {
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, var(--bg-warm) 0%, var(--bg-cool) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.demo-play svg {
  opacity: 0.3;
  transition: opacity 0.2s;
}

.demo-frame:hover .demo-play svg {
  opacity: 0.5;
}

.demo-caption {
  font-size: 14px;
  color: var(--text-muted);
}

/* ── Quickstart ── */

.quickstart {
  padding: 100px 0;
}

.code-block {
  max-width: 600px;
  margin: 0 auto;
  background: #1e1e2e;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.code-lang {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.code-copy {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}

.code-copy:hover {
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
}

.code-copy.copied {
  color: var(--accent);
}

.code-block pre {
  padding: 20px 24px;
  overflow-x: auto;
}

.code-block code {
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.7;
  color: #cdd6f4;
}

.code-comment {
  color: #6c7086;
}

.code-cmd {
  color: var(--accent);
}

.quickstart-note {
  text-align: center;
  margin-top: 28px;
  font-size: 15px;
  color: var(--text-secondary);
}

.quickstart-note code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--accent-wash);
  padding: 3px 8px;
  border-radius: 5px;
  color: var(--text);
}

/* ── CTA ── */

.cta {
  position: relative;
  padding: 100px 0;
  text-align: center;
}

.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

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

.badges img {
  border-radius: 4px;
}

/* ── Footer ── */

.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-muted);
}

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

.footer-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text);
}

/* ── Responsive ── */

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(250, 248, 245, 0.98);
    backdrop-filter: blur(16px);
    padding: 20px 24px;
    flex-direction: column;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-cta {
    align-self: flex-start;
  }

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

  .hero-subtitle {
    font-size: 16px;
  }

  .steps {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .step {
    max-width: 320px;
  }

  .step-connector {
    padding-top: 0;
    transform: rotate(90deg);
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 32px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
    max-width: 280px;
  }

  .code-block code {
    font-size: 12px;
  }
}
