/* ==========================================================================
   Hero & Landing Page Styles - Consolidated
   Uses CSS variables from owtechs_main_v1.22.css
   ========================================================================== */

/* ==========================================================================
   Hero Section
   ========================================================================== */
#hero {
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%);
  position: relative;
  min-height: 100vh;
}

html[data-theme="dark"] #hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
}

.hero-content-new {
  position: relative;
  z-index: 1;
}

/* Hero Heights - Responsive */
.network-stage { min-height: 610px; }
@media (min-width: 768px)  { .network-stage { min-height: 700px; } }
@media (min-width: 992px)  { .network-stage { min-height: 750px; } }
@media (min-width: 1200px) { .network-stage { min-height: 850px; } }

.network-stage {
  position: relative;
  width: 100%;
  padding-top: 80px;
  pointer-events: all;
  contain: layout style;
  will-change: contents;
}

@media (max-width: 576px) {
  .network-stage { padding-top: 60px; }
  .lozenge-label { font-size: 0.6rem; }
  .label-pillar { font-size: 0.8rem; }
}

/* Hero Title & Lead */
.hero-title {
  font-weight: 800;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-600) 50%, var(--accent-600) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* Kicker */
.kicker {
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--accent-600);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.kicker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-600);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

/* ==========================================================================
   Lozenge Labels
   ========================================================================== */
.lozenge-label {
  position: absolute;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  pointer-events: none;
  white-space: nowrap;
  z-index: 10;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

.lozenge-label::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: block;
  flex-shrink: 0;
}

