/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:      #090909;
  --card:    #111111;
  --card2:   #181818;
  --border:  rgba(255,255,255,0.08);
  --border+: rgba(255,255,255,0.13);
  --green:   #1DB954;
  --green-a: rgba(29,185,84,0.15);
  --green-b: rgba(29,185,84,0.06);
  --white:   #ffffff;
  --grey:    #888888;
  --grey2:   #3a3a3a;
  --ease:    cubic-bezier(.22,.68,0,1.2);
  --ease2:   cubic-bezier(.25,.46,.45,.94);
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--white);
  font-family: 'Inter', -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── Utility ────────────────────────────────────────────── */
.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Nav ────────────────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  height: 56px;
  display: flex;
  align-items: center;
  background: rgba(9,9,9,0.8);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  display: flex;
  align-items: center;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: -.01em;
  margin-right: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
.nav-links a {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--grey);
  padding: 0.32rem 0.7rem;
  border-radius: 6px;
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.06); }
.nav-cta {
  color: var(--green) !important;
  border: 1px solid rgba(29,185,84,0.3) !important;
  border-radius: 100px !important;
  padding: 0.32rem 0.85rem !important;
  margin-left: 0.5rem;
  transition: background .15s, color .15s !important;
}
.nav-cta:hover {
  background: var(--green) !important;
  color: #000 !important;
}

/* ════════════════════════════
   HERO
════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  padding-top: 56px;
}

/* Background */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hbg-glow {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 700px;
  background: radial-gradient(ellipse at 50% 30%, rgba(29,185,84,.22) 0%, rgba(29,185,84,.06) 40%, transparent 70%);
  filter: blur(40px);
}
/* Subtle dot grid */
.hbg-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 80%);
}

/* ── Hero text ── */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 4.5rem 2rem 2.5rem;
  max-width: 700px;
  width: 100%;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1.6rem;
  background: rgba(29,185,84,.08);
  border: 1px solid rgba(29,185,84,.22);
  padding: .32rem .9rem;
  border-radius: 100px;
}
.kicker-dot {
  width: 5px; height: 5px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
  animation: kpulse 2.5s ease infinite;
}
@keyframes kpulse {
  0%,100% { opacity: 1; }
  50% { opacity: .3; }
}
.hero-h1 {
  font-size: clamp(3.8rem, 9vw, 7.5rem);
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: .9;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.h1-top { color: var(--white); }
.h1-btm { color: var(--green); }
.h1-dot { color: var(--white); }

.hero-p {
  font-size: clamp(.9rem, 1.8vw, 1rem);
  color: var(--grey);
  line-height: 1.75;
  max-width: 480px;
  margin: 0 auto 2rem;
}
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  justify-content: center;
}
.hero-chips span {
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: .7rem;
  font-weight: 600;
  color: var(--grey);
  padding: .28rem .75rem;
  letter-spacing: .02em;
}

/* ── Hero Showcase ── */
.hero-showcase {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  padding: 0 2rem;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* Main browser window */
.hs-browser {
  position: relative;
  width: 68%;
  background: #161616;
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.1),
    0 40px 120px rgba(0,0,0,.9),
    0 0 80px rgba(29,185,84,.08);
  z-index: 3;
  margin-top: 0;
}
.hs-browser-bar {
  display: flex;
  align-items: center;
  gap: .6rem;
  height: 34px;
  padding: 0 .85rem;
  background: #1e1e1e;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.hs-dots { display: flex; gap: 4px; }
.hs-dots i { width: 9px; height: 9px; border-radius: 50%; display: block; }
.hs-dots i:nth-child(1) { background: #ff5f57; }
.hs-dots i:nth-child(2) { background: #febc2e; }
.hs-dots i:nth-child(3) { background: #28c840; }
.hs-url {
  flex: 1;
  background: #141414;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 5px;
  height: 18px;
  font-size: .58rem;
  color: #555;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 .5rem;
  max-width: 260px;
  margin: 0 auto;
}
.hs-actions { display: flex; gap: .4rem; margin-left: auto; }
.hs-img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: top;
  display: block;
}

/* Tablet – right of desktop */
.hs-tablet {
  position: absolute;
  right: 3%;
  top: 20px;
  width: 18%;
  background: #1c1c1c;
  border-radius: 18px;
  padding: 28px 7px 12px;
  border: 1.5px solid rgba(255,255,255,.1);
  box-shadow: 0 20px 60px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.06);
  z-index: 2;
}
.tab-cam {
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #2a2a2a;
  border: 1px solid #333;
}
.hs-tablet img { width: 100%; border-radius: 5px; height: 210px; object-fit: cover; object-position: top; }
.tab-btn {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #242424;
  border: 1px solid #333;
  margin: 8px auto 0;
}

/* Mobile – overlapping left edge of desktop */
.hs-mobile-left {
  position: absolute;
  left: 12%;
  top: 50px;
  width: 12%;
  background: #1c1c1c;
  border-radius: 30px;
  padding: 11px 6px 14px;
  border: 1.5px solid rgba(255,255,255,.13);
  box-shadow: 0 24px 60px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.07), 0 0 30px rgba(29,185,84,.06);
  z-index: 5;
}
.mob-island {
  width: 30%; height: 10px;
  background: #111;
  border-radius: 0 0 8px 8px;
  margin: 0 auto 4px;
}
.hs-mobile-left img { width: 100%; border-radius: 20px; height: 180px; object-fit: cover; object-position: top; }
.mob-pill {
  width: 34%; height: 3px;
  background: rgba(255,255,255,.22);
  border-radius: 2px;
  margin: 7px auto 0;
}

/* Bottom gradient fade from showcase into page */
.hs-fade {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 160px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  z-index: 5;
  pointer-events: none;
}

/* Scroll cue */
.hero-scroll {
  position: relative;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  padding: 1.5rem 0 2.5rem;
  color: #333;
}
.scroll-track {
  width: 18px; height: 28px;
  border: 1.5px solid #2a2a2a;
  border-radius: 9px;
  display: flex;
  justify-content: center;
  padding-top: 4px;
}
.scroll-thumb {
  width: 3px; height: 7px;
  background: #2a2a2a;
  border-radius: 2px;
  animation: sthumb 1.8s ease infinite;
}
@keyframes sthumb {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(8px); }
}
.hero-scroll span { font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; }

