/* RelayKit landing — dark-first, orange/amber accent, echoes the app icon */

:root {
  --ink: #121110;
  --ink-soft: #1b1a18;
  --cream: #f7f4ee;
  --cream-dim: #e8e2d5;
  --muted: #8b857a;
  --accent: #ff7a00;
  --accent-soft: #ffb066;
  --accent-deep: #cc5f00;
  --shadow: 0 20px 60px -20px rgba(0,0,0,.6);
  --radius: 14px;
  --font: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--ink); color: var(--cream); font-family: var(--font); line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--accent-soft); text-decoration: none; }
a:hover { color: var(--accent); }

/* ---- nav ---- */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
  background: rgba(18,17,16,.7); backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--cream); font-weight: 600; letter-spacing: -0.01em; }
.brand-name { font-size: 17px; }
.brand-mark {
  width: 22px; height: 22px; border-radius: 6px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  box-shadow: 0 4px 12px rgba(255,122,0,.35);
}
.nav nav { display: flex; gap: 22px; font-size: 14px; }
.nav nav a { color: var(--cream-dim); }
.nav nav a:hover { color: var(--accent-soft); }

/* ---- hero ---- */
.hero {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
  max-width: 1120px; margin: 0 auto; padding: 80px 28px 60px;
}
.eyebrow { margin: 0; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
.hero h1 {
  font-size: clamp(42px, 5.5vw, 68px); line-height: 1.03; letter-spacing: -0.025em;
  margin: .3em 0 .4em;
  background: linear-gradient(90deg, #fff 0%, var(--accent-soft) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { font-size: 19px; color: var(--cream-dim); max-width: 520px; }
.cta-row { display: flex; gap: 14px; margin: 28px 0 10px; flex-wrap: wrap; }
.cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px;
  font-weight: 600; font-size: 15px; letter-spacing: -0.01em;
  border: 1px solid transparent; transition: transform .12s ease, box-shadow .12s ease;
}
.cta:hover { transform: translateY(-1px); }
.cta.primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #fff; box-shadow: 0 10px 30px -10px rgba(255,122,0,.55);
}
.cta.primary:hover { color: #fff; }
.cta.secondary { border-color: rgba(255,255,255,.18); color: var(--cream); }
.cta.small { padding: 8px 14px; font-size: 13px; background: rgba(255,255,255,.06); color: var(--cream); }
.small-note { color: var(--muted); font-size: 13px; margin-top: 6px; }

.hero-device {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.phone {
  width: 300px; aspect-ratio: 9/19.5; border-radius: 42px;
  background: linear-gradient(180deg, #26201b 0%, #1a1613 100%);
  border: 2px solid rgba(255,255,255,.08);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}
.phone::before {
  content: ""; position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 26px; background: #000; border-radius: 14px; z-index: 2;
}

/* Carousel: stacked images, fade-in by class. */
.phone-carousel {
  position: absolute;
  inset: 0;
}
.phone-carousel .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity .8s ease;
  will-change: opacity;
}
.phone-carousel .slide.is-active {
  opacity: 1;
}

/* Dot indicators below the device */
.phone-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.phone-dot {
  appearance: none;
  -webkit-appearance: none;
  width: 7px;
  height: 7px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease, width .2s ease;
}
.phone-dot:hover { background: rgba(255,255,255,.34); }
.phone-dot.is-active {
  background: var(--accent);
  width: 18px;
}
@media (prefers-reduced-motion: reduce) {
  .phone-carousel .slide { transition: none; }
  .phone-dot { transition: none; }
}

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; padding-top: 48px; }
  .hero-device { order: -1; margin-bottom: 8px; }
  .phone { width: 240px; }

  /* Hero text: center to balance the centered phone above. */
  .hero-copy { text-align: center; }
  .hero-copy .lede { margin-left: auto; margin-right: auto; }
  .hero-copy .cta-row { justify-content: center; }

  /* Gallery head reads as a centered hero on mobile. */
  .gallery-head { text-align: center; }
  .gallery-head .gallery-sub { margin-left: auto; margin-right: auto; }
}

/* ---- features ---- */
.features { max-width: 1120px; margin: 40px auto; padding: 60px 28px; }
.features h2 {
  font-size: clamp(28px, 3.5vw, 42px); letter-spacing: -0.02em; line-height: 1.1;
  max-width: 780px; margin: 0 0 36px;
}
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.feature-grid article {
  background: var(--ink-soft); padding: 26px; border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.05);
}
.feature-grid h3 { margin: 12px 0 6px; font-size: 18px; letter-spacing: -0.01em; }
.feature-grid p { color: var(--cream-dim); font-size: 15px; margin: 0; }
.feat-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(255,122,0,.2), rgba(255,122,0,.05));
  display: flex; align-items: center; justify-content: center; color: var(--accent-soft);
}
.feat-icon svg { width: 22px; height: 22px; }

