/* reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* colors and stuff */
:root {
  --primary: #6366f1;
  --pri-dark: #4f46e5;
  --sec: #8b5cf6;
  --cyan: #06b6d4;
  --green: #10b981;
  --amber: #f59e0b;
  --bg: #0a0f1e;
  --bg2: #0f172a;
  --bg3: #1e293b;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --dim: #64748b;
  --border: rgba(255, 255, 255, 0.08);
  --bdr-hover: rgba(99, 102, 241, 0.35);
  --shadow-pri: 0 10px 30px rgba(99, 102, 241, 0.3);
  /* radius shortcuts */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --font: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === glowy orbs in the background === */
/* these look really cool, took forever to tune */
.bg-orbs {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.3;
  animation: orbFloat linear infinite;
}

.orb-1 {
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    top: -220px;
    right: -120px;
    animation-duration: 22s;
}

.orb-2 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, var(--sec) 0%, transparent 70%);
  bottom: 5%; left: -160px;
  animation-duration: 30s;
  animation-delay: -10s;
}

.orb-3 {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, var(--cyan) 0%, transparent 70%);
    top: 50%;
    left: 38%;
    opacity: 0.1; /* this one is more subtle */
    animation-duration: 38s;
    animation-delay: -6s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(28px, 38px) scale(1.04); }
  66% { transform: translate(-18px, -28px) scale(0.96); }
}

/* header - stays at top always */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 999;
    padding: 14px 0;
    background: rgba(10, 15, 30, 0.85);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px); /* safari needs this separately */
    border-bottom: 1px solid var(--border);
    transition: padding 0.3s;
}

/* shrink header a bit when scrolled */
header.scrolled { padding: 10px 0; }

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.15rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.logo img {
  height: 34px;
  width: 34px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.main-nav a {
    padding: 6px 14px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--r-sm);
    transition: color 0.2s, background 0.2s;
}

.main-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

/* header download button (only shows on desktop) */
.btn-header {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    background: var(--primary);
    color: #fff;
    border-radius: var(--r-sm);
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.2s, transform 0.2s;
    flex-shrink: 0;
}

.btn-header:hover { background: var(--pri-dark); transform: translateY(-1px); }

/* burger menu icon, hidden on desktop */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.burger span {
    display: block;
    width: 22px; height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
}

/* ===== BUTTONS ===== */

/* main cta button, used in hero and bottom section */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--sec) 100%);
    color: #fff;
    border-radius: var(--r-md);
    font-weight: 600;
    font-size: 1rem;
    box-shadow: var(--shadow-pri);
    transition: transform 0.25s, box-shadow 0.25s;
    cursor: pointer;
    border: none;
}

.btn-primary i { font-size: 1.3rem; flex-shrink: 0; }

/* the two-line text inside big buttons */
.btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.btn-text small {
    font-size: 0.68rem;
    font-weight: 400;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.btn-text span { font-size: 1rem; font-weight: 700; }

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(99, 102, 241, 0.45);
}

.btn-primary:active { transform: translateY(-1px); }

/* bigger version of button for bottom cta */
.btn-lg { padding: 18px 36px; }
.btn-lg i { font-size: 1.5rem; }

/* ===== misc section helpers ===== */

section { padding: 90px 0; }

/* section header block */
.sh {
    text-align: center;
    margin-bottom: 56px;
}

