/*
Theme Name: AdOptix Enterprise SSP
Theme URI: https://adoptix.org
Author: AdOptix Media LLC
Author URI: https://adoptix.org
Description: Enterprise AdTech & Supply-Side Platform (SSP) WordPress theme modeled after industry leaders (PubMatic, Magnite, Index Exchange). Features dual-sided Publisher & Buyer architecture, interactive auction telemetry visuals, omnichannel capabilities, and clean corporate blue branding.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: adoptix-ssp
*/

:root {
  --navy-950: #051326;
  --navy-900: #0A2540;
  --navy-800: #113255;
  --blue-600: #0066DB;
  --blue-500: #0070F3;
  --cyan-500: #00B4D8;
  --cyan-400: #00C4FF;
  --slate-900: #0F172A;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748B;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;
  --slate-50: #F8FAFC;
  --white: #FFFFFF;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(10, 37, 64, 0.06);
  --shadow-md: 0 10px 30px -5px rgba(10, 37, 64, 0.08);
  --shadow-lg: 0 20px 50px -12px rgba(10, 37, 64, 0.16);
  --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--slate-900);
  background-color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-200);
  transition: box-shadow 0.25s ease;
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-wordmark {
  font-size: 1.55rem;
  letter-spacing: -0.03em;
  color: var(--navy-900);
  display: flex;
  align-items: baseline;
}

.brand-wordmark .bold-part {
  font-weight: 800;
  color: var(--navy-900);
}

.brand-wordmark .light-part {
  font-weight: 400;
  color: var(--navy-800);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--slate-700);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover {
  color: var(--blue-500);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-500), var(--cyan-400));
  transition: width 0.25s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--blue-500);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(0, 112, 243, 0.28);
}

.btn-primary:hover {
  background: var(--blue-600);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 112, 243, 0.35);
}

.btn-outline {
  background: transparent;
  border-color: var(--slate-200);
  color: var(--navy-900);
}

.btn-outline:hover {
  border-color: var(--navy-900);
  background: var(--slate-50);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.24);
  color: var(--white);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--white);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--navy-900);
}

/* Hero Section (PubMatic / Magnite Enterprise Style) */
.hero-section {
  position: relative;
  background: radial-gradient(circle at 82% 20%, rgba(0, 196, 255, 0.16), transparent 45%),
              radial-gradient(circle at 15% 80%, rgba(0, 112, 243, 0.22), transparent 50%),
              linear-gradient(135deg, var(--navy-950) 0%, var(--navy-900) 60%, #0D2E52 100%);
  color: var(--white);
  padding: 96px 0 104px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 56px;
  align-items: center;
}

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(0, 196, 255, 0.12);
  border: 1px solid rgba(0, 196, 255, 0.3);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cyan-400);
  margin-bottom: 24px;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan-400);
  box-shadow: 0 0 10px var(--cyan-400);
}

.hero-title {
  font-size: clamp(2.35rem, 4.2vw, 3.5rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}

.hero-title span {
  background: linear-gradient(90deg, #60A5FA 0%, var(--cyan-400) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: #CBD5E1;
  max-width: 580px;
  margin-bottom: 36px;
  line-height: 1.65;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 44px;
}

.hero-trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  color: #94A3B8;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-item svg {
  color: var(--cyan-400);
  flex-shrink: 0;
}

/* Telemetry / Auction Engine UI Card */
.telemetry-card {
  background: rgba(15, 35, 62, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px);
}

.telemetry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.telemetry-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan-400);
  background: rgba(0, 196, 255, 0.12);
  padding: 3px 10px;
  border-radius: 4px;
}

.auction-flow {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.flow-node {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flow-node.active-engine {
  background: linear-gradient(90deg, rgba(0, 112, 243, 0.22), rgba(0, 196, 255, 0.14));
  border-color: rgba(0, 196, 255, 0.45);
}

.node-info strong {
  display: block;
  font-size: 0.925rem;
  color: var(--white);
}

.node-info span {
  font-size: 0.8rem;
  color: #94A3B8;
}

.node-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #E2E8F0;
}

.node-pill.highlight {
  background: var(--cyan-400);
  color: var(--navy-950);
  font-weight: 700;
}

.telemetry-bars {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.bar-row {
  margin-bottom: 12px;
}

.bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #CBD5E1;
  margin-bottom: 5px;
}

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

.bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue-500), var(--cyan-400));
}

