/* ============================================================
   OPAL Technology Solutions — styles.css
   Modern Enterprise Redesign featuring Outfit Typography
   100% AAA Contrast Dark & Light Mode Alignment
   Watermelon UI Footer 16 Integration (Moving Waves + Blue Theme)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* ── Light Mode Tokens (Default Clean Blue & White) ─────────── */
:root {
  --c-navy-900:       #0f172a;
  --c-royal-800:      #1e3a8a;
  --c-blue-700:       #1d4ed8;
  --c-blue-600:       #2563eb;
  --c-blue-500:       #3b82f6;
  --c-blue-400:       #60a5fa;
  --c-blue-100:       #dbeafe;
  --c-blue-50:        #eff6ff;

  --c-white:          #ffffff;
  --c-slate-50:       #f8fafc;
  --c-slate-100:      #f1f5f9;
  --c-slate-200:      #e2e8f0;
  --c-slate-300:      #cbd5e1;
  --c-slate-600:      #475569;
  --c-slate-700:      #334155;

  /* Theme Colors */
  --bg-main:          #ffffff;
  --bg-alt:           #f8fafc;
  --bg-card:          #ffffff;
  --bg-panel:         #f8fafc;
  --bg-input:         #ffffff;

  --border-light:     #e2e8f0;
  --border-card:      #cbd5e1;
  --border-focus:     #2563eb;

  --text-primary:     #0f172a;
  --text-body:        #334155;
  --text-muted:       #64748b;
  --text-inverse:     #ffffff;

  --shadow-sm:        0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md:        0 10px 25px rgba(37, 99, 235, 0.12);
  --shadow-lg:        0 20px 40px rgba(15, 23, 42, 0.14);

  --radius-sm:     8px;
  --radius:        14px;
  --radius-lg:     20px;
  --max-w:         1360px;
  --nav-h:         72px;

  --font:          'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition:    all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Dark Mode Tokens (100% High Contrast AAA Readability) ─── */
[data-theme="dark"] {
  --bg-main:          #0f172a;
  --bg-alt:           #1e293b;
  --bg-card:          #1e293b;
  --bg-panel:         #1e293b;
  --bg-input:         #0f172a;

  --border-light:     rgba(255, 255, 255, 0.12);
  --border-card:      rgba(96, 165, 250, 0.35);
  --border-focus:     #60a5fa;

  --text-primary:     #ffffff;
  --text-body:        #f1f5f9;
  --text-muted:       #cbd5e1;
  --text-inverse:     #0f172a;

  --shadow-sm:        0 4px 14px rgba(0, 0, 0, 0.4);
  --shadow-md:        0 12px 32px rgba(37, 99, 235, 0.25);
  --shadow-lg:        0 24px 48px rgba(0, 0, 0, 0.6);
}

/* ── Reset & Global Safeguards ──────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-body);
  background-color: var(--bg-main);
  transition: background-color 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
  word-break: normal;
  overflow-wrap: break-word;
  width: 100%;
  overflow-x: hidden;
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--c-blue-600);
  text-decoration: none;
  transition: var(--transition);
}
[data-theme="dark"] a { color: var(--c-blue-400); }
a:hover {
  color: var(--c-blue-700);
}

h1, h2, h3, h4, h5, h6, .metric, .card, .badge, .btn, .ghost, strong {
  font-family: var(--font);
  color: var(--text-primary);
  word-break: normal !important;
  hyphens: none !important;
  overflow-wrap: normal !important;
}

/* Ticker spans must stay white — do NOT override with text-primary */
.top-ticker span,
.top-ticker .ticker-item,
.top-ticker .ticker-dot {
  color: #ffffff !important;
}

/* Card/panel spans inherit correctly but don't force a color */
span {
  word-break: normal !important;
  hyphens: none !important;
  overflow-wrap: normal !important;
}

h1 { font-size: clamp(2.15rem, 4.6vw, 3.2rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.2; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.35rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.22; }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.4rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
h4 { font-size: 0.92rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ── Top Feature Ticker Banner ──────────────────────────────── */
.top-ticker {
  background: var(--c-navy-900);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 600;
  padding-block: 10px;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  z-index: 1001;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ticker-track {
  display: inline-flex;
  gap: 36px;
  animation: tickerScroll 30s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }

@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ticker-dot {
  width: 6px;
  height: 6px;
  background: var(--c-blue-400);
  border-radius: 50%;
  display: inline-block;
}

/* ── Top Scroll Progress Indicator Bar ─────────────────────── */
#scroll-indicator {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  z-index: 10000;
  transform-origin: 0% 50%;
  background: linear-gradient(90deg, var(--c-royal-800), var(--c-blue-600), #38bdf8);
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.6);
  pointer-events: none;
}

/* ── Universal Container & Border Safeguard ─────────────────── */
section {
  padding-block: 84px;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

section.alt {
  background-color: var(--bg-alt);
}

.container,
.service-row,
.industry-row,
.cta-band,
.hero-grid,
section > article,
section > div:not(.container) {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto !important;
  padding-inline: clamp(16px, 2.5vw, 32px) !important;
  box-sizing: border-box !important;
  position: relative;
  z-index: 1;
}

.section-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: end;
  margin-bottom: 48px;
  padding-inline: 0 !important;
}
.section-top p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ── Topbar Navigation (Perfect Pixel Alignment, No Gap, No Overflow) ─────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: transform 0.35s ease, opacity 0.35s ease, background-color 0.3s ease;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.topbar.header-hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

[data-theme="dark"] .topbar {
  background: rgba(15, 23, 42, 0.96);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(16px, 2.5vw, 32px) !important;
  box-sizing: border-box;
}

/* Brand & Dynamic SVG Logo (Compact, Perfectly Proportioned) */
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text-primary);
  white-space: nowrap;
  flex-shrink: 0;
}
.brand:hover { text-decoration: none; }

.brand-logo-img {
  height: 40px;
  width: auto;
  aspect-ratio: 884 / 202;
  max-width: none;
  overflow: visible;
}

.opal-logo-tagline {
  fill: var(--text-primary);
  transition: fill 0.3s ease;
}

.opal-logo-word {
  transition: fill 0.3s ease;
}

[data-theme="dark"] .brand-logo-img .opal-logo-word {
  fill: #8ec5c6;
}

[data-theme="dark"] .brand-logo-img .opal-logo-tagline {
  fill: #ffffff;
}

.menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.menu a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-body);
  padding: 6px 10px;
  border-radius: 100px;
  white-space: nowrap;
  transition: var(--transition);
}
.menu a:hover, .menu a.active {
  background: var(--c-blue-50);
  color: var(--c-blue-600);
  text-decoration: none;
}
[data-theme="dark"] .menu a:hover, [data-theme="dark"] .menu a.active {
  background: rgba(59, 130, 246, 0.15);
  color: var(--c-blue-400);
}