/* small label above section titles */
.stag {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(99, 102, 241, 0.14);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 100px;
  color: #a5b4fc;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.sh h2 {
    font-size: 2.3rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* gradient text for highlights */
.grad {
  background: linear-gradient(90deg, #818cf8, #a78bfa, #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* scroll reveal - elements start invisible and slide up */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== HERO SECTION ===== */

.hero {
  padding-top: 90px;
  padding-bottom: 60px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* side by side layout - text left, phone right */
.hero-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

/* green badge at top of hero */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    padding: 7px 16px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 100px;
    color: #34d399;
    font-size: 0.85rem;
    font-weight: 600;
}

.hero-text h1 {
  font-size: 3.4rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--muted);
    line-height: 1.7;
    max-width: 480px;
}

/* the 3 numbers row */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 20px;
}

.hstat {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.hstat strong {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
}

.hstat span {
    font-size: 0.72rem;
    color: var(--dim);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* vertical divider between stats */
.hstat-div {
  width: 1px;
  height: 34px;
  background: var(--border);
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

/* "safe apk · v1.0" text under button */
.apk-info {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--dim);
}

.apk-info i { color: var(--green); }

/* bounce arrow at bottom of hero */
.hero-scroll {
    text-align: center;
    color: var(--dim);
    font-size: 1rem;
    animation: bounceDown 2s ease-in-out infinite;
    margin-top: 40px;
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}

/* ===== PHONE MOCKUP ===== */
/* this was the hardest part to build honestly */

.hero-phone {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone { position: relative; }

/* the outer phone frame */
.phone-inner {
    position: relative;
    width: 260px;
    background: #0d1117;
    border-radius: 40px;
    border: 2px solid rgba(255, 255, 255, 0.13);
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.6),
        0 50px 90px rgba(0, 0, 0, 0.65),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    animation: phoneFloat 4.5s ease-in-out infinite;
}

/* gentle floating animation for the phone */
@keyframes phoneFloat {
  0%, 100% { transform: translateY(0px) rotate(-1.5deg); }
  50% { transform: translateY(-14px) rotate(1.5deg); }
}

/* notch at the top */
.phone-notch {
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 88px; height: 24px;
    background: #0d1117;
    border-radius: 0 0 16px 16px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-cam {
  width: 8px; height: 8px;
  background: #1e2030;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.phone-screen {
    padding: 30px 0 0;
    min-height: 520px;
    background: linear-gradient(180deg, #131929 0%, #0d1117 100%);
}

/* inner app layout */
.app-ui {
  display: flex;
  flex-direction: column;
  height: 490px;
}

/* top bar showing room name and user count */
.app-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #e2e8f0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.app-count {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #818cf8;
  font-size: 0.62rem;
}

/* fake video player box */
.app-video {
    margin: 10px 12px 8px;
    background: linear-gradient(135deg, #1a2035 0%, #0f1623 100%);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: 134px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.app-video::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, transparent 60%);
}

/* play button in the middle */
.video-play {
    width: 42px; height: 42px;
    background: rgba(99, 102, 241, 0.88);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #fff;
    box-shadow: 0 0 24px rgba(99, 102, 241, 0.6);
    z-index: 1;
    position: relative;
}

/* green synced badge - top right corner of video */
.video-sync {
    position: absolute;
    top: 8px; right: 8px;
    padding: 3px 8px;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: 100px;
    color: #34d399;
    font-size: 0.52rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* progress bar at bottom of video */
.video-progress-wrap {
  position: absolute;
  bottom: 8px; left: 10px; right: 10px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.video-progress-bar {
    height: 100%;
    width: 30%;
    background: linear-gradient(90deg, var(--primary), var(--sec));
    border-radius: 3px;
    animation: progressAnim 10s linear infinite;
}

@keyframes progressAnim {
  0% { width: 18%; }
  100% { width: 92%; }
}

/* chat messages area */
.app-chat {
    padding: 6px 12px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    flex: 1;
    overflow: hidden;
}

/* each message - starts hidden and fades in */
.chat-msg {
  display: flex;
  align-items: center;
  gap: 7px;
  opacity: 0;
  transform: translateY(8px);
  animation: chatAppear 0.4s ease forwards;
}

/* stagger the messages so they appear one by one */
.m1 { animation-delay: 1.2s; }
.m2 { animation-delay: 2.8s; }
.m3 { animation-delay: 4.4s; }

@keyframes chatAppear {
  to { opacity: 1; transform: translateY(0); }
}

/* colored circle avatar */
.chat-ava {
    width: 20px; height: 20px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.52rem;
    font-weight: 700;
    color: #fff;
}

.chat-bubble {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px 10px 10px 3px;
  padding: 5px 9px;
  font-size: 0.6rem;
  color: #cbd5e1;
  line-height: 1.4;
}

/* bottom row with avatars and live indicator */
.app-members {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: auto;
}

.mem {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid #0d1117;
  margin-right: -4px; /* overlap them slightly */
}

.live-badge {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.58rem;
    color: #34d399;
    font-weight: 600;
}

/* pulsing green dot for live indicator */
.live-dot {
  width: 6px; height: 6px;
  background: #10b981;
  border-radius: 50%;
  animation: livePulse 1.5s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.65); }
}

/* glow underneath the phone */
.phone-glow {
    position: absolute;
    bottom: -55px; left: 50%;
    transform: translateX(-50%);
    width: 210px; height: 110px;
    background: radial-gradient(ellipse, rgba(99, 102, 241, 0.45) 0%, transparent 70%);
    filter: blur(22px);
    pointer-events: none;
    z-index: -1;
}

/* ===== FEATURES ===== */

.features {
  background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.45) 50%, transparent 100%);
}

/* 3 columns on desktop, goes to 2 then 1 on smaller screens */
.feat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.feat-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 30px 26px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  backdrop-filter: blur(12px);
}

.feat-card:hover {
    border-color: var(--bdr-hover);
    transform: translateY(-5px);
    box-shadow: 0 22px 52px rgba(0, 0, 0, 0.35);
}

/* icon box */
.feat-ico {
    width: 52px; height: 52px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 20px;
}

/* gradient color on the icons */
.feat-ico i {
  background: linear-gradient(135deg, var(--primary), var(--sec));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.feat-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feat-card p {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.65;
}

/* ===== HOW IT WORKS ===== */

.steps-section { position: relative; }

/* subtle glow in the middle of section */
.steps-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.06) 0%, transparent 65%);
    pointer-events: none;
}

