/* ═══════════════════════════════════════════════════
   TIKBLOX  —  styles.css  v4  (mobile-first)
═══════════════════════════════════════════════════ */

/* ── Design tokens ──────────────────────────────── */
:root {
  --purple:       #7B2CFF;
  --purple-m:     #8e3fff;
  --purple-lt:    #9B59FF;
  --purple-pale:  #c084fc;
  --purple-glow:  rgba(123,44,255,.65);

  --bg:           #060a1e;
  --tile-from:    #220870;
  --tile-to:      #100440;
  --card-bg:      rgba(12,5,42,.92);
  --card-border:  rgba(145,70,255,.38);

  --white:        #fff;
  --muted:        rgba(255,255,255,.7);
  --font:         'Nunito','Segoe UI',Arial,sans-serif;
  --max:          1100px;
  --ease:         cubic-bezier(.22,1,.36,1);

  /* spacing scale */
  --sec-pad-mob:  48px;
  --sec-pad-desk: 80px;
}

/* ── Reset ──────────────────────────────────────── */
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
body {
  font-family:var(--font);
  background:var(--bg);
  color:var(--white);
  overflow-x:hidden;
  min-height:100dvh;
}
img { display:block; max-width:100%; height:auto; }
a   { text-decoration:none; color:inherit; }
button { font-family:var(--font); cursor:pointer; }
ul,ol { list-style:none; }

/* ── Star canvas ─────────────────────────────────── */
#stars {
  position:fixed; inset:0; z-index:0;
  pointer-events:none;
  will-change:transform;
}

