/* ─── COMPONENT STYLES ─── */

/* ─── TYPOGRAPHY ─── */
.eyebrow {
  font-size: var(--font-xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--blue-primary);
  margin-bottom: var(--space-md);
}
.section--dark .eyebrow { color: var(--blue-light); }

.heading-xl {
  font-size: var(--font-5xl);
  font-weight: var(--weight-extrabold);
  line-height: var(--line-tight);
  letter-spacing: var(--letter-tight);
}
.heading-lg {
  font-size: var(--font-4xl);
  font-weight: var(--weight-bold);
  line-height: var(--line-tight);
  letter-spacing: var(--letter-tight);
}
.heading-md {
  font-size: var(--font-3xl);
  font-weight: var(--weight-bold);
  line-height: var(--line-snug);
  letter-spacing: var(--letter-tight);
}
.heading-sm {
  font-size: var(--font-xl);
  font-weight: var(--weight-bold);
  line-height: var(--line-snug);
}
.body-lg {
  font-size: var(--font-lg);
  line-height: var(--line-normal);
  color: var(--text-dark-muted);
}
.section--dark .body-lg { color: var(--text-white-muted); }
.body-md {
  font-size: var(--font-md);
  line-height: var(--line-normal);
}

@media (max-width: 768px) {
  .heading-xl { font-size: var(--font-3xl); }
  .heading-lg { font-size: var(--font-2xl); }
  .heading-md { font-size: var(--font-xl); }
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: var(--weight-semibold);
  font-size: var(--font-base);
  padding: 14px 28px;
  border-radius: var(--radius-full);
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
}
.btn--primary {
  background: var(--blue-primary);
  color: var(--text-white);
}
.btn--primary:hover {
  background: var(--blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,54,250,0.3);
}
.btn--secondary {
  background: transparent;
  color: var(--text-white);
  border: 1px solid rgba(255,255,255,0.2);
}
.btn--secondary:hover {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.05);
}
.btn--dark-secondary {
  background: transparent;
  color: var(--text-dark);
  border: 1px solid var(--light-400);
}
.btn--dark-secondary:hover {
  border-color: var(--text-dark);
  background: var(--light-100);
}
.btn--sm {
  padding: 10px 20px;
  font-size: var(--font-sm);
}
.btn--lg {
  padding: 18px 36px;
  font-size: var(--font-md);
}
.btn .arrow {
  transition: transform var(--duration-fast);
}
.btn:hover .arrow { transform: translateX(3px); }
.btn-group {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ─── HERO ─── */
.hero__content {
  position: relative;
  z-index: 1;
}
.hero__title {
  margin-bottom: var(--space-lg);
}
.hero__subtitle {
  max-width: 560px;
  margin-bottom: var(--space-2xl);
}
.hero__gradient-text {
  background: linear-gradient(135deg, var(--blue-light) 0%, var(--blue-primary) 40%, var(--green-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── STATS ROW ─── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--dark-border);
}
.section--light .stats-row { border-top-color: var(--light-border); }
.stat__value {
  font-size: var(--font-3xl);
  font-weight: var(--weight-extrabold);
  color: var(--blue-primary);
  line-height: 1;
  margin-bottom: var(--space-xs);
}
.section--dark .stat__value { color: var(--blue-light); }
.stat__label {
  font-size: var(--font-sm);
  color: var(--text-dark-dim);
}
.section--dark .stat__label { color: var(--text-white-dim); }

@media (max-width: 768px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}

/* ─── FEATURE GRID ─── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}
.feature-card {
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  border: 1px solid var(--dark-border);
  background: rgba(255,255,255,0.02);
  transition: border-color var(--duration-normal), background var(--duration-normal);
}
.section--light .feature-card {
  border-color: var(--light-border);
  background: var(--light-50);
  box-shadow: var(--shadow-sm);
}
.feature-card:hover {
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.03);
}
.feature-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--blue-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  font-size: var(--font-xl);
}
.feature-card__svg {
  margin-bottom: var(--space-lg);
}
.feature-card__title {
  font-size: var(--font-md);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-sm);
}
.feature-card__desc {
  font-size: var(--font-sm);
  color: var(--text-white-muted);
  line-height: var(--line-normal);
}
.section--light .feature-card__desc { color: var(--text-dark-muted); }

@media (max-width: 900px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .feature-grid { grid-template-columns: 1fr; }
}

/* ─── SOLUTION CARDS (for Solutions page) ─── */
.solution-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}
.solution-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--light-border);
  background: var(--light-50);
  overflow: hidden;
  transition: box-shadow var(--duration-normal), transform var(--duration-normal);
}
.solution-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.solution-card__illustration {
  padding: var(--space-xl) var(--space-xl) 0;
  background: var(--light-100);
}
.solution-card__illustration svg {
  width: 100%;
  height: auto;
}
.solution-card__body {
  padding: var(--space-xl);
}
.solution-card__title {
  font-size: var(--font-lg);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-xs);
}
.solution-card__tagline {
  font-size: var(--font-sm);
  font-weight: var(--weight-semibold);
  color: var(--blue-primary);
  margin-bottom: var(--space-md);
}
.solution-card__desc {
  font-size: var(--font-sm);
  color: var(--text-dark-muted);
  line-height: var(--line-normal);
  margin-bottom: var(--space-lg);
}
.solution-card__links {
  display: flex;
  gap: var(--space-md);
  align-items: center;
  flex-wrap: wrap;
}
.solution-card__link {
  font-size: var(--font-sm);
  font-weight: var(--weight-semibold);
  color: var(--blue-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--duration-fast);
}
.solution-card__link:hover { gap: 8px; }

