/* ============================================
   ESP Website — styles.css
   Dark Navy Theme — matches OMNIA ONE platform
   ============================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #0ea5e9;
  --primary-dark: #0284c7;
  --primary-light: #38bdf8;
  --accent: #22d3ee;
  --navy-deepest: #060a14;
  --navy-deep: #0a0e1a;
  --navy: #0f172a;
  --navy-light: #1e293b;
  --navy-lighter: #283548;
  --gray: #94a3b8;
  --gray-light: #cbd5e1;
  --gray-dim: #64748b;
  --white: #f1f5f9;
  --pure-white: #ffffff;
  --red: #c8133e;
  --gradient: linear-gradient(135deg, #0ea5e9, #22d3ee);
  --gradient-dark: linear-gradient(135deg, #0a0e1a, #1e293b);
  --card-bg: rgba(30, 41, 59, 0.5);
  --card-border: rgba(255,255,255,0.06);
  --shadow: 0 4px 6px -1px rgba(0,0,0,.3), 0 2px 4px -2px rgba(0,0,0,.2);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.3), 0 4px 6px -4px rgba(0,0,0,.2);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.3), 0 8px 10px -6px rgba(0,0,0,.2);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --glow: 0 0 30px rgba(14, 165, 233, 0.15);
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--gray-light);
  background: var(--navy-deep);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

img { max-width: 100%; height: auto; }

a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-light); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all .25s ease;
  border: 2px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient);
  color: var(--pure-white);
  border-color: transparent;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(14,165,233,.35);
  color: var(--pure-white);
}

.btn-secondary {
  background: var(--navy-light);
  color: var(--pure-white);
  border-color: var(--navy-lighter);
}
.btn-secondary:hover {
  background: var(--navy-lighter);
  transform: translateY(-2px);
  color: var(--pure-white);
}

.btn-outline {
  background: transparent;
  color: var(--gray-light);
  border-color: rgba(255,255,255,.2);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-block { width: 100%; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 14, 26, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all .3s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(10, 14, 26, 0.95);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
  border-bottom-color: rgba(255,255,255,0.06);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo-img { height: 36px; }
.nav-logo-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--pure-white);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--gray);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color .2s;
}
.nav-links a:hover { color: var(--pure-white); }

.nav-login {
  color: var(--primary) !important;
}
.nav-login:hover { color: var(--primary-light) !important; }

.nav-cta {
  background: var(--gradient);
  color: var(--pure-white) !important;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.nav-cta:hover {
  color: var(--pure-white) !important;
  box-shadow: 0 4px 15px rgba(14,165,233,.3);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-light);
  border-radius: 2px;
  transition: all .3s;
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 160px 0 100px;
  overflow: hidden;
  background: var(--navy-deepest);
  color: var(--pure-white);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(14,165,233,.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(34,211,238,.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 0%, rgba(14,165,233,.08) 0%, transparent 60%);
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(14,165,233,.15);
  border: 1px solid rgba(14,165,233,.3);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  color: var(--pure-white);
}

.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.stat { text-align: center; }
.stat-value {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--pure-white);
}
.stat-label {
  font-size: 0.8rem;
  color: var(--gray-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,.15);
}

/* ---------- Section Headers ---------- */
.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 56px;
}
.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  color: var(--pure-white);
}
.section-header p {
  color: var(--gray);
  font-size: 1.1rem;
  line-height: 1.6;
}

/* ---------- Two Ways Split ---------- */
.services-split {
  padding: 100px 0;
  background: var(--navy);
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.split-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  border: 1px solid var(--card-border);
  transition: transform .3s, box-shadow .3s;
}
.split-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--glow);
}

.split-card-icon { margin-bottom: 20px; }

.omnia-logo {
  width: 56px;
  height: 56px;
}

.consulting-icon {
  width: 56px;
  height: 56px;
  color: var(--primary);
}

.split-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--pure-white);
}

.split-card-tagline {
  color: var(--accent);
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.split-card p {
  color: var(--gray);
  margin-bottom: 20px;
  line-height: 1.7;
}

.split-features {
  list-style: none;
  margin-bottom: 28px;
}
.split-features li {
  padding: 6px 0 6px 24px;
  position: relative;
  color: var(--gray-light);
  font-size: 0.95rem;
}
.split-features li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* ---------- Modules Grid ---------- */
.modules {
  padding: 100px 0;
  background: var(--navy-deep);
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.module-card {
  padding: 32px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  transition: all .3s;
}
.module-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--glow);
}

.module-icon {
  width: 44px;
  height: 44px;
  background: rgba(14,165,233,.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.module-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--primary);
}

.module-card h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--pure-white);
}

.module-card p {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ---------- Screenshot Showcase ---------- */
.showcase {
  padding: 100px 0 60px;
  background: var(--navy);
  overflow: hidden;
}

.showcase .section-header { margin-bottom: 40px; }

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.showcase-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--card-border);
  transition: all .4s ease;
  cursor: pointer;
  aspect-ratio: 16/10;
}

.showcase-item:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--primary);
  box-shadow: var(--glow), 0 0 60px rgba(14,165,233,0.1);
  z-index: 2;
}

.showcase-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.showcase-item:hover img {
  transform: scale(1.05);
}

.showcase-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 16px 12px;
  background: linear-gradient(transparent, rgba(6,10,20,0.9));
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--pure-white);
}

/* Featured (hero) screenshot — full width */
.showcase-hero {
  margin-bottom: 20px;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--card-border);
  box-shadow: var(--glow);
}
.showcase-hero img {
  width: 100%;
  display: block;
}
.showcase-hero .showcase-label {
  font-size: 1rem;
  padding: 32px 24px 16px;
}

