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

:root {
  --bg-dark: #050508;
  --bg-card: #0d0f17;
  --bg-card-hover: #151824;
  --primary: #00e5ff;
  --primary-glow: rgba(0, 229, 255, 0.4);
  --secondary: #4a00e0;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-color: rgba(255, 255, 255, 0.08);
  --success: #10b981;
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Typography utilities */
.text-gradient {
  background: linear-gradient(135deg, #fff 0%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-primary-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, #0077ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  /* Fix text-shadow bleeding through transparent text */
  text-shadow: none;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.8)) drop-shadow(0 0 20px rgba(0, 229, 255, 0.3));
}

.kicker {
  display: inline-block;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 2px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1.5rem;
  padding: 0.5rem 1rem;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 50px;
}

/* Button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, #0077ff 100%);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(0, 119, 255, 0.4);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: all 0.5s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 25px rgba(0, 119, 255, 0.6);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-note {
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* Sections */
section {
  padding: 8rem 0;
  position: relative;
}

.section-title {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 4rem auto;
  font-size: 1.125rem;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 100;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(5, 5, 8, 0.9);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  height: 45px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.1));
}

.navbar-btn {
  background: rgba(0, 229, 255, 0.05);
  color: var(--primary);
  border: 1px solid rgba(0, 229, 255, 0.3);
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.navbar-btn:hover {
  background: var(--primary);
  color: var(--bg-dark);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 80px;
  text-align: center;
  position: relative;
  background: radial-gradient(circle at 50% 50%, rgba(5, 5, 8, 0.6) 0%, rgba(5, 5, 8, 0.95) 100%), url('../images/bg.png') no-repeat center center/cover;
  overflow: hidden;
}

#quantum-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.7;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 4.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.1;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.hero h2 {
  font-size: 1.25rem;
  font-weight: 400;
  color: #e2e8f0;
  max-width: 700px;
  margin: 0 auto 3rem auto;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* Problem vs Solution */
.vs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.problem-text {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  border-left: 4px solid #ff3b3b;
  padding-left: 1.5rem;
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease;
}

.check-item:hover {
  transform: translateX(10px);
  border-color: var(--primary);
}

.check-icon {
  color: var(--primary);
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* Business Model */
.model-section {
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.model-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.model-text {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.model-result {
  background: rgba(0, 229, 255, 0.05);
  border: 1px solid rgba(0, 229, 255, 0.2);
  padding: 2rem;
  border-radius: 16px;
  font-size: 1.25rem;
  font-weight: 500;
  color: #fff;
}

/* Audit & Security */
.audit-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: center;
}

.metrics {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 3rem;
}

.metric-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.metric-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  flex-shrink: 0;
}

/* Custom Stats Widget */
.stats-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}

.widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.widget-header h3 {
  font-size: 1.25rem;
  color: #fff;
}

.badge-audit {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.bar-chart {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  height: 200px;
  padding-bottom: 1rem;
  border-bottom: 1px dashed rgba(255,255,255,0.1);
  margin-bottom: 1.5rem;
}

.bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 15%;
}

.bar-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
}

.bar-track {
  width: 100%;
  height: 120px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px 6px 0 0;
  position: relative;
  display: flex;
  align-items: flex-end;
}

.bar-fill {
  width: 100%;
  background: linear-gradient(180deg, var(--success) 0%, rgba(16, 185, 129, 0.5) 100%);
  border-radius: 6px 6px 0 0;
  height: 0;
  transition: height 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.active .bar-fill {
  height: var(--target-height);
}

.bar-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

.widget-footer {
  display: flex;
  justify-content: space-around;
  background: rgba(0,0,0,0.2);
  padding: 1rem;
  border-radius: 12px;
}

.footer-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 2.5rem 2rem;
  border-radius: 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 229, 255, 0.3);
  box-shadow: 0 10px 30px rgba(0, 229, 255, 0.05);
}

.feature-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #fff;
}

.feature-text {
  color: var(--text-muted);
}

/* How to start */
.steps-container {
  max-width: 800px;
  margin: 0 auto 4rem auto;
  position: relative;
}

.steps-container::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-color);
  z-index: 0;
}

.step-item {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 50px;
  height: 50px;
  background: var(--bg-dark);
  border: 2px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary);
  flex-shrink: 0;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
}

.step-content {
  padding-top: 0.5rem;
}

.step-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

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

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

/* Footer */
footer {
  background: var(--bg-card);
  padding: 4rem 0;
  border-top: 1px solid var(--border-color);
}

.footer-quote {
  text-align: center;
  font-style: italic;
  font-size: 1.25rem;
  color: var(--text-main);
  margin-bottom: 3rem;
  font-family: 'Outfit', sans-serif;
}

.risk-warning {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: justify;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  background: rgba(0,0,0,0.2);
}

/* Responsive */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 3.5rem;
  }
  section {
    padding: 6rem 0;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }

  .hero {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: 60px;
  }

  .hero h1 {
    font-size: 2.75rem;
  }
  
  .hero h2 {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
  }
  
  .section-title {
    font-size: 2.25rem;
  }
  
  .vs-grid, .audit-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .steps-container::before {
    left: 20px;
  }
  
  .step-number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .step-item {
    gap: 1.25rem;
  }

  .btn-primary {
    width: 100%;
    padding: 1rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.25rem;
  }
  
  section {
    padding: 4rem 0;
  }

  .section-title {
    font-size: 1.85rem;
    line-height: 1.2;
  }

  .kicker {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
  }

  .feature-card, .check-item {
    padding: 1.5rem;
  }

  .widget-placeholder {
    height: 300px;
  }
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  width: 90%;
  max-width: 800px;
  max-height: 85vh;
  border-radius: 16px;
  position: relative;
  transform: translateY(20px);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  font-size: 1.5rem;
  margin: 0;
  color: #fff;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: #ef4444;
}

.modal-body {
  padding: 2rem;
  overflow-y: auto;
  color: var(--text-muted);
  line-height: 1.6;
}

.modal-body h3 {
  color: #fff;
  margin: 1.5rem 0 0.5rem 0;
  font-size: 1.125rem;
}

.modal-body p {
  margin-bottom: 1rem;
}

.modal-body strong {
  color: #e2e8f0;
}
