/* =============================================
   HOMEPAGE — pocstock-homepage
   Styles unique to the site homepage.
   Nav scroll behavior, hero video, AI showcase,
   split sections, trust bar, press grid.
   ============================================= */

/* --- Homepage Nav Overrides (transparent → solid on scroll) --- */
.nav--homepage {
  position: fixed;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.25);
  border-bottom-color: rgba(255,255,255,0.15);
}

.nav--homepage .nav-logo .logo-light { display: block; }
.nav--homepage .nav-logo .logo-dark { display: none; }

.nav--homepage .nav-menu > li > a,
.nav--homepage .nav-menu > li > button {
  color: rgba(255,255,255,0.9);
}

.nav--homepage .nav-menu > li > a:hover,
.nav--homepage .nav-menu > li > button:hover {
  background: rgba(255,255,255,0.15);
  color: white;
}

.nav--homepage .btn-ghost {
  color: rgba(255,255,255,0.9);
}
.nav--homepage .btn-ghost:hover {
  background: rgba(255,255,255,0.15);
}

/* Scrolled state — reverts to standard solid nav */
.nav--homepage.scrolled {
  background: rgba(255,255,255,0.95);
  border-bottom-color: var(--poc-warm-gray);
}

.nav--homepage.scrolled .nav-logo .logo-light { display: none; }
.nav--homepage.scrolled .nav-logo .logo-dark { display: block; }

.nav--homepage.scrolled .nav-menu > li > a,
.nav--homepage.scrolled .nav-menu > li > button {
  color: var(--poc-dark-gray);
}

.nav--homepage.scrolled .nav-menu > li > a:hover,
.nav--homepage.scrolled .nav-menu > li > button:hover {
  background: var(--poc-offwhite);
  color: var(--poc-black);
}

.nav--homepage.scrolled .btn-ghost {
  color: var(--poc-dark-gray);
}
.nav--homepage.scrolled .btn-ghost:hover {
  background: var(--poc-offwhite);
}

/* --- Hero Video --- */
.hero-video {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 540px;
  overflow: hidden;
}

.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video .video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.45) 100%);
  pointer-events: none;
}

/* Typewriter hero text overlay */
.hero-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 5;
  color: white;
  text-align: center;
  padding: 0 40px;
  pointer-events: none;
}

.hero-text .hero-static {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 700;
  opacity: 0.85;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero-text .hero-dynamic {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  height: 1.2em;
}

.hero-text .hero-dynamic .tw-word {
  display: inline-block;
  min-width: 4em;
  border-right: 2px solid rgba(255,255,255,0.7);
  padding-right: 4px;
  white-space: nowrap;
  height: 1.2em;
  line-height: 1.2em;
  vertical-align: top;
}

.hero-text .hero-dynamic .tw-word.left { text-align: right; }
.hero-text .hero-dynamic .tw-word.right { text-align: left; }

.hero-text .hero-dynamic .tw-word.done {
  border-right-color: transparent;
}

.hero-text .hero-dynamic .tw-plus {
  font-weight: 300;
  opacity: 0.5;
  font-size: 0.7em;
  display: inline-block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-text .hero-dynamic .tw-plus.spin {
  transform: rotate(360deg);
}

@keyframes blink {
  0%, 100% { border-right-color: rgba(255,255,255,0.7); }
  50% { border-right-color: transparent; }
}

.hero-text .hero-dynamic .tw-word.typing {
  animation: blink 0.6s step-end infinite;
}

.hero-text .hero-dynamic .tw-word.waiting {
  border-right-color: transparent;
}

/* --- Headline Section --- */
.headline-section {
  text-align: center;
  padding: 80px 40px 60px;
}

.headline-section .tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--poc-accent);
  background: rgba(232,93,38,0.08);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.headline-section h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--poc-black);
  max-width: 900px;
  margin: 0 auto 24px;
}

.headline-section h1 em {
  font-style: normal;
  color: var(--poc-accent);
}

