/* =============== Company Page =============== */

/* Subpage Hero */
.subpage-hero {
  padding: clamp(40px, 5vw, 64px) 0;
  background: var(--gradient-brand-soft);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.subpage-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 0%, rgb(124 58 237 / 12%) 0%, transparent 40%),
    radial-gradient(circle at 10% 100%, rgb(99 102 241 / 10%) 0%, transparent 40%);
  pointer-events: none;
}

.subpage-hero__eyebrow {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.25em;
  color: var(--clr-primary);
  margin-bottom: var(--space-3);
  position: relative;
}

.subpage-hero h2 {
  font-size: clamp(1.8rem, 3.5vw + 0.5rem, 2.8rem);
  font-weight: 800;
  color: var(--clr-text);
  margin-bottom: var(--space-4);
  letter-spacing: 0.01em;
  line-height: 1.3;
  position: relative;
}

.subpage-hero p {
  font-size: var(--fs-md);
  color: var(--clr-text-muted);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.85;
  position: relative;
}

/* Shared section utilities */
.section-eyebrow {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--clr-primary);
  margin-bottom: var(--space-3);
}

.section-lead {
  text-align: center;
  color: var(--clr-text-muted);
  font-size: var(--fs-md);
  max-width: 720px;
  margin: 0 auto var(--space-12);
  line-height: 1.85;
}

/* Mission */
.company-mission {
  padding: clamp(64px, 8vw, 120px) 0;
  background: #fff;
}

.mission-body {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.mission-body p {
  font-size: var(--fs-md);
  color: var(--clr-text-muted);
  line-height: 1.95;
  margin-bottom: var(--space-4);
}

.mission-body p:last-child {
  margin-bottom: 0;
}

/* What We Do — Domain cards */
.company-domains {
  padding: clamp(64px, 8vw, 120px) 0;
  background: var(--clr-surface);
}

.domain-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
}

.domain-card {
  background: #fff;
  border: 1px solid var(--clr-border);
  border-radius: 16px;
  padding: 2rem 1.75rem;
  box-shadow:
    0 1px 3px rgb(15 23 42 / 6%),
    0 8px 24px rgb(15 23 42 / 6%);
  position: relative;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.domain-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 6px 16px rgb(15 23 42 / 8%),
    0 22px 44px rgb(15 23 42 / 10%);
  border-color: rgb(99 102 241 / 35%);
}

.domain-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--gradient-brand);
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow:
    0 6px 16px rgb(99 102 241 / 28%),
    0 2px 4px rgb(15 23 42 / 8%);
}

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

.domain-card h3 {
  font-size: var(--fs-lg);
  font-weight: 800;
  color: var(--clr-text);
  margin: 0;
  letter-spacing: 0.01em;
}

.domain-card > p {
  color: var(--clr-text-muted);
  line-height: 1.85;
  font-size: 0.95rem;
  margin: 0;
}

.domain-points {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
  border-top: 1px solid var(--clr-border);
  padding-top: var(--space-4);
}

.domain-points li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.9rem;
  color: var(--clr-text);
  font-weight: 600;
}

.domain-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clr-primary);
  box-shadow: 0 0 0 4px rgb(99 102 241 / 16%);
}

/* History — Timeline */
.company-history {
  padding: clamp(64px, 8vw, 120px) 0;
  background: #fff;
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 760px;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--clr-primary) 0%, var(--clr-primary-2) 100%);
  opacity: 0.5;
}

.timeline-item {
  position: relative;
  padding-left: 44px;
  padding-bottom: var(--space-8);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: 0;
  top: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--clr-primary);
  box-shadow:
    0 0 0 4px rgb(99 102 241 / 14%),
    0 2px 6px rgb(15 23 42 / 8%);
}

.timeline-item--latest .timeline-marker {
  background: var(--gradient-brand);
  border-color: transparent;
  box-shadow:
    0 0 0 5px rgb(124 58 237 / 18%),
    0 4px 12px rgb(124 58 237 / 35%);
}