/* ════════════════════════════
   SECTIONS
════════════════════════════ */
.section {
  padding: 7rem 0;
}
.sec-meta {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: .9rem;
}
.sec-num {
  font-size: .65rem;
  font-weight: 800;
  color: var(--green);
  letter-spacing: .06em;
}
.sec-rule {
  height: 1px;
  width: 28px;
  background: rgba(29,185,84,.4);
}
.sec-label {
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #444;
}
.sec-title {
  font-size: clamp(2rem,4vw,3rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
  margin-bottom: .6rem;
}
.sec-desc {
  font-size: .88rem;
  color: var(--grey);
  margin-bottom: 2.25rem;
  line-height: 1.65;
}

/* ── Card ── */
.card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  overflow: hidden;
}

/* ── Tab bar ── */
.card-tabs {
  position: relative;
  display: flex;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,.35);
  padding: 0 1.25rem;
}
.ctab {
  position: relative;
  display: flex;
  align-items: center;
  gap: .42rem;
  background: none;
  border: none;
  font-family: inherit;
  font-size: .78rem;
  font-weight: 500;
  color: #444;
  cursor: pointer;
  padding: .85rem 1rem;
  transition: color .18s;
  white-space: nowrap;
}
.ctab:hover { color: var(--grey); }
.ctab.active { color: var(--white); }
/* Sliding ink */
.ctab-bar {
  position: absolute;
  bottom: 0;
  height: 2px;
  background: var(--green);
  border-radius: 1px 1px 0 0;
  box-shadow: 0 -1px 12px rgba(29,185,84,.55);
  transition: left .26s var(--ease2), width .26s var(--ease2);
}

/* ── Viewer ── */
.viewer {
  padding: 2.5rem;
  display: flex;
  justify-content: center;
  background: radial-gradient(ellipse 70% 100% at 50% 0%, rgba(29,185,84,.04) 0%, transparent 65%);
}
.pane { display: none; width: 100%; justify-content: center; }
.pane.active {
  display: flex;
  animation: pfade .3s var(--ease2);
}
@keyframes pfade {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Device frames ── */
[data-zoom] {
  cursor: zoom-in;
  transition: transform .3s var(--ease2), box-shadow .3s var(--ease2);
}
[data-zoom]:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 80px rgba(0,0,0,.7), 0 0 0 1px rgba(29,185,84,.18) !important;
}

