/* STVS – stvs.uk | Premium dark theme */

:root {
  --bg-deep: #0a0e17;
  --bg-card: #111827;
  --bg-elevated: #1a2235;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent: #c4b5a0;
  --accent-bright: #e8dfd0;
  --border: rgba(148, 163, 184, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --space: 1.5rem;
  --container: min(90vw, 720px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100vh;
}

/* ----- Hero ----- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space) 1rem 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--bg-deep) url("../assets/hero-bg.png") center/cover no-repeat;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 14, 23, 0.4) 0%,
    rgba(10, 14, 23, 0.75) 50%,
    rgba(10, 14, 23, 0.95) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 520px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent-bright);
  margin: 0 0 0.25em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-style: italic;
  color: var(--accent);
  margin: 0 0 2rem;
  letter-spacing: 0.04em;
}

.hero-status {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin: 0 0 0.35em;
}

.hero-date {
  font-size: 1.125rem;
  color: var(--accent);
  margin: 0 0 2rem;
}

.hero-cta {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--bg-deep);
  background: var(--accent-bright);
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.hero-cta:hover {
  background: #fff;
  transform: translateY(-2px);
}

.hero-scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: fadeIn 1s ease 1.5s both;
}

.hero-scroll svg {
  animation: bounce 2s ease infinite;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ----- Main ----- */
.main {
  position: relative;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4rem 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  color: var(--accent-bright);
  margin: 0 0 0.5em;
  text-align: center;
}

.section-lead {
  font-size: 1.125rem;
  color: var(--text-secondary);
  text-align: center;
  max-width: 540px;
  margin: 0 auto 2.5rem;
  line-height: 1.65;
}

/* Cards */
.intro-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  margin-bottom: 1.5rem;
}

.intro-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 0.75em;
}

.intro-card p,
.intro-card ul {
  margin: 0 0 0.75em;
  color: var(--text-secondary);
}

.intro-card ul {
  padding-left: 1.25rem;
}

.intro-card li {
  margin-bottom: 0.5em;
}

.intro-card code {
  font-size: 0.9em;
  padding: 0.15em 0.4em;
  background: var(--bg-elevated);
  border-radius: 4px;
  color: var(--accent-bright);
}

/* Download block */
.download-block {
  text-align: center;
  margin: 2.5rem 0;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--bg-deep);
  background: var(--accent);
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 4px 20px rgba(196, 181, 160, 0.25);
}

.btn-download:hover {
  background: var(--accent-bright);
  transform: translateY(-2px);
}

.download-note {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Steps */
.steps-grid {
  display: grid;
  gap: 1.25rem;
  margin: 2rem 0;
}

@media (min-width: 640px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
  padding-top: 2.5rem;
}

.step-num {
  position: absolute;
  top: -0.5rem;
  left: 1rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--bg-deep);
  background: var(--accent);
  border-radius: 50%;
}

.step-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.5em;
}

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

.step-card code {
  font-size: 0.85em;
  padding: 0.1em 0.3em;
  background: var(--bg-elevated);
  border-radius: 4px;
  color: var(--accent-bright);
}

/* Usage card */
.usage {
  margin-top: 2rem;
}

/* ----- Footer ----- */
.footer {
  position: relative;
  padding: 3rem 0;
  text-align: center;
  overflow: hidden;
}

.footer-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg-deep) 0%, #0d1220 100%);
  z-index: 0;
}

.footer .container {
  position: relative;
  z-index: 1;
}

.footer-status {
  font-weight: 500;
  color: var(--text-secondary);
  margin: 0 0 0.25em;
}

.footer-date {
  font-size: 1rem;
  color: var(--accent);
  margin: 0 0 0.5em;
}

.footer-domain {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ----- Scroll-triggered fade (optional, via JS) ----- */
.section.extension {
  opacity: 1;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section.extension.is-visible {
  opacity: 1;
}