.timeline-item--latest .timeline-marker::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.4;
}

.timeline-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}

.timeline-year {
  font-family: ui-monospace, "SF Mono", monospace;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--clr-primary);
}

.timeline-region {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  background: var(--clr-surface);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  border: 1px solid var(--clr-border);
}

.timeline-title {
  font-size: var(--fs-md);
  font-weight: 800;
  color: var(--clr-text);
  margin: 0 0 var(--space-2);
  letter-spacing: 0.01em;
}

.timeline-body {
  color: var(--clr-text-muted);
  line-height: 1.85;
  font-size: 0.95rem;
  margin: 0;
}

/* Company Info Card */
.company-info {
  padding: clamp(64px, 8vw, 120px) 0;
  background: var(--clr-surface);
}

.info-card {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--clr-border);
  border-radius: 16px;
  padding: 0.5rem 1.5rem;
  box-shadow:
    0 1px 3px rgb(15 23 42 / 6%),
    0 8px 24px rgb(15 23 42 / 6%);
  overflow: hidden;
}

.company-info-table {
  width: 100%;
  border-collapse: collapse;
}

.company-info-table th,
.company-info-table td {
  padding: 1.1rem 0.75rem;
  border-bottom: 1px solid var(--clr-border);
  text-align: left;
  vertical-align: top;
  font-size: 0.95rem;
}

.company-info-table tr:last-child th,
.company-info-table tr:last-child td {
  border-bottom: none;
}

.company-info-table th {
  width: 160px;
  font-weight: 800;
  color: var(--clr-text);
  letter-spacing: 0.05em;
  font-size: 0.85rem;
  text-transform: uppercase;
  vertical-align: top;
  padding-top: 1.25rem;
}

.company-info-table td {
  color: var(--clr-text-muted);
  line-height: 1.85;
}

/* CTA Section */
.cta-section {
  padding: clamp(64px, 8vw, 120px) 0;
  background:
    radial-gradient(ellipse 60% 50% at 18% 0%, rgb(186 230 253 / 70%) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 100% 100%, rgb(199 210 254 / 75%) 0%, transparent 60%),
    linear-gradient(135deg, #e0f2fe 0%, #dbeafe 50%, #e0e7ff 100%);
  color: var(--clr-text);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgb(255 255 255 / 30%) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgb(255 255 255 / 22%) 0%, transparent 40%);
  pointer-events: none;
}

.cta-section h2 {
  font-size: clamp(1.6rem, 2.5vw + 0.6rem, 2.4rem);
  font-weight: 800;
  margin-bottom: var(--space-3);
  color: var(--clr-text);
  position: relative;
}

.cta-section p {
  font-size: var(--fs-md);
  max-width: 640px;
  margin: 0 auto var(--space-6);
  color: var(--clr-text-muted);
  line-height: 1.85;
  position: relative;
}

.cta-section .cta-button {
  background: var(--gradient-brand);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 24px rgb(99 102 241 / 32%);
  position: relative;
}

.cta-section .cta-button:hover {
  box-shadow: 0 14px 32px rgb(99 102 241 / 42%);
}

/* Responsive */
@media (width <= 992px) {
  .domain-grid {
    grid-template-columns: 1fr;
  }
}

@media (width <= 768px) {
  .timeline {
    padding-left: 4px;
  }

  .timeline-meta {
    flex-wrap: wrap;
    gap: var(--space-2);
  }

  .company-info-table th {
    width: 110px;
    font-size: 0.78rem;
    padding-right: 0.5rem;
  }

  .company-info-table th,
  .company-info-table td {
    padding: 0.9rem 0.5rem;
    font-size: 0.88rem;
  }

  .info-card {
    padding: 0.25rem 1rem;
  }

  .domain-card {
    padding: 1.5rem 1.25rem;
  }
}
