:root {
  --bg: #0e0f12;
  --surface: #17181d;
  --surface-2: #1f2027;
  --accent: #ff4d6d;
  --accent-2: #4dd9ff;
  --text: #ededef;
  --text-muted: #8a8d96;
  --border: #2a2b33;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  min-height: 100vh;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  padding: 28px 48px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Bebas Neue", sans-serif;
  font-size: 24px;
  letter-spacing: 0.5px;
}

.logo-mark {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

main {
  max-width: 1040px;
  margin: 0 auto;
  padding: 32px 48px 80px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 40px 0 24px;
}

/* Right column: reel and banner side-by-side */
.hero-right {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}
.hero-copy h1 {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(48px, 6.2vw, 76px);
  line-height: 0.98;
  letter-spacing: 0.5px;
  margin: 0 0 20px;
}

.lede {
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.55;
  max-width: 46ch;
  margin: 0 0 32px;
}

.link-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
}

#url-input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease;
}

#url-input:focus {
  border-color: var(--accent-2);
}

#url-input::placeholder {
  color: #5a5d68;
}

#resolve-btn {
  background: var(--accent);
  color: #10090b;
  border: none;
  border-radius: 10px;
  padding: 0 22px;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.1s ease;
}

#resolve-btn:hover { filter: brightness(1.08); }
#resolve-btn:active { transform: scale(0.98); }
#resolve-btn:disabled { opacity: 0.55; cursor: progress; }

.status {
  min-height: 20px;
  margin: 14px 2px 0;
  font-size: 14px;
  color: var(--text-muted);
}
.status.error { color: var(--accent); }
.status.ok { color: var(--accent-2); }

/* Reel frame — vertical film strip with sprocket holes */
.reel-frame {
  display: flex;
  align-items: stretch;
  justify-self: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 10px;
  width: 220px;
  margin: 0 auto;
}

.sprockets {
  width: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px 0;
}

.sprockets span {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--surface-2);
  margin: 0 auto;
}

.screen {
  flex: 1;
  aspect-ratio: 9 / 16;
  margin: 0 8px;
  border-radius: 10px;
  background: #0a0a0c;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.screen video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.screen-placeholder {
  color: #33353d;
}

.download-cta {
  display: block;
  width: max-content;
  margin: 14px 0 0;
  background: var(--accent-2);
  color: #06171d;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 10px;
  transition: filter 0.15s ease;
}
.download-cta:hover { filter: brightness(1.08); }

/* Inside hero-right: full-width, no bottom margin */
.hero-right .download-cta {
  width: 100%;
  text-align: center;
  margin: 0;
  box-sizing: border-box;
}
.hidden { display: none; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  border-top: 1px solid var(--border);
  padding-top: 44px;
  margin-top: 12px;
}

.step-num {
  font-family: "Bebas Neue", sans-serif;
  font-size: 15px;
  color: var(--accent);
  display: block;
  margin-bottom: 10px;
}

.step h3 {
  font-size: 16px;
  margin: 0 0 8px;
}

.step p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}

/* Ad slots — replace inner content with your ad network's embed code */
.ad-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 10px;
  color: #4a4d56;
  font-size: 12.5px;
  letter-spacing: 0.3px;
}

.ad-slot--banner {
  width: 100%;
  max-width: 728px;
  height: 90px;
  margin: 0 auto 32px;
}

.ad-slot--inline {
  width: 100%;
  max-width: 468px;
  height: 120px;
  margin: 48px auto;
}

.ad-label {
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .ad-slot--banner { height: 100px; }
}

.disclaimer {
  color: #55575f;
  font-size: 12.5px;
  text-align: center;
  margin-top: 56px;
}

