/* =========== 
   Design Tokens 
   =========== */
:root {
  /* Colors */
  --bg-color: #0d0f17;
  --bg-solid: #131722;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Brand/Accent Colors */
  --accent-primary: #4285F4;
  --accent-primary-hover: #3367D6;
  --accent-secondary: #8b5cf6;
  --accent-teal: #34A853;
  --color-warning: #FBBC04;
  --color-danger: #EA4335;
  --color-success: #34A853;

  /* Gradients */
  --gradient-brand: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  --gradient-glow: conic-gradient(from 180deg at 50% 50%, rgba(66, 133, 244, 0.4) 0deg, rgba(139, 92, 246, 0.4) 180deg, rgba(66, 133, 244, 0.4) 360deg);

  /* Glassmorphism */
  --glass-bg: rgba(30, 41, 59, 0.4);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Spacing & Layout */
  --container-width: 1200px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========== 
   Reset & Base OVERRIDES
   =========== */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Background Ambient Glows */
body::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vh;
  background: radial-gradient(circle, rgba(66, 133, 244, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

body::after {
  content: '';
  position: absolute;
  top: 40%;
  right: -10%;
  width: 50vw;
  height: 50vh;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

h1,
.h1,
h2,
.h2,
h3,
.h3,
h4,
.h4,
h5,
.h5,
h6,
.h6,
.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

p {
  color: var(--text-secondary);
}

a {
  color: rgb(211, 211, 211);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: white;
}

/* Custom Padding Utility override */
.py-6 {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.section-header h2 {
  background: var(--text-primary);
  background: linear-gradient(to right, #ffffff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.dark-section {
  background-color: rgba(0, 0, 0, 0.4) !important;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}


/* =========== 
   Buttons 
   =========== */
.btn {
  font-family: var(--font-heading);
  font-weight: 600;
  border: none;
  transition: var(--transition-normal);
  padding: 0.875rem 1.75rem;
  border-radius: 8px;
}

.btn-primary {
  background: var(--gradient-brand);
  color: white;
  box-shadow: 0 4px 14px rgba(66, 133, 244, 0.4);
}

.btn-primary:hover {
  background: var(--gradient-brand);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(66, 133, 244, 0.6);
  color: white;
}

.btn-secondary {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  color: white;
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
}


/* =========== 
   Header & Nav
   =========== */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(13, 15, 23, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: var(--transition-normal);
  padding: 1rem 0;
}

.site-header.scrolled {
  border-bottom: 1px solid var(--glass-border);
  padding: 0.75rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}


.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
}

.logo-icon {
  color: var(--accent-primary);
  display: flex;
}

.main-nav {
  display: flex;
  gap: 2rem;
}

.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
}

.main-nav a:hover,
.main-nav a:focus,
.main-nav a.active {
  color: white;
}

.main-nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: var(--gradient-brand);
  transition: var(--transition-normal);
  border-radius: 2px;
}

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

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  transition: 0.3s;
}


/* =========== 
   Hero Section 
   =========== */
.hero {
  min-height: 100vh;
  padding-top: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}


.eyebrow {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(66, 133, 244, 0.1);
  border: 1px solid rgba(66, 133, 244, 0.3);
  color: var(--accent-primary);
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero h1 {
  font-size: 4.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(180deg, #FFFFFF 0%, #A5B4FC 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}

.hero .subhead {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 90%;
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

.trust-strip {
  text-align: center;
  padding: 1.5rem 2rem;
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

/* Proxy Visual Animation */
.hero-graphic {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.proxy-visual {
  width: 100%;
  height: 100%;
  position: relative;
}

.visual-card {
  position: absolute;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  padding: 1.5rem;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-weight: 600;
  box-shadow: var(--glass-shadow);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
}

.client-card {
  top: 20%;
  left: 0;
  animation: float 6s ease-in-out infinite;
}

.db-card {
  bottom: 20%;
  right: 0;
  animation: float 6s ease-in-out infinite reverse;
}

.proxy-card {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid var(--accent-primary);
  box-shadow: 0 0 30px rgba(66, 133, 244, 0.3);
  font-size: 1.25rem;
  color: white;
}

.glass-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  z-index: 0;
  opacity: 0.6;
}

.orb-1 {
  width: 150px;
  height: 150px;
  background: var(--accent-primary);
  top: 40%;
  left: 40%;
  animation: pulse 8s infinite;
}

.orb-2 {
  width: 120px;
  height: 120px;
  background: var(--accent-secondary);
  bottom: 30%;
  right: 30%;
  animation: pulse 6s infinite reverse;
}

.connection-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-dasharray: 5, 5;
  fill: none;
}


/* =========== 
   Problem Section 
   =========== */

.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2.5rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-3px);
  border-color: rgba(66, 133, 244, 0.3);
}

.glass-card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-danger);
}

.problem-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.problem-card p {
  color: var(--text-secondary);
}


/* =========== 
   How It Works 
   =========== */

.how-it-works h2 {
  font-size: 3rem;
  margin-bottom: 3rem;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
}

.steps-list::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 20px;
  height: calc(100% - 80px);
  width: 2px;
  background: rgba(255, 255, 255, 0.1);
}

.step-item {
  display: flex;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-color);
  border: 2px solid var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-primary);
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(66, 133, 244, 0.3);
}

