:root {
  color-scheme: dark;
  --demo-iframe-height: clamp(800px, 113vh, 1280px);
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #020617;
  color: #e2e8f0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 12px 20px;
  background: #38bdf8;
  color: #0f172a;
  border-radius: 999px;
  z-index: 9999;
}

nav {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(18px);
  background: rgba(2, 6, 23, 0.88);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

nav.scrolled {
  background: rgba(4, 11, 30, 0.94);
  box-shadow: 0 18px 36px rgba(2, 6, 23, 0.45);
  border-bottom-color: rgba(148, 163, 184, 0.28);
  backdrop-filter: blur(22px);
}

nav .nav-links a {
  color: #cbd5f5;
}

.hero {
  padding: clamp(120px, 16vw, 170px) 0 clamp(90px, 12vw, 140px);
  background:
    radial-gradient(circle at 20% 20%, rgba(79, 70, 229, 0.25), transparent 45%),
    radial-gradient(circle at 80% 0%, rgba(56, 189, 248, 0.25), transparent 50%),
    linear-gradient(180deg, #020617 0%, #0f172a 100%);
  position: relative;
  overflow: hidden;
}

.hero .container {
  max-width: 1200px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, transparent 24%, rgba(255, 255, 255, 0.04) 25%, rgba(255, 255, 255, 0.04) 26%, transparent 27%, transparent 74%, rgba(255, 255, 255, 0.04) 75%, rgba(255, 255, 255, 0.04) 76%, transparent 77%, transparent),
    linear-gradient(90deg, transparent 24%, rgba(255, 255, 255, 0.04) 25%, rgba(255, 255, 255, 0.04) 26%, transparent 27%, transparent 74%, rgba(255, 255, 255, 0.04) 75%, rgba(255, 255, 255, 0.04) 76%, transparent 77%, transparent);
  background-size: 60px 60px;
  opacity: 0.35;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 80%, rgba(56, 189, 248, 0.15), transparent 55%);
  opacity: 0.6;
  pointer-events: none;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 5vw, 52px);
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-main {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 3vw, 28px);
  max-width: 1200px;
  width: 100%;
  align-items: flex-start;
  margin: 0 auto;
}

.hero-main .hero-badge {
  margin-bottom: 0;
}

.hero-badge {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  background: rgba(56, 189, 248, 0.18);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.92rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #38bdf8;
  margin-bottom: 18px;
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.35);
}

.hero-title {
  font-size: clamp(2.9rem, 4.8vw, 4rem);
  line-height: 1.05;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #f8fafc 0%, #38bdf8 40%, #818cf8 80%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 14s ease-in-out infinite;
}

.hero-lede {
  font-size: clamp(1.18rem, 2vw, 1.32rem);
  color: #f8fafc;
}

.hero-supporting {
  color: #cbd5f5;
  max-width: 640px;
}

.hero-copy {
  font-size: 1.15rem;
  line-height: 1.75;
  color: #cbd5f5;
  max-width: 680px;
}

.hero-copy strong {
  color: #f8fafc;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 36px;
}

.hero-cta .btn {
  padding: 15px 30px;
  border-radius: 999px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  gap: 10px;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn.primary {
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  color: #0f172a;
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.38);
}

.btn.primary::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn.primary:hover::before {
  width: 260px;
  height: 260px;
}

.btn.secondary {
  border: 2px solid rgba(148, 163, 184, 0.35);
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(12px);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.28);
}

.logo-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #f8fafc;
}

.iframe-container {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

.embed-iframe {
  max-width: 100%;
  width: 100%;
  height: var(--demo-iframe-height);
  border-radius: 26px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  box-shadow: 0 36px 96px rgba(14, 165, 233, 0.45);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(20px, 4vw, 28px);
  margin-top: clamp(52px, 9vw, 90px);
  padding: clamp(28px, 6vw, 44px) clamp(24px, 6vw, 38px);
  background: rgba(15, 23, 42, 0.65);
  border-radius: 32px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(18px);
}

.stat-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 26px 24px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.78), rgba(56, 189, 248, 0.08));
  border: 1px solid rgba(56, 189, 248, 0.25);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: -100%;
  left: -100%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.16), transparent 60%);
  transition: transform 0.6s ease;
}

.stat-card:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: 0 18px 60px rgba(56, 189, 248, 0.25);
}

.stat-card:hover::before {
  transform: translate(25%, 25%);
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  line-height: 1;
  margin-bottom: 10px;
}

.stat-label {
  color: #94a3b8;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-card p {
  margin-top: 12px;
  color: #cbd5f5;
  font-size: 0.95rem;
  line-height: 1.6;
}