.nav .actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  flex-shrink: 0;
}

.nav .actions .ghost {
  padding: 8px 14px;
  font-size: 0.85rem;
}

.nav .actions .btn {
  padding: 8px 18px;
  font-size: 0.85rem;
  white-space: nowrap;
}

.theme-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.theme-toggle:hover {
  border-color: var(--c-blue-600);
  transform: scale(1.08);
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
}

/* ── Buttons & CTAs ─────────────────────────────────────────── */
.actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.btn, button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--c-royal-800), var(--c-blue-600));
  color: #ffffff !important;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 11px 24px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  transition: var(--transition);
  text-decoration: none;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.45);
  text-decoration: none;
}

.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--c-blue-50);
  color: var(--c-blue-700);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 100px;
  border: 1.5px solid var(--c-blue-100);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
  text-decoration: none;
}
[data-theme="dark"] .ghost {
  background: rgba(59, 130, 246, 0.12);
  color: #ffffff;
  border-color: rgba(59, 130, 246, 0.3);
}
.ghost:hover {
  background: var(--c-blue-100);
  border-color: var(--c-blue-500);
  transform: translateY(-2px);
  text-decoration: none;
}

.eyebrow, .note {
  display: none !important;
}

.kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-blue-600);
  margin-bottom: 8px;
}
[data-theme="dark"] .kicker { color: var(--c-blue-400); }

.badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--c-blue-700);
  background: var(--c-blue-50);
  border: 1px solid var(--c-blue-100);
  border-radius: 100px;
  padding: 5px 14px;
  width: fit-content;
  white-space: nowrap;
}
[data-theme="dark"] .badge {
  color: var(--c-blue-400);
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
}

.pillrow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  margin-bottom: 8px;
}

/* ── Hero Section (Zero Gap Top Alignment) ──────────────────── */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #1d4ed8 100%);
  color: #ffffff;
  padding-block: 80px 96px;
  margin-top: 0;
}
.hero h1 { color: #ffffff; }
.hero .lead { color: #dbeafe; font-size: 1.15rem; line-height: 1.7; }
.hero .kicker { color: #93c5fd; }
.hero .breadcrumbs { color: #94a3b8; font-size: 0.85rem; margin-bottom: 16px; }
.hero .breadcrumbs a { color: #e2e8f0; }
.hero .ghost { color: #ffffff; background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.3); }
.hero .ghost:hover { background: rgba(255, 255, 255, 0.22); border-color: #ffffff; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

/* ── Product Dashboard Screen Mockup (No Text Wrapping Glitch) ── */
.screen {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  color: var(--text-primary);
  padding: 24px;
  box-sizing: border-box;
  width: 100%;
}

.screen-top {
  background: var(--bg-alt);
  padding: 10px 16px;
  display: flex;
  gap: 8px;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
  margin: -24px -24px 20px -24px;
}
.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}
.dot:nth-child(1) { background: #ef4444; }
.dot:nth-child(2) { background: #f59e0b; }
.dot:nth-child(3) { background: #10b981; }

.dash {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 18px;
}

.chart {
  background-color: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 18px;
  color: var(--text-primary);
}
.bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 90px;
  margin-top: 16px;
}
.bar {
  flex: 1;
  background: linear-gradient(to top, #1e3a8a, #2563eb);
  border-radius: 6px 6px 0 0;
  transform-origin: bottom;
  animation: barRise 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.bar:nth-child(1) { height: 45%; }
.bar:nth-child(2) { height: 75%; }
.bar:nth-child(3) { height: 60%; }
.bar:nth-child(4) { height: 95%; }
.bar:nth-child(5) { height: 70%; }

@keyframes barRise {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}

.mini {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 170px;
}

/* ── Metric Component (No Mid-Word Breaks) ─────────────────── */
.metric {
  background-color: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  transition: var(--transition);
  color: var(--text-primary);
  min-width: 0;
}
.metric:hover {
  border-color: var(--c-blue-600);
  box-shadow: var(--shadow-md);
}
.metric strong {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--c-blue-600);
  white-space: nowrap;
  word-break: normal !important;
}
[data-theme="dark"] .metric strong { color: var(--c-blue-400); }
.metric span {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.35;
  white-space: normal;
  word-break: normal !important;
  hyphens: none !important;
}

/* ── Responsive Grids System ────────────────────────────────── */
.grid2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  width: 100%;
  padding-inline: 0 !important;
}

.grid3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  width: 100%;
  padding-inline: 0 !important;
}

.grid4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  padding-inline: 0 !important;
}

/* ── Cards & Panels ─────────────────────────────────────────── */
.card, .panel, .casebox, .resource, .persona, .profile, .quote {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 28px;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  color: var(--text-body);
  min-width: 0;
}

.card h1, .card h2, .card h3, .panel h1, .panel h2, .panel h3,
.casebox h1, .casebox h2, .casebox h3, .resource h1, .resource h2, .resource h3 {
  color: var(--text-primary) !important;
  word-break: normal !important;
  hyphens: none !important;
}

.card p, .panel p, .casebox p, .resource p, .persona p, .profile p {
  color: var(--text-body) !important;
  word-break: normal !important;
  hyphens: none !important;
}

.card:hover, .casebox:hover, .resource:hover, .persona:hover, .profile:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--c-blue-600);
}

.panel {
  background-color: var(--bg-panel);
  border-color: var(--border-card);
}

/* Service & Industry Rows Layout Safeguards */
.service-row, .industry-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding-block: 48px;
  border-top: 1px solid var(--border-light);
}

.cta-band {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

/* ── Continuous Horizontal Logo Marquee (Real Brand SVGs) ──── */
.logos-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding-block: 18px;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  padding-inline: 0 !important;
}

.logos-track {
  display: flex;
  align-items: center;
  gap: 24px;
  width: max-content;
  animation: marqueeScroll 25s linear infinite;
}
.logos-track:hover {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.logo-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 100px;
  padding: 10px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.logo-chip:hover {
  border-color: var(--c-blue-600);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.logo-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-icon svg {
  width: 100%;
  height: 100%;
}

/* Non-wrapping Badges Grid */
.badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 28px;
  padding-inline: 0 !important;
}
.badge-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  color: var(--text-primary);
}
.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 100px;
  background: var(--c-blue-50);
  border: 1.5px solid var(--c-blue-100);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--c-blue-700);
  white-space: nowrap;
}
[data-theme="dark"] .icon-box {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
  color: var(--c-blue-400);
}

/* ── Workflow Steps ─────────────────────────────────────────── */
.flow {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.step {
  background: var(--c-blue-600);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 100px;
}
.arrow {
  color: var(--c-blue-600);
  font-weight: 800;
}

/* ── Tables ─────────────────────────────────────────────────── */
.table, .compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-top: 14px;
}
.table th, .table td, .compare th, .compare td {
  padding: 12px 16px;
  border: 1px solid var(--border-light);
  text-align: left;
}
.table th, .compare th {
  background-color: var(--c-navy-900);
  color: #ffffff;
  font-weight: 600;
}
.table tr:nth-child(even) td, .compare tr:nth-child(even) td {
  background-color: var(--bg-alt);
}

/* ── Timeline ───────────────────────────────────────────────── */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-left: 2px solid var(--c-blue-600);
  padding-left: 24px;
  margin-top: 20px;
}
.timeline-item {
  position: relative;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -31px;
  top: 6px;
  width: 12px;
  height: 12px;
  background: var(--c-blue-600);
  border: 3px solid var(--bg-main);
  border-radius: 50%;
}