/* Label Colors */
.label-darkblue { color: #1e40af; }
.label-darkblue::before { background: #1e40af; }
html[data-theme="dark"] .label-darkblue { color: #60a5fa; }
html[data-theme="dark"] .label-darkblue::before { background: #60a5fa; }

.label-lightblue { color: #3b82f6; }
.label-lightblue::before { background: #3b82f6; }

.label-cyan { color: #06b6d4; }
.label-cyan::before { background: #06b6d4; }

.label-gold { color: #f59e0b; }
.label-gold::before { background: #f59e0b; }

.label-green { color: #10b981; }
.label-green::before { background: #10b981; }

.label-gray { color: #64748b; }
.label-gray::before { background: #64748b; }

.label-red { color: #d80621; }
.label-red::before { background: #d80621; }

/* Pillar Labels */
.label-pillar {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  transition: transform 0.15s ease-out, filter 0.15s ease-out, box-shadow 0.15s ease-out;
  will-change: transform;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 2px 12px rgba(27, 79, 138, 0.15);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

html[data-theme="dark"] .label-pillar {
  background: rgba(15, 26, 46, 0.7);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.label-pillar::before { display: none; }

.label-pillar .pillar-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  margin-right: 0.4rem;
  flex-shrink: 0;
}

.label-darkblue .pillar-num { background: #1e40af; color: #fff; }
.label-cyan .pillar-num { background: #06b6d4; color: #fff; }
.label-green .pillar-num { background: #10b981; color: #fff; }
.label-gold .pillar-num { background: #f59e0b; color: #fff; }

html[data-theme="dark"] .label-darkblue .pillar-num { background: #60a5fa; color: #0f172a; }
html[data-theme="dark"] .label-cyan .pillar-num { background: #06b6d4; color: #0f172a; }
html[data-theme="dark"] .label-green .pillar-num { background: #10b981; color: #0f172a; }
html[data-theme="dark"] .label-gold .pillar-num { background: #f59e0b; color: #0f172a; }

a.label-pillar {
  text-decoration: none;
  pointer-events: auto;
  cursor: pointer;
}

a.label-pillar:hover {
  color: var(--accent-600) !important;
  transform: translate3d(-50%, -50%, 0) scale(1.08);
  box-shadow: 0 4px 20px rgba(11, 138, 166, 0.25);
}

html[data-theme="dark"] a.label-pillar:hover {
  color: var(--accent-400) !important;
  box-shadow: 0 4px 20px rgba(20, 184, 212, 0.3);
}

/* ==========================================================================
   Accessibility
   ========================================================================== */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--brand-700);
  color: #fff;
  padding: 8px 16px;
  z-index: 100;
  text-decoration: none;
  border-radius: 0 0 8px 0;
  transition: top 0.2s ease;
}

.skip-link:focus { top: 0; }

a.label-pillar:focus {
  outline: 2px solid var(--accent-600);
  outline-offset: 4px;
}

a.label-pillar:focus:not(:focus-visible) { outline: none; }
a.label-pillar:focus-visible {
  outline: 2px solid var(--accent-600);
  outline-offset: 4px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .kicker-dot { animation: none; }
  .lozenge-label, .label-pillar, #lozengesGroup { transition: none !important; }
}

/* ==========================================================================
   Static Fallbacks (No JS)
   ========================================================================== */
.static-labels {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.static-labels .lozenge-label { pointer-events: auto; }

.static-lozenges {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.static-lozenges g { stroke: rgba(27, 79, 138, 0.4); }
html[data-theme="dark"] .static-lozenges g { stroke: rgba(20, 184, 212, 0.5); }
html.js-enabled .static-lozenges { display: none; }
html:not(.js-enabled) #lozengesSvg { display: none; }

/* ==========================================================================
   Why Us Section - Bento Grid
   ========================================================================== */
.why-us-section {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%);
  padding-top: 0 !important;
}

html[data-theme="dark"] .why-us-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: -80px;
  position: relative;
  z-index: 10;
}

.bento-card {
  border-radius: 1.25rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bento-card:hover { transform: translateY(-4px); }

/* Glass Effect Cards */
.bento-glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.bento-glass:hover {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 32px rgba(27, 79, 138, 0.15);
}

html[data-theme="dark"] .bento-glass {
  background: rgba(30, 41, 59, 0.7);
  border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .bento-glass:hover {
  background: rgba(30, 41, 59, 0.85);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Bento Card Text */
.bento-glass .card-title { color: var(--brand-700); }
.bento-glass .card-text { color: var(--text-muted); }
html[data-theme="dark"] .bento-glass .card-title { color: var(--accent-400); }
html[data-theme="dark"] .bento-glass .card-text { color: var(--text-muted); }

/* Main Gradient Card */
.bento-main {
  grid-column: span 2;
  grid-row: span 2;
  background: linear-gradient(135deg, var(--brand-700) 0%, var(--accent-600) 100%);
}

.bento-main:hover { box-shadow: 0 12px 40px rgba(27, 79, 138, 0.3); }

/* Button Glass */
.btn-glass {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background 0.2s ease;
  width: fit-content;
}

.btn-glass:hover { background: rgba(255, 255, 255, 0.3); }

/* Stats */
.bento-stat .stat-number {
  font-size: clamp(2rem, 4vw, 3rem);
  background: linear-gradient(135deg, var(--brand-700) 0%, var(--accent-600) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bento-stat .stat-label {
  color: #64748b;
  letter-spacing: 0.05em;
}

html[data-theme="dark"] .bento-stat .stat-number {
  background: linear-gradient(135deg, #60a5fa 0%, #14b8d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

html[data-theme="dark"] .bento-stat .stat-label { color: #94a3b8; }

.bento-wide { grid-column: span 2; }

/* Feature Icons */
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg { width: 28px; height: 28px; stroke-width: 1.5; }
.feature-icon.blue { background: rgba(27, 79, 138, 0.15); }
.feature-icon.blue svg { stroke: #1b4f8a; }
.feature-icon.cyan { background: rgba(11, 138, 166, 0.15); }
.feature-icon.cyan svg { stroke: #0b8aa6; }
.feature-icon.green { background: rgba(16, 185, 129, 0.15); }
.feature-icon.green svg { stroke: #10b981; }

html[data-theme="dark"] .feature-icon.blue { background: rgba(96, 165, 250, 0.2); }
html[data-theme="dark"] .feature-icon.blue svg { stroke: #60a5fa; }
html[data-theme="dark"] .feature-icon.cyan { background: rgba(20, 184, 212, 0.2); }
html[data-theme="dark"] .feature-icon.cyan svg { stroke: #14b8d4; }
html[data-theme="dark"] .feature-icon.green { background: rgba(16, 185, 129, 0.2); }
html[data-theme="dark"] .feature-icon.green svg { stroke: #10b981; }

/* Bento Responsive */
@media (max-width: 992px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-main { grid-row: span 1; }
}

@media (max-width: 576px) {
  .bento-grid { grid-template-columns: 1fr; }
  .bento-main, .bento-wide { grid-column: span 1; }
}

/* ==========================================================================
   Trusted By Section
   ========================================================================== */
.trusted-section {
  background: #f8fafc;
  border-top: 1px solid rgba(27, 79, 138, 0.06);
  border-bottom: 1px solid rgba(27, 79, 138, 0.06);
}

html[data-theme="dark"] .trusted-section {
  background: #0f172a;
  border-color: rgba(255, 255, 255, 0.05);
}

.trusted-label {
  color: #334155;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

html[data-theme="dark"] .trusted-label { color: #cbd5e1; }

.clients-slide { min-height: 50px; }

.client-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.client-logo img { opacity: 0.5; border-radius: 0.25rem; }
.client-logo:hover img { opacity: 0.8; }

html[data-theme="dark"] .client-logo img { filter: brightness(1.4); opacity: 0.45; }
html[data-theme="dark"] .client-logo:hover img { opacity: 0.75; }

/* Carousel Controls */
.carousel-control-prev, .carousel-control-next {
  width: 32px;
  height: 32px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(30, 64, 175, 0.08);
  border-radius: 50%;
  opacity: 1;
}

.carousel-control-prev { left: 0; }
.carousel-control-next { right: 0; }
.carousel-control-prev:hover, .carousel-control-next:hover { background: rgba(30, 64, 175, 0.15); }

.carousel-control-prev-icon, .carousel-control-next-icon {
  width: 12px;
  height: 12px;
  filter: none;
  background-image: none;
}

.carousel-control-prev-icon::before, .carousel-control-next-icon::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-left: 2px solid #1e40af;
  border-bottom: 2px solid #1e40af;
}

.carousel-control-prev-icon::before { transform: rotate(45deg); margin-left: 2px; }
.carousel-control-next-icon::before { transform: rotate(-135deg); margin-right: 2px; }

html[data-theme="dark"] .carousel-control-prev,
html[data-theme="dark"] .carousel-control-next { background: rgba(96, 165, 250, 0.1); }
html[data-theme="dark"] .carousel-control-prev:hover,
html[data-theme="dark"] .carousel-control-next:hover { background: rgba(96, 165, 250, 0.2); }
html[data-theme="dark"] .carousel-control-prev-icon::before,
html[data-theme="dark"] .carousel-control-next-icon::before { border-color: #60a5fa; }

/* ==========================================================================
   Industries Section
   ========================================================================== */
.industries-section {
  background: linear-gradient(180deg, #e2e8f0 0%, #f8fafc 100%);
}

html[data-theme="dark"] .industries-section {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
}

.industry-tag {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0.5rem;
  cursor: default;
  user-select: none;
  pointer-events: none;
  text-align: center;
}

.industry-tag svg { width: 32px; height: 32px; }
.industry-tag span { font-size: 0.875rem; font-weight: 600; color: #334155; }
html[data-theme="dark"] .industry-tag span { color: #e2e8f0; }

/* SVG Theme Colors */
.stroke-brand { stroke: var(--brand-700); }
.stroke-accent { stroke: var(--accent-600); }
html[data-theme="dark"] .stroke-brand { stroke: #60a5fa; }
html[data-theme="dark"] .stroke-accent { stroke: #14b8d4; }

/* Section Headers */
.section-header h2 {
  background: linear-gradient(135deg, var(--brand-700) 0%, var(--accent-600) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

html[data-theme="dark"] .section-header h2 {
  background: linear-gradient(135deg, #60a5fa 0%, #14b8d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.section-header p { color: #475569; }
html[data-theme="dark"] .section-header p { color: #94a3b8; }

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-section {
  background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
}

html[data-theme="dark"] .services-section {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
}

.service-card {
  height: 100%;
  border-radius: 0.5rem 2rem 0.5rem 2rem;
  background: #ffffff;
  border: 1px solid rgba(27, 79, 138, 0.1);
  overflow: hidden;
  position: relative;
}

html[data-theme="dark"] .service-card {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.08);
}

.service-card:hover { border-color: rgba(27, 79, 138, 0.2); }
html[data-theme="dark"] .service-card:hover { border-color: rgba(255, 255, 255, 0.15); }

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(27, 79, 138, 0.08);
  border: 1px solid rgba(27, 79, 138, 0.15);
  flex-shrink: 0;
}

html[data-theme="dark"] .service-icon {
  background: rgba(96, 165, 250, 0.1);
  border-color: rgba(96, 165, 250, 0.2);
}

.service-icon svg { width: 28px; height: 28px; }
.service-icon .stroke-primary { stroke: var(--brand-700); }
.service-icon .stroke-secondary { stroke: var(--accent-600); }
html[data-theme="dark"] .service-icon .stroke-primary { stroke: #60a5fa; }
html[data-theme="dark"] .service-icon .stroke-secondary { stroke: #14b8d4; }

.service-num {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, rgba(27, 79, 138, 0.08) 0%, rgba(11, 138, 166, 0.08) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: absolute;
  top: 1rem;
  right: 1.5rem;
}

html[data-theme="dark"] .service-num {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.12) 0%, rgba(20, 184, 212, 0.12) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.service-card .card-title { color: var(--brand-700); font-size: 1.25rem; }
.service-card .card-title a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
.service-card .card-title a:hover { color: var(--accent-600); }
.service-card .card-text { color: var(--text-muted); line-height: 1.6; }

html[data-theme="dark"] .service-card .card-title { color: var(--accent-400); }
html[data-theme="dark"] .service-card .card-title a:hover { color: var(--accent-400); }
html[data-theme="dark"] .service-card .card-text { color: var(--text-muted); }

.service-link {
  color: #1e40af;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.service-link:hover { color: #06b6d4; }
.service-link[aria-expanded="true"] svg { transform: rotate(90deg); }
html[data-theme="dark"] .service-link { color: #60a5fa; }
html[data-theme="dark"] .service-link:hover { color: #14b8d4; }

/* Service Details Accordion */
.service-details.collapsing { transition: none; }
.collapse:not(.show) { display: none; }

.service-details {
  border-top: 1px solid rgba(27, 79, 138, 0.1);
  margin-top: 1rem;
  padding-top: 1rem;
  text-align: left;
}

html[data-theme="dark"] .service-details { border-color: rgba(255, 255, 255, 0.1); }

.service-details ul { margin: 0; padding: 0; list-style: none; }

.service-details li {
  color: #475569;
  margin-bottom: 0.5rem;
  padding-left: 1.25rem;
  list-style: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cpath d='M4 0L8 4L4 8L0 4Z' fill='%230b8aa6'/%3E%3C/svg%3E") no-repeat 0 0.45em;
  background-size: 8px 8px;
}

html[data-theme="dark"] .service-details li {
  color: #94a3b8;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cpath d='M4 0L8 4L4 8L0 4Z' fill='%2314b8d4'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Technologies Section
   ========================================================================== */
.techbrands-section { background: #f1f5f9; }
html[data-theme="dark"] .techbrands-section { background: #1e293b; }

.tech-card {
  border-radius: 0.75rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

html[data-theme="dark"] .tech-card { background: #0f172a; border-color: #334155; }
.tech-card:hover { border-color: #cbd5e1; }
html[data-theme="dark"] .tech-card:hover { border-color: #475569; }

.tech-card img {
  max-height: 48px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  margin-bottom: 0.75rem;
}

.tech-card .tech-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  text-align: center;
}

html[data-theme="dark"] .tech-card .tech-label { color: #94a3b8; }