.steps-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.step-block {
    flex: 1;
    text-align: center;
    padding: 0 18px;
    max-width: 240px;
}

/* numbered circle */
.step-n {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--sec));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  margin: 0 auto 18px;
  box-shadow: 0 8px 26px rgba(99, 102, 241, 0.38);
}

.step-block h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.step-block p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

/* arrow between steps */
.step-arr {
    padding-top: 18px;
    color: var(--dim);
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* ===== REVIEWS ===== */

.reviews {
  background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.4) 50%, transparent 100%);
}

.rev-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.rev-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.3s, transform 0.3s;
}

.rev-card:hover {
    border-color: var(--bdr-hover);
    transform: translateY(-4px);
}

/* yellow stars */
.rev-stars {
  color: var(--amber);
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.rev-card p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.7;
    flex: 1;
}

.rev-author {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

/* colored letter avatar */
.rev-ava {
    width: 38px; height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
    flex-shrink: 0;
}

.rev-author strong { display: block; font-size: 0.875rem; }
.rev-author small { color: var(--dim); font-size: 0.75rem; }

/* ===== APK INSTALL GUIDE ===== */
/* helps new users who never installed an apk before */

.apk-guide { padding: 0 0 80px; }

.guide-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(6, 182, 212, 0.05) 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--r-lg);
    padding: 36px 40px;
    display: flex;
    align-items: flex-start;
    gap: 28px;
}

.guide-icon {
  font-size: 2.6rem;
  color: #34d399;
  flex-shrink: 0;
  padding-top: 2px;
}

.guide-body h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.guide-body > p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.guide-body ol {
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.guide-body ol li {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}

.guide-body ol li strong { color: var(--text); }

/* small disclaimer/trust note at the bottom of guide */
.guide-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--dim);
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--r-sm);
    padding: 10px 14px;
}

.guide-note i { color: var(--green); margin-top: 2px; flex-shrink: 0; }

/* ===== BIG DOWNLOAD CTA AT BOTTOM ===== */

.dl-cta { padding: 80px 0 100px; }

.dl-box {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.13) 0%, rgba(139, 92, 246, 0.08) 100%);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: var(--r-xl);
    padding: 72px 40px;
    text-align: center;
    position: relative;
}

