/* ── Custom properties ─────────────────────────────── */
:root {
  --bg: #08080f;
  --surface: #0f0f1c;
  --surface-2: #161628;
  --accent: #7c3aed;
  --accent-mid: #8b5cf6;
  --accent-light: #a78bfa;
  --text: #ededfa;
  --text-2: rgba(237, 237, 250, 0.45);
  --border: rgba(255, 255, 255, 0.07);
  --glow: rgba(124, 58, 237, 0.35);
}

/* ── Reset ─────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Background mesh ───────────────────────────────── */
.bg-mesh {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.25;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: var(--accent);
  top: -200px;
  left: -200px;
  animation: drift 18s ease-in-out infinite alternate;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: var(--accent-mid);
  bottom: 10%;
  right: -100px;
  animation: drift 22s ease-in-out infinite alternate-reverse;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: #3b1fa8;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: drift 26s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translate(0, 0); }
  to   { transform: translate(40px, 30px); }
}

/* ── Layout ────────────────────────────────────────── */
.container {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 6rem 0;
}

/* ── Hero ──────────────────────────────────────────── */
.hero {
  text-align: center;
  padding-top: 8rem;
  padding-bottom: 5rem;
}

.hero-badge {
  margin-bottom: 1.5rem;
}

.hero-icon {
  width: 110px;
  height: 110px;
  object-fit: contain;
  display: inline-block;
  animation: float 4s ease-in-out infinite;
  filter: drop-shadow(0 0 22px var(--glow));
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--text) 40%, var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.25rem;
}

.tagline {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-2);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

/* ── Hero button group ─────────────────────────────── */
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero h1,
.hero .tagline {
  width: 100%;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ── GitHub button ─────────────────────────────────── */
.btn-github {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  transition: border-color 0.25s ease, background 0.25s ease,
              transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.25s ease;
}

.btn-github:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.btn-github:hover i {
  transform: rotate(-8deg) scale(1.2);
}

.btn-github i {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-github:active {
  transform: translateY(0) scale(0.98);
}

/* ── Download button ───────────────────────────────── */
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2.25rem;
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-mid));
  border-radius: 12px;
  text-decoration: none;
  animation: breathe 3s ease-in-out infinite;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
              filter 0.2s ease, box-shadow 0.2s ease;
}

.btn-download:hover {
  filter: brightness(1.18);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 32px rgba(124, 58, 237, 0.45);
  animation-play-state: paused;
}

.btn-download:hover i {
  transform: scale(1.25);
}

.btn-download i {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-download:active {
  transform: translateY(0) scale(0.97);
  filter: brightness(0.95);
}

.btn-download.clicked {
  animation: none;
  opacity: 0.8;
  cursor: default;
}

@keyframes breathe {
  0%, 100% { box-shadow: 0 0 18px 2px var(--glow); }
  50%       { box-shadow: 0 0 36px 8px var(--glow); }
}

/* ── Preview ───────────────────────────────────────── */
.preview {
  padding-top: 2rem;
  padding-bottom: 6rem;
}

.preview-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px var(--border),
    0 8px 48px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(124, 58, 237, 0.12);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.35s ease, border-color 0.35s ease;
}

.preview-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(124, 58, 237, 0.35);
  box-shadow:
    0 0 0 1px rgba(124, 58, 237, 0.3),
    0 20px 60px rgba(0, 0, 0, 0.65),
    0 0 80px rgba(124, 58, 237, 0.22);
}

.preview-card img {
  display: block;
  width: 100%;
  height: auto;
}

/* ── Features ──────────────────────────────────────── */
.features {
  text-align: center;
}

.features h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 3rem;
  color: var(--text);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  text-align: left;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem;
  backdrop-filter: blur(12px);
  transition: border-color 0.3s ease,
              transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s ease,
              background 0.3s ease;
}

.feature-card:hover {
  border-color: rgba(124, 58, 237, 0.45);
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 12px 40px rgba(124, 58, 237, 0.18);
  background: var(--surface-2);
}

.feature-card:hover .feature-icon {
  background: rgba(124, 58, 237, 0.22);
  border-color: rgba(124, 58, 237, 0.5);
  box-shadow: 0 0 16px rgba(124, 58, 237, 0.3);
}

.feature-card:hover .feature-icon i {
  transform: scale(1.2);
  color: #fff;
}

.feature-icon {
  margin-bottom: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.25);
  border-radius: 10px;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.feature-icon i {
  font-size: 1.1rem;
  color: var(--accent-light);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.6;
}

/* ── Bottom CTA ────────────────────────────────────── */
.cta-bottom {
  text-align: center;
}

.cta-bottom h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  margin-bottom: 2rem;
}

.disclaimer {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-2);
  letter-spacing: 0.03em;
}

/* ── Footer ────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  text-align: center;
  color: var(--text-2);
  font-size: 0.85rem;
  position: relative;
  z-index: 1;
}

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 600px) {
  .hero {
    padding-top: 5rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
}
