/* ===== VERDIUS V5 — HOMEPAGE (o9 design system) ===== */

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  background: #000;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

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

.hero-content {
  position: relative;
  z-index: 2;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
}

@media (min-width: 744px) {
  .hero-content { padding: 0 1.5rem; }
}

@media (min-width: 1280px) {
  .hero-content {
    max-width: 77.25rem;
    padding: 0;
    justify-content: center;
  }
}

@media (min-width: 1920px) {
  .hero-content { max-width: 90rem; }
}

.hero-content-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: fade-in-up 1s ease forwards;
}

@media (min-width: 1280px) {
  .hero-content-inner {
    text-align: left;
    align-items: flex-start;
    margin-top: calc(144px + var(--header-height));
  }
}

@media (min-width: 1920px) {
  .hero-content-inner {
    margin-top: calc(224px + var(--header-height));
  }
}

@media (max-width: 1279px) {
  .hero-content-inner {
    padding-top: var(--header-height-mobile);
  }
}

.hero-label {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.3;
  color: var(--color-primary);
  text-transform: uppercase;
}

.hero-title {
  font-family: 'Space Grotesk', var(--font-sans);
  font-size: 3rem;
  font-weight: 500;
  line-height: 1;
  color: #fff;
}

@media (min-width: 744px) {
  .hero-title { font-size: 3.5rem; }
}

@media (min-width: 1280px) {
  .hero-title { max-width: 66.67%; }
}

@media (min-width: 1920px) {
  .hero-title { font-size: 5rem; }
}

.hero-sub {
  color: #fff;
  font-size: 1.125rem;
  line-height: 1.3;
}

@media (min-width: 1280px) {
  .hero-sub { max-width: 50%; margin-top: 12px; }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
}

.hero-actions .btn-primary,
.hero-actions .btn-secondary {
  width: 100%;
}

@media (min-width: 744px) {
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    width: auto;
  }
}

@media (min-width: 1280px) {
  .hero-actions {
    flex-direction: row;
  }
}

/* ===== PRODUCT DEFINITION (3 Pillars) ===== */
.product-definition {
  padding: var(--section-pad) 0;
}

.product-definition .section-header {
  margin-bottom: 64px;
}

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

.pillar-card {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--white-10);
  padding: 48px 36px;
  transition: border-color 0.3s;
}

.pillar-card:hover {
  border-color: var(--white-30);
}

.pillar-number {
  font-size: var(--size-xs);
  font-weight: 500;
  color: var(--white-30);
  letter-spacing: 2px;
  margin-bottom: 24px;
}

.pillar-card h3 {
  font-size: var(--size-lg);
  font-weight: 400;
  margin-bottom: 16px;
  line-height: 1.2;
}

.pillar-card p {
  color: var(--white-50);
  font-size: var(--size-sm);
  font-weight: 300;
  line-height: 1.7;
}

.pillars-grid .reveal:nth-child(1) { transition-delay: 0ms; }
.pillars-grid .reveal:nth-child(2) { transition-delay: 100ms; }
.pillars-grid .reveal:nth-child(3) { transition-delay: 200ms; }

/* ===== PRODUCT STRIP (Platform Modules) ===== */
.product-strip {
  padding: 0 0 var(--section-pad) 0;
}

.product-strip .section-header {
  margin-bottom: 64px;
}

.section-intro {
  color: var(--white-70);
  font-size: var(--size-md);
  font-weight: 300;
  line-height: 1.7;
  margin-top: 20px;
  max-width: 640px;
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.module-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--white-10);
  padding: 36px 28px;
  transition: border-color 0.3s;
}

.module-card:hover {
  border-color: var(--white-30);
}

.module-card h3 {
  font-size: var(--size-lg);
  font-weight: 400;
  margin-bottom: 12px;
  line-height: 1.2;
}

.module-card p {
  color: var(--white-50);
  font-size: var(--size-sm);
  font-weight: 300;
  line-height: 1.7;
}

.modules-grid .reveal:nth-child(1) { transition-delay: 0ms; }
.modules-grid .reveal:nth-child(2) { transition-delay: 80ms; }
.modules-grid .reveal:nth-child(3) { transition-delay: 160ms; }
.modules-grid .reveal:nth-child(4) { transition-delay: 240ms; }

/* ===== RISK OUTPUTS ===== */
.risk-outputs {
  padding: var(--section-pad) 0 calc(var(--section-pad) * 0.4) 0;
}

.risk-outputs .section-header {
  margin-bottom: 64px;
}

/* ===== CAPABILITIES GRID ===== */
.capabilities {
  padding: var(--section-pad) 0 calc(var(--section-pad) * 0.4) 0;
}

.capabilities .section-header {
  margin-bottom: 64px;
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.capability-card {
  padding: 40px 28px 40px 0;
  border-top: 1px solid var(--white-15);
}

.capability-card:not(:last-child) {
  margin-right: 28px;
}

.capability-number {
  font-size: var(--size-xs);
  font-weight: 500;
  color: var(--white-30);
  letter-spacing: 2px;
  margin-bottom: 24px;
}

.capability-card h3 {
  font-size: var(--size-lg);
  font-weight: 400;
  margin-bottom: 16px;
  line-height: 1.2;
}

.capability-card p {
  color: var(--white-50);
  font-size: var(--size-sm);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 28px;
}

.capability-card .hidden-arrow-link {
  margin-top: auto;
}

/* Stagger reveals */
.capabilities-grid .reveal:nth-child(1) { transition-delay: 0ms; }
.capabilities-grid .reveal:nth-child(2) { transition-delay: 100ms; }
.capabilities-grid .reveal:nth-child(3) { transition-delay: 200ms; }
.capabilities-grid .reveal:nth-child(4) { transition-delay: 300ms; }

/* ===== HOW IT WORKS ===== */
.how-it-works {
  padding: var(--section-pad) 0;
  position: relative;
}

.how-it-works .section-header {
  margin-bottom: 64px;
}

.how-it-works-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  align-items: start;
}

