* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: system-ui, sans-serif; color: #353535; background: #e3dfd6; }

/* ─── Logo ────────────────────────────────────────── */
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #353535;
  letter-spacing: -0.02em;
}
.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: linear-gradient(135deg, #4285f4, #41cc6b, #ffeb67, #f0b03b, #ff5777);
  flex-shrink: 0;
}

/* ─── Above fold ──────────────────────────────────── */
.above-fold {
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: #e3dfd6;
}
.above-fold .hero {
  flex: 1;
}

/* ─── Header ──────────────────────────────────────── */
header {
  background: #e3dfd6;
  padding: 1.1rem 5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(53,53,53,0.1);
}
header nav {
  display: flex;
  gap: 0.25rem;
}
header nav a {
  color: rgba(53,53,53,0.55);
  text-decoration: none;
  padding: 0.3rem 0.75rem;
  font-size: 0.9rem;
  transition: color 0.15s;
}
header nav a:hover { color: #353535; }
.cta-link {
  font-family: 'Commit Mono', monospace;
  font-size: 0.82rem;
  font-weight: 600;
  color: #353535;
  text-decoration: none;
  border: 1.5px solid rgba(53,53,53,0.4);
  padding: 0.4rem 1rem;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.cta-link:hover {
  background: #191916;
  color: #e3dfd6;
  border-color: #191916;
}

/* ─── Hero ────────────────────────────────────────── */
.hero {
  background: #e3dfd6;
  padding: 5rem 5rem 4rem;
}
.hero-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Commit Mono', monospace;
  font-size: 0.78rem;
  color: rgba(53,53,53,0.45);
  margin-bottom: 1.75rem;
}
.hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #41cc6b;
  flex-shrink: 0;
}
.hero h1 {
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: #353535;
  margin-bottom: 1.5rem;
}
.gradient-text {
  background: linear-gradient(90deg, #ff5777 0%, #f0b03b 38%, #41cc6b 68%, #4285f4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}
.hero-sub {
  font-size: 1.1rem;
  color: rgba(53,53,53,0.6);
  line-height: 1.65;
  margin-bottom: 2.5rem;
  max-width: 540px;
}
.code-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Commit Mono', monospace;
  font-size: 0.875rem;
  background: #0a0a08;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  max-width: 580px;
  gap: 1rem;
}
.code-main {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  overflow: hidden;
}
.prompt { color: #f0b03b; flex-shrink: 0; }
.code-text {
  color: #e3dfd6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.copy-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.6);
  font-family: 'Commit Mono', monospace;
  font-size: 0.75rem;
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s;
}
.copy-btn:hover { background: rgba(255,255,255,0.15); }
.code-response {
  font-family: 'Commit Mono', monospace;
  font-size: 0.76rem;
  color: rgba(53,53,53,0.38);
  max-width: 580px;
}

/* ─── Features strip ──────────────────────────────── */
.features-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(53,53,53,0.15);
  background: #e3dfd6;
  padding: 0 5rem;
}
.strip-col {
  padding: 2rem 2rem 2.5rem;
  border-right: 1px solid rgba(53,53,53,0.1);
}
.strip-col:first-child { padding-left: 0; }
.strip-col:last-child { border-right: none; padding-right: 0; }
.strip-num {
  display: block;
  font-family: 'Commit Mono', monospace;
  font-size: 0.75rem;
  color: rgba(53,53,53,0.3);
  margin-bottom: 1rem;
}
.strip-col h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #353535;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}
.strip-col p {
  font-size: 0.9rem;
  color: rgba(53,53,53,0.55);
  line-height: 1.65;
}

/* ─── How It Works ────────────────────────────────── */
/* ─── Feature detail ──────────────────────────────── */
.feature-detail {
  background: #191916;
  padding: 5rem 5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.fd-text .section-label { color: rgba(255,255,255,0.35); }
.fd-text h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 1.25rem;
}
.fd-text p {
  font-size: 1rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
}
.fd-code {
  background: #0a0a08;
  border-radius: 10px;
  padding: 2rem 2.25rem;
}
.fd-code pre { margin: 0; }
.fd-code code {
  font-family: 'Commit Mono', monospace;
  font-size: 0.875rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.7);
}
.fd-code .c { color: rgba(255,255,255,0.3); }
.fd-code .k { color: #4285f4; }
.fd-code .s { color: #f0b03b; }

/* ─── How It Works ────────────────────────────────── */
.how-it-works {
  background: #191916;
  color: #ffffff;
  padding: 5rem 5rem;
  position: relative;
  overflow: hidden;
}
.how-it-works::after {
  content: '';
  position: absolute;
  right: 2.5rem;
  bottom: 2.5rem;
  width: 90px;
  height: 90px;
  background-image:
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}
.section-label {
  font-family: 'Commit Mono', monospace;
  font-size: 0.72rem;
  color: #41cc6b;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.how-it-works h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 3.5rem;
}
.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}
.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1.5rem;
}
.step-num {
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  font-weight: 800;
  font-size: 1.1rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: #ffffff;
}
.step-1 { background: #4285f4; }
.step-2 { background: #41cc6b; }
.step-3 { background: #ff5777; }
.step-4 { background: #f0b03b; color: #353535; }
.step h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #ffffff;
}
.step p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
  max-width: 180px;
}
.step-arrow {
  color: rgba(255,255,255,0.2);
  font-size: 1.25rem;
  padding-top: 1.2rem;
  flex-shrink: 0;
}

/* ─── Responsive ──────────────────────────────────── */
@media (max-width: 768px) {
  /* Above fold: let it grow if content overflows */
  .above-fold { height: auto; min-height: 100svh; }

  /* Header: hide nav, keep logo + CTA */
  header { padding: 1rem 1.5rem; }
  header nav { display: none; }

  /* Hero */
  .hero { padding: 2.5rem 1.5rem 2rem; }
  .gradient-text { white-space: normal; }
  .hero-sub { font-size: 1rem; margin-bottom: 2rem; }
  .code-block { max-width: 100%; font-size: 0.78rem; }
  .code-response { font-size: 0.7rem; }

  /* Features strip: 2 columns */
  .features-strip { grid-template-columns: repeat(2, 1fr); padding: 0 1.5rem; }
  .strip-col { padding: 1.5rem 1.25rem 1.75rem; }
  .strip-col:first-child { padding-left: 0; }
  .strip-col:last-child { padding-right: 0; border-right: none; }
  .strip-col:nth-child(2) { border-right: none; }
  .strip-col:nth-child(3) {
    border-right: 1px solid rgba(53,53,53,0.1);
    border-top: 1px solid rgba(53,53,53,0.1);
    padding-left: 0;
  }
  .strip-col:nth-child(4) { border-top: 1px solid rgba(53,53,53,0.1); }

  /* Feature detail: stack */
  .feature-detail { grid-template-columns: 1fr; gap: 2.5rem; padding: 3.5rem 1.5rem; }
  .fd-code { overflow-x: auto; }

  /* How it works */
  .how-it-works { padding: 3.5rem 1.5rem; }
  .steps { flex-direction: column; align-items: center; gap: 1rem; }
  .step { flex: none; width: 100%; max-width: 320px; }
  .step-arrow { transform: rotate(90deg); padding-top: 0; }

  /* Footer */
  footer { padding: 1.25rem; }
}

@media (max-width: 480px) {
  /* Features strip: single column */
  .features-strip { grid-template-columns: 1fr; }
  .strip-col,
  .strip-col:first-child,
  .strip-col:last-child,
  .strip-col:nth-child(2),
  .strip-col:nth-child(3),
  .strip-col:nth-child(4) {
    border-right: none;
    border-top: 1px solid rgba(53,53,53,0.1);
    padding: 1.25rem 0;
  }
  .strip-col:first-child { border-top: none; }
}

/* ─── Footer ──────────────────────────────────────── */
footer {
  background: #191916;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.5rem 5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Commit Mono', monospace;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}
footer .logo { color: #ffffff; }
footer .logo-mark { opacity: 0.7; }