/* light effect behind the box */
.dl-box::before {
  content: '';
  position: absolute;
  top: -80px; left: 50%;
  transform: translateX(-50%);
  width: 440px; height: 440px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.dl-box h2 {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.dl-box > p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 36px;
}

/* small icons row under the button */
.dl-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 22px;
    flex-wrap: wrap;
}

.dl-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--dim);
}

.dl-meta i { color: var(--primary); }

/* ===== FOOTER ===== */

footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1rem;
}

.footer-logo img {
  height: 26px;
  width: 26px;
  object-fit: contain;
}

footer p {
    color: var(--dim);
    font-size: 0.85rem;
    margin-left: auto;
}

.footer-links { display: flex; gap: 20px; }

.footer-links a {
  color: var(--dim);
  font-size: 0.8rem;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--text); }

/* ===== STICKY DOWNLOAD BAR ===== */
/* only shows on phones, slides up after scrolling past hero */

.sticky-bar {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    padding: 12px 16px;
    background: rgba(10, 15, 30, 0.96);
    backdrop-filter: blur(18px);
    border-top: 1px solid var(--border);
    z-index: 998;
    transform: translateY(100%); /* hidden below screen */
    transition: transform 0.35s ease;
}

/* js adds this class when user scrolls enough */
.sticky-bar.visible { transform: translateY(0); }

.sticky-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, var(--primary), var(--sec));
  color: #fff;
  border-radius: var(--r-md);
  font-weight: 700;
  font-size: 1rem;
  box-shadow: var(--shadow-pri);
}

.sticky-btn i { font-size: 1.1rem; }

/* ===== RESPONSIVE ===== */

@media (max-width: 1024px) {
  /* two columns instead of three for features */
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  /* hero goes to single column */
  .hero-wrap {
      display: grid;
      grid-template-columns: 1fr;
      text-align: center;
      gap: 40px;
  }

  .hero-text { align-items: center; }
  .hero-desc { margin: 0 auto; }
  .hero-stats { justify-content: center; }
  .hero-actions { align-items: center; }
  .hero-phone { order: -1; } /* phone goes above text on mobile */

  /* steps stack vertically */
  .steps-row { flex-direction: column; align-items: center; gap: 24px; }
  .step-arr { display: none; } /* no arrows when vertical */
  .step-block { max-width: 100%; }
}

@media (max-width: 768px) {
  section { padding: 70px 0; }

  /* hide desktop nav, show burger */
  .main-nav, .btn-header { display: none; }
  .burger { display: flex; }

  /* mobile nav dropdown */
  .main-nav.open {
      display: flex;
      flex-direction: column;
      position: fixed;
      top: 62px; left: 0; right: 0;
      background: rgba(10, 15, 30, 0.97);
      backdrop-filter: blur(18px);
      border-bottom: 1px solid var(--border);
      padding: 16px 24px;
      z-index: 997;
  }

  .main-nav.open a {
    padding: 14px 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text);
  }

  .main-nav.open a:last-child { border-bottom: none; }

  .hero-text h1 { font-size: 2.4rem; }
  .sh h2 { font-size: 1.85rem; }

  .feat-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .rev-grid { grid-template-columns: 1fr; }

  /* guide stacks on mobile */
  .guide-card { flex-direction: column; gap: 16px; padding: 28px 22px; }

  .dl-box { padding: 52px 24px; }
  .dl-box h2 { font-size: 2.1rem; }

  .footer-inner { flex-direction: column; text-align: center; gap: 16px; }
  footer p { margin-left: 0; }

  /* show sticky bar only on mobile */
  .sticky-bar { display: block; }

  /* extra bottom space so sticky bar doesn't cover content */
  .dl-cta { padding-bottom: 90px; }
  footer { padding-bottom: 80px; }
}

@media (max-width: 540px) {
  .hero-text h1 { font-size: 2rem; }
  .hero-phone { display: none; } /* phone mockup too wide on tiny screens */
  .feat-grid { grid-template-columns: 1fr; }
  .dl-box h2 { font-size: 1.75rem; }
  .dl-meta { gap: 14px; }
  .footer-links { flex-direction: column; gap: 10px; align-items: center; }
}

/* skip animations for people who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
