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

:root {
  --bg: #0d0d0f;
  --surface: #16161a;
  --surface-2: #1e1e24;
  --border: #2a2a35;
  --accent: #7c5cfc;
  --accent-dim: #5b3fd4;
  --text: #e8e8f0;
  --text-muted: #8888a0;
  --radius: 14px;
  --bn-height: 58px;
  --safe-bot: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  padding-top: var(--safe-top);
  -webkit-tap-highlight-color: transparent;
}

/* ── TikTok-style App Header ── */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 52px;
  border-bottom: 1px solid var(--border);
  background: rgba(13,13,15,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 12px;
}

.app-header .logo {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}
.app-header .logo span { color: var(--accent); }

/* Center tabs: Friends | Randum */
.header-tabs {
  display: flex;
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px;
  gap: 2px;
  flex-shrink: 0;
}

.htab {
  padding: 5px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.htab.active {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}
.htab:not(.active):active { color: var(--text); }

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
}
.header-icon-btn:active { background: var(--border); }

/* ── Bottom Navigation ── */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  height: calc(var(--bn-height) + var(--safe-bot));
  padding-bottom: var(--safe-bot);
  background: rgba(10,10,12,0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.bn-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  color: rgba(255,255,255,0.42);
  flex: 1;
  padding: 6px 0 4px;
  transition: color 0.15s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  min-width: 0;
}
.bn-item:active { color: rgba(255,255,255,0.82); }
.bn-item.active { color: #fff; }

.bn-icon { width: 25px; height: 25px; flex-shrink: 0; }

.bn-label {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.bn-center {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px; height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #9f7cff 0%, #5b3fd4 100%);
  box-shadow: 0 0 16px rgba(124,92,252,0.5);
  color: #fff;
  text-decoration: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s, box-shadow 0.15s;
  position: relative;
  flex-shrink: 0;
}
.bn-center::before,
.bn-center::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 4px;
  border-radius: 4px;
}
.bn-center::before { right: calc(100% + 2px); background: rgba(255,255,255,0.9); }
.bn-center::after  { left:  calc(100% + 2px); background: var(--accent); }
.bn-center:active  { transform: scale(0.9); }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--accent);
  color: #fff;
  padding: 15px 32px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--accent-dim);
  transform: translateY(-1px);
}

.btn-primary.large {
  font-size: 1.1rem;
  padding: 17px 40px;
}

/* ── Hero ── */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 96px 40px 80px;
}

.hero-content {
  flex: 1;
  max-width: 560px;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 22px;
}

h1 span {
  color: var(--accent);
}

.hero-content > p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 460px;
}

.sub {
  margin-top: 14px !important;
  font-size: 0.8rem !important;
  color: var(--text-muted) !important;
  letter-spacing: 0.5px;
}

/* ── Hero visual ── */
.hero-visual {
  flex-shrink: 0;
  width: 340px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mock-video {
  position: relative;
  height: 160px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.mock-video::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--surface-2) 0%, var(--surface) 100%);
}

.mock-video::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--border);
}

.mock-label {
  position: absolute;
  bottom: 10px;
  left: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(6px);
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  z-index: 1;
}

.mock-video.top {
  border-color: rgba(124, 92, 252, 0.3);
  box-shadow: 0 0 40px rgba(124, 92, 252, 0.08);
}

.omegle-alt {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem 1rem;
}

.omegle-alt h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #f5f7ff;
  margin: 0 0 1.5rem;
  text-align: center;
}

.omegle-alt p {
  max-width: 820px;
  margin: 0 auto 1rem;
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(214, 220, 255, 0.78);
  text-align: center;
}

.omegle-alt p:last-child {
  margin-bottom: 0;
}

.omegle-alt::after {
  content: "";
  display: block;
  width: min(180px, 35%);
  height: 1px;
  margin: 2rem auto 0;
  background: linear-gradient(
    90deg,
    rgba(123, 97, 255, 0),
    rgba(123, 97, 255, 0.7),
    rgba(123, 97, 255, 0)
  );
}

/* ── Features ── */
.features {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 40px;
}

.features h2,
.how-it-works h2,
.cta h2 {
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 48px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.2s;
}

.feature-card:hover {
  border-color: var(--accent);
}

.feature-icon {
  font-size: 1.8rem;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── How it works ── */
.how-it-works {
  padding: 80px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
}

.step {
  flex: 1;
  max-width: 260px;
  text-align: center;
  padding: 0 12px;
}

.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.step h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.step p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.step-arrow {
  font-size: 1.5rem;
  color: var(--border);
  margin-top: 10px;
  flex-shrink: 0;
}

/* ── CTA ── */
.cta {
  text-align: center;
  padding: 96px 40px;
  background: radial-gradient(ellipse at 50% 0%, rgba(124,92,252,0.12) 0%, transparent 70%);
  border-top: 1px solid var(--border);
}

.cta p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 40px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.footer-logo span { color: var(--accent); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  /* Header collapses gracefully */
  .app-header {
    padding: 0 14px;
  }
  .htab {
    padding: 5px 12px;
    font-size: 0.78rem;
  }

  .hero {
    flex-direction: column;
    padding: 56px 20px 48px;
    text-align: center;
    gap: 40px;
  }

  .hero-content h1 {
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    line-height: 0.95;
    letter-spacing: -0.05em;
  }

  .hero-content > p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-visual {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }

  .mock-video {
    height: 130px;
  }

  .features,
  .cta {
    padding: 56px 20px;
  }

  .how-it-works {
    padding: 56px 20px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .step-arrow {
    transform: rotate(90deg);
    margin: 0;
  }

  .step {
    max-width: 100%;
    width: 100%;
  }
}