.step-text h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.step-text p {
  color: var(--text-secondary);
}

.glow-box {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  position: relative;
}

.glow-box::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: var(--gradient-brand);
  z-index: -1;
  border-radius: 14px;
  opacity: 0.3;
  filter: blur(8px);
}

.code-window {
  border-radius: 12px;
  overflow: hidden;
}

.window-header {
  background: rgba(0, 0, 0, 0.3);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--glass-border);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot.red {
  background: var(--color-danger);
}

.dot.yellow {
  background: var(--color-warning);
}

.dot.green {
  background: var(--color-success);
}

.window-title {
  margin-left: 1rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.window-body {
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
}

.log-line {
  margin-bottom: 0.5rem;
  color: #cbd5e1;
}

.timestamp {
  color: var(--text-muted);
  margin-right: 0.5rem;
}

.tag {
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: bold;
}

.tag.alert {
  background: rgba(234, 67, 53, 0.2);
  color: #fca5a5;
  /* Keep lighter red for text contrast */
}

.tag.success {
  background: rgba(52, 168, 83, 0.2);
  color: #86efac;
  /* Keep lighter green for text contrast */
}

.highlight {
  color: var(--color-warning);
}

.dim {
  color: var(--text-secondary);
}

.sql-text {
  color: #93c5fd;
  padding-left: 4.5rem;
}

.blink {
  animation: blinker 1s linear infinite;
}

@keyframes blinker {
  50% {
    opacity: 0;
  }
}


/* =========== 
   Capabilities 
   =========== */

.feature-card {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-3px);
  border-color: rgba(66, 133, 244, 0.3);
}

.feature-icon {
  width: 40px;
  height: 40px;
  color: var(--accent-primary);
  margin-bottom: 1.25rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}


/* =========== 
   Use Cases 
   =========== */

.usecase-card {
  background: var(--bg-solid);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.usecase-indicator {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

.usecase-indicator.primary {
  background: var(--accent-primary);
}

.usecase-indicator.secondary {
  background: var(--accent-secondary);
}

.usecase-indicator.tertiary {
  background: var(--accent-teal);
}

.usecase-card h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.usecase-card p {
  color: var(--text-secondary);
}


/* =========== 
   Security Details 
   =========== */
.security-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.security-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.02);
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid rgba(45, 212, 191, 0.1);
}

.security-list li svg {
  flex-shrink: 0;
}

.shield-graphic {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shield-icon {
  color: var(--accent-teal);
  z-index: 2;
  filter: drop-shadow(0 0 20px rgba(45, 212, 191, 0.4));
}

.orbit-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px dashed rgba(45, 212, 191, 0.3);
}

.circle-1 {
  width: 200px;
  height: 200px;
  animation: spin 20s linear infinite;
}

.circle-2 {
  width: 300px;
  height: 300px;
  border-style: solid;
  border-width: 1px;
  border-color: rgba(45, 212, 191, 0.1);
  animation: spin 30s linear infinite reverse;
}

@keyframes spin {
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* =========== 
   FAQ 
   =========== */
.faq-container {
  max-width: 800px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item[open] {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.faq-item summary {
  padding: 1.5rem;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  /* Hide default arrow */
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--accent-primary);
  transition: 0.3s;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-content {
  padding: 0 1.5rem 1.5rem 1.5rem;
  color: var(--text-secondary);
}


/* =========== 
   CTA Banner 
   =========== */
.cta-banner {
  padding: 4rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.cta-banner h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.cta-banner p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2rem auto;
}


/* =========== 
   Footer 
   =========== */
.site-footer {
  border-top: 1px solid var(--glass-border);
  padding: 4rem 0 2rem 0;
  background: var(--bg-solid);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4rem;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand {
  max-width: 300px;
}

.footer-brand p {
  color: var(--text-secondary);
  margin-top: 1rem;
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  gap: 4rem;
}

.footer-col h4 {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.footer-col a {
  display: block;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 0.85rem;
}


/* =========== 
   Animations 
   =========== */
@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-15px);
  }

  100% {
    transform: translateY(0px);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }

  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }

  100% {
    transform: scale(1);
    opacity: 0.6;
  }
}


/* =========== 
   Responsive 
   =========== */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 3.5rem;
  }

  .cards-grid,
  .capabilities-grid,
  .usecase-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .layout-split {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--bg-color);
    flex-direction: column;
    align-items: center;
    padding-top: 2rem;
    transition: 0.3s;
  }

  .main-nav.active {
    left: 0;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .nav-actions {
    display: none;
  }

  .hero-container {
    grid-template-columns: 1fr;
  }

  .hero-graphic {
    height: 300px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .cards-grid,
  .capabilities-grid,
  .usecase-grid {
    grid-template-columns: 1fr;
  }

  .cta-banner {
    padding: 2rem;
  }

  .cta-banner h2 {
    font-size: 2rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }
}