/* ===== Design tokens ===== */
:root {
  --purple: #9b6fd6;
  --purple-deep: #7c4dc4;
  --green: #3fb872;
  --green-light: #4ade80;

  --bg: #1c1c1e;
  --bg-alt: #242426;
  --text: #f2f2f5;
  --text-secondary: #a8a8b3;
  --card-bg: rgba(255, 255, 255, 0.06);
  --card-border: rgba(255, 255, 255, 0.12);
  --nav-bg: rgba(28, 28, 30, 0.75);
  --window-chrome: rgba(40, 40, 44, 0.9);
  --mark-bg: rgba(250, 204, 21, 0.75);
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse 800px 500px at 15% -5%, rgba(124, 77, 196, 0.18), transparent),
    radial-gradient(ellipse 700px 500px at 90% 15%, rgba(47, 158, 92, 0.12), transparent);
  background-attachment: fixed;
}

code {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  background: rgba(124, 77, 196, 0.18);
  padding: 0.15em 0.4em;
  border-radius: 6px;
  font-size: 0.92em;
}

a { color: inherit; }

mark {
  background: var(--mark-bg);
  color: #1c1c1e;
  border-radius: 3px;
  padding: 0 1px;
}

/* ===== Nav ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--card-border);
}

.navbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--text);
}

.brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  transition: color 0.15s ease;
}

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

.nav-github {
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--purple);
  color: #fff !important;
}

/* ===== Hero ===== */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-icon {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  box-shadow: var(--shadow);
  margin-bottom: 28px;
}

.hero h1 {
  font-size: 4rem;
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-deep) 60%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tagline {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 12px 0 6px;
}

.subtagline {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.6;
  margin: 0 auto;
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
}

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--purple-deep));
  color: #fff;
  box-shadow: 0 10px 30px -8px rgba(124, 77, 196, 0.55);
}

.btn-secondary {
  background: var(--card-bg);
  color: var(--text);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(12px);
}

/* ===== Hero mockup (real screenshot) ===== */
.hero-mockup {
  margin-top: 64px;
  width: 100%;
  max-width: 520px;
}

.hero-shot {
  display: block;
  width: 100%;
  border-radius: 20px;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
}

/* ===== Layout comparison ===== */
.layout-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 930px;
  margin: 56px auto 0;
}

.layout-compare figure {
  margin: 0;
}

.layout-compare img {
  display: block;
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
}

.layout-compare figcaption {
  text-align: center;
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ===== Sections ===== */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 100px 24px;
}

.section-alt {
  max-width: none;
  background: linear-gradient(180deg, transparent, rgba(124, 77, 196, 0.06), transparent);
}

.section-alt > * {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  max-width: 1100px;
  margin: 0 auto 20px;
  line-height: 1.25;
}

.section-lede {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto 56px;
  line-height: 1.6;
}

/* ===== Feature grid ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.feature-grid .feature-card:last-child {
  grid-column: 2;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 28px 26px;
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: var(--shadow);
}

.feature-icon {
  font-size: 1.6rem;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(124, 77, 196, 0.2), rgba(47, 158, 92, 0.18));
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.08rem;
  margin: 0 0 8px;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ===== Search section ===== */
.search-demos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.search-demo {
  text-align: center;
}

.search-shot {
  height: 225px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
}

.search-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.op-dim { opacity: 0.55; }

.search-demo h3 {
  font-size: 1.05rem;
  margin: 0 0 8px;
}

.search-demo p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
  text-align: left;
}

.search-combine {
  text-align: center;
  margin-top: 56px;
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* ===== Design section ===== */
.design-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.design-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 28px;
  backdrop-filter: blur(16px) saturate(160%);
  box-shadow: var(--shadow);
}

.design-card h3 {
  font-size: 1.05rem;
  margin: 0 0 8px;
}

.design-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.swatch-row {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.swatch {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.blur-demo {
  height: 60px;
  border-radius: 14px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(124,77,196,0.5), rgba(47,158,92,0.4));
  position: relative;
  overflow: hidden;
}

.blur-demo-inner {
  position: absolute;
  inset: 8px;
  border-radius: 8px;
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.4);
}

.font-demo {
  height: 60px;
  display: flex;
  align-items: center;
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--purple);
}

/* ===== Footer ===== */
.footer {
  text-align: center;
  padding: 80px 24px 60px;
  border-top: 1px solid var(--card-border);
  margin-top: 40px;
}

.footer-inner {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.footer-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  opacity: 0.9;
}

.footer p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.footer-fine {
  font-size: 0.85rem;
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .nav-links { gap: 16px; font-size: 0.85rem; }
  .hero h1 { font-size: 2.8rem; }
  .tagline { font-size: 1.15rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid .feature-card:last-child { grid-column: 1; }
  .search-demos { grid-template-columns: 1fr; }
  .design-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 1.7rem; }
  .layout-compare { grid-template-columns: 1fr; }
}