/* ── FAQ Accordion ─────────────────────────────────────────── */
.faq-item {
  border-bottom: 1px solid var(--border-light);
  padding-block: 16px;
}
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  cursor: pointer;
  gap: 16px;
}
.faq-q span {
  font-size: 1.25rem;
  color: var(--c-blue-600);
  transition: var(--transition);
}
.faq-item.open .faq-a {
  display: block;
}
.faq-a {
  display: none;
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-top: 10px;
  line-height: 1.6;
}

/* ── Form Controls ─────────────────────────────────────────── */
.form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}
.form input, .form textarea, .form select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text-primary);
  background-color: var(--bg-input);
  outline: none;
  transition: var(--transition);
}
.form input:focus, .form textarea:focus, .form select:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.form-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: 16px;
  padding: 16px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  line-height: 1.55;
}
.form-status[hidden] { display: none; }
.form-status strong { color: inherit; }

.form-status-success {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #065f46;
}
[data-theme="dark"] .form-status-success { color: #6ee7b7; }

.form-status-error {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #991b1b;
}
[data-theme="dark"] .form-status-error { color: #fca5a5; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.form-optin {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: -4px 0 18px;
  font-size: 0.88rem;
  color: var(--text-body);
  cursor: pointer;
}
.form .form-optin input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  padding: 0;
  flex-shrink: 0;
  accent-color: var(--c-blue-600);
}

