/* Company pages + shared enhancements for About, Infrastructure, News articles */

:root {
  --company-bg: var(--bg-elevated, #111113);
  --company-border: rgba(255, 255, 255, 0.20);
  --company-text-muted: #dde2e8;
  --company-text: #ffffff;
  --company-text-light: #b4bcc6;
  --company-card-bg: rgba(255, 255, 255, 0.08);
  --company-card-solid: #22262e;
  --company-radius-sm: var(--radius-sm, 8px);
  --company-radius-lg: var(--radius-lg, 14px);
}

/* Consistent, generous section spacing across company pages */
.company-page .section,
.marketing-page.company-page .section {
  padding: 72px 0;
}

.company-page .section.compact,
.marketing-page.company-page .section.compact {
  padding: 72px 0;
}

.company-page .hero,
.marketing-page.company-page .hero {
  padding: 80px 0 32px;
}

.company-page .hero + .section,
.company-page .hero + .section.compact {
  padding-top: 64px;
}

.company-page .section-header {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}

.company-page .section-header h2 {
  color: #ffffff;
  margin: 0 0 16px;
}

.company-page .section-header p {
  color: var(--text-muted);
  margin: 0;
}

/* Divider between hero and first section */
.company-divider {
  max-width: 720px;
  height: 1px;
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, rgba(92, 225, 230, 0.35), transparent);
}

/* About page split hero heading */
.about-hero .hero-title {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 0.35em;
  line-height: 1.1;
}

.about-hero .hero-title .gradient-text {
  color: #ffffff;
  background: linear-gradient(135deg, #7df1f6, #5bd963);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-hero .hero-title-white {
  color: #ffffff;
}

.about-lead {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  color: var(--text-muted);
}

.about-lead p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0 0 18px;
}

.about-lead p:last-child {
  margin-bottom: 0;
}

/* Lloyd section heading with clipped dog mark */
.lloyd-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 28px;
}

.lloyd-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: #ffffff;
}

.lloyd-mark {
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #111113 url('/img/lloyd-mark.svg') no-repeat center / cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.lloyd-mark img {
  display: none;
}

/* Product screenshot placeholder */
.product-screenshot-placeholder {
  max-width: 1100px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #18181b, #0d0d0f);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--company-radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  color: #ffffff;
  font-weight: 600;
}

.product-screenshot-placeholder .placeholder-value {
  margin-top: 8px;
  color: var(--text-light);
  font-weight: 500;
  font-size: 0.9rem;
}

.product-screenshot {
  max-width: 1100px;
  margin: 0 auto;
}

.product-screenshot img {
  width: 100%;
  border-radius: var(--company-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.product-screenshot figcaption {
  text-align: center;
  color: var(--text-light);
  font-size: 0.85rem;
  margin-top: 12px;
}

/* Feature grid — always balanced rows, never an orphan card */
.feature-grid,
.lloyd-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
  width: 100%;
  box-sizing: border-box;
}

.feature-grid .feature-card,
.lloyd-grid .feature-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
}

.feature-card {
  background: #181a1e;
  background-image: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0) 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--company-radius-sm);
  padding: 28px;
}

/* Keep feature grids in balanced two-column rows on all widths */
.feature-grid.even-rows {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.feature-card h3 {
  color: #ffffff;
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.feature-card p {
  color: var(--company-text-light, #b4bcc6);
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--company-radius-sm);
  display: grid;
  place-items: center;
  background: rgba(92, 225, 230, 0.12);
  color: #5ce1e6;
  margin-bottom: 18px;
  border: 1px solid rgba(92, 225, 230, 0.22);
}

.feature-icon svg {
  width: 28px;
  height: 28px;
}

/* Only go 4-across on very wide screens when explicitly requested */
@media (min-width: 1200px) {
  .feature-grid.four-col {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
  }

  .feature-grid.four-col .feature-card {
    padding: 28px;
  }
}

@media (max-width: 480px) {
  .feature-grid,
  .lloyd-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Difference list used on About */
.difference-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.difference-item {
  display: flex;
  gap: 16px;
  background: #181a1e;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--company-radius-sm);
  padding: 24px;
}

.difference-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--company-radius-sm);
  display: grid;
  place-items: center;
  background: rgba(92, 225, 230, 0.12);
  color: #5ce1e6;
  flex-shrink: 0;
  border: 1px solid rgba(92, 225, 230, 0.22);
}

.difference-icon svg {
  width: 24px;
  height: 24px;
}

.difference-body h3 {
  color: #ffffff;
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.difference-body p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
}

@media (max-width: 720px) {
  .difference-list {
    grid-template-columns: 1fr;
  }
}

/* Timeline used on About */
.timeline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
}

/* Timeline connecting track */
.foundation-list {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding-top: 24px;
}

.foundation-list::before {
  content: '';
  position: absolute;
  top: 32px;
  left: calc((100% - 56px) / 6);
  right: calc((100% - 56px) / 6);
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(90deg, rgba(92, 225, 230, 0.6), rgba(91, 217, 99, 0.6));
  z-index: 0;
  pointer-events: none;
}

.foundation-item {
  position: relative;
  z-index: 1;
  text-align: center;
  flex: 1 1 0;
  min-width: 0;
}