.hero-video {
  width: 100%;
  align-self: stretch;
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  box-shadow:
    0 26px 70px rgba(14, 165, 233, 0.32),
    0 0 0 1px rgba(148, 163, 184, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  min-height: var(--demo-iframe-height);
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.82), rgba(15, 23, 42, 0.92));
}

.hero-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.16), transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.hero-video:hover::after {
  opacity: 1;
}

.responsive-embed {
  position: relative;
  width: 100%;
  height: var(--demo-iframe-height);
}

.responsive-embed iframe {
  position: relative;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

section {
  padding: 96px 0;
}

.section-title {
  font-size: clamp(2.2rem, 3.4vw, 2.8rem);
  margin-bottom: 18px;
  background: linear-gradient(135deg, #f8fafc, #94a3b8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  font-size: 1.05rem;
  color: #94a3b8;
  max-width: 780px;
}

.section-note {
  margin-top: 36px;
  color: #9ba7c7;
  font-size: 1.02rem;
  max-width: 820px;
}

.features-grid,
.use-cases-grid,
.benchmarks-grid,
.cta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-top: 44px;
}

.card {
  position: relative;
  background: rgba(17, 24, 39, 0.75);
  backdrop-filter: blur(22px);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 24px;
  padding: 32px;
  height: 100%;
  box-shadow:
    0 18px 48px rgba(15, 23, 42, 0.4),
    0 0 0 1px rgba(56, 189, 248, 0.06);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #38bdf8, #818cf8, #c084fc);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.card:hover {
  transform: translateY(-8px);
  border-color: rgba(56, 189, 248, 0.38);
  box-shadow:
    0 26px 68px rgba(15, 23, 42, 0.5),
    0 0 0 1px rgba(56, 189, 248, 0.18);
}

.card:hover::before {
  transform: scaleX(1);
}

.card h3 {
  color: #f1f5f9;
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.card p {
  color: #cbd5f5;
  line-height: 1.7;
  font-size: 1rem;
}

#showcase .container {
  max-width: 1320px;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 36px;
  margin-top: 52px;
}

.showcase-item {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.88);
  box-shadow: 0 26px 70px rgba(14, 116, 233, 0.32);
  aspect-ratio: 16 / 10;
}

.showcase-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.showcase-item:hover img {
  transform: scale(1.1);
}

@media (max-width: 1024px) {
  .showcase-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
  }

  .showcase-item {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 768px) {
  .showcase-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
  }

  .showcase-item {
    aspect-ratio: 3 / 2;
  }
}

.showcase-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 20px 22px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.92) 90%);
  color: #f8fafc;
  font-size: 0.98rem;
  line-height: 1.5;
}

.longform {
  display: grid;
  gap: 28px;
}

.longform-card {
  background: rgba(13, 23, 43, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 26px;
  padding: 36px;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.48);
  position: relative;
  overflow: hidden;
}

.longform-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 15%, rgba(56, 189, 248, 0.14), transparent 50%);
  opacity: 0.8;
  pointer-events: none;
}

.longform-card h3 {
  font-size: 1.45rem;
  margin-bottom: 18px;
  color: #f8fafc;
  position: relative;
  z-index: 1;
}

.longform-card p,
.longform-card li {
  color: #d0dcff;
  line-height: 1.75;
  font-size: 1rem;
  position: relative;
  z-index: 1;
}

.longform-card ul {
  margin: 12px 0 0 20px;
  list-style: disc;
}

.iframe-section iframe {
  width: 1440px;
  max-width: 100%;
  min-height: 860px;
  border-radius: 26px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  box-shadow: 0 34px 90px rgba(14, 165, 233, 0.42);
}

.faq-item {
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  padding: 28px 0;
}

.faq-item h3 {
  font-size: 1.25rem;
  color: #f8fafc;
  margin-bottom: 14px;
}

.faq-item p {
  color: #cbd5f5;
  line-height: 1.7;
  font-size: 1.02rem;
}

footer {
  padding: 52px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  text-align: center;
  color: #94a3b8;
  background: rgba(2, 6, 23, 0.92);
  backdrop-filter: blur(12px);
}

@keyframes shimmer {
  0%, 100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .hero {
    padding: 120px 0 90px;
  }

  .hero-stats {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    padding: 32px 28px;
    border-radius: 28px;
  }
}

@media (max-width: 768px) {
  .hero-inner {
    gap: 32px;
  }

  .hero-video {
    min-height: 340px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px;
    border-radius: 24px;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }

  section {
    padding: 72px 0;
  }
}

@media (max-width: 640px) {
  nav .nav-links {
    flex-wrap: wrap;
    gap: 12px;
  }

  .iframe-section iframe {
    min-height: 580px;
  }
}