.frame-desktop {
  width: 100%;
  max-width: 1000px;
  background: #161616;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.1);
}
.frame-chrome {
  display: flex;
  align-items: center;
  gap: .7rem;
  height: 34px;
  padding: 0 .8rem;
  background: #1f1f1f;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.fdots { display: flex; gap: 5px; }
.fdots i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.fdots i:nth-child(1) { background: #ff5f57; }
.fdots i:nth-child(2) { background: #febc2e; }
.fdots i:nth-child(3) { background: #28c840; }
.furl {
  flex: 1;
  background: #141414;
  border: 1px solid rgba(255,255,255,.05);
  border-radius: 5px;
  height: 19px;
  font-size: .58rem;
  color: #555;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 .55rem;
  max-width: 270px;
  margin: 0 auto;
}
.frame-desktop img {
  width: 100%;
  height: auto;
  max-height: 76vh;
  object-fit: cover;
  object-position: top;
  display: block;
}

.frame-tablet {
  max-width: 480px;
  width: 100%;
  background: #191919;
  border-radius: 22px;
  padding: 34px 9px 14px;
  border: 1.5px solid rgba(255,255,255,.09);
  box-shadow: 0 24px 80px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.06);
  position: relative;
}
.ftab-cam {
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #252525;
  border: 1.5px solid #333;
}
.frame-tablet img {
  width: 100%;
  height: auto;
  max-height: 68vh;
  object-fit: cover;
  object-position: top;
  border-radius: 7px;
  display: block;
}
.ftab-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: #222;
  border: 1.5px solid #2e2e2e;
  margin: 10px auto 0;
}

.frame-mobile {
  max-width: 255px;
  width: 100%;
  background: #191919;
  border-radius: 36px;
  padding: 12px 7px 15px;
  border: 1.5px solid rgba(255,255,255,.09);
  box-shadow: 0 24px 80px rgba(0,0,0,.75), 0 0 0 1px rgba(255,255,255,.06);
  position: relative;
}
.fmob-island {
  width: 30%; height: 20px;
  background: #111;
  border-radius: 0 0 12px 12px;
  margin: 0 auto 5px;
}
.frame-mobile img {
  width: 100%;
  height: auto;
  max-height: 72vh;
  object-fit: cover;
  object-position: top;
  border-radius: 24px;
  display: block;
}
.fmob-pill {
  width: 35%; height: 4px;
  background: rgba(255,255,255,.2);
  border-radius: 2px;
  margin: 8px auto 0;
}

/* ── Thumbs ── */
.thumbs {
  display: flex;
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
}
.th {
  flex: 1;
  cursor: pointer;
  background: #0d0d0d;
  position: relative;
  overflow: hidden;
  transition: background .18s;
}
.th:hover { background: #141414; }
.th.active { background: #111; }
.th img {
  width: 100%;
  height: 66px;
  object-fit: cover;
  object-position: top;
  opacity: .38;
  transition: opacity .22s, transform .4s var(--ease2);
  display: block;
}
.th:hover img { transform: scale(1.04); }
.th.active img { opacity: 1; }
.th span {
  display: block;
  text-align: center;
  font-size: .63rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #3a3a3a;
  padding: .42rem 0;
  transition: color .18s;
}
.th.active span { color: var(--green); }
/* Green underline */
.th::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--green);
  box-shadow: 0 0 10px rgba(29,185,84,.5);
  transform: scaleX(0);
  transition: transform .22s var(--ease2);
}
.th.active::after { transform: scaleX(1); }

/* ── Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .65s var(--ease2), transform .65s var(--ease2);
}
.reveal.on { opacity: 1; transform: none; }

/* ════════════════════════════
   FOOTER
════════════════════════════ */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  text-align: center;
}
.footer-mark {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  font-weight: 700;
  color: var(--grey);
  margin-bottom: .15rem;
}
.footer-inner p { font-size: .8rem; color: var(--grey); }
.footer-inner a { color: var(--white); font-weight: 600; transition: color .15s; }
.footer-inner a:hover { color: var(--green); }
.footer-note { font-size: .67rem; color: #333; }

/* ════════════════════════════
   LIGHTBOX
════════════════════════════ */
.lb {
  position: fixed;
  inset: 0;
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s var(--ease2);
}
.lb.open { opacity: 1; pointer-events: all; }
.lb-bg {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.93);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.lb-x {
  position: fixed;
  top: 1.25rem; right: 1.25rem;
  z-index: 2;
  width: 38px; height: 38px;
  background: #1e1e1e;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, transform .15s;
}
.lb-x:hover { background: #2a2a2a; transform: scale(1.1); }
.lb-scroll {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 3rem 2rem;
}
#lbImg {
  position: relative;
  z-index: 1;
  max-width: 1060px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 40px 100px rgba(0,0,0,.7);
}

/* ════════════════════════════
   RESPONSIVE
════════════════════════════ */
@media (max-width: 860px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .hs-tablet { width: 24%; right: 0; }
  .hs-mobile-left { width: 14%; left: 6%; }
  .hs-browser { width: 72%; }
  .hs-img { height: 260px; }
  .section { padding: 5rem 0; }
  .viewer { padding: 1.5rem 1rem; }
}
@media (max-width: 600px) {
  .hero-content { padding: 3.5rem 1.25rem 2rem; }
  .hs-mobile-left, .hs-tablet { display: none; }
  .hs-browser { width: 90%; }
  .hs-img { height: 200px; }
  .section { padding: 4rem 0; }
  .wrap { padding: 0 1.25rem; }
}