.foundation-dot {
  width: 18px;
  height: 18px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7df1f6, #5bd963);
  box-shadow: 0 0 0 3px rgba(11, 12, 14, 0.65), 0 0 0 5px rgba(92, 225, 230, 0.08);
  font-size: 0;
}

.foundation-date {
  display: inline-block;
  color: #5ce1e6;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.foundation-item h4 {
  color: #ffffff;
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.foundation-item p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
}

@media (max-width: 720px) {
  .foundation-list {
    flex-direction: column;
    gap: 32px;
    max-width: 480px;
    padding-top: 0;
    padding-left: 24px;
  }

  .foundation-list::before {
    top: 9px;
    bottom: 9px;
    left: 17px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, rgba(92, 225, 230, 0.55), rgba(91, 217, 99, 0.55));
  }

  .foundation-item {
    text-align: left;
    padding-left: 40px;
  }

  .foundation-dot {
    position: absolute;
    left: 8px;
    top: 0;
    margin: 0;
  }
}

@media (max-width: 720px) {
  .timeline {
    flex-direction: column;
    gap: 28px;
  }
  .timeline::before {
    display: none;
  }
}

/* Infrastructure terminal-style platform captures */
.capture-frame {
  background: #0d0e10;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--company-radius-sm);
  padding: 18px;
  font-family: var(--font);
  color: var(--text-muted);
}

.capture-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.capture-header span:first-child,
.capture-header span:nth-child(2),
.capture-header span:nth-child(3) {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.capture-title {
  margin-left: auto;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
}

.capture-body {
  display: grid;
  gap: 10px;
}

.capture-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
}

.capture-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.capture-dot.ok { background: var(--accent-green); }
.capture-dot.warn { background: #f59e0b; }

.capture-label {
  flex: 1;
  color: var(--text);
}

.capture-stat {
  color: var(--accent-cyan);
  font-weight: 600;
}

.capture-bars {
  display: grid;
  gap: 10px;
}

.capture-bar {
  display: grid;
  grid-template-columns: 90px 1fr 40px;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
}

.capture-bar-label {
  color: var(--text-light);
}

.capture-bar-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.capture-bar-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-green), var(--accent-cyan));
  border-radius: 3px;
}

.capture-bar-val {
  text-align: right;
  color: var(--text);
}

/* Architecture diagram used on Infrastructure */
.architecture-diagram {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.arch-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.arch-node {
  background: #181a1e;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--company-radius-sm);
  padding: 18px 22px;
  text-align: center;
  min-width: 160px;
}

.arch-node-title {
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 6px;
}

.arch-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

.arch-arrow {
  color: var(--accent-cyan);
  font-size: 1.4rem;
}

/* Stat cards */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.stat-card {
  background: #181a1e;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--company-radius-sm);
  padding: 28px;
  text-align: center;
}

.stat-card .stat-value {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}

.stat-card p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.95rem;
}

@media (max-width: 600px) {
  .stat-row {
    grid-template-columns: 1fr;
  }
}

/* Nav dropdown shared styles */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  background: transparent;
  border: none;
  font: inherit;
  color: var(--text-muted);
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
}

.nav-dropdown-toggle::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 180px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  display: none;
  flex-direction: column;
  padding: 8px 0;
  z-index: 200;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  display: flex;
}

.nav-dropdown-menu a {
  padding: 10px 18px;
  color: var(--text-muted);
  white-space: nowrap;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
  color: var(--text);
  background: rgba(255,255,255,0.05);
}

@media (max-width: 900px) {
  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0 0 0 12px;
    display: none;
  }
  .nav-dropdown.open .nav-dropdown-menu {
    display: flex;
  }
}

/* Article page shared */
.article-page {
  padding: 48px 0;
}

.article-header {
  max-width: 760px;
  margin: 0 auto 32px;
  text-align: center;
}

.article-content {
  max-width: 720px;
  margin: 0 auto;
  color: var(--text-muted);
  line-height: 1.7;
}

.article-content h2,
.article-content h3 {
  color: #ffffff;
  margin: 32px 0 12px;
}

.article-content p {
  margin: 0 0 18px;
}

.article-content ul {
  margin: 0 0 18px;
  padding-left: 1.25rem;
}

.article-content li {
  margin-bottom: 8px;
}

/* Ensure about/infrastructure use dark theme even without marketing.css */
.company-page {
  background: var(--bg);
  color: var(--text);
}

/* Center CTA sections on company pages */
.cta-section .container,
.section.cta-section .container {
  text-align: center;
}

.cta-section .hero-actions,
.cta-section .cta-content .hero-actions {
    justify-content: center;
  }

  /* Split media/text layout — e.g., game-maker image on About */
  .feature-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
  }

  .feature-split-media {
    border-radius: var(--company-radius-lg);
    overflow: hidden;
    background: var(--company-card-solid);
    border: 1px solid var(--company-border);
  }

  .feature-split-media img {
    display: block;
    width: 100%;
    height: auto;
  }

  .feature-split-body h3 {
    color: #ffffff;
    margin: 0 0 16px;
    font-size: 1.6rem;
  }

  .feature-split-body p {
    color: var(--text-muted);
    margin: 0 0 16px;
    line-height: 1.7;
  }

  @media (min-width: 900px) {
    .feature-split {
      grid-template-columns: 1fr 1fr;
      gap: 56px;
    }
  }
