/* ============================================================
   BoYang Studio Portal — Editorial Product Studio Style
   ============================================================ */

:root {
  --ink: #1a1523;
  --muted: #6b6478;
  --soft: #9b94a8;
  --line: rgba(26, 21, 35, 0.08);
  --paper: #fffdfc;
  --wash: #f8f6ff;
  --brand-blue: #1651aa;
  --brand-blue-dark: #103d84;
  --brand-blue-light: #e8eef9;
  --lavender: #8270d4;
  --lavender-light: #ede9ff;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", -apple-system, "PingFang SC", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
}

/* ============================================================
   Header
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 252, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1200px;
  height: 72px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  background: var(--brand-blue);
  color: #fff;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-family: "Inter", sans-serif;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 42px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.brand-logo-sm {
  height: 28px;
}

.brand-mark-sm {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 11px;
}

.brand-name {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-name strong {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--brand-blue);
  line-height: 1.1;
}

.brand-name span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--soft);
  line-height: 1;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--ink);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 70% 80% at 20% 50%, rgba(22, 81, 170, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 60% 60% at 80% 30%, rgba(53, 123, 230, 0.07) 0%, transparent 70%),
    var(--paper);
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 40px 110px;
}

.hero-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--brand-blue);
  margin-bottom: 28px;
}

.hero-headline {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, sans-serif;
  font-size: clamp(44px, 5.5vw, 72px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 30px;
}

.hero-headline em {
  font-style: italic;
  background: linear-gradient(120deg, #1651aa 0%, #357be6 55%, #2bb8ea 100%);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-body {
  max-width: 520px;
  font-size: 17px;
  line-height: 1.9;
  color: var(--muted);
  margin-bottom: 48px;
}

.scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-blue);
  transition: gap 0.25s ease, opacity 0.25s ease;
}

.scroll-hint svg {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
}

.scroll-hint:hover {
  opacity: 0.75;
}

.scroll-hint:hover svg {
  transform: translateY(3px);
}

/* ============================================================
   Products Section
   ============================================================ */
.products {
  padding: 0;
}

.products-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.products-heading {
  padding: 80px 0 56px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  gap: 20px;
}

.label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--soft);
}

.products-heading h2 {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 36px;
  font-weight: 400;
  color: var(--ink);
}

/* ============================================================
   Product Row
   ============================================================ */
.product-row {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 80px 0;
}

.product-divider {
  border: none;
  border-top: 1px solid var(--line);
}

.product-row-upcoming {
  opacity: 0.65;
}

/* Screenshot / Visual */
.product-visual {
  position: relative;
}

.product-screenshot-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--wash);
  border: 1px solid rgba(22, 81, 170, 0.12);
  box-shadow:
    0 4px 12px rgba(22, 81, 170, 0.04),
    0 20px 45px rgba(22, 81, 170, 0.09);
  aspect-ratio: 4 / 3;
}

.product-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-screenshot-wrap:hover .product-screenshot {
  transform: scale(1.025);
}

.screenshot-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 20px rgba(50, 40, 80, 0.2);
}

.screenshot-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.screenshot-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f3f0ff, #fce8f3);
}

.placeholder-inner {
  text-align: center;
  color: var(--soft);
}

.placeholder-glyph {
  display: block;
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.5;
}

.placeholder-inner p {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Product Copy */
.product-title-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.meta-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--brand-blue-light);
  color: var(--brand-blue);
  border: 1px solid rgba(22, 81, 170, 0.2);
}

.meta-live {
  background: #f0fff4;
  color: #22863a;
  border-color: rgba(34, 134, 58, 0.2);
}

.product-icon-lg {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  object-fit: cover;
  box-shadow:
    0 6px 16px rgba(22, 81, 170, 0.14),
    0 2px 4px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}

.product-icon-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: var(--wash);
  color: var(--soft);
  display: grid;
  place-items: center;
  font-size: 20px;
  border: 1.5px dashed rgba(155, 148, 168, 0.4);
  flex-shrink: 0;
}

.product-name {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 52px;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 0;
}

.product-tagline {
  font-size: 16px;
  font-weight: 500;
  color: var(--brand-blue);
  margin-bottom: 22px;
}

.product-desc {
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted);
  margin-bottom: 24px;
}

.product-features {
  list-style: none;
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-features li {
  font-size: 13px;
  color: var(--muted);
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}

.product-features li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--soft);
  font-size: 11px;
  top: 1px;
}

/* Buttons */
.product-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding: 0 26px;
  background: var(--brand-blue);
  color: #fff;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 46px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.7);
  transition: all 0.2s ease;
}

.btn-ghost svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.btn-ghost:hover {
  border-color: rgba(26, 21, 35, 0.2);
  color: var(--ink);
}

.btn-coming {
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding: 0 26px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--soft);
  border: 1px dashed rgba(155, 148, 168, 0.4);
  cursor: default;
  letter-spacing: 0.01em;
}

/* ============================================================
   Scroll reveal
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: none;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  border-top: 1px solid var(--line);
  padding: 56px 40px;
  margin-top: 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}

.footer-brand p {
  font-size: 12px;
  color: var(--soft);
}

.footer-copy {
  font-size: 12px;
  color: var(--soft);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .product-row {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 36px 24px;
  }

  .header-inner,
  .hero-inner,
  .products-inner,
  .footer {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (max-width: 580px) {
  .hero-headline {
    font-size: 44px;
  }

  .product-name {
    font-size: 38px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .product-screenshot {
    transition: none;
  }
}
