:root {
  --bg-1: #020918;
  --bg-2: #041b48;
  --surface: rgba(2, 14, 40, 0.58);
  --surface-border: rgba(67, 146, 255, 0.36);
  --text-1: #f3f8ff;
  --text-2: #b6cbf0;
  --accent-1: #22a6ff;
  --accent-2: #0a6cff;
  --danger: #ff6f6f;
  --success: #1ed6a2;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "DM Sans", "Segoe UI", sans-serif;
  color: var(--text-1);
  background-color: var(--bg-1);
  background:
    linear-gradient(108deg, rgba(2, 9, 24, 0.82) 10%, rgba(2, 9, 24, 0.58) 58%, rgba(2, 9, 24, 0.9) 100%),
    radial-gradient(1200px 700px at 15% 10%, rgba(46, 126, 255, 0.25), transparent 55%),
    radial-gradient(1200px 700px at 85% 80%, rgba(34, 166, 255, 0.16), transparent 55%),
    linear-gradient(170deg, rgba(4, 27, 72, 0.28), rgba(2, 9, 24, 0.32)),
    url("./img/youtube-cover-page.png") center center / cover no-repeat fixed;
  padding: 18px;
}

.page-shell {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  gap: 22px;
}

.top-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 20px 24px;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  margin-bottom: 28px;
  text-align: center;
}

.top-nav-brand {
  display: flex;
  justify-content: center;
  width: 100%;
}

.brand-logo {
  height: 140px;
  width: auto;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
}

.top-nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.hero {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin-bottom: 40px;
}

.hero-video-wrap {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 340px;
}

.video-frame-wrap {
  width: 340px;
  max-width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(37, 99, 235, 0.4);
  box-shadow: var(--shadow-lg);
  background: #0a0e27;
  position: relative;
  margin-inline: auto;
}

.video-frame {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  border: 0;
  display: block;
  background: #0a0e27;
}

.hero-panel {
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  backdrop-filter: blur(12px);
  padding: 24px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.24);
  width: 100%;
}

.eyebrow {
  margin: 0 0 10px;
  color: #86d6ff;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
}

h1,
h2 {
  font-family: "Sora", "Segoe UI", sans-serif;
  line-height: 1.08;
  margin: 0;
}

h1 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 12px;
}

.hero-copy {
  color: var(--text-2);
  font-size: 1.02rem;
  margin: 0 0 20px;
}

.lead-form {
  display: grid;
  gap: 10px;
}

.lead-form label {
  font-size: 0.88rem;
  color: #d9e9ff;
  font-weight: 600;
}

.lead-form input[type="text"],
.lead-form input[type="email"],
.lead-form input[type="tel"],
.lead-form input[type="url"] {
  width: 100%;
  border-radius: 11px;
  border: 1px solid rgba(125, 178, 255, 0.55);
  background: rgba(7, 21, 51, 0.84);
  color: var(--text-1);
  padding: 12px 13px;
  font-size: 0.97rem;
}

.lead-form input:focus {
  outline: 2px solid rgba(40, 170, 255, 0.75);
  outline-offset: 2px;
}

.checkbox {
  margin-top: 4px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: start;
}

.checkbox span {
  color: var(--text-2);
  font-size: 0.88rem;
  line-height: 1.35;
}

.cta-btn,
.download-btn {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cta-btn {
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
  text-transform: capitalize;
  letter-spacing: 0.5px;
}

.cta-btn:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45);
}

.cta-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.cta-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  background: linear-gradient(135deg, #999 0%, #777 100%) !important;
}

.cta-btn:disabled:hover {
  background: linear-gradient(135deg, #999 0%, #777 100%) !important;
  transform: none;
  box-shadow: none;
}

.form-error {
  min-height: 1.2em;
  margin: 2px 0 0;
  color: var(--danger);
  font-size: 0.88rem;
}

.download-gate {
  display: none;
  border-radius: 20px;
  padding: 24px;
  background: linear-gradient(170deg, rgba(10, 35, 79, 0.94), rgba(4, 15, 40, 0.92));
  border: 1px solid rgba(83, 170, 255, 0.38);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.31);
}

.download-gate.visible {
  display: block;
  animation: riseIn 0.5s ease;
}

.download-gate h2 {
  font-size: clamp(1.35rem, 2vw, 1.9rem);
}

.download-gate p {
  color: var(--text-2);
  margin: 10px 0 0;
}

.download-btn {
  margin-top: 16px;
  background: linear-gradient(115deg, #1f8fe5, #1037b8);
  color: #ffffff;
  min-width: 260px;
}

.download-btn:hover {
  background: linear-gradient(115deg, #49c6f3, #1f8fe5);
  color: #ffffff;
}

.gate-note {
  font-size: 0.84rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.35);
  background: rgba(15, 30, 70, 0.6);
  color: var(--text-2);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.82rem;
  transition: all 0.3s ease;
}

.social-link i {
  font-size: 1.05rem;
  line-height: 1;
}

.social-link span {
  line-height: 1;
}

.social-link:hover {
  transform: translateY(-2px);
  background: rgba(37, 99, 235, 0.15);
  border-color: var(--accent-1);
  color: var(--accent-1);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.2);
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  body {
    padding: 14px;
  }

  .hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .top-nav,
  .hero-panel,
  .download-gate {
    padding: 18px;
  }

  .download-btn {
    width: 100%;
  }

  .brand-logo {
    height: 100px;
  }

  .social-link span {
    display: none;
  }

  .social-link {
    min-width: 38px;
    padding: 0;
  }
}

@media (max-width: 375px) {
  body {
    padding: 12px;
  }

  .top-nav {
    padding: 14px;
    gap: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .top-nav-brand {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .brand-logo {
    height: 90px;
  }

  .top-nav-links {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
  }

  .social-link {
    min-width: 36px;
    height: 36px;
    width: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
  }

  .social-link i {
    font-size: 0.95rem;
  }

  .social-link span {
    display: none;
  }

  .hero-panel,
  .download-gate {
    padding: 16px;
  }

  .hero-panel h1 {
    font-size: clamp(1.4rem, 5vw, 1.8rem);
  }

  .lead-form label {
    margin: 12px 0 6px;
    font-size: 0.8rem;
  }

  .lead-form input {
    padding: 10px 12px;
    font-size: 0.9rem;
  }

  .cta-btn {
    padding: 12px 20px;
    font-size: 0.95rem;
  }
}