.net-loader {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.45);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  animation: netLoaderFade 0.2s ease;
}
.net-loader[hidden] { display: none; }
.net-loader.is-toast {
  inset: auto 0 24px 0;
  padding: 0 16px;
  background: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  pointer-events: none;
}

.net-loader-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: min(320px, 100%);
  padding: 28px 24px 24px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-lg);
  text-align: center;
  pointer-events: auto;
}
.net-loader.is-toast .net-loader-card {
  flex-direction: row;
  gap: 14px;
  width: min(420px, 100%);
  padding: 12px 18px 12px 12px;
  text-align: left;
}

.net-loader-animation {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  flex-shrink: 0;
}
.net-loader.is-toast .net-loader-animation {
  width: 52px;
  height: 52px;
}
.net-loader-animation svg {
  width: 100% !important;
  height: 100% !important;
}

.net-loader-fallback {
  width: 70%;
  height: 70%;
  border-radius: 50%;
  border: 4px dashed #1d2c64;
  animation: netLoaderSpin 1.4s linear infinite;
}

.net-loader-copy { min-width: 0; }
.net-loader-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}
.net-loader-text {
  margin: 2px 0 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: #475569;
}

@keyframes netLoaderSpin {
  to { transform: rotate(360deg); }
}

@keyframes netLoaderFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 10040;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.cookie-banner-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  width: min(1040px, 100%);
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
}
.cookie-banner-inner p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-body);
}
.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.cookie-banner-actions .btn,
.cookie-banner-actions .ghost {
  padding: 9px 22px;
}

.subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.subscribe-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.subscribe-fields input {
  flex: 1 1 200px;
  min-width: 0;
  padding: 11px 16px;
  border-radius: 100px;
  border: 1.5px solid var(--border-light);
  background: var(--bg-input);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.92rem;
  outline: none;
  transition: var(--transition);
}
.subscribe-fields input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}
.subscribe-fields .btn { flex: 0 0 auto; }

.subscribe-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-muted);
  cursor: pointer;
}
.subscribe-consent input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--c-blue-600);
}

