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

:root {
  --bg:        #0a0b0f;
  --surface:   #12131a;
  --border:    #1e2030;
  --text:      #e2e4ea;
  --muted:     #6b7084;
  --accent:    #6ee7b7;
  --red:       #f87171;
  --yellow:    #fbbf24;
  --cyan:      #67e8f9;
  --purple:    #c084fc;
  --green:     #6ee7b7;
  --font:      'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:      'JetBrains Mono', 'Fira Code', monospace;
  --radius:    10px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; height: auto; }

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- Hero ---- */
.hero {
  padding: 8rem 0 4rem;
  text-align: center;
}

.hero__tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero__title {
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 1.25rem;
}

.hero__subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1.25rem;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn:hover { text-decoration: none; opacity: 0.85; }

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

.btn--ghost {
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
}

/* ---- Terminal ---- */
.terminal-section {
  padding-bottom: 5rem;
}

.terminal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.terminal__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot--red    { background: #ff5f57; }
.dot--yellow { background: #febc2e; }
.dot--green  { background: #28c840; }

.terminal__title {
  margin-left: 0.6rem;
  font-size: 0.7rem;
  color: var(--muted);
  font-family: var(--mono);
}

.terminal__body {
  padding: 0.9rem 1rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  line-height: 1.8;
  overflow-x: auto;
}

.terminal__line {
  white-space: nowrap;
  opacity: 0;
  transform: translateY(4px);
  animation: reveal 0.35s ease forwards;
}

.terminal__line.dim { opacity: 0; }

@keyframes reveal {
  to { opacity: 1; transform: translateY(0); }
}

.terminal__line:nth-child(1)  { animation-delay: 0.2s; }
.terminal__line:nth-child(2)  { animation-delay: 0.4s; }
.terminal__line:nth-child(3)  { animation-delay: 0.55s; }
.terminal__line:nth-child(4)  { animation-delay: 0.7s; }
.terminal__line:nth-child(5)  { animation-delay: 0.85s; }
.terminal__line:nth-child(6)  { animation-delay: 1.3s; }
.terminal__line:nth-child(7)  { animation-delay: 1.55s; }
.terminal__line:nth-child(8)  { animation-delay: 1.8s; }
.terminal__line:nth-child(9)  { animation-delay: 2.05s; }
.terminal__line:nth-child(10) { animation-delay: 2.5s; }
.terminal__line:nth-child(11) { animation-delay: 2.9s; }
.terminal__line:nth-child(12) { animation-delay: 3.2s; }

.terminal__cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--accent);
  opacity: 0;
  animation: blink 1s step-end infinite 3.5s;
  vertical-align: text-bottom;
  border-radius: 1px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

.c-muted  { color: var(--muted); }
.c-cyan   { color: var(--cyan); }
.c-green  { color: var(--green); }
.c-yellow { color: var(--yellow); }
.c-red    { color: var(--red); }
.c-purple { color: var(--purple); }
.c-white  { color: var(--text); font-weight: 600; }

/* ---- How it works ---- */
.how {
  padding: 3rem 0 5rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.step {
  display: grid;
  grid-template-columns: 2rem 1fr;
  grid-template-rows: auto auto;
  column-gap: 1rem;
  row-gap: 0.25rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.step__num {
  grid-row: 1 / -1;
  font-family: var(--mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.5;
  align-self: center;
}

.step h3 {
  font-size: 1rem;
  font-weight: 700;
}

.step p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ---- Screenshots ---- */
.screenshots {
  padding: 0 0 5rem;
}

.screenshots__grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.screenshots__grid img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* ---- Video ---- */
.video {
  padding: 0 0 5rem;
}

.video__embed {
  position: relative;
  padding-bottom: 56.25%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}

.video__embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ---- Footer ---- */
.footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
  .hero { padding: 5rem 0 3rem; }
  .hero__title { font-size: 2.4rem; }
}
