/* ---------- REELSPARK — "IGNITE" DARK THEME ---------- */
/* Keyed to the logo: the "Spark" wordmark and icon run
   orange -> pink/magenta -> purple, left to right. The UI uses the
   same sweep so the page and the logo read as one system. */

:root {
  /* Background & Surfaces */
  --bg: #0B0A0D;               /* Main app background — near-black, faint warm cast */
  --bg-2: #16131A;             /* Cards / navbar / modals */
  --surface: rgba(255, 255, 255, 0.03);
  --surface-strong: rgba(255, 255, 255, 0.055);
  --border: #2C2733;           /* Dividers / input borders — warm neutral */
  --border-strong: #3E3648;

  /* Text Colors */
  --text: #F7F4F6;             /* Headings / key text — warm white */
  --text-dim: #A9A2AE;         /* Body copy / metadata */
  --text-faint: #7A7280;       /* Hints / captions */
  --soft-surface: #F6F1F4;     /* Light utility surface */

  /* Ignite brand colors — sampled from the logo */
  --primary: #FB6E1E;          /* Orange — gradient start / highlights / eyebrow */
  --primary-2: #EC3F8F;        /* Magenta-pink — primary CTA / active / focus label */
  --secondary: #F5533E;        /* Coral — warm accent / hover */
  --accent: #C43BC9;           /* Orchid — icons / secondary accent */
  --accent-2: #9E32D6;         /* Purple — gradient end / active states */
  --deep-purple: #7C22B8;      /* Gradient depth / emphasis */

  /* Signature gradient — matches the "Spark" wordmark sweep */
  --gradient-brand: linear-gradient(90deg, #FB6E1E 0%, #F5533E 22%, #EC3F8F 52%, #C43BC9 76%, #9E32D6 100%);

  /* Legacy mapping for compatibility */
  --red: #FB6E1E;              /* -> orange (old CTA aliases) */
  --red-2: #EC3F8F;            /* -> magenta-pink */
  --violet: #9E32D6;           /* -> purple */
  --success: #34D399;          /* Distinct green — status only, not brand */
  --danger: #F5484B;           /* Clear red — error / destructive only */

  /* Design tokens */
  --radius-lg: 20px;
  --radius-md: 13px;
  --radius-sm: 10px;

  /* Layered depth — an ambient spread plus a tight key shadow reads
     more "crafted product" than a single coloured glow. */
  --shadow-ambient: 0 2px 8px rgba(0, 0, 0, 0.4), 0 24px 70px -20px rgba(0, 0, 0, 0.65);
  --shadow-key: 0 40px 120px -32px rgba(236, 63, 143, 0.28);
  --shadow-soft: var(--shadow-ambient);
  --shadow-medium: var(--shadow-ambient), var(--shadow-key);

  --ring: 0 0 0 3px rgba(236, 63, 143, 0.20);
  --hairline: rgba(255, 255, 255, 0.07);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  font-feature-settings: "ss01", "cv05", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  margin: 0;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

::selection {
  background: rgba(236, 63, 143, 0.28);
  color: #fff;
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 999px;
  border: 3px solid var(--bg);
}

*::-webkit-scrollbar-thumb:hover {
  background: #4a4356;
}

/* ---------- Background decor ---------- */
/* Restraint over glow: two large, static, very soft blooms keyed to the
   logo sweep, a faint architectural column grid, film grain, and a
   vignette. No floating animation — it should feel set, not busy. */
.bg-decor {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-decor::after {
  /* vignette — pulls the eye to the centre */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 50% 0%, transparent 40%, rgba(0, 0, 0, 0.55) 100%);
}

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

.orb-1 {
  width: 780px;
  height: 780px;
  top: -340px;
  left: -240px;
  background: radial-gradient(circle at 50% 50%, rgba(251, 110, 30, 0.18), transparent 68%);
}

.orb-2 {
  width: 720px;
  height: 720px;
  bottom: -360px;
  right: -260px;
  background: radial-gradient(circle at 50% 50%, rgba(158, 50, 214, 0.20), transparent 68%);
}

.orb-3 {
  /* a thin warm horizon line behind the hero headline */
  width: 60vw;
  height: 1px;
  top: 34%;
  left: 0;
  border-radius: 0;
  background: linear-gradient(90deg, transparent, rgba(236, 63, 143, 0.35), transparent);
  filter: blur(0.5px);
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, var(--hairline) 1px, transparent 1px);
  background-size: clamp(80px, 9vw, 132px) 100%;
  mask-image: radial-gradient(ellipse 75% 70% at 50% 32%, black 10%, transparent 72%);
  opacity: 0.5;
}

.bg-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  opacity: 0.035;
  mix-blend-mode: overlay;
}

