:root {
  color-scheme: dark;
  --bg: #03050a;
  --bg-soft: rgba(16, 24, 40, 0.9);
  --surface: rgba(15, 20, 35, 0.6);
  --surface-strong: rgba(15, 20, 35, 0.85);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.2);
  --text: #ffffff;
  --text-muted: rgba(237, 242, 255, 0.72);
  --accent: #7c5cff;
  --accent-2: #00d3ff;
  --accent-soft: rgba(124, 92, 255, 0.14);
  --success: #25d26f;
  --warning: #f9ab00;
  --radius: 28px;
  font-family: "Inter", "Plus Jakarta Sans", system-ui, sans-serif;
}

.light {
  color-scheme: light;
  --bg: #f8fafc;
  --bg-soft: rgba(255, 255, 255, 0.92);
  --surface: rgba(255, 255, 255, 0.7);
  --surface-strong: rgba(245, 248, 255, 0.96);
  --border: rgba(15, 23, 42, 0.08);
  --border-hover: rgba(15, 23, 42, 0.15);
  --text: #0f172a;
  --text-muted: rgba(15, 23, 42, 0.68);
  --accent: #4f46e5;
  --accent-2: #0891b2;
  --accent-soft: rgba(79, 70, 229, 0.14);
  --success: #16a34a;
  --warning: #d97706;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  position: relative;
}

/* Dynamic Animated Background Orbs */
.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  opacity: 0.4;
  animation: orbFloat 20s infinite alternate ease-in-out;
  pointer-events: none;
}
.orb-1 {
  top: -10%; left: -10%;
  width: 50vw; height: 50vw;
  background: radial-gradient(circle, var(--accent), transparent 60%);
  animation-delay: -5s;
}
.orb-2 {
  bottom: 20%; right: -10%;
  width: 60vw; height: 60vw;
  background: radial-gradient(circle, var(--accent-2), transparent 60%);
  animation-duration: 25s;
}

.light .bg-orb {
  opacity: 0.15;
}

@keyframes orbFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(5%, 5%) scale(1.1); }
  100% { transform: translate(-5%, -5%) scale(0.9); }
}

button, a {
  font: inherit;
}

.page-shell {
  max-width: 1400px;
  margin: 0 auto;
  padding: 28px 28px 56px;
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0 28px;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: linear-gradient(180deg, rgba(3,5,10,0.8) 0%, transparent 100%);
  margin-left: -28px;
  margin-right: -28px;
  padding-left: 28px;
  padding-right: 28px;
  transition: all 0.3s ease;
}

.light .topbar {
  background: linear-gradient(180deg, rgba(248,250,252,0.8) 0%, transparent 100%);
}

.topbar.scrolled {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  padding-bottom: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.brand:hover {
  transform: scale(1.02);
}

.brand-label {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  background: linear-gradient(to right, var(--text), var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-tag {
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.nav-links a,
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 2px;
}

.nav-links a:hover {
  color: var(--text);
}
.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  gap: 14px;
  align-items: center;
}

.button {
  border: none;
  border-radius: 999px;
  padding: 14px 24px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.button::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: left 0.6s ease;
}

.button:hover::before {
  left: 100%;
}

.button:active {
  transform: scale(0.95);
}

.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 15px 30px rgba(124, 92, 255, 0.25);
}

.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(124, 92, 255, 0.4), 0 0 20px rgba(0, 211, 255, 0.3);
}

.secondary,
.ghost,
.ghost-btn {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

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

.ghost-btn {
  padding: 12px 20px;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
  min-height: 80vh;
  padding: 60px 0 80px;
}

.hero-copy {
  max-width: 660px;
}

.eyebrow {
  display: inline-flex;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(124, 92, 255, 0.1), rgba(0, 211, 255, 0.1));
  border: 1px solid rgba(124, 92, 255, 0.2);
  color: var(--accent-2);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 24px;
  box-shadow: 0 0 20px rgba(0, 211, 255, 0.1);
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.5rem, 4.5vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 800;
  background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.light .hero h1 {
  background: linear-gradient(135deg, #0f172a 0%, #4338ca 100%);
  -webkit-background-clip: text;
}

.hero p {
  font-size: 1.15rem;
  max-width: 660px;
  color: var(--text-muted);
  line-height: 1.8;
  margin: 28px 0 36px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-trust {
  margin-top: 48px;
  display: grid;
  gap: 18px;
}

.hero-trust span {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}

.logos span {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text);
  opacity: 0.5;
  transition: opacity 0.3s ease;
  filter: grayscale(100%);
}
.logos span:hover {
  opacity: 1;
  filter: grayscale(0%);
}

.hero-panel {
  position: relative;
  display: grid;
  gap: 24px;
  perspective: 1000px;
}

.glass-card {
  position: relative;
  overflow: hidden;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid var(--border);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255,255,255,0.05);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.5s ease;
}

.glass-card:hover {
  transform: translateY(-10px) rotateX(2deg) rotateY(-2deg);
  box-shadow: 0 50px 120px rgba(124, 92, 255, 0.15), inset 0 0 0 1px rgba(255,255,255,0.1);
}

.glass-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%);
  pointer-events: none;
}

.panel-header,
.visual-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
}

.status-pill,
.status-chip,
.stack-chip {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
}

