@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700;800&family=Space+Grotesk:wght@600;700&display=swap");

:root {
  --bg-top: #fff2de;
  --bg-bottom: #f7f9ff;
  --surface: #ffffff;
  --surface-soft: #fffaf1;
  --text: #1c2430;
  --muted: #5e6878;
  --accent: #0f6b5a;
  --accent-hover: #0c5a4c;
  --secondary: #d66b1f;
  --border: #dce3ef;
  --shadow: 0 12px 30px rgba(17, 26, 44, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 15% 5%, #ffe7c2 0%, transparent 30%),
    radial-gradient(circle at 90% 8%, #e6f3ff 0%, transparent 28%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 60%);
  color: var(--text);
  min-height: 100vh;
}

code {
  font-family: "SF Mono", "Fira Code", "Roboto Mono", ui-monospace, monospace;
  background: #f2f5fb;
  border: 1px solid #e1e7f2;
  padding: 2px 6px;
  border-radius: 8px;
  font-size: 0.9em;
}

.container {
  max-width: 1060px;
  margin: 36px auto 24px;
  padding: 0 18px 28px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.logo-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f3b560, #d66b1f);
  box-shadow: 0 6px 14px rgba(214, 107, 31, 0.35);
}

.brand-name {
  font-family: "Space Grotesk", "Avenir Next", sans-serif;
  font-size: 1.05rem;
}

.nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  text-decoration: none;
  font-weight: 700;
  color: var(--text);
  font-size: 0.92rem;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: 26px;
  align-items: start;
  margin-bottom: 28px;
}

.hero-content {
  padding-right: 18px;
}

.kicker {
  display: inline-block;
  margin: 0 0 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(214, 107, 31, 0.12);
  color: #8a4715;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 12px;
  font-family: "Space Grotesk", "Avenir Next", sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.08;
}

.subtitle {
  margin: 0 0 18px;
  color: var(--muted);
  max-width: 58ch;
  font-size: 1.02rem;
}

.category-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tab {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #f1dec6;
  background: #fff8ed;
  font-weight: 700;
  font-size: 0.84rem;
  color: #8a4715;
}

.tab.active {
  background: #fff0db;
  border-color: #e9cfa9;
  color: #6b3a12;
}

.download-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--shadow);
}

label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 10px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--muted);
}

.input-row {
  display: flex;
  gap: 12px;
}

input[type="url"] {
  flex: 1;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

input[type="url"]:focus {
  border-color: #87abde;
  box-shadow: 0 0 0 4px rgba(135, 171, 222, 0.2);
}

.actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.btn {
  border: none;
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
}

.btn.primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn.ghost {
  background: #f5f7fb;
  color: var(--text);
  border: 1px solid #e2e8f3;
}

.btn.ghost:hover {
  background: #eef2f8;
}

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

.helper {
  margin: 14px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}

.section {
  margin: 30px 0;
}

.section-head {
  margin-bottom: 16px;
}

.section-head h2 {
  margin: 0 0 6px;
  font-size: 1.2rem;
  color: #293041;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.step-card {
  background: var(--surface);
  border: 1px solid #e4eaf4;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 10px 24px rgba(17, 26, 44, 0.06);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #fff4e6;
  border: 1px solid #f3d8b5;
  font-weight: 800;
  color: #6b3a12;
  margin-bottom: 10px;
}

.step-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.step-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.feature-card {
  background: #ffffff;
  border: 1px solid #e7edf7;
  border-radius: 16px;
  padding: 16px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.info-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.faq details {
  border-top: 1px solid #e7edf7;
  padding: 12px 0;
}

.faq details:first-of-type {
  border-top: none;
  padding-top: 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
}

.faq p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.policy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.policy-grid h3 {
  margin: 0 0 8px;
  font-size: 0.98rem;
}

.policy-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.ad-slot {
  border: 1px dashed #e0e6f1;
  border-radius: 12px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8c96a6;
  font-size: 0.9rem;
  background: #fafcff;
}

.contact-line {
  margin: 0;
  font-size: 0.98rem;
}

.video-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-soft);
}

.video-meta img {
  width: 210px;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: contain;
  border: 1px solid #e6dcca;
  align-self: flex-start;
  background: #fff;
}

.video-meta h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  line-height: 1.3;
}

.video-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.download-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.download-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #e3e9f3;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 12px;
  background: #fcfdff;
}

.download-list a {
  color: #fff;
  background: var(--secondary);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.86rem;
  padding: 8px 12px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.download-list a:hover {
  background: #bf5712;
}

.status {
  min-height: 1.6em;
  margin-top: 6px;
  color: #b42318;
  font-size: 0.95rem;
}

.hidden {
  display: none;
}

.homepage-popup {
  position: fixed;
  inset: 0;
  background: rgba(17, 26, 44, 0.55);
  display: grid;
  place-items: center;
  padding: 18px;
  z-index: 1000;
}

.homepage-popup.hidden {
  display: none;
}

.homepage-popup-card {
  width: min(560px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 16px 40px rgba(17, 26, 44, 0.18);
}

.homepage-popup-card h2 {
  margin: 0 0 10px;
  font-size: 1.28rem;
  color: #263044;
}

.homepage-popup-card p {
  margin: 0 0 10px;
  color: var(--muted);
}

.homepage-popup-card ul {
  margin: 0 0 16px;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.5;
}

.footer {
  border-top: 1px solid #e1e7f2;
  padding: 20px 18px 30px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links {
  margin-top: 8px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer a {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
}

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

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding-right: 0;
  }
}

@media (max-width: 620px) {
  .container {
    margin-top: 18px;
    padding: 0 14px 24px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 10px 0 12px;
    margin-bottom: 22px;
    background: linear-gradient(180deg, rgba(255, 242, 222, 0.96), rgba(255, 242, 222, 0.82));
    backdrop-filter: blur(10px);
  }

  .nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 8px;
    border: 1px solid #e6edf7;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 24px rgba(17, 26, 44, 0.08);
  }

  .nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 6px;
    background: #fff;
    border: 1px solid #e6edf7;
    border-radius: 12px;
    font-size: 0.78rem;
    text-align: center;
  }

  h1 {
    font-size: clamp(1.7rem, 6vw, 2.2rem);
  }

  .hero-content {
    padding-right: 0;
    text-align: center;
  }

  .kicker {
    margin-left: auto;
    margin-right: auto;
  }

  .subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .actions {
    justify-content: center;
  }

  .helper {
    text-align: center;
  }

  .video-meta {
    flex-direction: column;
  }

  .video-meta img {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .download-list li {
    align-items: flex-start;
    flex-direction: column;
  }

  .card {
    padding: 14px;
  }

  .footer-links {
    gap: 10px;
  }
}
