/* ─────────────────────────────────────────────────────────────────────────
   VFX Gallery — Landing Page Styles
   Design system tokens from the application itself.
───────────────────────────────────────────────────────────────────────────── */

/* ── 1. Tokens ─────────────────────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg-primary:   #0d0d0f;
  --bg-secondary: #1e1e24;
  --bg-tertiary:  #24242a;
  --bg-elevated:  #2a2a30;
  --bg-hover:     #3a3a42;

  /* Accent */
  --accent:       #00d68f;
  --accent-dark:  #00b377;
  --accent-glow:  rgba(0, 214, 143, 0.4);
  --accent-subtle:rgba(0, 214, 143, 0.1);

  /* Text */
  --text-primary:  #f0f0f0;
  --text-secondary:#a0a0a8;
  --text-muted:    #606068;

  /* Borders */
  --border-subtle: rgba(255,255,255,0.06);
  --border-default:rgba(255,255,255,0.10);
  --border-accent: rgba(0,214,143,0.3);

  /* Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 18px;

  /* Shadows */
  --shadow-sm:   0 2px 4px rgba(0,0,0,0.30);
  --shadow-md:   0 4px 12px rgba(0,0,0,0.40);
  --shadow-lg:   0 8px 24px rgba(0,0,0,0.50);
  --shadow-glow: 0 0 20px rgba(0,214,143,0.40);

  /* Transitions */
  --t-fast:   0.1s ease;
  --t-smooth: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── 2. Reset / Base ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
code {
  font-family: 'Consolas', 'Fira Code', monospace;
  font-size: .88em;
  background: var(--bg-elevated);
  color: var(--accent);
  padding: .1em .4em;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-subtle);
}

/* ── 3. Layout helpers ─────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

/* ── 4. Scroll-reveal base ─────────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.45s cubic-bezier(0.4,0,0.2,1) var(--delay, 0s),
              transform 0.45s cubic-bezier(0.4,0,0.2,1) var(--delay, 0s);
}
.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── 5. Section title ──────────────────────────────────────────────────── */
.section__title {
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 56px;
}

/* ── 6. Buttons ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--r-md);
  font-size: .9375rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--t-smooth), box-shadow var(--t-smooth),
              transform var(--t-fast), color var(--t-smooth);
  white-space: nowrap;
  border: none;
  text-decoration: none;
}

.btn--primary {
  background: var(--accent);
  color: #0d0d0f;
  box-shadow: var(--shadow-glow);
}
.btn--primary:hover {
  background: var(--accent-dark);
  box-shadow: 0 0 32px rgba(0,214,143,.55);
  transform: translateY(-1px);
}
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-default);
}
.btn--ghost:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--border-accent);
}

.btn--lg {
  padding: 15px 32px;
  font-size: 1.0625rem;
}

/* ── 7. HERO ───────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 80px 0;
}

/* CSS grid background */
.hero__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

/* Radial glow behind content */
.hero__radial {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(0,214,143,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

/* Brand */
.hero__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero__logo-icon { flex-shrink: 0; }
.hero__logo-text {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--text-primary);
}

/* Version badge */
.hero__badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: var(--accent-subtle);
  color: var(--accent);
  border: 1px solid var(--border-accent);
  border-radius: 999px;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .02em;
}

/* Headline */
.hero__headline {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.03em;
  color: var(--text-primary);
}

.hero__sub {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  color: var(--text-secondary);
  font-weight: 400;
}

/* CTA row */
.hero__cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

/* ── 8. FEATURES ───────────────────────────────────────────────────────── */
.features { background: var(--bg-secondary); }

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  transition: background var(--t-smooth), border-color var(--t-smooth),
              transform var(--t-smooth), box-shadow var(--t-smooth);
}
.feature-card:hover {
  background: var(--bg-elevated);
  border-color: var(--border-accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.feature-card__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-subtle);
  border: 1px solid var(--border-accent);
  border-radius: var(--r-md);
  color: var(--accent);
  margin-bottom: 16px;
  flex-shrink: 0;
}

.feature-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.4;
}

.feature-card__desc {
  font-size: .875rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ── 9. HOW IT WORKS ───────────────────────────────────────────────────── */
.how { background: var(--bg-primary); }

.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 0 16px;
}

.step__num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent-subtle);
  border: 2px solid var(--accent);
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-glow);
}

.step__body { }
.step__title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.step__desc {
  font-size: .875rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.step__connector {
  flex-shrink: 0;
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  opacity: .35;
  margin-top: 25px; /* align with center of step__num */
}

/* ── 10. REQUIREMENTS ──────────────────────────────────────────────────── */
.requirements { background: var(--bg-secondary); }

.req-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.req-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: 14px 20px;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: border-color var(--t-smooth), background var(--t-smooth);
}
.req-item svg { color: var(--accent); flex-shrink: 0; }
.req-item:hover {
  border-color: var(--border-accent);
  background: var(--bg-elevated);
}

/* ── 11. DOWNLOAD CTA ──────────────────────────────────────────────────── */
.cta {
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(0,214,143,0.09) 0%, transparent 70%);
  pointer-events: none;
}

.cta__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.cta__heading {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--text-primary);
}

.cta__version {
  font-size: 1rem;
  color: var(--text-secondary);
}
.cta__version strong { color: var(--accent); font-weight: 600; }

.cta__license {
  font-size: .8125rem;
  color: var(--text-muted);
}
.cta__license a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--t-fast);
}
.cta__license a:hover { color: var(--accent); }

/* ── 12. FOOTER ────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 28px 0;
  background: var(--bg-primary);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: .875rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.footer__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  transition: color var(--t-fast);
}
.footer__link:hover { color: var(--accent); }

.footer__sep { opacity: .4; }

/* ── 13. Responsive ────────────────────────────────────────────────────── */

/* Tablet: 640–1023px */
@media (max-width: 1023px) {
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .step__connector { width: 48px; }
}

/* Mobile: <640px */
@media (max-width: 639px) {
  .section { padding: 64px 0; }

  .hero { padding: 72px 0 56px; }
  .hero__headline { font-size: 2rem; }
  .hero__cta { flex-direction: column; width: 100%; }
  .hero__cta .btn { width: 100%; justify-content: center; }

  .features__grid { grid-template-columns: 1fr; gap: 14px; }

  /* Vertical stepper on mobile */
  .steps {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }
  .step { flex-direction: row; text-align: left; gap: 20px; padding: 0; width: 100%; max-width: 480px; }
  .step__num { flex-shrink: 0; }
  .step__connector {
    width: 2px;
    height: 40px;
    margin: 0;
    align-self: flex-start;
    margin-left: 25px; /* center with step__num */
    background: linear-gradient(180deg, var(--accent), var(--accent-dark));
  }

  .req-list { flex-direction: column; align-items: stretch; }
  .req-item { width: 100%; }

  .section__title { margin-bottom: 36px; }
}
