:root {
  --bg: #0b0d12;
  --bg-elevated: #141820;
  --bg-card: #1a1f2a;
  --text: #eef1f6;
  --text-muted: #9aa3b2;
  --accent: #4c8bf5;
  --accent-hover: #3b7ae0;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --header-h: 64px;
  --radius: 14px;
  --max-w: 1120px;
  --chrome-icon-url: url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2048%2048'%20width='48px'%20height='48px'%3e%3cpath%20fill='%234caf50'%20d='M44,24c0,11.044-8.956,20-20,20S4,35.044,4,24S12.956,4,24,4S44,12.956,44,24z'/%3e%3cpath%20fill='%23ffc107'%20d='M24,4v20l8,4l-8.843,16c0.317,0,0.526,0,0.843,0c11.053,0,20-8.947,20-20S35.053,4,24,4z'/%3e%3cpath%20fill='%234caf50'%20d='M44,24c0,11.044-8.956,20-20,20S4,35.044,4,24S12.956,4,24,4S44,12.956,44,24z'/%3e%3cpath%20fill='%23ffc107'%20d='M24,4v20l8,4l-8.843,16c0.317,0,0.526,0,0.843,0c11.053,0,20-8.947,20-20S35.053,4,24,4z'/%3e%3cpath%20fill='%23f44336'%20d='M41.84,15H24v13l-3-1L7.16,13.26H7.14C10.68,7.69,16.91,4,24,4C31.8,4,38.55,8.48,41.84,15z'/%3e%3cpath%20fill='%23dd2c00'%20d='M7.158,13.264l8.843,14.862L21,27L7.158,13.264z'/%3e%3cpath%20fill='%23558b2f'%20d='M23.157,44l8.934-16.059L28,25L23.157,44z'/%3e%3cpath%20fill='%23f9a825'%20d='M41.865,15H24l-1.579,4.58L41.865,15z'/%3e%3cpath%20fill='%23fff'%20d='M33,24c0,4.969-4.031,9-9,9s-9-4.031-9-9s4.031-9,9-9S33,19.031,33,24z'/%3e%3cpath%20fill='%232196f3'%20d='M31,24c0,3.867-3.133,7-7,7s-7-3.133-7-7s3.133-7,7-7S31,20.133,31,24z'/%3e%3c/svg%3e");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video {
  max-width: 100%;
  display: block;
}

.container {
  width: min(100% - 32px, var(--max-w));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
}

.brand-title {
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: linear-gradient(
    90deg,
    #4c8bf5 0%,
    #a855f7 25%,
    #22d3ee 50%,
    #a855f7 75%,
    #4c8bf5 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
  to {
    background-position: 200% center;
  }
}

.btn-install {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: filter 0.2s, transform 0.15s;
  white-space: nowrap;
}

.btn-install:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-install--lg {
  padding: 14px 24px;
  font-size: 1rem;
}

.btn-install.hidden {
  display: none;
}

.chrome-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: inline-block;
  background: var(--chrome-icon-url) center / contain no-repeat;
}

/* Hero video */
.page-main {
  padding-top: var(--header-h);
}

.hero-video {
  padding: 32px 0 24px;
}

.video-wrap {
  position: relative;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-video-el {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: #000;
}

.video-overlay-cta {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.video-overlay-cta.visible {
  opacity: 1;
  pointer-events: auto;
}

.hero-intro {
  padding: 28px 0 8px;
  text-align: center;
}

.hero-poster {
  margin-top: 24px;
  width: 100%;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-poster img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

.hero-intro h1 {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.hero-intro .lead {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 24px;
}

/* Sections */
.section {
  padding: 56px 0;
}

.section-alt {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 36px;
}

.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.4rem, 4vw, 2rem);
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
}

/* Feature carousel */
.carousel {
  position: relative;
}

.carousel-track-wrap {
  overflow: hidden;
  border-radius: var(--radius);
}

.carousel-track {
  display: flex;
  transition: transform 0.45s ease;
}

.carousel-slide {
  min-width: 100%;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.carousel-slide h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}

.carousel-slide p {
  margin: 0;
  color: var(--text-muted);
}

.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  padding: 0;
}

.carousel-dot.active {
  background: var(--accent);
}

.carousel-arrows {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}

.carousel-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
}

/* Cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.card {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Accordion */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  overflow: hidden;
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  background: none;
  border: none;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.accordion-trigger span.icon {
  transition: transform 0.25s;
  color: var(--text-muted);
}

.accordion-item.open .accordion-trigger span.icon {
  transform: rotate(180deg);
}

.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.accordion-item.open .accordion-panel {
  grid-template-rows: 1fr;
}

.accordion-panel-inner {
  overflow: hidden;
}

.accordion-panel-inner p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.step {
  text-align: center;
  padding: 20px;
}

.step-num {
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent);
  font-weight: 700;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Use-case tabs */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
}

.tab-btn {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
}

.tab-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.tab-panel {
  display: none;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
}

.tab-panel.active {
  display: block;
}

.tab-panel h3 {
  margin: 0 0 10px;
  color: var(--text);
}

.tab-panel p {
  margin: 0;
}

/* SEO text block */
.seo-block {
  columns: 1;
  gap: 32px;
}

.seo-block p {
  color: var(--text-muted);
  margin: 0 0 16px;
}

@media (min-width: 768px) {
  .seo-block {
    columns: 2;
  }
}

/* Footer */
.site-footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.site-footer p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 16px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Mobile header */
@media (max-width: 640px) {
  .btn-install--header span.label {
    display: none;
  }

  .btn-install--header {
    padding: 10px 12px;
  }

  .brand-title {
    max-width: 160px;
  }
}