/* Lightbox overlay */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(6, 10, 20, 0.95);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: var(--radius);
  box-shadow: 0 0 60px rgba(14,165,233,0.2);
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  color: var(--gray);
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  transition: color .2s;
}
.lightbox-close:hover { color: var(--pure-white); }

/* ---------- Integrations ---------- */
.integrations {
  padding: 80px 0;
  background: var(--navy-deepest);
  color: var(--pure-white);
}

.integrations .section-header p { color: var(--gray); }

.integration-logos {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
}

.integration-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 24px 36px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  transition: all .3s;
  min-width: 160px;
}
.integration-item:hover {
  background: rgba(14,165,233,.1);
  border-color: rgba(14,165,233,.3);
}

.integration-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--pure-white);
}
.integration-type {
  font-size: 0.75rem;
  color: var(--gray-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.integration-more {
  border-style: dashed;
  background: transparent;
}
.integration-more .integration-name {
  color: var(--gray);
  font-style: italic;
}

.integration-methods {
  text-align: center;
  margin-top: 32px;
}
.integration-methods p {
  color: var(--gray);
  font-size: 1rem;
}
.integration-methods strong {
  color: var(--accent);
}

/* ---------- Pricing ---------- */
.pricing {
  padding: 100px 0;
  background: var(--navy);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  border: 1px solid var(--card-border);
  position: relative;
  transition: all .3s;
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--glow);
}

.pricing-featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), var(--glow);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  color: var(--pure-white);
  padding: 4px 16px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.pricing-tier {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--pure-white);
}

.pricing-desc {
  color: var(--gray-dim);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 28px;
}
.pricing-features li {
  padding: 8px 0 8px 24px;
  position: relative;
  font-size: 0.9rem;
  color: var(--gray-light);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* ---------- Clients ---------- */
.clients {
  padding: 80px 0;
  background: var(--navy-deep);
}

.client-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.client-name {
  padding: 10px 20px;
  background: var(--navy-light);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray);
  transition: all .2s;
  border: 1px solid transparent;
}
.client-name:hover {
  background: rgba(14,165,233,.1);
  color: var(--primary-light);
  border-color: rgba(14,165,233,.2);
}

/* Scrolling marquee */
.marquee {
  overflow: hidden;
  position: relative;
  width: 100%;
  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);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 32px;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.client-logo-item {
  width: 110px;
  height: 110px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-light);
  border-radius: var(--radius);
  padding: 16px;
  border: 1px solid var(--card-border);
  transition: all .3s;
}
.client-logo-item:hover {
  border-color: rgba(14,165,233,.3);
  box-shadow: var(--glow);
  transform: translateY(-2px);
}
.client-logo-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: brightness(0.9);
  transition: filter .3s;
}
.client-logo-item:hover img {
  filter: brightness(1);
}

/* ---------- About ---------- */
.about {
  padding: 100px 0;
  background: var(--navy);
}

.about-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  color: var(--pure-white);
}

.about-text p {
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.about-photo {
  width: 100%;
  max-width: 280px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  object-fit: cover;
}

/* ---------- Contact ---------- */
.contact {
  padding: 100px 0;
  background: var(--navy-deep);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-text h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  color: var(--pure-white);
}
.contact-text p {
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 32px;
  font-size: 1.05rem;
}

.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.contact-item svg {
  width: 20px;
  height: 20px;
  stroke: var(--primary);
  flex-shrink: 0;
}
.contact-item a {
  color: var(--gray-light);
  font-weight: 500;
}
.contact-item a:hover {
  color: var(--primary-light);
}

.contact-form {
  background: var(--navy-light);
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
}

.form-group { margin-bottom: 16px; }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--navy-lighter);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--navy);
  transition: border-color .2s;
  color: var(--gray-light);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-dim);
}

.form-group select {
  color: var(--gray-dim);
  cursor: pointer;
}
.form-group select option {
  background: var(--navy);
  color: var(--gray-light);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14,165,233,.15);
}

.form-group textarea { resize: vertical; }

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-deepest);
  color: var(--gray);
  padding: 64px 0 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand { max-width: 300px; }

.footer-logo { height: 32px; margin-bottom: 12px; }

.footer-tagline {
  font-style: italic;
  font-size: 0.85rem;
  color: var(--gray-dim);
}

.footer-links {
  display: flex;
  gap: 64px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h5 {
  color: var(--pure-white);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.footer-col a {
  color: var(--gray);
  font-size: 0.9rem;
  transition: color .2s;
}
.footer-col a:hover { color: var(--primary-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 24px;
  text-align: center;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: var(--gray-dim);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--navy);
    padding: 24px;
    gap: 16px;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--card-border);
  }
  .nav-links.active { display: flex; }

  .nav-cta { text-align: center; }
  .nav-logo-text { display: none; }

  .hero { padding: 130px 0 80px; }
  .hero h1 { font-size: 2.2rem; }
  .hero-stats { gap: 24px; }
  .stat-divider { display: none; }

  .split-grid { grid-template-columns: 1fr; }
  .split-card { padding: 36px 28px; }

  .modules-grid { grid-template-columns: repeat(2, 1fr); }

  .showcase-grid { grid-template-columns: 1fr 1fr; }

  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }

  .about-content { grid-template-columns: 1fr; }
  .about-photo-placeholder { max-width: 300px; margin: 0 auto; }

  .contact-content { grid-template-columns: 1fr; }

  .footer-content { flex-direction: column; }
  .footer-links { gap: 40px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-stats { flex-direction: column; gap: 16px; }

  .modules-grid { grid-template-columns: 1fr; }

  .showcase-grid { grid-template-columns: 1fr; }

  .integration-logos { gap: 12px; }
  .integration-item { padding: 16px 24px; min-width: 140px; }

  .footer-links { flex-direction: column; gap: 24px; }
}
