@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Manrope:wght@400;500;600;700&display=swap');

:root {
  --bg: #05050a;
  --bg-soft: #0a0a13;
  --glass-fill: rgba(255, 255, 255, 0.045);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-glint: rgba(255, 255, 255, 0.5);
  --navbar-fill: rgba(255, 255, 255, 0.02);
  --edge-width: 3px;
  --edge-depth: 8px;
  --dust: #f2c879;
  --dust-dim: #8a6f3f;
  --text: #f5f3ee;
  --text-muted: #9c99aa;
  --accent-cool: #8fa8ff;
  --radius-lg: 28px;
  --radius-md: 18px;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Manrope', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
  min-height: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Particle field ---------- */
#particle-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* .topbar-ribbon (from app-shell.css) isn't position:fixed by default —
   it doesn't need to be on the webtop page, which never scrolls. This
   page does scroll, so it's made sticky here specifically, without
   touching the shared rule other pages rely on. */
.topbar-ribbon {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  /* The ribbon's height is normally stretched by 30px-tall right-side
     buttons (Upgrade, account, Log out) on the webtop/account pages —
     it's not a fixed value. This page (and signup) has no such content,
     so without this, it renders visibly shorter (28px vs. 43px measured
     directly) than the pages it's meant to match. */
  min-height: 43px;
}

/* .signup-wrap (used by signup.html, which also loads this stylesheet
   for its background) was built assuming a normal, in-flow navbar that
   naturally pushes it down — the fixed-positioning override above
   removes the ribbon from flow, so without this, .signup-wrap's content
   would sit underneath it instead of below it. */
.signup-wrap {
  padding-top: calc(40px + 43px);
  min-height: calc(100vh - 43px);
}

/* ---------- Layout shell ---------- */
main {
  position: relative;
  z-index: 1;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 6vw 80px;
  gap: 4vw;
  max-width: 1240px;
  margin: 0 auto;
}

/* ---------- Slideshow card ---------- */
.slideshow-card {
  position: relative;
  flex: 0 0 auto;
  width: min(42vw, 520px);
  height: 440px;
  border-radius: var(--radius-lg);
  background: var(--glass-fill);
  border: var(--edge-width) solid var(--glass-border);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

/* Wide variant — used when the gallery sits in its own full-width row
   between the hero and the "Why a webtop" section, sized to match that
   section's own content width rather than the narrower hero-side size. */
.slideshow-card--wide {
  width: 100%;
  max-width: 980px;
  height: 480px;
  margin: 80px auto 0;
}

.slide {
  position: absolute;
  width: 78%;
  height: 82%;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(145deg, #1b1b26, #0d0d14);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transition: opacity 1.1s ease, transform 1.1s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slide__placeholder {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.slide.is-active {
  opacity: 1;
}

/* same magnitude of tilt, alternating direction per slide */
.slide[data-tilt='1'] { transform: rotate(-4deg) scale(0.98); }
.slide[data-tilt='2'] { transform: rotate(4deg) scale(0.98); }
.slide[data-tilt='3'] { transform: rotate(-4deg) scale(0.98); }
.slide.is-active[data-tilt='1'] { transform: rotate(-4deg) scale(1); }
.slide.is-active[data-tilt='2'] { transform: rotate(4deg) scale(1); }
.slide.is-active[data-tilt='3'] { transform: rotate(-4deg) scale(1); }

/* ---------- Hero copy ---------- */
.hero__copy {
  flex: 1 1 auto;
  max-width: 620px;
}

.hero__eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--dust);
  margin-bottom: 18px;
  display: inline-block;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 4.2vw, 3.6rem);
  line-height: 1.08;
  margin: 0 0 24px;
  color: var(--text);
}

.hero__desc {
  font-family: var(--font-body);
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0 0 36px;
  max-width: 52ch;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  color: #0a0a0f;
  background: linear-gradient(135deg, var(--dust), #e8a34f);
  padding: 15px 34px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 18px 40px -14px rgba(242, 200, 121, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 46px -14px rgba(242, 200, 121, 0.6);
}

/* ---------- Long scroll sections (for testing scroll/parallax) ---------- */
.section {
  padding: 140px 6vw;
  max-width: 980px;
  margin: 0 auto;
}

.section__eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-cool);
  margin-bottom: 16px;
  display: block;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin: 0 0 20px;
}

.section__body {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 64ch;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.feature-card {
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 28px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 10px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

footer {
  position: relative;
  z-index: 1;
  padding: 60px 6vw 80px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  border-top: 1px solid var(--glass-border);
}

@media (max-width: 860px) {
  .hero {
    flex-direction: column;
    padding-top: 120px;
    text-align: center;
  }
  .hero__copy {
    max-width: 100%;
  }
  .slideshow-card {
    width: min(80vw, 420px);
    height: 380px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .navbar::before {
    transition: none;
    display: none;
  }
  .slide {
    transition: opacity 0.3s ease;
  }
}