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

:root {
  --bg-primary: #d6dbe3;
  --bg-section: #f0f2f5;
  --text-primary: #000000;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --accent: #dc2626;
  --accent-rgb: 220, 38, 38;
  --accent-hover: #b91c1c;
  --border-color: #000000;
  --border-muted: #b0b8c4;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-title: 'Outfit', system-ui, -apple-system, sans-serif;
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --header-height: 60px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
  letter-spacing: -0.01em;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-normal);
}

a:hover {
  color: var(--accent);
}

::selection {
  background-color: rgba(220, 38, 38, 0.15);
  color: #000;
}

/* ================================================
   HEADER / NAVIGATION — Minimal top bar
   ================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1030;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-primary);
  transition: var(--transition-normal);
}

.header.scrolled {
  height: 50px;
  background-color: rgba(214, 219, 227, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.logo-img {
  height: 44px;
  width: auto;
  transition: all var(--transition-normal);
}

.header.scrolled .logo-img {
  height: 34px;
}

.nav-link {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--text-primary) !important;
  font-size: 0.8rem;
  transition: var(--transition-normal);
  position: relative;
  letter-spacing: 0.02em;
  white-space: nowrap;
  padding: 0.25rem 0.6rem !important;
}

.nav-link:hover {
  color: var(--accent) !important;
}

.btn {
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 0;
  padding: 0.5rem 1.2rem;
  font-size: 0.78rem;
  transition: var(--transition-normal);
  border: 1px solid var(--border-color);
}

.btn-primary {
  background-color: var(--text-primary) !important;
  border-color: var(--text-primary) !important;
  color: #ffffff !important;
}

.btn-primary:hover {
  background-color: var(--accent) !important;
  border-color: var(--accent) !important;
}

.btn-secondary {
  background-color: transparent !important;
  border-color: var(--border-color) !important;
  color: var(--text-primary) !important;
}

.btn-secondary:hover {
  background-color: var(--text-primary) !important;
  color: #ffffff !important;
}

/* ================================================
   DSP RADAR TICKER BANNER
   ================================================ */
.ticker-banner {
  background-color: #000000;
  color: #ffffff;
  overflow: hidden;
  white-space: nowrap;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  position: relative;
}

.ticker-track {
  display: inline-flex;
  animation: ticker-slide 45s linear infinite;
  gap: 3.5rem;
}

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

.ticker-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--font-sans);
}

.ticker-logo {
  height: 16px;
  width: auto;
  flex-shrink: 0;
}

