:root{
  --bg:#05090b;
  --ink:#e9eef2;
  --muted:#aeb7bf;
  --panel:#0b1216;
  --panel2:#0e171c;
  --line:rgba(255,255,255,.10);
  --shadow: 0 10px 30px rgba(0,0,0,.35);

  --accent:#34d3d8;
  --accent2:#0ea5ad;

  --wrap: 1120px;
  --topbar-h: 76px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Helvetica Neue", Helvetica, sans-serif;
  background: var(--bg);
  color: var(--ink);
}

a{color:inherit}
img{max-width:100%; display:block}

/* Layout */
.wrap{
  width:min(var(--wrap), calc(100% - 48px));
  margin:0 auto;
}

/* =========================
   Amalfi-style Topbar
   ========================= */
.topbar{
  position:fixed;
  top:0; left:0; right:0;
  z-index:1000;

  height: var(--topbar-h);
  display:flex;
  align-items:center;

  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .22s ease, border-color .22s ease, backdrop-filter .22s ease;
}

.topbar.scrolled{
  background: rgba(0,0,0,.86);
  border-bottom-color: rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
}

.navRow{
  display:grid;
  grid-template-columns: 1fr auto 1fr;
  align-items:center;
  width:100%;
  gap: 18px;
}

/* Left links */
.navLeft{
  display:flex;
  gap: 18px;
  align-items:center;
  justify-content:flex-start;
  white-space:nowrap;
}
.navItem{
  text-decoration:none;
  font-size: 14px;
  letter-spacing: .1px;
  color: rgba(255,255,255,.88);
  padding: 10px 0;
  position:relative;
}
.navItem:hover{ color:#fff }
.navItem.active::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:4px;
  height:2px;
  border-radius:999px;
  background: rgba(255,255,255,.85);
}

/* Center logo (KittixLogo.png) */
.brandCenter{
  justify-self:center;
  display:flex;
  align-items:center;
  text-decoration:none;
}
.brandLogo{
  height: 50px;
  width:auto;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.35));
}

/* Right CTA */
.navRight{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap: 14px;
  white-space:nowrap;
}
.ctaPrimary{
  text-decoration:none;
  /* Teal CTA to match Kittix logo */
  background: var(--accent);
  color: #041416;
  padding: 10px 16px;
  border-radius: 999px;
  font-size:14px;
  font-weight:600;
  box-shadow: 0 10px 24px rgba(0,0,0,.22);
}
.ctaPrimary:hover{ background: var(--accent2); }
.ctaPrimary.active{ outline: 2px solid rgba(255,255,255,.55); outline-offset: 2px; }

/* Mobile toggle */
.navToggle{
  display:none;
  justify-self:end;
  width:44px; height:44px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.25);
  cursor:pointer;
}
.navToggle span{
  display:block;
  width:18px;
  height:2px;
  background: rgba(255,255,255,.9);
  margin:4px auto;
  border-radius:2px;
}