.steps-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (max-width: 1279px) {
  .steps-list { grid-template-columns: 1fr; gap: 24px; }
}

.step-card {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--white-10);
  padding: 48px 36px;
  transition: border-color 0.3s;
}

.step-card:hover {
  border-color: var(--white-30);
}

.step-number {
  font-size: var(--size-xs);
  font-weight: 500;
  color: var(--white-30);
  letter-spacing: 2px;
  margin-bottom: 24px;
}

.step-card h3 {
  font-size: var(--size-lg);
  font-weight: 400;
  margin-bottom: 16px;
}

.step-card p {
  color: var(--white-50);
  font-size: var(--size-sm);
  font-weight: 300;
  line-height: 1.7;
}

.steps-list .reveal:nth-child(1) { transition-delay: 0ms; }
.steps-list .reveal:nth-child(2) { transition-delay: 100ms; }
.steps-list .reveal:nth-child(3) { transition-delay: 200ms; }

/* Viewfinder decoration */
.viewfinder {
  position: absolute;
  width: 260px;
  height: 260px;
  border: 1px solid var(--white-10);
  border-radius: 50%;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.viewfinder::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -20px;
  right: -20px;
  height: 1px;
  background: var(--white-10);
}

.viewfinder::after {
  content: '';
  position: absolute;
  left: 50%;
  top: -20px;
  bottom: -20px;
  width: 1px;
  background: var(--white-10);
}

/* ===== INDUSTRIES CAROUSEL ===== */
.industries-carousel {
  padding: calc(var(--section-pad) * 0.4) 0 var(--section-pad) 0;
  position: relative;
  overflow: hidden;
}

.industries-carousel .section-header {
  margin-bottom: 64px;
}

.ind-carousel-viewport {
  overflow: hidden;
}

.ind-carousel-track {
  display: flex;
  transition: transform 0.6s ease;
}

.ind-carousel-slide {
  flex: 0 0 100%;
  min-width: 100%;
  position: relative;
  aspect-ratio: 21/9;
  overflow: hidden;
}

.ind-carousel-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.ind-carousel-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0.2) 100%);
}

.ind-carousel-slide-content {
  position: relative;
  z-index: 2;
  padding: clamp(40px, 5vw, 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  max-width: 600px;
}

.ind-carousel-slide-content .section-label {
  margin-bottom: 16px;
}

.ind-carousel-slide-content h3 {
  font-size: var(--size-5xl);
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 20px;
}

.ind-carousel-slide-content p {
  color: var(--white-70);
  font-size: var(--size-md);
  font-weight: 400;
  line-height: 1.7;
  margin-bottom: 32px;
  opacity: 0.85;
}

.ind-carousel-slide-content .btn-secondary {
  height: 48px;
  padding: 11px 24px;
  font-size: var(--size-md);
}

/* Carousel controls */
.ind-carousel-controls {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 32px;
}

.ind-carousel-btn {
  width: 48px;
  height: 48px;
  border: 1px solid var(--white-30);
  background: transparent;
  color: var(--color-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.ind-carousel-btn:hover {
  background: var(--white-10);
  border-color: var(--color-white);
}

.ind-carousel-btn svg {
  width: 18px;
  height: 18px;
}

.ind-carousel-counter {
  font-size: var(--size-sm);
  color: var(--white-50);
  letter-spacing: 2px;
  font-weight: 500;
}

.ind-carousel-counter .current {
  color: var(--color-white);
}

/* ===== CTA ===== */
.cta {
  padding: var(--section-pad) 0;
  position: relative;
  overflow: hidden;
}

.cta-inner {
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
  position: relative;
}

.cta-inner .corner {
  width: 50px;
  height: 50px;
}

.cta-inner .corner--tl { top: -50px; left: -60px; }
.cta-inner .corner--tr { top: -50px; right: -60px; }
.cta-inner .corner--bl { bottom: -50px; left: -60px; }
.cta-inner .corner--br { bottom: -50px; right: -60px; }

.cta-line {
  white-space: nowrap;
}

.cta-inner h2 {
  font-size: var(--size-5xl);
  letter-spacing: -1px;
  margin-bottom: 24px;
  line-height: 1.15;
}

.cta-inner p {
  color: var(--white-70);
  font-size: var(--size-md);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 44px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== RESPONSIVE — HOMEPAGE ===== */
@media (max-width: 1279px) {
  .pillars-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .modules-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .capabilities-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0 32px;
  }

  .capability-card:not(:last-child) {
    margin-right: 0;
  }

  .ind-carousel-slide {
    aspect-ratio: 16/9;
  }

  .viewfinder {
    display: none;
  }
}

@media (max-width: 743px) {
  .hero-sub {
    max-width: 100%;
  }

  .hero-title {
    max-width: 100%;
  }

  .modules-grid {
    grid-template-columns: 1fr;
  }

  .capabilities-grid {
    grid-template-columns: 1fr;
  }

  .ind-carousel-slide {
    aspect-ratio: 3/4;
  }

  .ind-carousel-slide-content h3 {
    font-size: var(--size-3xl);
  }

  .ind-carousel-slide-content .btn-secondary {
    width: 100%;
    height: 52px;
    font-size: var(--size-base);
    justify-content: center;
  }

  .cta-line {
    white-space: normal;
  }

  .cta-inner .corner {
    display: none;
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }
}