.headline-section p {
  font-size: 18px;
  color: var(--poc-mid-gray);
  max-width: 620px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.headline-section .cta-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

/* --- AI Showcase Section --- */
.ai-section {
  padding: var(--section-pad) 0;
}

.ai-intro {
  text-align: center;
  margin-bottom: 72px;
}

.ai-intro h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.ai-intro p {
  font-size: 17px;
  color: var(--poc-mid-gray);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

.ai-capability {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 48px 0;
  border-top: 1px solid var(--poc-warm-gray);
}

.ai-capability:first-of-type { border-top: none; }

.ai-capability.reverse .ai-cap-visual { order: 2; }
.ai-capability.reverse .ai-cap-text { order: 1; }

.ai-cap-visual {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.ai-cap-text .cap-label {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--poc-accent);
  margin-bottom: 12px;
}

.ai-cap-text h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 14px;
}

.ai-cap-text p {
  font-size: 15px;
  color: var(--poc-mid-gray);
  line-height: 1.7;
  margin-bottom: 24px;
}

.ai-cap-text .cap-link {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--poc-accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}

.ai-cap-text .cap-link:hover { gap: 10px; }

/* --- Split Sections (Stock, Production, Contribute) --- */
.split-section {
  padding: var(--section-pad) 0;
}

.split-section.alt-bg { background: var(--poc-white); }

.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split-layout.reverse .split-visual { order: 2; }
.split-layout.reverse .split-text { order: 1; }

.split-visual {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.split-text .split-label {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--poc-accent);
  margin-bottom: 12px;
}

.split-text h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 16px;
}

.split-text p {
  font-size: 15px;
  color: var(--poc-mid-gray);
  line-height: 1.7;
  margin-bottom: 28px;
}

/* --- Face Grid (homepage variant) --- */
.face-grid-wrap {
  padding: var(--section-pad) 0;
  background: var(--poc-white);
}

.face-grid-wrap .face-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  border-radius: 16px;
  overflow: hidden;
  margin-top: 48px;
}

.face-grid-wrap .face-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.face-grid-wrap .face-grid img:hover {
  transform: scale(1.08);
  z-index: 2;
  position: relative;
}

/* --- Trust Section --- */
.trust-section {
  padding: 90px 0;
  background: var(--poc-black);
}

.trust-section .trust-label {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.35);
  margin-bottom: 36px;
}

.trust-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 56px;
  flex-wrap: wrap;
}

.trust-logos .trust-logo {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: rgba(255,255,255,0.55);
  letter-spacing: -0.02em;
  transition: color 0.3s;
}

.trust-logos .trust-logo:hover { color: rgba(255,255,255,0.85); }

.trust-logos.two-rows {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px 48px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

/* --- Press Section --- */
.press-section {
  padding: var(--section-pad) 0;
  background: var(--poc-white);
}

.press-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.press-card {
  background: var(--poc-offwhite);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--poc-warm-gray);
  transition: all 0.3s;
  cursor: pointer;
  display: block;
  color: inherit;
}

.press-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.06);
}

.press-card .press-thumb {
  height: 180px;
  overflow: hidden;
}

.press-card .press-body {
  padding: 20px;
}

.press-card .press-source {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--poc-mid-gray);
  margin-bottom: 8px;
}

.press-card .press-headline {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.press-card .press-blurb {
  font-size: 13px;
  color: var(--poc-mid-gray);
  line-height: 1.6;
}

/* --- Counter Animation --- */
.stat-number[data-target] {
  transition: none;
}

/* --- Additional placeholders --- */
.placeholder-9 { background: linear-gradient(135deg, #c9a86c, #8d7341); }
.placeholder-10 { background: linear-gradient(135deg, #7aa89e, #4a756b); }
.placeholder-11 { background: linear-gradient(135deg, #b07a6e, #7a4f44); }
.placeholder-12 { background: linear-gradient(135deg, #a094c4, #6a5d8e); }

/* --- Homepage Responsive --- */
@media (max-width: 1024px) {
  .ai-capability, .split-layout { grid-template-columns: 1fr; gap: 32px; }
  .ai-capability.reverse .ai-cap-visual,
  .split-layout.reverse .split-visual { order: 0; }
  .ai-capability.reverse .ai-cap-text,
  .split-layout.reverse .split-text { order: 0; }
  .face-grid-wrap .face-grid { grid-template-columns: repeat(4, 1fr); }
  .press-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero-video { height: 50vh; min-height: 280px; }
  .face-grid-wrap .face-grid { grid-template-columns: repeat(4, 1fr); }
  .press-grid { grid-template-columns: 1fr; }
  .headline-section { padding: 48px 20px 40px; }
  .headline-section .cta-group { flex-direction: column; align-items: center; }
}