/* ---------- Layout ---------- */
.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px clamp(20px, 5vw, 68px) 0;
}
.topbar .brand img{
    width: 148px;
    display: block;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(251, 110, 30, 0.4);
  flex-shrink: 0;
}

.brand-mark svg {
  width: 17px;
  height: 17px;
  filter: brightness(0) invert(1);
}

.topbar-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.topbar-note::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
}

.layout {
  flex: 1;
  display: grid;
  grid-template-columns: 1.15fr min(452px, 100%);
  gap: clamp(28px, 6vw, 96px);
  align-items: start;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(40px, 8vw, 20px) clamp(20px, 5vw, 20px) 72px;
}

.layout > * {
  min-width: 0;
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Hero ---------- */
.hero {
  padding-top: 4px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 30px;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(251, 110, 30, 0.14), 0 0 14px var(--primary);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

.hero h1 {
  font-size: clamp(40px, 5.6vw, 68px);
  line-height: 1.0;
  font-weight: 600;
  letter-spacing: -0.035em;
  color: var(--text);
  max-width: 16ch;
  overflow-wrap: break-word;
}

.hero h1 .grad {
  position: relative;
  background: linear-gradient(108deg, #FB6E1E 0%, #F5533E 22%, #EC3F8F 52%, #C43BC9 74%, #9E32D6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin-top: 26px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-dim);
  max-width: 46ch;
}

.feature-list {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--hairline);
  max-width: 460px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text-dim);
  border-bottom: 1px solid var(--hairline);
}

.feature-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--primary);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.feature-list li:nth-child(2) .feature-icon { color: var(--primary-2); }
.feature-list li:nth-child(3) .feature-icon { color: var(--accent-2); }

.feature-list li:hover .feature-icon {
  border-color: var(--border-strong);
}

.feature-icon svg {
  width: 15px;
  height: 15px;
}

.feature-list strong {
  color: var(--text);
  font-weight: 600;
}

/* ---------- Form panel ---------- */
/* The card is the anchor of the page: solid, crisp hairline, one
   signature brand bar flush across the top edge, deep layered shadow. */
.form-panel {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3.4vw, 42px);
  box-shadow: var(--shadow-medium);
  overflow: hidden;
  isolation: isolate;
}

/* signature: 2px gradient bar across the very top of the card */
.form-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-brand);
  pointer-events: none;
}

/* faint warm light spilling in from the top-right corner */
.form-panel::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -30%;
  width: 70%;
  height: 80%;
  background: radial-gradient(circle at 70% 30%, rgba(236, 63, 143, 0.10), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.form-panel-head {
  margin-bottom: 28px;
}

.form-panel-head h2 {
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.form-panel-head p {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-dim);
}

.field {
  position: relative;
  /* margin-bottom: 14px; */
}

.field input {
  width: 100%;
  padding: 22px 15px 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field input:hover {
  border-color: var(--border-strong);
}

.field input::placeholder {
  color: transparent;
}

.field label {
  position: absolute;
  left: 15px;
  top: 15px;
  font-size: 15px;
  color: var(--text-faint);
  pointer-events: none;
  transform-origin: left top;
  transition: transform 0.16s var(--ease), color 0.16s var(--ease), top 0.16s var(--ease);
}

.field input:focus {
  border-color: var(--primary-2);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: var(--ring);
}

.field input:focus + label,
.field input:not(:placeholder-shown) + label {
  top: 8px;
  transform: scale(0.72);
  color: var(--text-dim);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}

.field input:focus + label {
  color: var(--primary-2);
}

.field input.invalid {
  border-color: var(--danger);
}

.field input.invalid:focus {
  box-shadow: 0 0 0 3px rgba(245, 72, 75, 0.18);
}

.field-error {
  display: block;
  min-height: 16px;
  font-size: 12.5px;
  color: var(--danger);
  /* margin-top: 6px; */
  padding-left: 2px;
}

.field-hint {
  font-size: 11.5px;
  color: var(--text-faint);
  margin-top: 6px;
  padding-left: 2px;
}

.field input[type="date"] {
  color-scheme: dark;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.submit-btn {
  position: relative;
  width: 100%;
  margin-top: 10px;
  padding: 17px 22px;
  border: none;
  border-radius: var(--radius-md);
  background: linear-gradient(108deg, #FB6E1E 0%, #F5533E 22%, #EC3F8F 52%, #C43BC9 74%, #9E32D6 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2),
    0 14px 34px -10px rgba(236, 63, 143, 0.55);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), opacity 0.2s var(--ease);
}

/* sheen sweep */
.submit-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s var(--ease);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2),
    0 20px 50px -12px rgba(236, 63, 143, 0.7);
}

.submit-btn:hover::after {
  left: 120%;
}

.submit-btn:active {
  transform: translateY(0);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.submit-btn:disabled::after {
  display: none;
}

.spinner {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: spin 0.7s linear infinite;
  display: none;
}

.submit-btn.loading .spinner {
  display: inline-block;
}

.submit-btn.loading .btn-label {
  opacity: 0.85;
}

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

.form-note {
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-faint);
  text-align: center;
}

.form-error-banner {
  display: none;
  align-items: center;
  gap: 10px;
  background: rgba(245, 72, 75, 0.12);
  border: 1px solid rgba(245, 72, 75, 0.3);
  color: #ff9fa0;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  margin-bottom: 16px;
}

.form-error-banner.visible {
  display: flex;
}

.shake {
  animation: shake 0.4s var(--ease);
}

@keyframes shake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-5px); }
  40%, 60% { transform: translateX(5px); }
}