/* ── Global deep gradient backdrop ──────────────── */
body::before {
  content:'';
  position:fixed; inset:0; z-index:-1;
  background:
    radial-gradient(ellipse 110% 55% at 50%   0%,  rgba(110,28,240,.45) 0%, transparent 60%),
    radial-gradient(ellipse  60% 45% at 95%   65%, rgba(90,10,200,.3)   0%, transparent 58%),
    radial-gradient(ellipse  50% 40% at  5%   88%, rgba(55,5,155,.22)   0%, transparent 55%),
    linear-gradient(165deg, #060a1e 0%, #0d0935 55%, #110a40 100%);
}

/* ── Container ──────────────────────────────────── */
.container {
  width:100%;
  max-width:var(--max);
  margin:0 auto;
  padding:0 20px;
}

/* ═══════════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════════ */
.navbar {
  position:sticky; top:0; z-index:500;
  background:rgba(3,6,20,.95);
  backdrop-filter:blur(18px);
  border-bottom:1px solid rgba(130,55,240,.2);
  transition:box-shadow .3s;
}
.navbar.scrolled { box-shadow:0 4px 28px rgba(0,0,0,.65); }

.nav-inner {
  display:flex; align-items:center; justify-content:space-between;
  gap:12px;
  max-width:var(--max); margin:0 auto;
  padding:14px 20px;
}

.nav-logo img { height:34px; width:auto; object-fit:contain; }

/* desktop links – hidden on mobile */
.nav-links {
  display:none;
  align-items:center; gap:14px; flex-wrap:wrap;
}
.nav-links a {
  font-size:.9rem; font-weight:700; color:var(--white);
  transition:color .18s;
}
.nav-links a:hover { color:var(--purple-pale); }
.pipe { color:rgba(255,255,255,.28); font-size:.9rem; }

.btn-invite {
  border:2px solid var(--purple-lt);
  border-radius:8px; padding:5px 16px;
  font-weight:800;
  transition:background .2s, box-shadow .2s;
}
.btn-invite:hover {
  background:var(--purple);
  box-shadow:0 0 16px var(--purple-glow);
}

/* hamburger – shown on mobile */
.burger {
  display:flex; flex-direction:column;
  justify-content:center; gap:5px;
  width:38px; height:38px;
  background:none; border:none;
  padding:4px; flex-shrink:0;
}
.burger span {
  display:block; width:24px; height:2.5px;
  background:var(--white); border-radius:2px;
  transition:transform .25s, opacity .25s;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform:translateY(7.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity:0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform:translateY(-7.5px) rotate(-45deg); }

/* mobile drawer */
.mobile-menu {
  display:none;
  flex-direction:column;
  padding:0 20px 16px;
  border-top:1px solid rgba(130,55,240,.15);
}
.mobile-menu.open { display:flex; }
.mobile-menu a {
  font-weight:700; padding:12px 0;
  border-bottom:1px solid rgba(255,255,255,.07);
  font-size:1rem;
}
.mobile-menu a:last-child { border-bottom:none; }
.btn-invite-m {
  margin-top:8px;
  border:2px solid var(--purple-lt);
  border-radius:8px; padding:10px 16px;
  font-weight:800; text-align:center;
  transition:background .2s;
}
.btn-invite-m:hover { background:var(--purple); }

/* ── Desktop nav breakpoint ── */
@media (min-width:768px) {
  .nav-links { display:flex; }
  .burger     { display:none; }
  .mobile-menu{ display:none !important; }
}

/* ═══════════════════════════════════════════════════
   CTA BUTTON (global)
═══════════════════════════════════════════════════ */
.btn-cta {
  display:inline-flex; align-items:center; gap:7px;
  background:linear-gradient(135deg, #8a22f5 0%, #6012d0 100%);
  color:var(--white);
  font-size:1rem; font-weight:900;
  padding:15px 32px;
  border:none; border-radius:12px;
  box-shadow:0 5px 24px rgba(110,18,220,.6);
  transition:transform .2s var(--ease), box-shadow .2s;
  letter-spacing:.01em; white-space:nowrap;
  position:relative; overflow:hidden;
}
.btn-cta::after {
  content:'';
  position:absolute; inset:0;
  background:linear-gradient(135deg, rgba(255,255,255,.14) 0%, transparent 55%);
  border-radius:inherit; pointer-events:none;
}
.btn-cta:hover  { transform:translateY(-3px); box-shadow:0 8px 32px rgba(110,18,220,.8); }
.btn-cta:active { transform:scale(.97); }

/* pulse ring — hero button only */
@keyframes ring-pulse {
  0%   { box-shadow:0 5px 24px rgba(110,18,220,.6), 0 0 0 0   rgba(110,18,220,.5); }
  70%  { box-shadow:0 5px 24px rgba(110,18,220,.6), 0 0 0 18px rgba(110,18,220,0); }
  100% { box-shadow:0 5px 24px rgba(110,18,220,.6), 0 0 0 0   rgba(110,18,220,0); }
}
.hero-cta { animation:ring-pulse 2.6s ease infinite; }

/* ═══════════════════════════════════════════════════
   HERO — fully dark (same bg as rest of page)
═══════════════════════════════════════════════════ */
.hero {
  position:relative;
  padding:56px 0 64px;
  z-index:1;
}

.hero-inner {
  display:flex;
  flex-direction:column;       /* mobile: stacked */
  align-items:center;
  gap:36px;
}

/* copy */
.hero-copy {
  width:100%;
  text-align:center;
  order:1;
}

.hero-copy h1 {
  font-size:clamp(1.65rem, 5.5vw, 2.8rem);
  font-weight:900;
  line-height:1.18;
  letter-spacing:-.015em;
  margin-bottom:14px;
}

.hero-sub {
  font-size:clamp(.9rem, 2.6vw, 1.1rem);
  font-weight:700;
  color:rgba(255,255,255,.88);
  line-height:1.65;
  margin-bottom:26px;
  max-width:480px;
  margin-left:auto; margin-right:auto;
}

.hero-divider {
  width:100%; max-width:440px;
  height:1.5px;
  background:rgba(255,255,255,.15);
  margin:24px auto;
  border:none;
}

/* stats */
.stats-row {
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:10px;
  margin-bottom:16px;
}
.stat-pill {
  display:inline-flex; align-items:center; gap:8px;
  background:rgba(255,255,255,.06);
  border:1.5px solid rgba(255,255,255,.18);
  border-radius:999px;
  padding:8px 16px;
  font-size:.82rem; font-weight:700;
  backdrop-filter:blur(8px);
}
.stat-pill img  { width:22px; height:22px; object-fit:contain; }
.stat-pill strong { color:var(--white); }

/* rating */
.rating-row {
  display:flex; align-items:center;
  justify-content:center;
  gap:10px; flex-wrap:wrap;
}
.r-score { font-size:1.5rem; font-weight:900; }
.r-stars  { color:#f59e0b; font-size:1.25rem; letter-spacing:3px; }
.r-sub    { font-size:.72rem; color:var(--muted); margin-top:2px; }

/* hero image */
.hero-visual {
  width:100%;
  display:flex; justify-content:center;
  order:0;                     /* image first on mobile */
}
.hero-img {
  width:min(300px, 80vw);
  filter:drop-shadow(0 12px 36px rgba(100,0,220,.35));
  animation:hero-float 4.5s ease-in-out infinite;
}
@keyframes hero-float {
  0%,100% { transform:translateY(0); }
  50%      { transform:translateY(-14px); }
}

/* ── Desktop hero layout ── */
@media (min-width:768px) {
  .hero { padding:80px 0 80px; }
  .hero-inner {
    flex-direction:row;
    align-items:center;
    justify-content:space-between;
    text-align:left;
  }
  .hero-copy  { text-align:left; order:0; flex:1 1 0; max-width:520px; }
  .hero-sub   { margin-left:0; margin-right:0; }
  .hero-divider { margin-left:0; }
  .stats-row  { justify-content:flex-start; }
  .rating-row { justify-content:flex-start; }
  .hero-visual { order:1; flex:0 1 400px; justify-content:flex-end; }
  .hero-img   { width:100%; max-width:420px; }
}

/* ═══════════════════════════════════════════════════
   SHARED SECTION STYLES
═══════════════════════════════════════════════════ */
.section {
  padding:var(--sec-pad-mob) 0;
  position:relative; z-index:1;
}
@media (min-width:768px) {
  .section { padding:var(--sec-pad-desk) 0; }
}

/* section title with side rules */
.sec-title {
  display:flex; align-items:center; justify-content:center;
  gap:14px; flex-wrap:wrap;
  font-size:clamp(1.1rem, 3vw, 1.65rem);
  font-weight:900;
  text-align:center;
  margin-bottom:40px;
  text-shadow:0 0 28px rgba(155,89,255,.35);
}
.rule {
  flex:1; height:1.5px; max-width:140px;
  background:linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
}
@media (min-width:768px) {
  .sec-title { margin-bottom:52px; }
}

/* ═══════════════════════════════════════════════════
   TILES
═══════════════════════════════════════════════════ */
.tile {
  width:80px; height:80px;
  background:linear-gradient(148deg, var(--tile-from) 0%, var(--tile-to) 100%);
  border:1.5px solid rgba(160,90,255,.48);
  border-radius:18px;
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
  position:relative; overflow:hidden;
  box-shadow:
    0 0 0 1px rgba(155,89,255,.1),
    0 0 16px rgba(123,44,255,.42),
    inset 0 0 26px rgba(100,10,220,.36);
  transition:transform .3s var(--ease), box-shadow .3s;
}
.tile::before {
  content:'';
  position:absolute; top:0; left:0;
  width:55%; height:48%;
  background:radial-gradient(circle at 0% 0%, rgba(255,255,255,.13), transparent 70%);
  border-radius:inherit; pointer-events:none;
}
.tile:hover {
  transform:translateY(-5px) scale(1.04);
  box-shadow:
    0 0 0 1px rgba(155,89,255,.24),
    0 0 28px rgba(123,44,255,.68),
    inset 0 0 32px rgba(110,15,230,.52);
}
.tile svg     { width:46px; height:46px; position:relative; }
.tile--img    { padding:12px; }
.tile--img img{ width:100%; height:100%; object-fit:contain; position:relative; }

@media (min-width:768px) {
  .tile { width:94px; height:94px; }
  .tile svg { width:52px; height:52px; }
}

/* ═══════════════════════════════════════════════════
   HOW IT WORKS
═══════════════════════════════════════════════════ */
.steps-grid {
  display:grid;
  grid-template-columns:1fr 1fr;   /* 2-col on mobile */
  gap:28px 16px;
  justify-items:center;
}

/* hide arrows on mobile */
.step-arrow { display:none; }

.step-card {
  display:flex; flex-direction:column;
  align-items:center; gap:14px;
}

.step-label {
  font-size:.86rem; font-weight:800;
  text-align:center; line-height:1.45;
}
.sn {
  display:inline-block;
  background:rgba(155,89,255,.22);
  border:1px solid rgba(155,89,255,.38);
  border-radius:6px;
  padding:1px 7px; margin-right:4px;
  font-size:.78rem; font-weight:900;
}

/* desktop: single row with arrows */
@media (min-width:640px) {
  .steps-grid {
    display:flex;
    flex-wrap:nowrap;
    align-items:flex-start;
    justify-content:center;
    gap:6px;
  }
  .step-arrow {
    display:flex; align-items:center;
    padding-top:28px; flex-shrink:0;
  }
  .step-arrow svg { width:32px; height:20px; }
  .step-card { flex:0 1 110px; }
}

/* ═══════════════════════════════════════════════════
   WHY CHOOSE
═══════════════════════════════════════════════════ */
.why-section {
  background:radial-gradient(ellipse 80% 60% at 50% 110%, rgba(90,15,200,.22) 0%, transparent 65%);
}

.feat-grid {
  display:grid;
  grid-template-columns:1fr 1fr;  /* 2×2 on mobile */
  gap:28px 16px;
  justify-items:center;
}

.feat-card {
  display:flex; flex-direction:column;
  align-items:center; gap:14px;
}
.feat-label {
  font-size:.86rem; font-weight:800;
  text-align:center; line-height:1.4;
}

@media (min-width:640px) {
  .feat-grid {
    display:flex; flex-wrap:nowrap;
    justify-content:center;
    gap:32px;
  }
  .feat-card { flex:0 1 130px; }
}

/* ═══════════════════════════════════════════════════
   ABOUT US
═══════════════════════════════════════════════════ */
.about-section { padding-top:30px; }

.about-card {
  position:relative;
  max-width:780px;
  margin:0 auto;
  background:var(--card-bg);
  border:1.5px solid var(--card-border);
  border-radius:22px;
  backdrop-filter:blur(20px);
  padding:28px 24px 32px;
  box-shadow:
    0 12px 56px rgba(0,0,0,.6),
    0 0 22px rgba(123,44,255,.18);
}

/* floating logo badge */
.about-badge {
  display:flex; justify-content:center;
  margin-bottom:-28px;
  position:relative; z-index:2;
}
.about-badge-ring {
  width:56px; height:56px;
  border-radius:50%;
  background:linear-gradient(145deg, #4c12c0, #2c0880);
  border:2.5px solid rgba(165,100,255,.75);
  display:flex; align-items:center; justify-content:center;
  padding:10px;
  box-shadow:
    0 0 0 5px rgba(123,44,255,.12),
    0 0 32px rgba(120,30,240,.85);
  animation:badge-pulse 3s ease-in-out infinite;
}
.about-badge-ring img { width:100%; height:100%; object-fit:contain; }

@keyframes badge-pulse {
  0%,100% { box-shadow:0 0 0 5px rgba(123,44,255,.12),0 0 32px rgba(120,30,240,.8); }
  50%      { box-shadow:0 0 0 8px rgba(123,44,255,.06),0 0 48px rgba(120,30,240,1); }
}

.about-h {
  font-size:1.25rem; font-weight:900;
  text-align:center; margin:20px 0 22px;
}

/* about body: column on mobile, row on desktop */
.about-body {
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:20px;
}

.about-icon-col {
  display:flex; flex-direction:column;
  align-items:center; gap:8px;
  flex-shrink:0;
}
.about-icon-img {
  width:56px; height:56px;
  object-fit:contain;
  filter:drop-shadow(0 3px 12px rgba(110,20,220,.45));
}
.about-icon-label {
  font-size:.82rem; font-weight:900;
  color:var(--purple-lt);
}

.about-text-col p {
  font-size:.88rem; font-weight:700;
  line-height:1.8; color:var(--white);
  margin-bottom:12px; text-align:center;
}
.about-text-col p:last-child { margin-bottom:0; }

@media (min-width:600px) {
  .about-card     { padding:36px 40px 40px; }
  .about-badge    { margin-bottom:-38px; }
  .about-badge-ring { width:76px; height:76px; padding:13px; }
  .about-h        { margin:28px 0 26px; }
  .about-body     { flex-direction:row; align-items:flex-start; }
  .about-icon-img { width:80px; height:80px; }
  .about-text-col p { text-align:left; font-size:.9rem; }
}

/* ═══════════════════════════════════════════════════
   FAQ
═══════════════════════════════════════════════════ */
.faq-section { padding-bottom:40px; }
.faq-wrap    { max-width:720px; }
.faq-list    { display:flex; flex-direction:column; gap:14px; }

.faq-item {
  border:1.5px solid rgba(120,60,240,.45);
  border-radius:14px;
  overflow:hidden;
  background:rgba(8,4,30,.7);
  backdrop-filter:blur(10px);
  transition:border-color .22s, box-shadow .22s;
}
.faq-item:hover,
.faq-item.open {
  border-color:var(--purple-lt);
  box-shadow:0 0 24px rgba(110,45,235,.3);
}

.faq-btn {
  display:flex; align-items:center;
  justify-content:space-between; gap:12px;
  width:100%; background:none; border:none;
  color:var(--white);
  font-size:clamp(.88rem,2.2vw,.97rem);
  font-weight:800;
  padding:18px 20px;
  text-align:left; line-height:1.45;
}
.faq-btn span { flex:1; }

.faq-chev {
  width:22px; height:22px; flex-shrink:0;
  color:var(--purple-lt);
  transition:transform .35s var(--ease), color .2s;
}
.faq-item.open .faq-chev  { transform:rotate(180deg); color:var(--white); }

.faq-panel {
  max-height:0; overflow:hidden;
  transition:max-height .42s var(--ease);
}
.faq-item.open .faq-panel { max-height:320px; }

.faq-panel-inner {
  padding:0 20px 20px;
  border-left:3px solid var(--purple);
  margin-left:20px;
}
.faq-panel p {
  font-size:.87rem; font-weight:600;
  line-height:1.8; color:var(--muted);
}

@media (min-width:600px) {
  .faq-btn { padding:20px 26px; }
  .faq-panel-inner { padding:0 26px 22px; margin-left:26px; }
}

/* ═══════════════════════════════════════════════════
   BOTTOM CTA DOME
═══════════════════════════════════════════════════ */
.cta-section {
  display:flex; justify-content:center;
  padding:0 20px; margin-top:32px;
  position:relative; z-index:1;
}

.cta-dome {
  width:100%; max-width:640px;
  position:relative; overflow:hidden;
  border:1.5px solid rgba(155,80,255,.38);
  border-bottom:none;
  border-radius:50% 50% 0 0 / 38% 38% 0 0;
  background:linear-gradient(180deg, rgba(20,8,60,0) 0%, #100840 26%, #08052c 100%);
  padding:clamp(48px,8vw,72px) clamp(24px,6vw,56px) clamp(56px,9vw,76px);
  text-align:center;
}
.cta-dome::after {
  content:'';
  position:absolute; top:-1px; left:8%; right:8%;
  height:1px;
  background:linear-gradient(90deg, transparent, rgba(210,160,255,.55), transparent);
}
.cta-orb {
  position:absolute; top:-50px; left:50%;
  transform:translateX(-50%);
  width:180px; height:180px;
  background:radial-gradient(circle, rgba(123,44,255,.3) 0%, transparent 70%);
  pointer-events:none;
}
.cta-dome h2 {
  position:relative;
  font-size:clamp(1.35rem,4vw,2rem);
  font-weight:900; margin-bottom:26px;
  text-shadow:0 0 24px rgba(155,89,255,.4);
}

/* ═══════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════ */
.footer {
  background:rgba(2,4,14,.98);
  border-top:1px solid rgba(100,45,200,.22);
  padding:32px 0;
  position:relative; z-index:1;
}
.footer-inner {
  display:flex;
  flex-direction:column;
  gap:20px;
}
.footer-left {
  display:flex; flex-direction:column; gap:10px;
}
.footer-left p,
.footer-left a {
  font-size:.86rem; font-weight:700; color:var(--white);
}
.footer-left a:hover { color:var(--purple-pale); }
.footer-left .copy   { opacity:.75; margin-top:4px; }
.footer-logo { height:30px; width:auto; object-fit:contain; }

@media (min-width:520px) {
  .footer-inner { flex-direction:row; align-items:flex-start; justify-content:space-between; }
}

/* ═══════════════════════════════════════════════════
   SCROLL REVEAL
═══════════════════════════════════════════════════ */
.reveal {
  opacity:0;
  transform:translateY(28px);
  transition:
    opacity  .6s var(--ease) calc(var(--idx,0) * 90ms),
    transform .6s var(--ease) calc(var(--idx,0) * 90ms);
}
.reveal.in { opacity:1; transform:none; }

/* auto-reveal for step-cards and feat-cards */
.step-card,
.feat-card,
.faq-item {
  opacity:0;
  transform:translateY(24px);
  transition:
    opacity  .55s var(--ease) calc(var(--idx,0) * 80ms),
    transform .55s var(--ease) calc(var(--idx,0) * 80ms);
}
.step-card.in,
.feat-card.in,
.faq-item.in { opacity:1; transform:none; }

/* ═══════════════════════════════════════════════════
   PREVENT OVERFLOW
═══════════════════════════════════════════════════ */
.hero, .section, .cta-section, .footer { max-width:100vw; overflow-x:hidden; }