/* Obsidian Pro — dark glassmorphic theme (see stitch_modern_site_visual_refresh/DESIGN.md) */

:root {
  --bg: #060e20;
  --bg-alt: #0b1326;
  --text: #dae2fd;
  --text-dim: #a8b2d1;
  --card: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.1);
  --accent: #d2bbff;
  --accent-2: #adc6ff;
  --grad: linear-gradient(100deg, #7c3aed, #0566d9);
  --kbd-bg: linear-gradient(180deg, #31394d 0%, #171f33 100%);
  --shadow: 0 20px 60px -15px rgba(124, 58, 237, 0.15);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html { scroll-behavior: smooth; }

body { overflow-x: hidden; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ambient corner glows behind everything */
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}
body::before {
  top: -10%; left: -10%;
  width: 40vw; height: 40vw;
  background: rgba(124, 58, 237, 0.2);
}
body::after {
  bottom: -10%; right: -10%;
  width: 30vw; height: 30vw;
  background: rgba(5, 102, 217, 0.1);
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 680px; }

h1 {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-align: center;
  margin-bottom: 2.6rem;
}

.gradient-text {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- top nav ---------- */

.topnav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
  background: rgba(6, 14, 32, 0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}

.topnav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand img { width: 30px; height: 30px; border-radius: 7px; }

.topnav nav { display: flex; gap: 0.4rem; }

.topnav nav a {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  text-decoration: none;
  padding: 0.5rem 0.8rem;
  border-radius: 0.5rem;
  transition: color 0.3s, background 0.3s;
}

.topnav nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }

.chip {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--accent);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ---------- hero ---------- */

.hero { padding: 9.5rem 0 6rem; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 3rem;
  align-items: center;
}

.app-icon {
  width: 120px;
  height: 120px;
  margin-bottom: 1.8rem;
  border-radius: 27px;
  box-shadow: var(--shadow);
}

.sub {
  color: var(--text-dim);
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  max-width: 32rem;
  margin: 1.4rem 0 2.2rem;
}

.cta { display: flex; flex-direction: column; gap: 0.9rem; align-items: flex-start; }

.badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  padding: 1.1rem 2rem;
  border-radius: 1rem;
  background: var(--grad);
  color: #fff;
  transition: box-shadow 0.3s, transform 0.3s;
}

.badge:hover {
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.4);
  transform: scale(1.02);
}

.requirements {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  opacity: 0.7;
}

/* fake menu bar above the real menu screenshot */
.hero-shot { justify-self: center; position: relative; }

.hero-shot::before {
  content: "";
  position: absolute;
  inset: -10%;
  background: rgba(124, 58, 237, 0.2);
  filter: blur(100px);
  border-radius: 50%;
}

.menubar-mock {
  position: relative;
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  align-items: center;
  width: 250px;
  padding: 5px 12px;
  border-radius: 8px 8px 0 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-bottom: none;
  font-size: 12px;
  font-family: var(--mono);
  color: var(--text-dim);
}

.menubar-icon { font-weight: 600; color: var(--text); }

.hero-shot img {
  position: relative;
  display: block;
  box-shadow: 0 20px 60px rgba(2, 6, 23, 0.6), var(--shadow);
  border-radius: 10px;
  border: 1px solid var(--border);
}

/* ---------- sections ---------- */

section { padding: 6rem 0; }

section.steps {
  background:
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    rgba(6, 14, 32, 0.5);
  background-size: 40px 40px, 40px 40px, auto;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.grid.three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--card);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 2rem 1.8rem;
  transition: transform 0.3s, border-color 0.3s;
}

.card:hover { transform: translateY(-6px); border-color: rgba(255, 255, 255, 0.2); }

.card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.6rem; }
.card p { color: var(--text-dim); font-size: 0.95rem; }

.step-num {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.25);
}

kbd {
  font-family: var(--mono);
  font-size: 0.82em;
  font-weight: 500;
  color: var(--text);
  background: var(--kbd-bg);
  border: 1px solid #4a4455;
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 0.2em 0.5em;
  margin: 0 2px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.container.narrow p { margin-bottom: 1.1rem; }

.manifesto { text-align: center; }
.manifesto p {
  color: var(--text-dim);
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  margin-bottom: 1.4rem;
}

.about-shot { text-align: center; padding-top: 0; position: relative; }
.about-shot img {
  box-shadow: var(--shadow);
  border-radius: 1.2rem;
  border: 1px solid var(--border);
  max-width: 100%;
}

/* ---------- footer ---------- */

footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 2rem 0;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}

.footer-row { display: flex; justify-content: space-between; align-items: center; }
.footer-row nav { display: flex; gap: 1.4rem; }
footer a { color: var(--text-dim); text-decoration: none; transition: color 0.3s; }
footer a:hover { color: var(--accent); }

/* ---------- reveal animation ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .card:hover, .badge:hover { transform: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 760px) {
  .topnav nav { display: none; }
  .hero { padding-top: 7.5rem; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy .app-icon { margin-inline: auto; }
  .sub { margin-inline: auto; }
  .cta { align-items: center; }
  .hero-shot { margin-top: 1rem; }
  .grid.three { grid-template-columns: 1fr; }
}
