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

:root {
  --bg-base: #030305;
  --glass-bg: rgba(10, 12, 20, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glow-primary: #00f3ff;
  --glow-secondary: #ff0055;
  --glow-tertiary: #7000ff;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --font-body: 'Inter', sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
}

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

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

body {
  background-color: var(--bg-base);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  font-size: 16px;
}

/* Dynamic Backgrounds */
body::before, body::after {
  content: '';
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(150px);
  z-index: -1;
  opacity: 0.15;
  animation: float 20s infinite alternate;
}
body::before {
  background: var(--glow-primary);
  top: -200px;
  left: -200px;
}
body::after {
  background: var(--glow-tertiary);
  bottom: 10vh;
  right: -10vw;
  animation-delay: -5s;
}

@keyframes float {
  0% { transform: translate(0, 0); }
  100% { transform: translate(100px, 50px); }
}

/* Ambient Section Lighting (Orbs) */
.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  opacity: 0.15;
  pointer-events: none;
}
.glow-cyan { background: var(--glow-primary); width: 40vw; height: 40vw; max-width: 400px; max-height: 400px; }
.glow-magenta { background: var(--glow-secondary); width: 30vw; height: 30vw; max-width: 300px; max-height: 300px; }
.glow-purple { background: var(--glow-tertiary); width: 50vw; height: 50vw; max-width: 500px; max-height: 500px; }

/* Scroll Animation Classes (JS triggers these) */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.animate-on-scroll.show {
  opacity: 1;
  transform: translateY(0);
}

/* TYPOGRAPHY SYSTEM */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 0.5em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1em;
}

.text-lead {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--text-main);
}

.text-center { text-align: center; }

.gradient-text {
  background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-accent {
  background: linear-gradient(135deg, var(--glow-primary) 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Header */
header {
  padding: 16px 0;
  background: rgba(3, 3, 5, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo-img {
  height: 30px;
  width: auto;
}

/* Header Navigation */
.desktop-nav {
  display: flex;
  gap: 35px;
}
.desktop-nav a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}
.desktop-nav a:hover {
  color: var(--glow-primary);
  text-shadow: 0 0 10px rgba(0, 243, 255, 0.4);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.btn-sm {
  padding: 10px 20px;
  font-size: 0.85rem;
}
.btn-primary {
  background: linear-gradient(45deg, #0044ff, var(--glow-primary));
  color: #fff;
  border: none;
  box-shadow: 0 10px 20px -10px var(--glow-primary);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -10px var(--glow-primary);
}
.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--glow-primary);
  transform: translateY(-2px);
}
.btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero Section */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px 0;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.hero p {
  max-width: 600px;
}
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual img {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 40px rgba(0, 243, 255, 0.15));
}

/* Sections */
section {
  padding: 100px 0;
  position: relative;
}

section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--glow-primary) 50%, transparent 100%);
  opacity: 0.4;
  box-shadow: 0 0 8px var(--glow-primary);
}

section:last-of-type::after {
  display: none;
}
.section-header {
  text-align: center;
  margin-bottom: 60px;
  max-width: 900px;
  margin-inline: auto;
}

/* Grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 50px; align-items: stretch; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }

/* Glass Cards */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 40px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: flex;
  flex-direction: column;
}
.glass-card.p-0 {
  padding: 0;
  overflow: hidden;
}
.glass-card.p-0 > .card-body {
  padding: 40px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.glass-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--glow-primary), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.glass-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 243, 255, 0.3);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3), 0 0 20px rgba(0, 243, 255, 0.05);
}
.glass-card:hover::before {
  opacity: 1;
}
.glass-card h3 {
  color: #fff;
}
.glass-card p:last-child {
  margin-bottom: 0;
}

/* Inline Card Header (Icon + Title) */
.card-header-inline {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.card-header-inline .icon-wrapper {
  margin-bottom: 0;
  flex-shrink: 0;
}
.card-header-inline h3 {
  margin-bottom: 0;
}

/* Icons & Wrappers */
.icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 243, 255, 0.05);
  border: 1px solid rgba(0, 243, 255, 0.2);
  margin-bottom: 20px;
  box-shadow: inset 0 0 15px rgba(0, 243, 255, 0.05);
}
.icon-wrapper.accent {
  background: rgba(255, 0, 85, 0.05);
  border-color: rgba(255, 0, 85, 0.2);
  box-shadow: inset 0 0 15px rgba(255, 0, 85, 0.05);
}
.icon-svg {
  width: 24px;
  height: 24px;
  stroke: var(--glow-primary);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.icon-wrapper.accent .icon-svg {
  stroke: var(--glow-secondary);
}

/* Background Image Placeholder */
.section-bg-placeholder {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: -2;
  border: 2px dashed rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
}
.section-bg-placeholder::after {
  content: '[BACKGROUND IMG]';
  font-family: var(--font-display);
  color: rgba(255, 255, 255, 0.2);
  font-size: 1.5rem;
  letter-spacing: 2px;
}

/* Comparison Table - Fixed clipping */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  padding-bottom: 20px;
  padding-top: 20px; /* Space for the badge */
}
.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--glass-bg);
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  min-width: 800px; /* Force scroll on mobile instead of squishing */
}
/* Border radius for corners since overflow is visible */
.comparison-table th:first-child { border-top-left-radius: 16px; }
.comparison-table th:last-child { border-top-right-radius: 16px; }
.comparison-table tr:last-child td:first-child { border-bottom-left-radius: 16px; }
.comparison-table tr:last-child td:last-child { border-bottom-right-radius: 16px; }