/* Pillar Highlights Bar (Non-Exaggerated Capability Strip) */
.pillars-strip {
  background: var(--slate-50);
  border-bottom: 1px solid var(--slate-200);
  padding: 36px 0;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.pillar-item {
  border-left: 3px solid var(--blue-500);
  padding-left: 16px;
}

.pillar-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 4px;
}

.pillar-item p {
  font-size: 0.875rem;
  color: var(--slate-600);
}

/* Section Generic Styling */
.section {
  padding: 92px 0;
}

.section-alt {
  background: var(--slate-50);
}

.section-header {
  max-width: 720px;
  margin-bottom: 52px;
}

.section-header.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-kicker {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue-500);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--navy-900);
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.0625rem;
  color: var(--slate-600);
}

/* Dual-Sided Platform Tabs (Publishers vs Demand Partners) */
.platform-tabs-nav {
  display: inline-flex;
  background: var(--slate-100);
  padding: 6px;
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-200);
  margin-bottom: 40px;
}

.tab-btn {
  padding: 12px 26px;
  border-radius: 8px;
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--slate-600);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn.active {
  background: var(--white);
  color: var(--navy-900);
  box-shadow: var(--shadow-sm);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.feature-card-row {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.feature-card-row:hover {
  border-color: var(--blue-500);
  box-shadow: var(--shadow-md);
}

.icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(0, 112, 243, 0.1);
  color: var(--blue-500);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-card-row h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 4px;
}

.feature-card-row p {
  font-size: 0.925rem;
  color: var(--slate-600);
}

.panel-visual {
  background: linear-gradient(145deg, var(--navy-900), var(--navy-800));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-lg);
}

.panel-visual h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.panel-visual p {
  color: #CBD5E1;
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.spec-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px;
  border-radius: var(--radius-sm);
}

.spec-box span {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cyan-400);
  margin-bottom: 4px;
}

.spec-box strong {
  font-size: 0.95rem;
  font-weight: 600;
}

/* Omnichannel Formats Grid */
.channels-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.channel-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.channel-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-500);
}

.channel-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 112, 243, 0.12), rgba(0, 196, 255, 0.14));
  color: var(--blue-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.channel-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 10px;
}

.channel-card p {
  font-size: 0.925rem;
  color: var(--slate-600);
  margin-bottom: 18px;
}

.channel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.channel-tags span {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 9px;
  background: var(--slate-100);
  color: var(--slate-700);
  border-radius: 4px;
}

/* Architecture & Transparency Section */
.arch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.arch-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 32px;
}

.arch-step {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--blue-500);
  margin-bottom: 12px;
  display: block;
}

.arch-card h3 {
  font-size: 1.2rem;
  color: var(--navy-900);
  margin-bottom: 10px;
}

.arch-card p {
  font-size: 0.9375rem;
  color: var(--slate-600);
}

/* About & Contact Section */
.contact-wrapper {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 56px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-md);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 28px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-item strong {
  display: block;
  color: var(--navy-900);
  font-size: 0.95rem;
}

.contact-item span, .contact-item a {
  color: var(--slate-600);
  font-size: 0.95rem;
}

.contact-item a:hover {
  color: var(--blue-500);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--slate-900);
  background: var(--slate-50);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--blue-500);
  background: var(--white);
}

.form-status {
  display: none;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
}

.form-status.success {
  display: block;
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

/* Footer */
.site-footer {
  background: var(--navy-950);
  color: #CBD5E1;
  padding: 72px 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand p {
  margin-top: 16px;
  font-size: 0.925rem;
  color: #94A3B8;
  max-width: 320px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}

.footer-col ul li {
  margin-bottom: 11px;
}

.footer-col ul a {
  font-size: 0.925rem;
  color: #94A3B8;
}

.footer-col ul a:hover {
  color: var(--cyan-400);
}

.footer-bottom {
  padding-top: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: #64748B;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

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

/* Modal for Legal / Compliance Policies */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5, 19, 38, 0.72);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-card {
  background: var(--white);
  max-width: 680px;
  width: 100%;
  max-height: 82vh;
  overflow-y: auto;
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--slate-100);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--navy-900);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero-grid,
  .tab-panel.active,
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
  .pillars-grid,
  .channels-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu,
  .header-actions .btn-outline {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .nav-menu.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 24px;
    border-bottom: 1px solid var(--slate-200);
    box-shadow: var(--shadow-md);
    align-items: flex-start;
    gap: 18px;
  }
  .pillars-grid,
  .channels-grid,
  .arch-grid,
  .form-row,
  .spec-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .contact-wrapper {
    padding: 28px 20px;
  }
}
