/* ====== 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 ===== */


#flagshipCaption {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  letter-spacing: -0.02em;
}

.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);
  max-height: min(75vh, 720px);
  overflow-y: auto;
}

/* 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;
}


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

a.download-list: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);
}

/*Highlights*/
.highlight-block {
  padding: 100px clamp(40px, 8vw, 120px);
}

.highlight-content {
  max-width: 1400px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: center;
}

.highlight-text {
  color: #ffffff;
}

.highlight-label {
  font-size: 12px;
  letter-spacing: 2px;
  color: #6aa9ff;
  margin-bottom: 12px;
  opacity: 0.8;
}

.highlight-text h2 {
  font-size: 42px;
  font-weight: 600;
  margin-bottom: 16px;
}

.highlight-text p {
  font-size: 18px;
  color: #b0c4de;
  max-width: 400px;
}

.highlight-visual {
  display: flex;
  justify-content: center;
}

.highlight-video {
  width: 100%;
  max-width: 700px;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  opacity: 0.9;
  
}

/* same hover effect */
.highlight-video:hover {
  transform: scale(1.02);
  box-shadow: 0 30px 80px rgba(0,0,0,0.8);
}

.highlight-video-wrapper {
  position: relative;
  display: inline-block;
}

/* CLEAN play icon */
.play-indicator {
  position: absolute;
  inset: 0; /* 🔥 perfect centering trick */
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

/* actual icon */
.play-indicator::before {
  content: "";
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  display: block;
  position: relative;
}

/* triangle */
.play-indicator::after {
  content: "";
  position: absolute;
  border-left: 14px solid white;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  transform: translateX(3px);
}

/* fade out when hovering */
.highlight-video-wrapper:hover .play-indicator {
  opacity: 0;
}



/* cinematic fade-in */
.highlight-block {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 0.8s ease forwards;
}

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

/* responsive */
@media (max-width: 900px) {
  .highlight-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .highlight-text p {
    margin: 0 auto;
  }
}

.youtube-demo-wrapper {
  position: relative;
  width: 100%;
  max-width: 850px; /* adjust until it visually matches */
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 12px;
}

.youtube-demo-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}




/*End Highlights*/

/*Home Page Hero Section*/
/* =========================
   Joshware Hero + Visual Flow
   ========================= */

.hero-joshware {
  padding: 4.5rem 0 3rem;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

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

.hero-eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.8;
}

.hero-title {
  margin: 0 0 1rem;
  font-size: clamp(2.2rem, 5vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.hero-subtitle {
  margin: 0 auto;
  max-width: 760px;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.65;
  opacity: 0.9;
}

.hero-actions {
  margin-top: 1.6rem;
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.hero-meta {
  margin-top: 1.1rem;
  font-size: 0.95rem;
  opacity: 0.72;
}

/* section headings */
.section-heading {
  max-width: 760px;
  margin: 0 auto 2rem;
  text-align: center;
}

.section-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.75;
}

.section-title {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1.15;
}

.section-subtitle {
  margin: 0.85rem auto 0;
  font-size: 1rem;
  line-height: 1.7;
  opacity: 0.78;
}

/* flow sections */
.section-flow {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.section-flow-alt {
  background: rgba(255, 255, 255, 0.025);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* grid */
.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.flow-card {
  position: relative;
  padding: 1.35rem 1.25rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(4px);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.flow-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.045);
  transform: translateY(-4px);
}

.flow-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.15rem;
  height: 2.15rem;
  margin-bottom: 0.9rem;
  padding: 0 0.55rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.88;
}

.flow-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.1rem;
  line-height: 1.25;
}

.flow-card p {
  margin: 0;
  line-height: 1.65;
  opacity: 0.88;
}

.flow-card .btn {
  display: inline-block;
  margin-right: 12px;
  margin-top: 12px;
}


/* CTA */
.section-cta {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.cta-box {
  text-align: center;
  padding: 2rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
}

.cta-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  line-height: 1.1;
}

.cta-subtitle {
  margin: 0 auto;
  max-width: 640px;
  line-height: 1.7;
  opacity: 0.82;
}

/* buttons polish if not already defined strongly */
.hero .btn,
.section-cta .btn {
  min-width: 170px;
}

/* responsive */
@media (max-width: 980px) {
  .flow-grid {
    grid-template-columns: 1fr;
  }

  .hero-joshware {
    padding-top: 3.5rem;
  }

  .hero-title {
    max-width: 12ch;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 640px) {
  .hero-joshware {
    padding: 3rem 0 2rem;
  }

  .hero-subtitle,
  .section-subtitle,
  .cta-subtitle {
    font-size: 0.98rem;
  }

  .flow-card {
    padding: 1.1rem 1rem;
  }

  .cta-box {
    padding: 1.5rem 1rem;
  }
}

/*End Home Page Hero Section*/

#p1, #p2, #p3, #p4, #p5, #p6, #p7, #p8, #p9, #p10, #p11, #p12  {
  scroll-margin-top: 110px;
}


.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.feature-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 24px;
}

.feature-card h3 {
  margin-bottom: 12px;
  font-size: 18px;
}

.feature-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-card li {
  margin-bottom: 8px;
  opacity: 0.85;
}

@media (max-width: 768px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}