/* ============================================================
   SNAPTUBE ECO — Global Stylesheet
   ============================================================ */

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

:root {
  --orange: #E8590C;
  --orange-dark: #C94A08;
  --orange-btn: #E8590C;
  --white: #FFFFFF;
  --zinc: #F7F7F7;
  --ink: #111111;
  --graphite: #555555;
  --border: #EEEEEE;
  --max-w: 1100px;
  --radius: 16px;
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--white);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  height: 60px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 20px;
}
.header-inner {
  width: 100%; max-width: var(--max-w);
  display: flex; align-items: center; justify-content: space-between;
  position: relative;
}
.header-nav {
  display: flex; align-items: center; gap: 24px;
}
.header-nav a {
  font-size: 0.88rem; font-weight: 600; color: var(--graphite);
  transition: color .15s;
  white-space: nowrap;
}
.header-nav a:hover { color: var(--orange); }
.site-logo {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none;
}
.site-logo img { height: 32px; width: auto; }
.site-logo-text { font-size: 1.15rem; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  text-align: center;
  padding: 64px 24px 48px;
  background: var(--white);
}
.hero-inner { max-width: 760px; margin: 0 auto; }
.hero h1 {
  font-size: clamp(1.35rem, 4.2vw, 2.8rem);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
  white-space: nowrap;
}
}
.hero-subtitle {
  font-size: 1rem;
  color: var(--graphite);
  max-width: 540px;
  margin: 0 auto 32px;
}
.hero-img-wrap { margin: 0 auto 40px; max-width: 480px; }
.hero-img-wrap img { width: 100%; border-radius: 0; }

/* ============================================================
   DOWNLOAD BUTTON
   ============================================================ */
.btn-download {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--orange-btn);
  color: #fff !important;
  font-size: 1.1rem; font-weight: 700;
  padding: 0 48px; height: 60px;
  border-radius: 100px;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(245,166,35,0.45);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  min-width: 260px; max-width: 340px; width: 100%;
}
.btn-download:hover { transform: scale(1.03); box-shadow: 0 10px 32px rgba(245,166,35,0.55); }
.btn-download:focus { outline: 2px solid var(--ink); outline-offset: 3px; }
.btn-download svg { flex-shrink: 0; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 72px 24px; }
.section-zinc { background: var(--zinc); }
.container { max-width: var(--max-w); margin: 0 auto; }

.section-title {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 800;
  color: var(--ink);
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.section-title span { color: var(--orange-dark); }
.section-subtitle {
  text-align: center;
  color: var(--graphite);
  font-size: 0.95rem;
  max-width: 600px;
  margin: 0 auto 48px;
}

/* ============================================================
   FEATURES CAROUSEL / GRID
   ============================================================ */
.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}
.carousel-arrow {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: background .15s, border-color .15s;
  color: var(--ink);
  z-index: 2;
}
.carousel-arrow:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.features-swiper {
  flex: 1;
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 12px;
  scrollbar-width: none;
}
.features-swiper::-webkit-scrollbar { display: none; }
.swiper-card {
  flex: 0 0 220px;
  scroll-snap-align: start;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  display: flex; flex-direction: column;
}
.swiper-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.swiper-card-body { padding: 14px 16px 18px; }
.swiper-card-body h3 { font-size: 0.9rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.swiper-card-body p { font-size: 0.8rem; color: var(--graphite); line-height: 1.5; }

/* ============================================================
   INSTALL STEPS
   ============================================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.step-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}
.step-number {
  width: 48px; height: 48px;
  background: var(--orange-btn);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 800;
  margin: 0 auto 16px;
}
.step-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; color: var(--ink); }
.step-card p { font-size: 0.875rem; color: var(--graphite); line-height: 1.6; }
.btn-step {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--orange-btn); color: #fff !important;
  border-radius: 100px; padding: 10px 28px;
  font-size: 0.9rem; font-weight: 700;
  margin-top: 16px;
  box-shadow: 0 4px 14px rgba(245,166,35,0.4);
  transition: transform .15s;
}
.btn-step:hover { transform: scale(1.03); }

/* ============================================================
   PLATFORMS
   ============================================================ */
.platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 16px;
}
.platform-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 16px 8px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
  transition: transform .15s;
}
.platform-item:hover { transform: translateY(-3px); }
.platform-item img { width: 44px; height: 44px; border-radius: 10px; }
.platform-item span { font-size: 0.72rem; font-weight: 600; color: var(--graphite); text-align: center; }

/* ============================================================
   FORMATS
   ============================================================ */
.formats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.format-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}
.format-icon { margin: 0 auto 16px; }
.format-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 12px; color: var(--ink); }
.quality-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 12px; }
.tag { background: #F0F0F0; color: var(--graphite); border-radius: 100px; padding: 4px 12px; font-size: 0.75rem; font-weight: 600; }
.tag-best { background: var(--orange-btn); color: #fff; }
.format-card p { font-size: 0.82rem; color: var(--graphite); line-height: 1.5; }

/* ============================================================
   METHODS
   ============================================================ */
.methods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.method-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.method-num { font-size: 2rem; font-weight: 800; color: var(--orange-btn); margin-bottom: 12px; }
.method-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--ink); }
.method-card p { font-size: 0.85rem; color: var(--graphite); line-height: 1.6; }