/* ---------- Success state ---------- */
.success-state {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 6px 6px;
}

.success-state.visible {
  display: flex;
}

.form-panel.is-success .reg-form,
.form-panel.is-success .form-panel-head {
  display: none;
}

.success-badge {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.16), rgba(52, 211, 153, 0.04));
  border: 1px solid rgba(52, 211, 153, 0.35);
  box-shadow: 0 0 0 8px rgba(52, 211, 153, 0.06);
  display: grid;
  place-items: center;
  margin-bottom: 22px;
}

.success-badge svg {
  width: 32px;
  height: 32px;
  stroke: var(--success);
}

.success-badge svg path {
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: draw 0.55s 0.15s var(--ease) forwards;
}

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

.success-state h3 {
  font-size: 21px;
  font-weight: 600;
  color: var(--text);
}

.success-state p {
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-dim);
  max-width: 320px;
  line-height: 1.6;
}

.success-meta {
  margin-top: 22px;
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-faint);
}

.success-meta strong {
  color: var(--text);
}

.success-referral {
  margin-top: 14px;
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
}

.success-referral p {
  margin: 0 0 10px;
  font-size: 12.5px;
  color: var(--text-faint);
  max-width: none;
}

.referral-copy-row {
  display: flex;
  gap: 8px;
}

.referral-copy-row input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, .25);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 12.5px;
}

.referral-copy-row button {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-strong);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s var(--ease);
}

.referral-copy-row button:hover {
  border-color: var(--border-strong);
  background: linear-gradient(135deg, rgba(251, 110, 30, 0.15), rgba(236, 63, 143, 0.12));
  color: var(--primary);
}

/* ---------- Payment step ---------- */
.payment-panel {
  margin-top: 18px;
  width: 100%;
  text-align: left;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.payment-panel-head {
  text-align: center;
  margin-bottom: 16px;
}

.payment-panel-head h4 {
  font-size: 16px;
  font-weight: 600;
  font-family: "Space Grotesk", "Inter", sans-serif;
  color: var(--text);
}

.payment-panel-head p {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--text-faint);
  line-height: 1.6;
}

.payment-qr {
  text-align: center;
  margin-bottom: 16px;
}

.payment-qr img {
  width: 190px;
  max-width: 72%;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  padding: 10px;
  box-shadow: 0 12px 28px rgba(236, 63, 143, 0.2);
}

.payment-amount {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-dim);
  text-align: center;
}

.payment-amount strong {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 18px;
  font-family: "Space Grotesk", sans-serif;
}

.file-field-wrap {
  text-align: left;
  margin-bottom: 16px;
}

.file-field-wrap .file-label-text {
  display: block;
  font-size: 12.5px;
  color: var(--text-faint);
  margin-bottom: 7px;
}

.file-field-wrap input[type="file"] {
  width: 100%;
  padding: 11px 12px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  font-size: 12.5px;
  font-family: inherit;
}

.file-field-wrap input[type="file"].invalid {
  border-color: var(--danger);
}

.payment-note {
  margin-top: 14px;
  font-size: 11.5px;
  color: var(--text-faint);
  line-height: 1.6;
  text-align: center;
}

/* ---------- Video marquee ---------- */
.marquee-section {
  position: relative;
  z-index: 1;
  padding: 40px 0 48px;
  border-top: 1px solid var(--hairline);
  margin-top: 24px;
}

