/* ====== Design tokens (keep these few + obvious) ====== */
:root{
  --bg: #0b0c10;
  --panel: #10121a;
  --panel-2: #0e1017;
  --text: #e7e9ee;
  --muted: #a8afc0;
  --border: rgba(255,255,255,.10);

  --shadow: 0 14px 40px rgba(0,0,0,.35);
  --radius: 16px;

  --container: 1120px;

  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 72px;

  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin: 0;
  font-family: var(--font);
  background: radial-gradient(1200px 800px at 20% -10%, rgba(108,92,231,.18), transparent 60%),
              radial-gradient(900px 600px at 85% 10%, rgba(0,207,255,.14), transparent 60%),
              var(--bg);
  color: var(--text);
}

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

.container{
  width: min(100% - 2*var(--space-4), var(--container));
  margin-inline: auto;
}

/* Accessibility */
.skip-link{
  position: absolute;
  left: var(--space-4);
  top: var(--space-4);
  padding: 10px 12px;
  background: #fff;
  color: #000;
  border-radius: 10px;
  transform: translateY(-200%);
}
.skip-link:focus{ transform: translateY(0); }

/* ====== Header ====== */
.site-header{
  position: fixed;
  top: 0;
  z-index: 50;
  width: 100%;
  background: rgba(11,12,16,.55);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled{
  border-bottom-color: var(--border);
  background: rgba(11,12,16,.75);
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) 0;
}

.brand{
  display: flex;
  align-items: center;
  gap: 10px;
}


.brand-mark{
  width: 28px;
  height: auto;
  display: grid;
  border-radius: 10px;
}
.brand-text{ font-size: 16px; }

/* Nav */
.nav{
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.nav-link{
  color: var(--muted);
  font-size: 14px;
  padding: 8px 6px;
  border-radius: 10px;
}
.nav-link:hover{ color: var(--text); text-decoration: none; }
.nav-link.is-active{
  color: var(--text);
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
}

/* Header actions */
.header-actions{
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.icon-btn{
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
}
.icon-btn:hover{ background: rgba(255,255,255,.07); }

.icon-bars{
  display: inline-block;
  width: 18px;
  height: 12px;
  background:
    linear-gradient(var(--text),var(--text)) 0 0/100% 2px,
    linear-gradient(var(--text),var(--text)) 0 50%/100% 2px,
    linear-gradient(var(--text),var(--text)) 0 100%/100% 2px;
  background-repeat: no-repeat;
}

/* Mobile drawer */
.mobile-drawer{
  border-top: 1px solid var(--border);
  background: rgba(11,12,16,.92);
    
}
.nav-mobile{
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: var(--space-3) var(--space-4);
}
.nav-mobile .nav-link{
  padding: 12px 10px;
}

/* Desktop vs mobile */
.nav-desktop{ display: none; }
.nav-toggle{ display: inline-flex; }

@media (min-width: 860px){
  .nav-desktop{ display: flex; }
  .nav-toggle{ display: none; }
  .mobile-drawer{ display: none; }
}

/* ====== Buttons ====== */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
}

.btn-primary{
  border-color: transparent;
  background: linear-gradient(135deg, rgba(108,92,231,.95), rgba(0,207,255,.85));
  color: #081018;
}
.btn-secondary{
  background: rgba(255,255,255,.06);
  color: var(--text);
}
.btn-ghost{
  background: transparent;
  color: var(--text);
}
.btn:hover{ filter: brightness(1.05); }

/* ====== Page sections ====== */
.hero{
  padding: var(--space-7) 0 var(--space-6);
}
.hero-inner{
  max-width: 820px;
}
.eyebrow{
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 12px;
  margin: 0 0 var(--space-2);
}
.hero-title{
  margin: 0 0 var(--space-2);
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.05;
}
.hero-subtitle{
  margin: 0 0 var(--space-4);
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}
.hero-cta{
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.section{
  padding: var(--space-6) 0;
}
.section-muted{
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.03));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header{
  margin-bottom: var(--space-4);
  max-width: 720px;
}
.section-header h2{
  margin: 0 0 10px;
  font-size: 26px;
}
.section-header p{
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}


/* ===== Flagship product section ===== */

.flagship {
  padding: var(--space-7) 0;
}

.flagship-media {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin-inline: auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
}

.flagship-media img {
  display: block;
  width: 100%;
  height: auto;
}

/* Overlay */
.flagship-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  background:
    linear-gradient(
      to bottom,
      rgba(0,0,0,.55),
      rgba(0,0,0,.25)
    );
}