@media (max-width: 880px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---- band ---- */
.band { text-align: center; padding: 72px 28px; background: linear-gradient(180deg, transparent 0%, rgba(255,122,0,.06) 50%, transparent 100%); }
.band blockquote {
  max-width: 780px; margin: 0 auto;
  font-size: clamp(22px, 3vw, 34px); letter-spacing: -0.02em; line-height: 1.25;
  color: var(--cream);
}

/* ---- privacy ---- */
.privacy { max-width: 960px; margin: 0 auto; padding: 60px 28px; }
.privacy-inner {
  background: var(--ink-soft); padding: 42px; border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.05);
}
.privacy h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.02em; margin: 0 0 18px; }
.privacy ul { color: var(--cream-dim); padding-left: 20px; margin: 0 0 22px; }
.privacy li { margin: 8px 0; }

/* ---- install ---- */
.install { max-width: 960px; margin: 0 auto; padding: 60px 28px 80px; }
.install h2 { font-size: clamp(28px, 3.5vw, 42px); letter-spacing: -0.02em; margin: 0 0 28px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps li {
  display: grid; grid-template-columns: 48px 1fr; gap: 18px; align-items: start;
  background: var(--ink-soft); padding: 22px 26px; border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.05);
}
.step-num {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #fff; font-weight: 700;
}
.steps h3 { margin: 0 0 6px; font-size: 18px; }
.steps p { margin: 6px 0 0; color: var(--cream-dim); }
.steps code { background: rgba(255,255,255,.06); padding: 0 6px; border-radius: 4px; font-size: .9em; }

.faq-teaser { text-align: center; padding: 40px 28px 80px; color: var(--cream-dim); }
.faq-teaser h2 { font-size: 22px; margin: 0 0 6px; color: var(--cream); }

/* ---- screenshots gallery ---- */
.gallery {
  padding: 56px 0 64px;
  border-top: 1px solid rgba(255,255,255,.05);
  border-bottom: 1px solid rgba(255,255,255,.05);
  background: linear-gradient(180deg, rgba(255,122,0,.04), transparent 320px);
  overflow: hidden;
}
.gallery-head {
  max-width: 920px;
  margin: 0 auto 32px;
  padding: 0 28px;
}
.gallery .eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  color: var(--accent-soft);
  margin: 0 0 8px;
}
.gallery h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.gallery-sub {
  color: var(--cream-dim);
  margin: 0;
  max-width: 640px;
}
.gallery-rail {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  padding: 18px 28px 26px;
  scroll-padding-left: 28px;
  -webkit-overflow-scrolling: touch;
}
.gallery-rail::-webkit-scrollbar { height: 8px; }
.gallery-rail::-webkit-scrollbar-track { background: transparent; }
.gallery-rail::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.18);
  border-radius: 999px;
}
.shot {
  flex: 0 0 auto;
  width: clamp(220px, 26vw, 300px);
  margin: 0;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.shot img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 24px 48px -16px rgba(0,0,0,.55);
  background: rgba(255,255,255,.02);
}
.shot figcaption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 6px;
  font-size: 13px;
  line-height: 1.45;
}
.shot figcaption strong {
  color: var(--cream);
  font-weight: 600;
}
.shot figcaption span {
  color: var(--cream-dim);
  font-size: 12px;
}
.gallery-hint {
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 6px 0 0;
}

/* ---- footer ---- */
.site-footer { border-top: 1px solid rgba(255,255,255,.06); padding: 40px 28px 60px; }
.site-footer-inner { max-width: 1120px; margin: 0 auto; display: grid; gap: 20px; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; }
.site-footer nav a { color: var(--cream-dim); }
.site-footer .fine { color: var(--muted); font-size: 12px; max-width: 780px; line-height: 1.6; }