/* ============================================================
   ADVANTAGES
   ============================================================ */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.advantage-card {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.advantage-card svg { flex-shrink: 0; margin-top: 3px; }
.advantage-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.advantage-card p { font-size: 0.82rem; color: var(--graphite); line-height: 1.5; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 0; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-toggle { display: none; }
.faq-question {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 4px;
  cursor: pointer;
  font-size: 0.95rem; font-weight: 600; color: var(--ink);
  gap: 12px;
  user-select: none;
  transition: color .15s;
}
.faq-question:hover { color: var(--orange-dark); }
.faq-arrow { flex-shrink: 0; transition: transform .2s ease; }
.faq-toggle:checked ~ .faq-question .faq-arrow { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-toggle:checked ~ .faq-answer { max-height: 400px; }
.faq-answer p { font-size: 0.875rem; color: var(--graphite); line-height: 1.7; padding: 0 4px 20px; }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section { background: var(--zinc); }
.cta-section h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; margin-bottom: 12px; color: var(--ink); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--ink); color: #aaa; padding: 48px 24px 80px; }
.footer-grid {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px;
  padding-bottom: 32px; border-bottom: 1px solid #2a2a2a;
}
.footer-brand p { font-size: 0.82rem; margin-top: 12px; color: #888; line-height: 1.6; }
.footer-brand .site-logo-text { color: #fff; }
.footer-col h4 { font-size: 0.85rem; font-weight: 700; color: #fff; margin-bottom: 14px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a { font-size: 0.82rem; color: #888; transition: color .15s; }
.footer-col ul li a:hover { color: var(--orange-btn); }
.footer-col ul li span { font-size: 0.82rem; color: #888; }
.footer-bottom { max-width: var(--max-w); margin: 24px auto 0; text-align: center; font-size: 0.78rem; color: #666; }
.footer-bottom a { color: var(--orange-btn); }

/* ============================================================
   STICKY FLOATING BOTTOM BAR (mobile only)
   ============================================================ */
.sticky-bar {
  display: none;
}
@media (max-width: 768px) {
  .sticky-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 9999;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    padding: 10px 20px;
    display: flex; align-items: center; justify-content: center;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.12);
  }
}

/* ============================================================
   ARTICLE PAGES
   ============================================================ */
.article-hero {
  background: var(--zinc);
  padding: 40px 24px 32px;
  border-bottom: 1px solid var(--border);
}
.article-hero-inner { max-width: var(--max-w); margin: 0 auto; }
.article-hero h1 { font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 800; color: var(--ink); margin-top: 12px; line-height: 1.25; letter-spacing: -0.02em; }
.article-hero h1 span { color: var(--orange-dark); }
.article-meta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 14px; font-size: 0.8rem; color: var(--graphite); }

.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--graphite); }
.breadcrumb a:hover { color: var(--orange-dark); }
.breadcrumb-sep { color: var(--graphite); }

.article-layout {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 280px; gap: 40px;
  padding: 40px 24px;
}
.article-content { min-width: 0; }
.article-content h2 { font-size: 1.4rem; font-weight: 800; color: var(--ink); margin: 32px 0 12px; letter-spacing: -0.01em; }
.article-content h3 { font-size: 1.05rem; font-weight: 700; color: var(--ink); margin: 24px 0 8px; }
.article-content p { font-size: 0.9rem; color: var(--graphite); line-height: 1.75; margin-bottom: 14px; }
.article-content ul, .article-content ol { padding-left: 20px; margin-bottom: 14px; }
.article-content li { font-size: 0.9rem; color: var(--graphite); line-height: 1.7; margin-bottom: 4px; }
.article-content strong { color: var(--ink); font-weight: 600; }
.article-cta-inline { display: flex; justify-content: center; margin: 28px 0; }

.article-sidebar { position: sticky; top: 80px; height: fit-content; }
.sidebar-widget {
  background: var(--zinc);
  border-radius: var(--radius);
  padding: 20px;
  display: flex; flex-direction: column; gap: 12px;
}
.sidebar-widget h4 { font-size: 0.95rem; font-weight: 700; color: var(--ink); }
.sidebar-widget p { font-size: 0.8rem; color: var(--graphite); }

.article-related { max-width: var(--max-w); margin: 0 auto; padding: 0 24px 48px; }
.article-related h3 { font-size: 1rem; font-weight: 700; margin-bottom: 16px; color: var(--ink); }
.related-links { display: flex; flex-wrap: wrap; gap: 10px; }
.related-link {
  background: var(--zinc); color: var(--ink);
  border-radius: 100px; padding: 8px 18px;
  font-size: 0.82rem; font-weight: 600;
  border: 1px solid var(--border);
  transition: background .15s, border-color .15s;
}
.related-link:hover { background: var(--orange-btn); color: #fff; border-color: var(--orange-btn); }

.btn-outline {
  display: inline-flex; align-items: center;
  border: 2px solid var(--orange-btn); color: var(--orange-dark);
  border-radius: 100px; padding: 10px 28px;
  font-size: 0.9rem; font-weight: 700;
  transition: background .15s, color .15s;
}
.btn-outline:hover { background: var(--orange-btn); color: #fff; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { display: none; }
  .platforms-grid { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); }
  .header-nav { display: none; }
  .carousel-arrow { width: 32px; height: 32px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 40px 16px 32px; }
  .section { padding: 48px 16px; }

  .hero h1 {
    font-size: clamp(1.05rem, 5vw, 1.35rem);
    white-space: nowrap;
    letter-spacing: -0.05em;
  }
}
