/* ===========================================================
   XO Downloader — site styles
   Colors mirror the Android app's ui/theme/Color.kt exactly.
   Change a color HERE and it updates everywhere on the page.
   =========================================================== */

:root {
  --bg: #0C0D0F;
  --card: #17181C;
  --chip: #1E2024;
  --hairline: rgba(255, 255, 255, 0.06);
  --text: #FFFFFF;
  --text-secondary: #8A8D94;
  --text-muted: #7E818A;
  --accent-start: #FF7A1A;
  --accent-end: #F0560E;

  --accent-gradient: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  --radius: 18px;
  --radius-sm: 12px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* belt-and-braces: never scroll sideways */
}

h1, h2, h3 {
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 1em;
  color: var(--text-secondary);
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================= Buttons ============================= */

.btn-primary {
  display: inline-block;
  background: var(--accent-gradient);
  color: var(--text);
  font-weight: 650;
  font-size: 1.05rem;
  text-decoration: none;
  padding: 15px 30px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(255, 122, 26, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 122, 26, 0.38);
}

.btn-small {
  font-size: 0.9rem;
  padding: 10px 18px;
}

/* ============================= Header ============================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(12, 13, 15, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1.05rem;
}

.brand img {
  border-radius: 8px;
}

/* ============================== Hero =============================== */

.hero {
  position: relative;
  padding: 64px 0 72px;
  overflow: hidden;
}

/* Soft orange glow, echoing the app's AccentPage background */
.hero-glow {
  position: absolute;
  top: -220px;
  left: 50%;
  transform: translateX(-50%);
  width: 780px;
  height: 560px;
  max-width: 140%;
  background: radial-gradient(
    circle at center,
    rgba(255, 122, 26, 0.20) 0%,
    rgba(255, 122, 26, 0.06) 45%,
    transparent 70%
  );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 7vw, 3.4rem);
  font-weight: 750;
}

.lede {
  font-size: 1.08rem;
  max-width: 34em;
  margin-inline: auto;
}

.hero-note {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

@media (min-width: 900px) {
  .hero {
    padding: 88px 0 104px;
  }
  .hero-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    gap: 64px;
  }
  .hero-copy {
    flex: 1 1 0;
  }
  .lede {
    margin-inline: 0;
  }
}

/* ========================== Phone mockup =========================== */

.phone {
  flex: 0 0 auto;
  width: 265px;
  aspect-ratio: 9 / 19.5;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 38px;
  padding: 10px;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.6);
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--bg);
  border-radius: 30px;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
}

.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 650;
}

.app-gear {
  color: var(--text-secondary);
}

.app-card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.app-label {
  display: block;
  font-size: 0.66rem;
  color: var(--text-muted);
  margin-bottom: 7px;
}

.app-input {
  font-size: 0.7rem;
  color: var(--text-secondary);
  background: var(--chip);
  border-radius: 8px;
  padding: 9px 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-chips {
  display: flex;
  gap: 8px;
}

.app-chip {
  font-size: 0.7rem;
  color: var(--text-secondary);
  background: var(--chip);
  border-radius: 999px;
  padding: 6px 14px;
}

.app-chip.is-active {
  background: var(--accent-gradient);
  color: var(--text);
  font-weight: 650;
}

.app-button {
  margin-top: auto;
  background: var(--accent-gradient);
  border-radius: 999px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 12px;
}

/* ============================ Sections ============================= */

.section {
  padding: 64px 0;
  border-top: 1px solid var(--hairline);
}

.section-head {
  text-align: center;
  max-width: 40em;
  margin: 0 auto 40px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 4.5vw, 2.3rem);
}

/* ============================== Cards ============================== */

.card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 26px 22px;
}

.card h3 {
  font-size: 1.08rem;
  margin-bottom: 8px;
}

.card p {
  margin: 0;
  font-size: 0.95rem;
}

.icon {
  width: 26px;
  height: 26px;
  color: var(--accent-start);
  margin-bottom: 16px;
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 640px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .section {
    padding: 88px 0;
  }
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 14px;
}

/* Tutorials — styles ship now so the commented HTML works when uncommented */
.video-card {
  padding: 14px;
}

.video-card video {
  width: 100%;
  border-radius: var(--radius-sm);
  background: #000;
  display: block;
  margin-bottom: 14px;
}

.video-card h3,
.video-card p {
  padding: 0 8px;
}

.video-card p {
  padding-bottom: 8px;
}

/* ========================== Closing CTA ============================ */

.cta-final {
  text-align: center;
}

.cta-final h2 {
  font-size: clamp(1.6rem, 4.5vw, 2.3rem);
}

.cta-final p {
  margin-bottom: 26px;
}

/* ============================= Footer ============================== */

.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 40px 0 56px;
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-bottom: 26px;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
}

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

.disclaimer,
.copyright {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  max-width: 46em;
  margin-inline: auto;
}

.copyright {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ===================== Small-screen header button =================== */

.cta-short {
  display: none;
}

@media (max-width: 380px) {
  .cta-long {
    display: none;
  }
  .cta-short {
    display: inline;
  }
}