.flagship-overlay h1 {
  margin: 0;
  max-width: 900px;
  text-align: center;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  font-weight: 800;
  color: #ffffff;
  text-shadow:
    0 10px 30px rgba(0,0,0,.6);
}

/* Mobile tuning */
@media (max-width: 720px) {
  .flagship {
    padding: var(--space-6) var(--space-3);
  }

  .flagship-overlay {
    padding: var(--space-4);
  }
}







/* ===== Flagship carousel ===== */
.flagship-viewport{
  position: relative;
  width: 100%;
  overflow: hidden;
}

.flagship-track{
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}
.flagship-track::-webkit-scrollbar{ display:none; }

.flagship-track > img{
  flex: 0 0 100%;
  width: 100%;
  height: auto;
  scroll-snap-align: start;
}

.flagship-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;

  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(0,0,0,.35);
  color: #fff;
  font-size: 40px;
  line-height: 0;
  cursor: pointer;

  display: grid;
  place-items: center;

  backdrop-filter: blur(10px);
}

.flagship-nav.prev{ left: 18px; }
.flagship-nav.next{ right: 18px; }

.flagship-nav:hover{ background: rgba(0,0,0,.5); }

.flagship-nav[disabled]{
  opacity: 0;
  pointer-events: none;
}

/* Cards */
.card-grid{
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
@media (min-width: 720px){
  .card-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.card{
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  border-radius: var(--radius);
  padding: var(--space-4);
  box-shadow: var(--shadow);
}
.card h3{
  margin: 0 0 8px;
  font-size: 16px;
}
.card p{
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.checklist{
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.9;
}

/* Footer */
.site-footer{
  padding: var(--space-5) 0;
}
.footer-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  border-top: 1px solid var(--border);
  padding-top: var(--space-4);
}
.footer-links{
  display: inline-flex;
  gap: var(--space-3);
}
.muted{ color: var(--muted); }

.no-scroll { overflow: hidden; }

/* ===== Docs layout ===== */

.docs {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 80px);
}

.docs-sidebar {
  border-right: 1px solid var(--border);
  padding: var(--space-4);
  background: rgba(255,255,255,.02);
}

.docs-title {
  margin: 0 0 var(--space-3);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
}

.docs-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.docs-nav li {
  margin-bottom: 6px;
}

.docs-nav a {
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--muted);
  text-decoration: none;
}

.docs-nav a:hover {
  color: var(--text);
  background: rgba(255,255,255,.05);
}

.docs-nav a.is-active {
  color: var(--text);
  background: rgba(255,255,255,.08);
  border: 1px solid var(--border);
}

.docs-content {
  padding: var(--space-6);
  max-width: 860px;
}

.docs-content h1 {
  margin-top: 0;
}

.docs-content p,
.docs-content li {
  color: var(--muted);
  line-height: 1.7;
}

/* Mobile */
@media (max-width: 860px) {
  .docs {
    grid-template-columns: 1fr;
  }

  .docs-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
}


/* ===== Mega menu ===== */



/* Make sure mega panels position correctly */
.mega-nav {
  position: relative;
}

.nav-item {
  position: relative;
}

/* Hidden by default */
.mega {
  position: absolute;
  z-index: 10000;
  left: 50%;
  transform: translateX(-50%);
  top: calc(100% + 12px);
  width: min(100vw - 48px, 980px);
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(11,12,16,.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 30px 80px rgba(0,0,0,.55);
  display: none;
  padding: var(--space-4);
}

/* Show on hover/focus (keyboard-friendly) */
.nav-item:hover .mega,
.nav-item:focus-within .mega {
  display: block;
}

.mega-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-4);
}

.mega-left {
  border-right: 1px solid var(--border);
  padding-right: var(--space-4);
}

.mega-label {
  margin: 0 0 var(--space-2);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.mega-link {
  display: block;
  padding: 10px 10px;
  border-radius: 12px;
  color: var(--muted);
  text-decoration: none;
}

.mega-link:hover {
  color: var(--text);
  background: rgba(255,255,255,.06);
}

.mega-right {
  padding-left: var(--space-2);
}

.mega-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
}

.mega-desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

/* Mobile: disable hover mega menus and keep your existing mobile drawer */
@media (max-width: 860px) {
  .mega { display: none !important; }
}

#p1 {
  padding-top: 1.0rem;
}

.download-list a {
  color: #4da3ff;
  text-decoration: none;
}

.download-list a:hover {
  text-decoration: underline;
}

.doc-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