.subscribe-status {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: #047857;
}
.subscribe-status.is-error { color: #b91c1c; }
[data-theme="dark"] .subscribe-status { color: #6ee7b7; }
[data-theme="dark"] .subscribe-status.is-error { color: #fca5a5; }

.subscribe-popup {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 10030;
  width: min(380px, calc(100vw - 40px));
  padding: 24px 22px 16px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.subscribe-popup.is-visible {
  opacity: 1;
  transform: none;
}
.subscribe-popup h3 {
  margin: 2px 0 6px;
  padding-right: 24px;
  font-size: 1.15rem;
}
.subscribe-popup-kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-blue-600);
}
[data-theme="dark"] .subscribe-popup-kicker { color: var(--c-blue-400); }
.subscribe-popup-text {
  margin: 0 0 14px;
  font-size: 0.88rem;
  color: var(--text-body);
}
.subscribe-popup .subscribe-fields { flex-direction: column; }
.subscribe-popup .subscribe-fields input,
.subscribe-popup .subscribe-fields .btn {
  flex: none;
  width: 100%;
}
.subscribe-popup-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.subscribe-popup-close:hover {
  background: var(--bg-alt);
  color: var(--text-primary);
}
.subscribe-popup-skip {
  display: block;
  margin: 8px auto 0;
  border: none;
  background: none;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.82rem;
  text-decoration: underline;
  cursor: pointer;
}

/* ── Tech Photo Frames ─────────────────────────────────────── */
.photo {
  border-radius: var(--radius);
  background: var(--bg-alt);
  border: 1px dashed var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 20px;
  min-height: 170px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

/* ============================================================
   WATERMELON UI — FOOTER 16 MOVING WAVES & BLUE THEME
   ============================================================ */
.footer-watermelon-16 {
  position: relative;
  overflow: hidden;
  background-color: #0b0f19;
  color: #f1f5f9;
  padding-top: 56px;
  padding-bottom: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
  box-sizing: border-box;
}

/* System Design Concepts Marquee Ticker */
.footer-concepts-strip {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  padding-block: 16px;
  margin-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(15, 23, 42, 0.6);
  position: relative;
  z-index: 3;
}

.footer-concepts-track {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94a3b8;
  animation: marqueeConcepts 24s linear infinite;
}

.footer-concept-dot {
  color: #3b82f6;
  font-weight: bold;
}

@keyframes marqueeConcepts {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Moving Waves Flush at Bottom */
.footer-wave-bottom {
  position: relative;
  width: 100%;
  line-height: 0;
  margin-top: 24px;
  overflow: hidden;
  background: #0b0f19;
}

.footer-wave-svg {
  position: relative;
  display: block;
  width: 120% !important;
  max-width: none !important;
  left: -10% !important;
  height: 130px;
}

.wave-layer-1 {
  fill: rgba(30, 58, 138, 0.45);
  animation: waveFloat1 8s ease-in-out infinite alternate;
  transform-origin: center bottom;
}

.wave-layer-2 {
  fill: rgba(37, 99, 235, 0.3);
  animation: waveFloat2 11s ease-in-out infinite alternate;
  transform-origin: center bottom;
}

.wave-layer-3 {
  fill: rgba(14, 165, 233, 0.2);
  animation: waveFloat3 7s ease-in-out infinite alternate;
  transform-origin: center bottom;
}

.wave-layer-4 {
  fill: rgba(15, 23, 42, 0.95);
}

@keyframes waveFloat1 {
  0%   { transform: translateY(0px) scaleY(1); }
  50%  { transform: translateY(-10px) scaleY(1.12); }
  100% { transform: translateY(-4px) scaleY(0.95); }
}

@keyframes waveFloat2 {
  0%   { transform: translateY(0px) scaleY(1); }
  40%  { transform: translateY(8px) scaleY(0.88); }
  100% { transform: translateY(4px) scaleY(1.08); }
}

@keyframes waveFloat3 {
  0%   { transform: translateY(0px) scaleY(1); }
  50%  { transform: translateY(-7px) scaleY(1.1); }
  100% { transform: translateY(3px) scaleY(0.94); }
}

/* Footer Main Grid & Layout */
.footer-content-relative {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(24px, 5vw, 48px);
  box-sizing: border-box;
}

.footer-grid-16 {
  display: grid;
  grid-template-columns: minmax(240px, 1.1fr) minmax(0, 1.9fr);
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-inline: 0 !important;
  align-items: start;
}

.footer-brand-col .brand {
  color: #ffffff !important;
}

.footer-brand-col .brand-logo-img {
  height: 46px;
}

.footer-brand-col .opal-logo-word {
  fill: #8ec5c6;
}

.footer-brand-col .opal-logo-tagline {
  fill: #ffffff;
}

.footer-brand-col p {
  color: #cbd5e1;
  font-size: 0.93rem;
  line-height: 1.65;
  margin-top: 16px;
  max-width: 440px;
}

.footer-contact-info {
  margin-top: 18px;
  font-size: 0.88rem;
  color: #cbd5e1;
}
.footer-contact-info strong {
  color: #f8fafc !important;
}
.footer-contact-info a {
  color: #60a5fa;
  font-weight: 600;
}
.footer-contact-info a:hover {
  color: #ffffff;
}

.footer-nav-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.footer-nav-columns h3 {
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff !important;
  margin-bottom: 20px;
}

.footer-nav-columns ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav-columns li {
  margin-bottom: 12px;
}

.footer-nav-columns a {
  color: #94a3b8;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.footer-nav-columns a:hover {
  color: #ffffff;
  transform: translateX(4px);
  display: inline-block;
}

/* Sub-Footer Bottom Bar */
.footer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  gap: 20px;
  flex-wrap: wrap;
  padding-inline: 0 !important;
}

.footer-copyright {
  font-size: 0.88rem;
  color: #64748b;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  transition: var(--transition);
}

.footer-social-icon:hover {
  background: var(--c-blue-600);
  color: #ffffff;
  border-color: var(--c-blue-500);
  transform: translateY(-3px);
}

.footer-subscribe {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.4fr);
  gap: 28px;
  align-items: center;
  padding: 32px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-subscribe h3 {
  margin-bottom: 6px;
  font-size: 1.15rem;
  color: #ffffff !important;
}
.footer-subscribe-copy p {
  margin: 0;
  font-size: 0.9rem;
  color: #94a3b8;
}
.footer-subscribe .subscribe-fields input {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  color: #f8fafc;
}
.footer-subscribe .subscribe-fields input::placeholder { color: #94a3b8; }
.footer-subscribe .subscribe-consent { color: #94a3b8; }
.footer-subscribe .subscribe-consent a { color: #60a5fa; }
.footer-subscribe .subscribe-status { color: #6ee7b7; }
.footer-subscribe .subscribe-status.is-error { color: #fca5a5; }

.footer-legal-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-legal-row a {
  color: #94a3b8;
  font-size: 0.85rem;
}

.footer-legal-row a:hover {
  color: #ffffff;
}

/* Hide Footer Placeholder Text Safeguard */
footer .container[style*="margin-top:22px"],
footer .container:last-child {
  display: none !important;
}

/* ── Responsive Breakpoints ────────────────────────────────── */
@media (min-width: 1400px) {
  .grid4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1399px) and (min-width: 1041px) {
  .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
}

@media (max-width: 1300px) {
  .brand-logo-img { height: 34px; }
}

@media (max-width: 1220px) {
  .nav .actions .ghost { display: none !important; }
}

@media (min-width: 1041px) and (max-width: 1100px) {
  .menu a { padding: 6px 8px; }
}

@media (max-width: 1040px) {
  .mobile-menu-btn { display: inline-flex; }
  
  .menu {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    width: 100%;
    background: var(--bg-main);
    border-bottom: 1px solid var(--border-light);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px;
    gap: 8px;
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 999;
  }
  .menu.open { display: flex; }
  .menu a { padding: 12px 16px; font-size: 1rem; }
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .section-top { grid-template-columns: 1fr; gap: 16px; align-items: start; }
  .service-row, .industry-row, .cta-band { grid-template-columns: 1fr; gap: 28px; }
  .grid4, .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .footer-grid-16 { grid-template-columns: 1fr; gap: 40px; }
  .dash { grid-template-columns: 1fr; }
  .mini { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

@media (max-width: 767px) {
  section { padding-block: 52px; }
  .grid2, .grid3, .grid4 { grid-template-columns: 1fr; gap: 20px; }
  .footer-nav-columns { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom-bar { flex-direction: column; align-items: flex-start; }
  .dash { grid-template-columns: 1fr; }
  .container, .service-row, .industry-row, .cta-band, .hero-grid { padding-inline: 20px !important; }
  .footer-subscribe { grid-template-columns: 1fr; gap: 16px; }
  .cookie-banner-inner { flex-direction: column; align-items: stretch; gap: 14px; }
  .cookie-banner-actions > * { flex: 1; }
  .subscribe-popup { left: 12px; right: 12px; bottom: 12px; width: auto; }
}

@media (max-width: 520px) {
  .nav .actions .btn { display: none; }
}

/* ── Scroll Reveal Animation ────────────────────────────────── */
.reveal-ready {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.revealed {
  opacity: 1;
  transform: translateY(0);
}