.marquee-heading {
  text-align: center;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 30px;
  padding: 0 20px;
}

.marquee-viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
  display: flex;
  gap: 14px;
  width: max-content;
  padding: 4px 0;
  animation: marquee-scroll 58s linear infinite;
}

.marquee-track:hover,
.marquee-track.paused {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.video-tile {
  position: relative;
  flex: 0 0 auto;
  width: 156px;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0c0c14;
  cursor: pointer;
  padding: 0;
  filter: saturate(0.92) brightness(0.94);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), filter 0.3s var(--ease);
}

.video-tile:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  filter: saturate(1) brightness(1);
  box-shadow: var(--shadow-ambient);
}

.video-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-tile-fallback {
  position: absolute;
  inset: 0;
  display: block;
}

.video-tile-live {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
  background: #000;
  object-fit: cover;
}

.video-tile-fallback.platform-youtube {
  background: linear-gradient(150deg, #3a0a12, #12060a);
}

.video-tile-fallback.platform-instagram {
  background: linear-gradient(150deg, #3a1a4a, #2a0a2a);
}

.video-tile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,0.75) 100%);
}

.video-tile-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
  color: #fff;
}

.video-tile-play svg {
  width: 16px;
  height: 16px;
  margin-left: 2px;
}

.video-tile:hover .video-tile-play {
  transform: translate(-50%, -50%) scale(1.12);
  background: linear-gradient(135deg, rgba(251, 110, 30, 0.7), rgba(236, 63, 143, 0.6));
}

.video-tile-badge {
  position: absolute;
  top: 9px;
  left: 9px;
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  color: #fff;
}

.video-tile-badge.platform-youtube {
  color: #ff6b6b;
}

.video-tile-badge.platform-instagram {
  color: #f472b6;
}

.video-tile-title {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 9px;
  font-size: 11.5px;
  line-height: 1.35;
  color: #fff;
  text-align: left;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 500;
}

@media (max-width: 560px) {
  .video-tile {
    width: 132px;
  }
}

/* ---------- Video modal ---------- */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.video-modal.open {
  display: flex;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 8, 0.82);
  backdrop-filter: blur(6px);
}

.video-modal-body {
  position: relative;
  z-index: 1;
  width: min(380px, 92vw);
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-soft);
}

.video-modal-frame,
.video-modal-frame iframe,
.video-modal-frame video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  object-fit: cover;
  background: #000;
}

.video-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s var(--ease);
}

.video-modal-close:hover {
  background: linear-gradient(135deg, rgba(251, 110, 30, 0.7), rgba(236, 63, 143, 0.6));
  transform: rotate(90deg);
}

.video-modal-mute {
  position: absolute;
  bottom: 14px;
  right: 14px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s var(--ease), transform 0.15s var(--ease), border-color 0.2s var(--ease);
}

.video-modal-mute:hover {
  background: linear-gradient(135deg, rgba(251, 110, 30, 0.6), rgba(236, 63, 143, 0.5));
  transform: scale(1.06);
  border-color: rgba(251, 110, 30, 0.5);
}

.video-modal-mute svg {
  width: 18px;
  height: 18px;
}

.video-modal-mute .icon-unmuted {
  display: none;
}

.video-modal-mute.is-muted .icon-muted {
  display: block;
}

.video-modal-mute:not(.is-muted) .icon-muted {
  display: none;
}

.video-modal-mute:not(.is-muted) .icon-unmuted {
  display: block;
}

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  padding: 28px 20px 36px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  border-top: 1px solid var(--hairline);
  position: relative;
  z-index: 1;
}

.footer a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.footer a:hover {
  color: var(--primary);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .layout {
    padding-top: clamp(32px, 8vw, 56px);
  }
  .hero h1 {
    max-width: 18ch;
  }
  .hero-sub {
    max-width: 100%;
  }
  .feature-list {
    margin-bottom: 8px;
  }
}

@media (max-width: 620px) {
  .topbar-note {
    font-size: 0;
    gap: 0;
  }
  .topbar-note::before {
    width: 7px;
    height: 7px;
  }
}

@media (max-width: 480px) {
  .topbar {
    padding-top: 20px;
  }
  .hero h1 {
    font-size: clamp(34px, 10.5vw, 44px);
    max-width: 100%;
  }
  .hero-sub {
    font-size: 15.5px;
  }
  .form-panel {
    border-radius: var(--radius-md);
    padding: 24px 18px;
  }
}

/* ---------- ACCESSIBILITY & ANIMATIONS ---------- */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .submit-btn::after {
    display: none;
  }
}