/* Emerging badge */
.badge-emerging {
  display: inline-block;
  font-size: var(--font-xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green-accent);
  background: rgba(0,200,110,0.1);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0,200,110,0.2);
}

@media (max-width: 768px) {
  .solution-grid { grid-template-columns: 1fr; }
}

/* ─── PRODUCT CARDS ─── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}
.product-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--dark-border);
  background: var(--dark-700);
  overflow: hidden;
  transition: border-color var(--duration-normal);
}
.product-card:hover {
  border-color: rgba(0,54,250,0.3);
}
.product-card__image {
  aspect-ratio: 16/10;
  background: var(--dark-600);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  overflow: hidden;
}
.product-card__image img {
  max-height: 200px;
  object-fit: contain;
}
.product-card__image-placeholder {
  font-size: var(--font-sm);
  color: var(--text-white-dim);
}
.product-card__body {
  padding: var(--space-xl);
}
.product-card__name {
  font-size: var(--font-lg);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-xs);
}
.product-card__sub {
  font-size: var(--font-sm);
  color: var(--text-white-dim);
  margin-bottom: var(--space-lg);
}
.product-card__specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm) var(--space-lg);
  margin-bottom: var(--space-lg);
}
.spec__label {
  font-size: var(--font-xs);
  color: var(--text-white-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.spec__value {
  font-size: var(--font-sm);
  font-weight: var(--weight-semibold);
}

@media (max-width: 768px) {
  .product-grid { grid-template-columns: 1fr; }
}

/* ─── DATA TABLES ─── */
.spec-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--dark-border);
  -webkit-overflow-scrolling: touch;
  /* Firefox scrollbar */
  scrollbar-width: thin;
  scrollbar-color: var(--blue-primary) var(--dark-700);
}
.spec-scroll-inner {
  min-width: 600px;
}
/* Styled scrollbar — brand colors */
.spec-table-wrapper::-webkit-scrollbar {
  height: 6px;
}
.spec-table-wrapper::-webkit-scrollbar-track {
  background: var(--dark-700);
  border-radius: 3px;
}
.spec-table-wrapper::-webkit-scrollbar-thumb {
  background: var(--blue-primary);
  border-radius: 3px;
}
.spec-table-wrapper::-webkit-scrollbar-thumb:hover {
  background: var(--blue-hover);
}
.spec-table {
  width: 100%;
  min-width: 600px;
  font-size: var(--font-sm);
}
.spec-table th {
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  font-weight: var(--weight-semibold);
  background: var(--dark-600);
  border-bottom: 1px solid var(--dark-border);
  white-space: nowrap;
}
/* Photos row — sits above table, no background/borders */
.spec-photo-row td {
  background: transparent !important;
  border: none !important;
  padding: var(--space-md) var(--space-sm) var(--space-sm);
  text-align: center;
  vertical-align: bottom;
}
.spec-photo-row figure {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.spec-photo-row img {
  max-height: 140px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2));
}
/* Tab row — no background/borders */
.spec-tab-row td {
  background: transparent !important;
  border: none !important;
  padding: 1px 0;
  text-align: center;
}
/* Border classes — create visible table boundary starting at thead */
.spec-border-top {
  border-top: 1px solid var(--dark-border) !important;
  border-left: 1px solid var(--dark-border) !important;
  border-right: 1px solid var(--dark-border) !important;
}
.spec-border-top:first-child {
  border-top-left-radius: var(--radius-lg);
}
.spec-border-top:last-child {
  border-top-right-radius: var(--radius-lg);
}
.spec-border-bottom-left {
  border-bottom-left-radius: var(--radius-lg);
}
.spec-border-bottom-right {
  border-bottom-right-radius: var(--radius-lg);
}
/* Side borders for data rows */
.spec-table tbody td:first-child,
.spec-table thead + tbody td:first-child {
  border-left: 1px solid var(--dark-border);
}
.spec-table tbody td:last-child,
.spec-table thead + tbody td:last-child {
  border-right: 1px solid var(--dark-border);
}
.spec-table tbody tr:last-child td {
  border-bottom: 1px solid var(--dark-border);
}
.spec-table thead th {
  border-left: 1px solid var(--dark-border);
  border-right: 1px solid var(--dark-border);
}
.spec-table td {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--dark-border);
  vertical-align: top;
}
.spec-table tr:last-child td { border-bottom: none; }
.spec-table .row-label {
  font-weight: var(--weight-semibold);
  color: var(--text-white-dim);
  white-space: nowrap;
  position: sticky;
  left: 0;
  background: var(--dark-800);
  z-index: 1;
}
.spec-table thead th:first-child {
  position: sticky;
  left: 0;
  background: var(--dark-600);
  z-index: 2;
}