.comparison-table th, .comparison-table td {
  padding: 20px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  vertical-align: middle;
}
.comparison-table tr:last-child td {
  border-bottom: none;
}
.comparison-table th {
  font-family: var(--font-display);
  font-size: 1rem;
  background: rgba(255,255,255,0.01);
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.comparison-table td strong {
  color: #fff;
}

/* Highlight the Dremian Column */
.highlight-col-header {
  background: linear-gradient(180deg, rgba(0, 243, 255, 0.08) 0%, rgba(0, 243, 255, 0.02) 100%);
  color: #fff !important;
  border-top: 2px solid var(--glow-primary);
  border-left: 1px solid rgba(0, 243, 255, 0.1);
  border-right: 1px solid rgba(0, 243, 255, 0.1);
  position: relative;
}
.highlight-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--glow-primary);
  color: #000;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}
.highlight-col {
  background: rgba(0, 243, 255, 0.03);
  border-left: 1px solid rgba(0, 243, 255, 0.1);
  border-right: 1px solid rgba(0, 243, 255, 0.1);
}
.comparison-table tr:hover td { background: rgba(255, 255, 255, 0.02); }
.comparison-table tr:hover td.highlight-col { background: rgba(0, 243, 255, 0.05); }

/* Table Icons */
.table-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.table-icon.check { stroke: var(--glow-primary); }
.table-icon.cross { stroke: rgba(255, 255, 255, 0.2); }

.flex-center {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Compliance Norms List */
.norm-list {
  list-style: none;
  margin-top: 15px;
}
.norm-list li {
  margin-bottom: 15px;
  padding-left: 28px;
  position: relative;
  font-size: 0.95rem;
}
.norm-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--glow-secondary);
  font-weight: bold;
}
.norm-list li strong {
  color: #fff;
}

/* Badges */
.badge {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  padding: 6px 12px;
  background: rgba(0, 243, 255, 0.1);
  border: 1px solid rgba(0, 243, 255, 0.2);
  color: var(--glow-primary);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

/* Accordion FAQ */
details {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  margin-bottom: 12px;
  transition: all 0.3s ease;
}
details[open] {
  border-color: rgba(0, 243, 255, 0.3);
}
summary {
  padding: 16px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
}
.faq-item summary::after {
  content: '+';
  color: var(--glow-primary);
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}
details[open] summary::after {
  content: '-';
  transform: rotate(180deg);
}
.faq-content {
  padding: 0 16px 16px 16px;
  font-size: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 8px;
  padding-top: 12px;
}

/* Image Placeholders */
.placeholder-img {
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,0.02), rgba(255,255,255,0.02) 15px, transparent 15px, transparent 30px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  color: rgba(255, 255, 255, 0.3);
  text-align: center;
  padding: 20px;
  font-size: 1rem;
}
.img-wrap {
  width: 100%;
  height: 200px;
  background: #000;
  border-bottom: 1px solid var(--glass-border);
  overflow: hidden;
}
.img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.glass-card:hover .img-wrap img {
  transform: scale(1.05);
}

/* Footer */
footer {
  border-top: 1px solid var(--glass-border);
  padding: 60px 0 40px 0;
  background: rgba(0,0,0,0.8);
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  margin-right: 20px;
  font-size: 0.9rem;
}
.footer-links a:hover {
  color: var(--glow-primary);
}

/* Responsive Overrides */
@media (max-width: 1024px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero p { margin-inline: auto; }
  .hero-visual { display: block; max-width: 500px; margin: 0 auto; order: -1; }
  .btn-group { justify-content: center; }
}

@media (max-width: 768px) {
  section { padding: 40px 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 20px; }
  .container { padding: 0 16px; }
  .btn { width: 100%; }
  header .btn { width: auto; font-size: 0.75rem; padding: 8px 12px; letter-spacing: 0; }
  header .container { padding: 12px 16px !important; }
  .logo-img { height: 24px; }
  
  /* Compact Spacing */
  .hero { padding: 60px 0 20px 0; min-height: auto; }
  .ambient-glow { opacity: 0.1; }
  .glass-card { padding: 20px; }
  .glass-card.p-0 > .card-body { padding: 20px; }
  .section-header { margin-bottom: 25px; }
  
  /* Typography Overrides */
  h1 { font-size: 2rem !important; line-height: 1.2 !important; margin-bottom: 15px !important; }
  h2, .section-header h2 { font-size: 1.8rem !important; line-height: 1.3 !important; margin-bottom: 15px !important; }
  h3 { font-size: 1.3rem !important; margin-bottom: 10px !important; }
  h4 { font-size: 1.15rem !important; margin-bottom: 10px !important; }
  p, .text-lead { font-size: 0.95rem !important; line-height: 1.5 !important; }
  .badge { font-size: 0.7rem !important; padding: 4px 10px !important; margin-bottom: 12px !important; }
  
  /* FAQ Mobile Overrides */
  .faq-item summary { padding: 16px !important; }
  .faq-item summary h3 { font-size: 1rem !important; margin-bottom: 0 !important; padding-right: 15px; line-height: 1.4 !important; }
  .faq-item p { padding: 0 16px 16px 16px !important; font-size: 0.9rem !important; }
  
  .desktop-nav { display: none; }
  
  footer .container { flex-direction: column; text-align: center; gap: 20px; }
  .footer-links a { display: block; margin: 10px 0; }
}

/* FAQ Accordion */
.faq-item {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: border-color 0.3s ease;
}
.faq-item:hover {
  border-color: rgba(0, 243, 255, 0.4);
}
.faq-item summary {
  padding: 20px 25px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
}
.faq-item summary::after {
  content: '+';
  color: var(--glow-primary);
  font-size: 1.5rem;
  font-weight: 300;
  transition: transform 0.3s ease;
}
.faq-item[open] summary::after {
  content: '-';
}
.faq-item p {
  padding: 0 25px 20px 25px;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}
