:root {
  --bg: #f7f7f5;
  --fg: #111111;
  --muted: #666661;
  --surface: #ffffff;
  --soft: #efefec;
  --border: #dfdfda;
}

body.dark {
  --bg: #111110;
  --fg: #f7f7f4;
  --muted: #a3a39f;
  --surface: #171716;
  --soft: #1f1f1d;
  --border: #2d2d2a;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  transition: background .25s ease, color .25s ease;
  background-image:
    radial-gradient(circle at 10% 0%, color-mix(in srgb, var(--soft) 72%, transparent), transparent 32%),
    radial-gradient(circle at 100% 20%, color-mix(in srgb, var(--soft) 62%, transparent), transparent 38%);
}

.wrap { width: min(1080px, 92vw); margin: 0 auto; }

.nav { position: fixed; inset: 0 0 auto 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); }
.nav-inner { height: 72px; display: flex; align-items: center; justify-content: space-between; }
.brand { color: var(--fg); text-decoration: none; font-weight: 800; font-size: 1.2rem; letter-spacing: -0.03em; }
.theme-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--fg);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  cursor: pointer;
}

.hero {
  min-height: 100vh;
  display: grid;
  align-content: center;
  text-align: center;
  padding-top: 56px;
}
.hero-brand {
  margin: 0 0 8px;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.eyebrow {
  margin: 0 0 16px;
  font-size: 0.78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.title {
  margin: 0;
  font-size: clamp(2.2rem, 7.2vw, 5.5rem);
  letter-spacing: -0.05em;
  line-height: 1.03;
  min-height: 1.2em;
}

.cursor { animation: blink 1s step-end infinite; }
.cursor-done { animation: none; opacity: .34; }
@keyframes blink { 50% { opacity: 0; } }

.subtitle {
  margin: 20px auto 0;
  max-width: 860px;
  color: var(--muted);
  font-size: clamp(1rem, 2.3vw, 1.3rem);
  line-height: 1.55;
}

.actions { margin-top: 28px; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.btn {
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  color: var(--fg);
  text-decoration: none;
  background: var(--surface);
  font-weight: 700;
}
.btn-primary { background: var(--fg); color: var(--bg); border-color: var(--fg); }

.section { padding: 96px 0 8px; opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.section.in { opacity: 1; transform: translateY(0); }
.section + .section {
  border-top: 1px solid color-mix(in srgb, var(--border) 74%, transparent);
}
.section-title {
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  color: var(--muted);
}
.block-title {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  letter-spacing: -0.03em;
}
.lead {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.75;
  font-size: 1.06rem;
}

.bullet-list { margin: 20px 0 0; padding-left: 18px; color: var(--fg); line-height: 1.9; }

.steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.steps li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  padding: 14px;
}
.steps span {
  width: 40px; height: 40px; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--fg); color: var(--bg); font-weight: 700;
}
.steps p { margin: 6px 0 0; color: var(--muted); }

.project-grid { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.project-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  padding: 16px;
  box-shadow: 0 7px 22px color-mix(in srgb, var(--fg) 7%, transparent);
}
.project-card h3 { margin: 0 0 8px; }
.project-card p { margin: 0; color: var(--muted); line-height: 1.6; }

.testimonials { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
blockquote {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  padding: 18px;
  line-height: 1.7;
  box-shadow: 0 7px 22px color-mix(in srgb, var(--fg) 7%, transparent);
}
cite { display: block; margin-top: 12px; color: var(--muted); font-style: normal; }

.connect-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-shadow: 0 7px 22px color-mix(in srgb, var(--fg) 7%, transparent);
}
.connect-card p { margin: 0; color: var(--muted); font-size: 1.05rem; }

.footer { padding: 56px 0 44px; color: var(--muted); }

.reveal { opacity: 0; transform: translateY(14px); animation: rise .7s ease forwards; }
.delay-1 { animation-delay: .12s; }
.delay-2 { animation-delay: .22s; }
.delay-3 { animation-delay: .32s; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

@media (max-width: 900px) {
  .project-grid { grid-template-columns: 1fr; }
  .testimonials { grid-template-columns: 1fr; }
  .connect-card { flex-direction: column; align-items: flex-start; }
}