@media (max-width: 760px) {
  .topbar, main { padding-left: 22px; padding-right: 22px; }
  .hero { grid-template-columns: 1fr; }
  .hero-right {
    flex-direction: column;
    order: -1;
    width: 100%;
  }
  .affiliate-banner { width: 100%; }
  .steps { grid-template-columns: 1fr; gap: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ── Supported Platforms Section ─────────────────────────────── */
.platforms {
  border-top: 1px solid var(--border);
  padding-top: 32px;
  margin-top: 16px;
  text-align: center;
}

.platforms-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin: 0 0 24px;
}

.platforms-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.platform-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 24px;
  width: 110px;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  color: var(--text-muted);
  font-family: inherit;
}

.platform-card:hover {
  border-color: var(--accent-2);
  color: var(--text);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(77, 217, 255, 0.12);
}

.platform-card:active {
  transform: translateY(-1px) scale(0.98);
}

.platform-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--accent-2);
  transition: background 0.2s ease;
}

.platform-card:hover .platform-icon {
  background: rgba(77, 217, 255, 0.1);
}

.platform-icon svg {
  width: 20px;
  height: 20px;
}

.platform-name {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2px;
}

/* ── Platform Detection Badge ─────────────────────────────────── */
.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 20px;
  margin-top: 10px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  background: rgba(77, 217, 255, 0.1);
  color: var(--accent-2);
  border: 1px solid rgba(77, 217, 255, 0.2);
  pointer-events: none;
}

.platform-badge.visible {
  opacity: 1;
  transform: translateY(0);
}

.platform-badge::before {
  content: "✓";
  font-size: 11px;
}

/* Platform-specific badge colors */
.platform-badge--instagram { background: rgba(255, 77, 109, 0.1); color: var(--accent); border-color: rgba(255, 77, 109, 0.25); }
.platform-badge--instagram::before { content: "✓"; }
.platform-badge--tiktok    { background: rgba(77, 217, 255, 0.1); color: var(--accent-2); border-color: rgba(77, 217, 255, 0.25); }
.platform-badge--youtube   { background: rgba(255, 80, 80, 0.1); color: #ff5050; border-color: rgba(255, 80, 80, 0.25); }
.platform-badge--facebook  { background: rgba(100, 149, 237, 0.1); color: #6495ed; border-color: rgba(100, 149, 237, 0.25); }
.platform-badge--twitter   { background: rgba(200, 200, 200, 0.1); color: #ccc; border-color: rgba(200, 200, 200, 0.2); }
.platform-badge--pinterest { background: rgba(230, 0, 35, 0.1); color: #e60023; border-color: rgba(230, 0, 35, 0.25); }

@media (max-width: 760px) {
  .platforms-grid { gap: 10px; }
  .platform-card { width: 90px; padding: 16px 12px; }
  .platform-name { font-size: 11px; }
}

.faq {
  border-top: 1px solid var(--border);
  padding-top: 48px;
  margin-top: 48px;
}

.faq-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: 0.5px;
  margin: 0 0 28px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 720px;
}

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

.faq-item[open] {
  border-color: var(--accent-2);
}

.faq-q {
  list-style: none;
  padding: 18px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  gap: 12px;
}

.faq-q::-webkit-details-marker { display: none; }

.faq-q::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-q::after {
  transform: rotate(45deg);
}

.faq-a {
  margin: 0;
  padding: 0 20px 18px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ── Affiliate Banner ─────────────────────────────────────────── */
.affiliate-banner {
  margin-top: 0;
  text-align: center;
  width: 180px;
  flex-shrink: 0;
  align-self: center;
}

.affiliate-banner__link {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.affiliate-banner__link:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 50px rgba(0, 0, 0, 0.6);
}

.affiliate-banner__inner {
  background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
  padding: 36px 24px;
  color: white;
}

.affiliate-banner__title {
  margin: 0 0 8px;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.6rem;
  letter-spacing: 1px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.affiliate-banner__sub {
  margin: 0 0 16px;
  font-size: 0.82rem;
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.affiliate-banner__cta {
  display: inline-block;
  background: white;
  color: #1a2a6c;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Hide unfinished ad placeholders in production */
.ad-placeholder { display: none !important; }