/* ─── SPLIT SECTION ─── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}
.split--reverse { direction: rtl; }
.split--reverse > * { direction: ltr; }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: var(--space-2xl); }
  .split--reverse { direction: ltr; }
}

/* ─── SECTION HEADERS ─── */
.section-header {
  max-width: 640px;
  margin-bottom: var(--space-3xl);
}
.section-header--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.section-header__title {
  margin-bottom: var(--space-md);
}
.section-header__desc {
  font-size: var(--font-md);
  color: var(--text-dark-muted);
  line-height: var(--line-normal);
}
.section--dark .section-header__desc { color: var(--text-white-muted); }

/* ─── TEAM CARD ─── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}
.team-card {
  text-align: center;
}
.team-card__photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--light-200);
  margin: 0 auto var(--space-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-3xl);
  font-weight: var(--weight-bold);
  color: var(--blue-primary);
}
.team-card__name {
  font-weight: var(--weight-bold);
  margin-bottom: 2px;
}
.team-card__role {
  font-size: var(--font-sm);
  color: var(--text-dark-muted);
  margin-bottom: var(--space-md);
}
.team-card__bio {
  font-size: var(--font-sm);
  color: var(--text-dark-dim);
  line-height: var(--line-normal);
}

@media (max-width: 768px) {
  .team-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
}

/* ─── CONTACT FORM ─── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
}
.contact-info__item {
  margin-bottom: var(--space-xl);
}
.contact-info__label {
  font-size: var(--font-xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dark-dim);
  margin-bottom: var(--space-xs);
}
.contact-info__value {
  font-size: var(--font-md);
}
.contact-info__value a {
  color: var(--blue-primary);
  transition: color var(--duration-fast);
}
.contact-info__value a:hover { color: var(--blue-hover); }

/* HubSpot form overrides */
.hs-form-container {
  padding: var(--space-2xl);
  background: var(--light-100);
  border-radius: var(--radius-lg);
  border: 1px solid var(--light-border);
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ─── CASE STUDY ─── */
.case-study-header {
  margin-bottom: var(--space-3xl);
}
.case-study-meta {
  display: flex;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
}
.case-study-meta__item {
  font-size: var(--font-sm);
}
.case-study-meta__label {
  color: var(--text-dark-dim);
  margin-right: var(--space-xs);
}
.case-study-body {
  max-width: var(--container-narrow);
}
.case-study-body h2 {
  font-size: var(--font-xl);
  font-weight: var(--weight-bold);
  margin: var(--space-2xl) 0 var(--space-md);
}
.case-study-body p {
  margin-bottom: var(--space-lg);
  color: var(--text-dark-muted);
  line-height: var(--line-normal);
}

/* ─── LEGAL PAGES ─── */
.legal-content h2 {
  font-size: var(--font-xl);
  font-weight: var(--weight-bold);
  margin: var(--space-2xl) 0 var(--space-md);
}
.legal-content h3 {
  font-size: var(--font-md);
  font-weight: var(--weight-semibold);
  margin: var(--space-xl) 0 var(--space-sm);
}
.legal-content p {
  margin-bottom: var(--space-md);
  color: var(--text-dark-muted);
  line-height: var(--line-normal);
}
.legal-content ul {
  margin-bottom: var(--space-md);
  padding-left: var(--space-xl);
  list-style: disc;
}
.legal-content li {
  margin-bottom: var(--space-sm);
  color: var(--text-dark-muted);
  line-height: var(--line-normal);
}

/* ─── CTA SECTION ─── */
.cta-section {
  text-align: center;
  padding: var(--space-5xl) 0;
  position: relative;
  overflow: hidden;
}
.cta-section__title {
  margin-bottom: var(--space-md);
}
.cta-section__desc {
  max-width: 500px;
  margin: 0 auto var(--space-2xl);
}

/* ─── DIVIDER ─── */
.divider {
  height: 1px;
  background: var(--light-border);
  margin: var(--space-3xl) 0;
}
.section--dark .divider { background: var(--dark-border); }

/* ─── BENTO / SOLUTION PREVIEW TILES (Home) ─── */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-md);
}
.bento-tile {
  border-radius: var(--radius-lg);
  border: 1px solid var(--dark-border);
  background: var(--dark-700);
  padding: var(--space-xl);
  transition: border-color var(--duration-normal), transform var(--duration-normal);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 220px;
  position: relative;
  overflow: hidden;
  grid-column: span 2;
}
/* First two tiles: 50% each */
.bento-tile:nth-child(1),
.bento-tile:nth-child(2) {
  grid-column: span 3;
}
.bento-tile:hover {
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}
.bento-tile__icon {
  font-size: var(--font-2xl);
  margin-bottom: var(--space-md);
}
.bento-tile__title {
  font-size: var(--font-md);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-xs);
}
.bento-tile__desc {
  font-size: var(--font-sm);
  color: var(--text-white-muted);
}
/* Light-mode bento tiles */
.section--light .bento-tile {
  border-color: var(--light-border);
  background: var(--light-50);
  box-shadow: var(--shadow-sm);
}
.section--light .bento-tile:hover {
  border-color: var(--light-border);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.section--light .bento-tile__title { color: var(--text-dark); }
.section--light .bento-tile__desc { color: var(--text-dark-muted); }
.bento-tile--span-2 {
  grid-column: span 2;
}

@media (max-width: 768px) {
  .bento-grid { grid-template-columns: 1fr; }
  .bento-tile,
  .bento-tile:nth-child(1),
  .bento-tile:nth-child(2),
  .bento-tile--span-2 { grid-column: span 1; }
}

/* ─── LINK ARROW ─── */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: var(--weight-semibold);
  font-size: var(--font-sm);
  color: var(--blue-primary);
  transition: gap var(--duration-fast);
}
.link-arrow:hover { gap: 10px; }
.section--dark .link-arrow { color: var(--blue-light); }

/* ═══ Custom Icon Beam Animations ═══ */
@keyframes beam-blink {
  0%, 100% { stroke: #00E5CC; opacity: 0.6; }
  50% { stroke: #0080FA; opacity: 1; }
}
@keyframes ripple-pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}
.bento-tile:hover .beam-link { animation: beam-blink 1.8s ease-in-out infinite; }
.bento-tile:hover .beam-ripple { animation: ripple-pulse 1.8s ease-in-out infinite; }
.bento-tile:hover .beam-ripple:nth-of-type(2) { animation-delay: 0.15s; }