/* Mobile menu */
.mobileNav{
  position:absolute;
  top: var(--topbar-h);
  left:0; right:0;
  background: rgba(0,0,0,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.10);
  padding: 14px 0;
}
.mobileNav .mobileItem{
  display:block;
  width:min(var(--wrap), calc(100% - 48px));
  margin:0 auto;
  padding: 12px 0;
  text-decoration:none;
  color: rgba(255,255,255,.9);
  font-size: 15px;
}
.mobileNav .mobileItem:hover{ color:#fff }
.mobileNav .mobileCta{
  margin-top:6px;
  display:inline-block;
  background:#fff;
  color:#000;
  padding: 10px 16px;
  border-radius:999px;
  font-weight:700;
}

/* Responsiveness */
@media (max-width: 980px){
  .navLeft, .navRight{ display:none; }
  .navToggle{ display:inline-block; }
  .navRow{ grid-template-columns: 1fr auto 44px; }
  .brandLogo{ height: 20px; }
}

/* =========================
   Hero video section
   ========================= */
.hero{
  position:relative;
  min-height: 92vh;
  display:flex;
  align-items:center;
  overflow:hidden;
}

.heroVideo{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  transform: scale(1.02);
}

.heroOverlay{
  position:absolute;
  inset:0;
  background:
    radial-gradient(900px 420px at 50% 45%, rgba(0,0,0,.10), rgba(0,0,0,.70)),
    linear-gradient(to bottom, rgba(0,0,0,.35), rgba(0,0,0,.72));
}

.heroInner{
  position:relative;
  padding-top: calc(var(--topbar-h) + 40px);
  padding-bottom: 64px;
  text-align:center;
}

.heroTitle{
  margin:0 auto 18px;
  max-width: 980px;
  font-size: clamp(40px, 5vw, 72px);
  line-height:1.05;
  letter-spacing:-.02em;
  font-weight:800;
}

.heroSub{
  margin:0 auto 22px;
  max-width: 860px;
  color: rgba(255,255,255,.86);
  font-size: 16px;
  line-height:1.6;
}

.heroMeta{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  color: rgba(255,255,255,.80);
  font-size: 13px;
  font-weight:600;
}
.metaDot{
  width:4px; height:4px;
  border-radius:999px;
  background: rgba(255,255,255,.55);
}

/* =========================
   Sections + cards
   ========================= */
.section{
  padding: 72px 0;
}
.sectionLight{
  background: #f4f6f8;
  color:#0b1216;
}
.sectionDark{
  background: #04080a;
}
.sectionHead{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin-bottom: 26px;
}
.sectionHead.dark .sectionTitle{ color: #fff; }
.sectionTitle{
  margin:0;
  font-size: clamp(26px, 3vw, 40px);
  letter-spacing:-.02em;
}
.sectionActions{
  display:flex;
  gap: 12px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.muted{ color: rgba(0,0,0,.65); }

.btnSolid, .btnGhost{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  border-radius:999px;
  padding: 10px 16px;
  font-weight:700;
  font-size:14px;
  border:1px solid rgba(0,0,0,.14);
}
.btnSolid{
  background:#0b1216;
  color:#fff;
  border-color:#0b1216;
}
.btnGhost{
  background: transparent;
  color:#0b1216;
}
.btnSolid.light{
  background:#fff;
  color:#000;
  border-color: rgba(255,255,255,.75);
}

.featureRow{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 980px){
  .featureRow{ grid-template-columns: 1fr; }
}

.imageCard{
  position:relative;
  min-height: 360px;
  border-radius: 22px;
  overflow:hidden;
  box-shadow: var(--shadow);
  background-image: var(--img);
  background-size: cover;
  background-position: center;
}
.imageCardOverlay{
  position:absolute; inset:0;
  background: linear-gradient(to bottom, rgba(0,0,0,.22), rgba(0,0,0,.74));
}
.imageCardContent{
  position:absolute;
  left: 18px; right:18px; bottom:18px;
  color:#fff;
}
.kicker{
  font-size: 12px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color: rgba(255,255,255,.80);
  margin-bottom:8px;
}
.imageCardContent h3{
  margin:0 0 8px;
  font-size: 20px;
}
.imageCardContent p{
  margin:0 0 12px;
  color: rgba(255,255,255,.86);
  line-height:1.5;
  font-size: 14px;
}
.chipLink{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration:none;
  font-weight:700;
  font-size: 13px;
  background: rgba(255,255,255,.92);
  color:#000;
}

.cards3, .cards2{
  display:grid;
  gap: 16px;
}
.cards3{ grid-template-columns: repeat(3, 1fr); }
.cards2{ grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px){
  .cards3, .cards2{ grid-template-columns: 1fr; }
}
.cards3.tight{ margin-top: 16px; }

.cardGlass{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  padding: 18px 18px 16px;
}
.cardGlass h3{ margin:0 0 8px; }
.cardGlass p{ margin:0; color: rgba(255,255,255,.78); line-height:1.55; }

.cardWhite{
  background:#fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 18px;
  padding: 18px 18px 16px;
}
.cardWhite h3{ margin:0 0 8px; color:#0b1216 }
.cardWhite p{ margin:0; color: rgba(0,0,0,.70); line-height:1.55; }

.ctaBar{
  margin-top: 18px;
  display:flex;
  gap: 12px;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
}
.ctaBar.left{ justify-content:flex-start; }

/* =========================
   Page hero (non-home pages)
   ========================= */
.pageHero{
  padding-top: calc(var(--topbar-h) + 52px);
  padding-bottom: 54px;
  background: linear-gradient(to bottom, rgba(255,255,255,.05), rgba(255,255,255,0));
}
.pageTitle{
  margin:0 0 10px;
  font-size: clamp(34px, 4vw, 54px);
  letter-spacing:-.02em;
}
.pageSub{
  margin:0;
  color: rgba(255,255,255,.75);
  line-height:1.6;
  max-width: 820px;
}

/* Products page components */
.tierGrid{
  margin-top: 26px;
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 980px){
  .tierGrid{ grid-template-columns: 1fr; }
}
.tierCard{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  padding: 18px;
}
.tierCard.featured{
  border-color: rgba(52,211,216,.40);
  box-shadow: 0 0 0 1px rgba(52,211,216,.18) inset;
}
.tierTop{ margin-bottom: 10px; }
.tierName{ font-weight:800; }
.tierTag{ color: rgba(255,255,255,.70); font-size: 13px; margin-top: 6px; }

.bullets{
  margin: 10px 0 0;
  padding-left: 18px;
  color: rgba(255,255,255,.78);
  line-height:1.6;
}
.sectionLight .bullets{ color: rgba(0,0,0,.70); }

/* How-it-works steps */
.steps{
  margin-top: 24px;
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (max-width: 980px){
  .steps{ grid-template-columns: 1fr; }
}
.step{
  /* Keep step cards dark regardless of the surrounding section background */
  background: rgba(11,18,22,.94);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  padding: 16px;
  display:flex;
  gap: 12px;
}

.step.stepWide{
  grid-column: 1 / -1;
}

.stepMedia{
  margin-top: 12px;
}

.stepImg{
  width:100%;
  height:auto;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 10px 24px rgba(0,0,0,.22);
}

.stepNum{
  color: var(--accent);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(52,211,216,.18);
  border: 1px solid rgba(52,211,216,.35);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
}
.stepBody h3{ margin:0 0 6px; color: var(--ink); }
.stepBody p{ margin:0; color: rgba(255,255,255,.76); line-height:1.55; }

/* Stack steps full-width (used on How it works page) */
.stepsStacked{ grid-template-columns: 1fr; }

/* Step page bands (alternate page backgrounds; cards stay dark) */
.stepBand{
  padding: 54px 0;
}
@media (max-width: 980px){
  .stepBand{ padding: 42px 0; }
}

/* Alternate step backgrounds (dark → light → dark ...) */
.stepsAlt .step:nth-child(even){
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(0,0,0,.10);
}
.stepsAlt .step:nth-child(even) .stepBody h3{ margin:0 0 6px; color: var(--ink); }
.stepsAlt .step:nth-child(even) .stepBody p{ color: rgba(0,0,0,.72); }
.stepsAlt .step:nth-child(even) .stepNum{
  color: var(--accent);
  background: rgba(14,165,173,.12);
  border: 1px solid rgba(14,165,173,.28);
  color: rgba(0,0,0,.88);
}
.stepsAlt .step:nth-child(even) .stepImg{
  border: 1px solid rgba(0,0,0,.10);
  box-shadow: 0 10px 24px rgba(0,0,0,.16);
}

/* =========================
   Footer
   ========================= */
.footer{
  padding: 42px 0;
  background: #020608;
  border-top: 1px solid rgba(255,255,255,.08);
}
.footerGrid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 20px;
}
@media (max-width: 980px){
  .footerGrid{ grid-template-columns: 1fr; }
}
.footerBrand{
  display:flex;
  gap: 12px;
  align-items:center;
}
.footerMark{
  width: 40px;
  height: 40px;
}
.footerName{
  font-weight: 900;
}
.footerTag{
  color: rgba(255,255,255,.72);
  font-size: 13px;
  margin-top: 2px;
}
.footerCopy{
  margin-top: 12px;
  color: rgba(255,255,255,.55);
  font-size: 13px;
}
.footerLinks{
  display:grid;
  gap: 10px;
  align-content:start;
}
.footerLinks a{
  text-decoration:none;
  color: rgba(255,255,255,.78);
}
.footerLinks a:hover{ color:#fff }


/* Force consistent text styling for all step cards */
.step{background: var(--panel); color: var(--ink);} 
.step h1,.step h2,.step h3,.step p{color: var(--ink);} 
.sectionLight .step,.sectionDark .step{color: var(--ink);} 


/* Add spacing between paragraphs inside steps */
.stepBody p + p{ margin-top: 12px; }

/* Step 4 image sizing: keep the mobile menu screenshot from overpowering the card */
.stepMedia img[src*="static-mobile-menu-items"]{
  max-width: 520px !important;
  max-height: 420px !important;
  width: 100% !important;
  height: auto !important;
  display: block;
  margin: 14px auto 0;
  object-fit: contain;
  /* Remove the default framed look (border/shadow) used for other step screenshots */
  border: 0 !important;
  box-shadow: none !important;
}