.ticker-status {
  padding: 0.15rem 0.45rem;
  font-size: 0.58rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.ticker-status.cleared {
  color: #22c55e;
  border: 1px solid #22c55e;
}

.ticker-status.detected {
  color: var(--accent);
  border: 1px solid var(--accent);
  animation: pulse-red-border 1.2s infinite alternate;
}

.ticker-metric {
  color: #64748b;
  font-family: 'SF Mono', 'Menlo', monospace;
  font-size: 0.68rem;
}

@keyframes pulse-red-border {
  0% { border-color: rgba(220,38,38,0.3); }
  100% { border-color: rgba(220,38,38,1); }
}

/* ================================================
   HERO — state51-Inspired Giant Marquee Rows
   Each row is a full-width scrolling text strip
   ================================================ */
.hero-marquee-section {
  padding: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

/* Logo + tagline header above marquee rows */
.hero-identity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.5rem 3rem;
  border-bottom: 1px solid var(--border-color);
}

.hero-identity-left {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.hero-logo-large {
  height: auto;
  width: 280px;
  max-width: 100%;
}

.hero-tagline {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  max-width: 320px;
  line-height: 1.5;
}

.hero-identity-right {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.hero-cta-btn {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.6rem 1.5rem;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition-normal);
  text-decoration: none;
  display: inline-block;
}

.hero-cta-btn:hover {
  background-color: var(--text-primary);
  color: #ffffff;
}

.hero-cta-btn.filled {
  background-color: var(--text-primary);
  color: #ffffff;
}

.hero-cta-btn.filled:hover {
  background-color: var(--accent);
  border-color: var(--accent);
}

/* Marquee Row — giant scrolling text */
.marquee-row {
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.marquee-row:last-child {
  border-bottom: none;
}

.marquee-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
}

.marquee-track.scroll-right {
  animation: marquee-right 30s linear infinite;
}

.marquee-track.scroll-left {
  animation: marquee-left 30s linear infinite;
}

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

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

.marquee-text {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: clamp(4rem, 8vw, 9rem);
  line-height: 1;
  color: var(--text-primary);
  padding: 0.3em 0;
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  user-select: none;
}

.marquee-text .marquee-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.marquee-text .marquee-icon img {
  height: 0.55em;
  width: auto;
  opacity: 0.9;
}

.marquee-text .marquee-icon svg {
  height: 0.6em;
  width: auto;
}

.marquee-separator {
  display: inline-block;
  width: 0.15em;
  height: 0.15em;
  background-color: var(--text-primary);
  border-radius: 50%;
  margin: 0 0.4em;
  flex-shrink: 0;
  vertical-align: middle;
}

/* Marquee row hover effect */
.marquee-row:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-row:hover {
  background-color: rgba(0, 0, 0, 0.03);
}

/* ================================================
   STATISTICS — Horizontal editorial strip
   ================================================ */
.stats {
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-primary);
}

.stat-item-col {
  border-right: 1px solid var(--border-color);
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.stat-item-col:last-child {
  border-right: none;
}

.stat-number {
  font-family: var(--font-title);
  font-size: 3rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1;
}

.stat-label-ticker {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-top: 0.75rem;
}

@media (max-width: 991px) {
  .stat-item-col {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
  .stat-item-col:last-child {
    border-bottom: none;
  }
}

/* ================================================
   SECTION STYLING — Clean editorial blocks
   ================================================ */
.section-tag {
  font-family: var(--font-sans);
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: inline-block;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.content-section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border-color);
}

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

/* ================================================
   SERVICES / SOLUTIONS — Numbered list
   ================================================ */
.service-card-editorial {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  padding-bottom: 2rem;
  height: 100%;
}

.service-serial {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 900;
  color: var(--text-muted);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.service-title-bold {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

/* ================================================
   WHY CHOOSE US — Clean bordered cards
   ================================================ */
.why-card-editorial {
  border: 1px solid var(--border-color);
  padding: 2rem;
  height: 100%;
  position: relative;
  background-color: transparent;
  transition: var(--transition-normal);
}

.why-card-editorial:hover {
  background-color: rgba(0, 0, 0, 0.03);
}

/* ================================================
   TECHNOLOGY — CLI Monitor Widget
   ================================================ */
.tech-visual-monitor {
  background-color: #0a0a0a;
  border: 1px solid #333;
  padding: 1.5rem;
  color: #ffffff;
  font-family: 'SF Mono', 'Menlo', 'Consolas', monospace;
}

.tech-monitor-header {
  border-bottom: 1px solid #222;
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.monitor-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  display: inline-block;
}

.tech-waves-interactive {
  background-color: #111;
  border: 1px solid #222;
  height: 130px;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  padding: 0.5rem;
  position: relative;
  overflow: hidden;
}

.audio-bar {
  width: 3px;
  background-color: #ef4444;
  transition: height 0.12s ease;
  min-height: 4px;
}

.audio-bar.infringement-alert {
  background-color: #dc2626;
  box-shadow: 0 0 6px rgba(220, 38, 38, 0.5);
}

.tech-scan-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(220, 38, 38, 0.6), transparent);
  animation: scan-sweep 3s linear infinite;
}

@keyframes scan-sweep {
  0% { left: 0; }
  100% { left: 100%; }
}

.tech-feedback-panel {
  background-color: #111;
  border: 1px solid #222;
  border-left: 3px solid var(--accent);
  padding: 1rem;
  margin-top: 0.75rem;
}

/* ================================================
   ABOUT US
   ================================================ */
.about-image-wrapper {
  background-color: var(--bg-section);
  border: 1px solid var(--border-color);
  position: relative;
}

.about-overlay-card {
  position: absolute;
  bottom: -1rem;
  left: -1rem;
  background-color: #000000;
  color: #ffffff;
  border: 1px solid var(--border-color);
  padding: 1.25rem;
  max-width: 200px;
  z-index: 10;
}

.about-overlay-num {
  font-family: var(--font-title);
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}

/* ================================================
   CONTACT CARDS
   ================================================ */
.contact-card-editorial {
  border: 1px solid var(--border-color);
  padding: 2rem 1.5rem;
  background-color: transparent;
  height: 100%;
  transition: var(--transition-normal);
}

.contact-card-editorial:hover {
  background-color: rgba(0, 0, 0, 0.03);
  border-color: var(--accent);
}

.contact-card-editorial .service-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--text-primary);
  color: #ffffff;
  margin: 0 auto;
}

