:root {
  --red: #E8272A;
  --red-dim: #b81f22;
  --red-glow: rgba(232, 39, 42, 0.18);
  --bg: #0a0a0b;
  --surface: #111114;
  --surface2: #18181d;
  --border: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(232, 39, 42, 0.35);
  --text: #f0f0f2;
  --muted: #7a7a8a;
  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 64px;
  background: rgba(10, 10, 11, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo span {
  color: var(--red);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-badge {
  background: var(--red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 5% 80px;
  text-align: center;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(ellipse at center, rgba(232, 39, 42, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-eyebrow {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface2);
  border: 1px solid var(--border-hover);
  border-radius: 100px;
  padding: 6px 16px 6px 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 28px;
  animation: fadeUp 0.7s ease both;
}

.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

.hero h1 {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  max-width: 820px;
  margin-bottom: 20px;
  animation: fadeUp 0.7s 0.1s ease both;
}

.hero h1 em {
  font-style: normal;
  color: var(--red);
}

.hero p {
  position: relative;
  z-index: 1;
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 48px;
  font-weight: 300;
  animation: fadeUp 0.7s 0.2s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* DOWNLOADER */
.downloader {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 680px;
  animation: fadeUp 0.7s 0.3s ease both;
}

.input-wrap {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.input-wrap:focus-within {
  border-color: var(--border-hover);
  box-shadow: 0 0 0 4px var(--red-glow);
}

.url-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 18px 20px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  min-width: 0;
}

.url-input::placeholder {
  color: var(--muted);
}

.paste-btn {
  background: transparent;
  border: none;
  border-right: 1px solid var(--border);
  color: var(--muted);
  padding: 0 16px;
  cursor: pointer;
  font-size: 0.8rem;
  font-family: var(--font-body);
  font-weight: 500;
  transition: color 0.2s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.paste-btn:hover {
  color: var(--text);
}

.dl-btn {
  background: var(--red);
  border: none;
  color: #fff;
  padding: 0 28px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.01em;
}

.dl-btn:hover {
  background: var(--red-dim);
}

.dl-btn:active {
  transform: scale(0.98);
}

.dl-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* STATUS */
.status-msg {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 0.88rem;
  margin-top: 12px;
}

.status-msg.show {
  display: flex;
}

.status-msg.loading {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
}

.status-msg.error {
  background: rgba(232, 39, 42, 0.08);
  border: 1px solid rgba(232, 39, 42, 0.2);
  color: #ff7070;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* RESULTS */
.result-area {
  margin-top: 16px;
  display: none;
  flex-direction: column;
  gap: 12px;
}

.result-area.show {
  display: flex;
  animation: fadeUp 0.4s ease both;
}

.result-header {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
}

.result-thumb-img {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--surface2);
}

.result-thumb-icon {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  background: var(--surface2);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.result-info {
  flex: 1;
  min-width: 0;
}

.result-title {
  font-weight: 500;
  font-size: 0.92rem;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: left;
}

.result-meta {
  font-size: 0.78rem;
  color: var(--muted);
}

.result-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  transition: border-color 0.2s;
}

.result-card:hover {
  border-color: var(--border-hover);
}

.media-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--red-glow);
  border: 1px solid rgba(232, 39, 42, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  flex-shrink: 0;
  font-size: 1.1rem;
}

.card-info {
  flex: 1;
  min-width: 0;
}

.card-label {
  font-weight: 500;
  font-size: 0.88rem;
  margin-bottom: 2px;
}

.card-meta {
  font-size: 0.76rem;
  color: var(--muted);
}

.btn-dl {
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 18px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-dl:hover {
  background: var(--red-dim);
}

/* TRUST BAR */
.trust-bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 32px;
  font-size: 0.8rem;
  color: var(--muted);
  animation: fadeUp 0.7s 0.4s ease both;
  flex-wrap: wrap;
  justify-content: center;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.trust-item svg {
  color: var(--red);
  flex-shrink: 0;
}

/* SECTIONS */
.section {
  padding: 100px 5%;
  position: relative;
  z-index: 1;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  max-width: 560px;
  margin-bottom: 16px;
}

.section-sub {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 300;
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 60px;
}

/* STEPS */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2px;
}

.step {
  background: var(--surface);
  padding: 36px 28px;
  position: relative;
  transition: background 0.2s;
}

.step:first-child {
  border-radius: 16px 0 0 16px;
}

.step:last-child {
  border-radius: 0 16px 16px 0;
}

.step:hover {
  background: var(--surface2);
}

.step-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--surface2);
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 20px;
  -webkit-text-stroke: 1px var(--border);
}

.step-icon {
  width: 44px;
  height: 44px;
  background: var(--red-glow);
  border: 1px solid rgba(232, 39, 42, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  margin-bottom: 16px;
}

.step h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.step p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
  font-weight: 300;
}

/* FEATURES */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2px;
}

.feature-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 32px;
  transition: background 0.2s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border-radius: 16px;
  border: 1px solid transparent;
  transition: border-color 0.3s;
  pointer-events: none;
}

.feature-card:hover {
  background: var(--surface2);
}

.feature-card:hover::before {
  border-color: var(--border-hover);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--red-glow);
  border: 1px solid rgba(232, 39, 42, 0.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  margin-bottom: 20px;
  font-size: 1.4rem;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
  font-weight: 300;
}

/* FORMATS */
.formats-section {
  background: var(--surface);
}

.formats-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.format-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 10px 18px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: border-color 0.2s, color 0.2s;
}

.format-tag:hover {
  border-color: var(--red);
  color: var(--red);
}

.format-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
}

.platform-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.p-badge {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.75rem;
  color: var(--muted);
}

/* FAQ */
.faq-list {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.faq-item {
  background: var(--surface);
  border-radius: 12px;
  overflow: hidden;
  transition: background 0.2s;
}

.faq-item:hover {
  background: var(--surface2);
}

.faq-q {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  text-align: left;
  padding: 22px 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-chevron {
  color: var(--muted);
  transition: transform 0.3s, color 0.2s;
  flex-shrink: 0;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  color: var(--red);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.75;
  font-weight: 300;
}

.faq-a-inner {
  padding: 0 24px 22px;
}

.faq-item.open .faq-a {
  max-height: 300px;
}

/* FOOTER */
footer {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 60px 5% 40px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.7;
  max-width: 300px;
  margin-top: 12px;
  font-weight: 300;
}

.footer-links-group h4 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 16px;
}

.footer-links-group ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-group a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-links-group a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  color: var(--muted);
  font-size: 0.8rem;
}

.footer-disclaimer {
  color: var(--muted);
  font-size: 0.75rem;
  opacity: 0.6;
}

/* Divider */
.divider {
  height: 1px;
  background: var(--border);
  margin: 0 5%;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Mobile */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .input-wrap {
    flex-direction: column;
    border-radius: 14px;
  }

  .paste-btn {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 12px 16px;
    justify-content: center;
  }

  .dl-btn {
    padding: 16px;
    justify-content: center;
  }

  .step:first-child,
  .step:last-child {
    border-radius: 16px;
  }

  .footer-top {
    flex-direction: column;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .result-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--surface2);
  border-radius: 3px;
}