/* =========================================================
   YThumb — landing page
   ========================================================= */

.landing { overflow-x: hidden; }

/* ---------- Nav ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-nav.is-scrolled { border-bottom-color: var(--border); }
.site-nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.site-links { display: flex; gap: 4px; }
.site-links a {
  padding: 8px 12px; border-radius: var(--radius-sm);
  color: var(--text-2); font-weight: 500; font-size: 14px;
  transition: color .15s, background-color .15s;
}
.site-links a:hover { color: var(--text); background: var(--surface-2); }
.site-nav-actions { display: flex; align-items: center; gap: 8px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 96px; }
.hero-bg {
  position: absolute; inset: -120px 0 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px 380px at 78% 30%, rgba(255, 51, 88, .22), transparent 70%),
    radial-gradient(520px 320px at 12% 10%, rgba(255, 210, 63, .10), transparent 70%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 10%, transparent 70%);
  opacity: .5;
}
.hero-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.hero-copy h1 {
  font-size: clamp(40px, 5.6vw, 66px);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin: 20px 0 18px;
}
.hl {
  background: linear-gradient(100deg, var(--brand) 10%, #ff8a3d 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: 18px; color: var(--text-2); max-width: 520px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 24px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--text-2); font-size: 14px; }
.hero-points i { color: var(--success); margin-right: 6px; }

/* Editor mock */
.hero-visual { position: relative; }
.mock-window {
  border-radius: 18px;
  background: #121219;
  border: 1px solid #262631;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255,255,255,.02) inset;
  overflow: hidden;
  transform: perspective(1600px) rotateY(-6deg) rotateX(2deg);
}
.mock-bar { display: flex; align-items: center; gap: 7px; height: 42px; padding: 0 14px; border-bottom: 1px solid #262631; }
.mock-bar > span { width: 10px; height: 10px; border-radius: 50%; background: #34343f; }
.mock-bar > span:first-child { background: #ff5f57; }
.mock-bar > span:nth-child(2) { background: #febc2e; }
.mock-bar > span:nth-child(3) { background: #28c840; }
.mock-title { margin-left: 12px; font-size: 12px; color: #9a9aac; font-weight: 500; }
.mock-btn { margin-left: auto; font-size: 11px; font-weight: 700; color: #fff; background: var(--brand); padding: 4px 10px; border-radius: 6px; }
.mock-body { display: flex; }
.mock-rail { display: flex; flex-direction: column; gap: 18px; padding: 18px 14px; border-right: 1px solid #262631; color: #6f6f82; font-size: 14px; }
.mock-rail .is-active { color: var(--brand); }
.mock-stage {
  flex: 1; padding: 28px;
  background-color: #0d0d12;
  background-image: radial-gradient(#22222c 1px, transparent 1px);
  background-size: 16px 16px;
}
.mock-canvas { aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; box-shadow: 0 16px 40px rgba(0,0,0,.6); outline: 2px solid var(--brand); outline-offset: 3px; }
.mock-canvas img { width: 100%; height: 100%; object-fit: cover; }
.mock-canvas.is-loading img { opacity: 0; }

.float-chip {
  position: absolute;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 12px;
  background: var(--bg-elev); border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  font-size: 13px; font-weight: 600;
}
.float-chip i { color: var(--brand); }
.chip-a { top: 18%; left: -28px; }
.chip-b { bottom: -18px; right: 24px; }
.chip-b i { color: var(--success); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-elev); border-block: 1px solid var(--border); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; margin: 10px 0 12px; }
.section-head p { font-size: 17px; }
.eyebrow { font-size: 13px; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .08em; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { padding: 26px; transition: border-color .2s, transform .2s var(--ease); }
.feature:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.feature h3 { font-size: 17px; margin: 18px 0 8px; }
.feature p { font-size: 14.5px; }
.feature-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); font-size: 18px;
}

.template-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.template-card {
  display: flex; flex-direction: column; gap: 10px; text-align: left;
  padding: 0; border: 0; background: none; cursor: pointer;
}
.template-card span { font-weight: 600; font-size: 14px; color: var(--text-2); }
.template-thumb {
  aspect-ratio: 16 / 9; border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--border);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.template-thumb img { width: 100%; height: 100%; object-fit: cover; }
.template-thumb.is-loading img { opacity: 0; }
.template-card:hover .template-thumb { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.template-card:hover span { color: var(--text); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); }
.step-num {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: var(--text); color: var(--bg); font-weight: 800; font-family: var(--font-display);
}
.step h3 { font-size: 18px; margin: 18px 0 6px; }

.faq-wrap { max-width: 760px; }
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 0 20px; }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { color: var(--text-3); transition: transform .2s; }
.faq details[open] summary i { transform: rotate(45deg); }
.faq details p { padding-bottom: 18px; font-size: 15px; }

.cta {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 44px;
  background:
    radial-gradient(500px 200px at 100% 0%, rgba(255, 51, 88, .22), transparent 70%),
    var(--surface);
}
.cta h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; margin-bottom: 8px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0; }
.site-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.site-footer .brand { font-size: 16px; }
.site-footer .brand img { width: 28px; height: 28px; }

/* ---------- Sign-in modal ---------- */
.signin-dialog { max-width: 400px; position: relative; text-align: center; }
.signin-dialog .modal-body { padding: 36px 32px 28px; }
.signin-close { position: absolute; top: 12px; right: 12px; }
.signin-logo { width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 18px; }
.signin-dialog h3 { font-size: 22px; margin-bottom: 8px; }
.gsi-slot { display: flex; justify-content: center; align-items: center; min-height: 44px; margin: 26px 0 14px; color: var(--text-3); }
.signin-error { color: var(--danger); font-size: 13px; margin-bottom: 10px; }
.signin-legal { font-size: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero { padding-top: 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .mock-window { transform: none; }
  .chip-a { left: 8px; }
  .feature-grid, .template-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .site-links { display: none; }
}
@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .feature-grid, .template-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
  .cta { padding: 28px; }
  .mock-rail { display: none; }
  .mock-stage { padding: 14px; }
  .float-chip { display: none; }
}