.status-chip {
  color: var(--accent-2);
  background: rgba(0, 211, 255, 0.1);
  border-color: rgba(0, 211, 255, 0.2);
}

.panel-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.panel-number {
  margin: 0;
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(180deg, var(--text) 0%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.panel-row span,
.panel-body span {
  color: var(--text-muted);
  font-weight: 500;
}

.queue-list {
  display: grid;
  gap: 12px;
  margin-top: 32px;
}

.queue-item {
  display: flex;
  justify-content: space-between;
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.queue-item:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(4px);
}

.queue-item.success {
  border-left: 3px solid var(--success);
}
.queue-item.warning {
  border-left: 3px solid var(--warning);
}

.floating-card {
  position: absolute;
  right: -20px;
  bottom: -30px;
  width: min(320px, 100%);
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.15), rgba(0, 211, 255, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

.floating-title {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
}

.floating-detail {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.9rem;
}

.feature-grid,
.story-block,
.api-grid,
.pricing,
.testimonial-section,
.faq {
  padding: 80px 0;
  position: relative;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.feature-card {
  border-radius: 28px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(20px);
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: var(--border-hover);
  box-shadow: 0 30px 60px rgba(124, 92, 255, 0.15);
}

.feature-card h3 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 1.25rem;
  font-weight: 700;
}

.feature-card p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

.story-block {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.story-copy h2,
.section-heading h2 {
  margin: 12px 0 24px;
  font-size: clamp(2.5rem, 3.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.story-copy p {
  max-width: 680px;
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 1.1rem;
}

.story-list {
  display: grid;
  gap: 20px;
  margin-top: 40px;
}

.story-list div {
  padding: 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.story-list div:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateX(8px);
}

.story-list strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.visual-stack {
  display: grid;
  gap: 16px;
}

.stack-chip {
  background: linear-gradient(90deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  padding: 14px 20px;
  font-size: 1rem;
  justify-content: center;
  border-radius: 16px;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.stack-chip:hover {
  transform: scale(1.05);
}

.api-grid .section-heading,
.pricing .section-heading,
.testimonial-section .section-heading,
.faq .section-heading {
  margin-bottom: 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.api-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.api-card {
  padding: 32px;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all 0.4s ease;
}

.api-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 20px 40px rgba(124, 92, 255, 0.1);
}

.api-card span {
  display: inline-flex;
  margin-bottom: 16px;
  font-size: 1.1rem;
  font-weight: 800;
}

.api-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.price-card {
  border-radius: 32px;
  padding: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.price-card:hover {
  transform: translateY(-10px);
  border-color: var(--border-hover);
  box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}

.price-card.recommended {
  background: linear-gradient(180deg, rgba(124, 92, 255, 0.1), rgba(15, 20, 35, 0.8));
  border-color: rgba(124, 92, 255, 0.4);
}
.price-card.recommended::before {
  content: 'Most Popular';
  position: absolute;
  top: 12px; right: 12px;
  background: var(--accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(124, 92, 255, 0.4);
}

.price-card h3 {
  margin: 0;
  font-size: 1.5rem;
}

.price {
  margin: 0;
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
}

.price span {
  display: inline-block;
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-left: 8px;
  font-weight: 500;
}

.price-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 16px;
  color: var(--text-muted);
}
.price-card ul li {
  display: flex;
  align-items: center;
  gap: 12px;
}
.price-card ul li::before {
  content: '✓';
  color: var(--success);
  font-weight: bold;
}

.price-card .button {
  margin-top: auto;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.testimonial-card {
  padding: 32px;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  transition: transform 0.4s ease;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-hover);
}

.testimonial-card p {
  margin: 0 0 24px;
  line-height: 1.8;
  font-size: 1.05rem;
  color: var(--text-muted);
  font-style: italic;
}

.testimonial-card footer {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.faq-item {
  padding: 32px;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.faq-item:hover {
  background: rgba(255,255,255,0.05);
  transform: translateY(-4px);
}

.faq-item h4 {
  margin: 0 0 16px;
  font-size: 1.15rem;
  font-weight: 700;
}

.faq-item p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer {
  margin-top: 64px;
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  gap: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-title {
  margin: 0 0 16px;
  font-size: 1.2rem;
  font-weight: 800;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

/* Animations for Scroll Trigger */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* Responsive Adjustments */
@media (max-width: 1120px) {
  .hero, .story-block { grid-template-columns: 1fr; }
  .feature-grid, .api-cards, .pricing-grid, .testimonial-grid, .faq-grid {
    grid-template-columns: 1fr;
  }
  .floating-card {
    position: static;
    width: 100%;
    margin-top: 32px;
    animation: none;
  }
}

@media (max-width: 720px) {
  .page-shell { padding: 20px 20px 40px; }
  .topbar { flex-direction: column; align-items: flex-start; padding-top: 16px; }
  .nav-links { gap: 16px; }
  .hero h1 { font-size: 3rem; }
  .panel-number { font-size: 2.5rem; }
}

/* Accessibility & Core Web Vitals */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent);
  color: white;
  padding: 8px 16px;
  z-index: 1000;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.feature-grid, .pricing-grid, .faq-grid {
  content-visibility: auto;
  contain-intrinsic-size: 500px;
}