.contact-card-editorial:hover .service-icon {
  background-color: var(--accent);
}

/* ================================================
   FOOTER — Minimal bottom bar
   ================================================ */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 3rem 0;
  background-color: var(--bg-primary);
}

.footer-logo {
  height: auto;
  width: 180px;
  margin-bottom: 1rem;
}

.footer a:hover {
  color: var(--accent);
}

/* ================================================
   REVEAL SCROLL ANIMATIONS
   ================================================ */
.reveal, .reveal-left, .reveal-right {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.active, .reveal-left.active, .reveal-right.active {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================
   MOBILE RESPONSIVE
   ================================================ */
@media (max-width: 991px) {
  :root {
    --header-height: 70px;
  }

  .logo-img {
    height: auto;
    width: 140px;
  }

  .header.scrolled .logo-img {
    height: auto;
    width: 120px;
  }

  .navbar-collapse {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 1rem;
    margin-top: 0.5rem;
  }

  .hero-identity {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    gap: 1.25rem;
  }

  .hero-identity-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    width: 100%;
  }

  .hero-identity-right {
    width: 100%;
  }

  .hero-identity-right .hero-cta-btn {
    flex: 1;
    text-align: center;
  }

  .hero-logo-large {
    width: 220px;
    height: auto;
  }

  .marquee-text {
    font-size: clamp(2.5rem, 6vw, 5rem);
  }

  .footer-logo {
    width: 180px;
    height: auto;
  }
}

@media (max-width: 576px) {
  :root {
    --header-height: 65px;
  }

  .logo-img {
    height: auto;
    width: 130px;
  }

  .header.scrolled .logo-img {
    height: auto;
    width: 110px;
  }

  .hero-identity {
    padding: 1.25rem 1rem;
  }

  .hero-logo-large {
    width: 200px;
    height: auto;
  }

  .marquee-text {
    font-size: clamp(2rem, 5vw, 3.5rem);
  }

  .hero-cta-btn {
    font-size: 0.72rem;
    padding: 0.5rem 1rem;
  }

  .footer-logo {
    width: 160px;
    height: auto;
  }

  .about-image-wrapper img {
    width: 90% !important;
  }
}

/* ================================================
   LOGIN PAGE OVERRIDES
   ================================================ */
.login-card {
  border-radius: 0 !important;
  border: 1px solid var(--border-color) !important;
  box-shadow: none !important;
  padding: 3rem 2rem !important;
  background-color: var(--bg-section) !important;
}

.form-control {
  border-radius: 0 !important;
  border-color: var(--border-color) !important;
  background-color: transparent !important;
  font-size: 0.85rem;
}

.form-control:focus {
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.15) !important;
  border-color: var(--accent) !important;
}

/* Text danger hover for footer links */
.text-danger-hover:hover {
  color: var(--accent) !important;
}
