:root {
  --primary: #ffffff;
  --primary-pressed: #e8e8e8;
  --on-primary: #000000;
  --ink: #f4f4f6;
  --body: #cdcdcd;
  --charcoal: #d3d3d4;
  --mute: #9c9c9d;
  --ash: #6a6b6c;
  --on-dark: #ffffff;
  --on-dark-mute: rgba(255,255,255,0.72);
  --canvas: #07080a;
  --surface: #0d0d0d;
  --surface-elevated: #101111;
  --surface-card: #121212;
  --hairline: #242728;
  --hairline-strong: rgba(255,255,255,0.16);
  --hero-stripe-start: #ff5757;
  --hero-stripe-end: #a1131a;

  --spacing-section: 96px;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-feature-settings: "calt", "kern", "liga", "ss03";
  font-weight: 400;
  color: var(--body);
  background: var(--canvas);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-bold {
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.2px;
}

a { text-decoration: none; color: var(--on-dark); }

/* Utilities */
.text-center { text-align: center; }
.mb-lg { margin-bottom: 24px; }
.mb-xl { margin-bottom: 32px; }
.mb-md { margin-bottom: 16px; }
.text-mute { color: var(--mute); }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography tokens */
.display-xl {
  font-size: 64px;
  line-height: 1.1;
  letter-spacing: 0;
  font-weight: 600;
}
.display-lg {
  font-size: 56px;
  line-height: 1.17;
  letter-spacing: 0.2px;
}
.heading-xl { font-size: 24px; line-height: 1.6; letter-spacing: 0.2px; }
.heading-lg { font-size: 22px; line-height: 1.15; letter-spacing: 0; }
.heading-md { font-size: 20px; line-height: 1.4; letter-spacing: 0.2px; margin-bottom: 8px;}
.heading-sm { font-size: 18px; line-height: 1.4; letter-spacing: 0.2px; }
.body-lg { font-size: 18px; line-height: 1.6; margin-bottom: 32px; color: var(--body); }
.body-md { font-size: 16px; line-height: 1.6; color: var(--body); }
.body-sm { font-size: 14px; line-height: 1.6; }

/* Buttons */
.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2px;
  padding: 8px 16px;
  height: 36px;
  border-radius: 8px;
  transition: background 0.2s;
}
.button-primary:hover { background: var(--primary-pressed); }

.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--on-dark);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2px;
  padding: 8px 16px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--hairline);
  transition: background 0.2s;
  margin-left: 12px;
}
.button-secondary:hover { background: var(--surface-card); }

/* Navigation */
.top-nav {
  height: 56px;
  background: transparent; /* No border in raycast header */
  position: absolute; /* Let it sit on top of canvas/hero */
  top: 0;
  width: 100%;
  z-index: 100;
}
.nav-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}
.logo {
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  letter-spacing: 0.2px;
}
.nav-links {
  display: flex;
  align-items: center;
}
.nav-links a.nav-item {
  font-size: 14px;
  font-weight: 500;
  color: var(--on-dark-mute);
  margin-right: 24px;
  letter-spacing: 0.2px;
  transition: color 0.2s;
}
.nav-links a.nav-item:hover { color: var(--on-dark); }

/* Sections */
.section {
  padding: var(--spacing-section) 0;
}

/* Hero Stripe Band */
.hero-stripe-band {
  position: relative;
  padding: 120px 0 var(--spacing-section);
  background: var(--canvas);
  overflow: hidden;
}
.hero-stripe-bg {
  position: absolute;
  top: -100px;
  left: 0;
  width: 100%;
  height: 400px;
  background: repeating-linear-gradient(45deg, var(--hero-stripe-start), var(--hero-stripe-start) 40px, var(--hero-stripe-end) 40px, var(--hero-stripe-end) 80px);
  opacity: 0.05;
  z-index: 0;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.hero-content h1 {
  margin-bottom: 24px;
}

/* Mockup */
.mockup-container {
  position: relative;
  max-width: 1080px;
  margin: 64px auto 0;
  border-radius: 16px;
  border: 1px solid var(--hairline-strong);
  overflow: hidden;
  box-shadow: 0 32px 64px rgba(0,0,0,0.5); /* subtle shadow just to lift it off pitch black */
  background: var(--surface);
}
.mockup-img {
  width: 100%;
  display: block;
}

/* Grid & Cards */
.grid-2up {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.grid-3up {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card-dark {
  background: var(--surface);
  padding: 24px;
  border-radius: 10px;
  border: 1px solid var(--hairline);
}
.feature-card-elevated {
  background: var(--surface-elevated);
  padding: 24px;
  border-radius: 10px;
  border: 1px solid var(--hairline);
}

/* Store Extension Card (For Screenshots) */
.store-extension-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  padding: 16px;
  border-radius: 8px;
}
.screenshot-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  border: 1px solid var(--hairline);
}

.footer {
  padding: 64px 0;
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
}

/* Breakpoints */
@media (max-width: 1024px) {
  .grid-2up, .grid-3up { grid-template-columns: 1fr; }
  .display-xl { font-size: 48px; }
}
@media (max-width: 768px) {
  .display-xl { font-size: 36px; }
  .nav-item { display: none; }
  .section { padding: 64px 0; }
  .hero-stripe-band { padding-top: 100px; }
}

/* ---- Lightbox (click a screenshot to see it full-size) ---- */
.is-zoomable { cursor: zoom-in; }
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 5vh 5vw;
  cursor: zoom-out;
}
.lightbox-overlay.is-open { display: flex; }
.lightbox-overlay img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  box-shadow: 0 32px 64px rgba(0,0,0,0.6);
}
