/* ============================================================
   Vertex Mobile — Global Stylesheet
   Dark "AdTech Studio" theme, mobile-first, zero layout shift.
   ============================================================ */

:root {
  --color-bg: #05070d;
  --color-bg-elev-1: #0b0f1a;
  --color-bg-elev-2: #111626;
  --color-surface: #151b2e;
  --color-border: rgba(148, 163, 184, 0.12);
  --color-border-strong: rgba(148, 163, 184, 0.22);
  --color-text: #e6ebf5;
  --color-text-muted: #94a3b8;
  --color-text-dim: #64748b;

  --color-accent: #3b82f6;
  --color-accent-2: #8b5cf6;
  --color-accent-glow: rgba(59, 130, 246, 0.35);
  --color-success: #10b981;

  --gradient-accent: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  --gradient-radial: radial-gradient(
    1200px 600px at 50% -10%,
    rgba(59, 130, 246, 0.18),
    transparent 60%
  );
  --gradient-radial-2: radial-gradient(
    800px 400px at 90% 10%,
    rgba(139, 92, 246, 0.15),
    transparent 60%
  );

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 20px 60px -20px rgba(59, 130, 246, 0.25);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --container: 1180px;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

/* ------------------------------------------------------------
   Reset & base
   ------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  background-image: var(--gradient-radial), var(--gradient-radial-2);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #fff;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

p {
  margin: 0 0 1em;
  color: var(--color-text-muted);
}

ul {
  color: var(--color-text-muted);
}

::selection {
  background: var(--color-accent);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ------------------------------------------------------------
   Layout helpers
   ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section-tight {
  padding: 64px 0;
}

.eyebrow {
  display: inline-block;
  padding: 6px 12px;
  margin-bottom: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #cbd5e1;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.22);
  border-radius: 999px;
}

.section-heading {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  margin-bottom: 14px;
}

.section-sub {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.text-center {
  text-align: center;
}

/* ------------------------------------------------------------
   Header / Nav
   ------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  background: rgba(5, 7, 13, 0.72);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: #fff;
}

.brand-mark {
  width: 28px;
  height: 28px;
  display: inline-block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--color-text-muted);
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--color-border-strong);
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
}

.nav-toggle:focus-visible {
  border-color: var(--color-accent);
}

.nav-toggle svg {
  margin: auto;
}

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease,
    background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  color: #fff;
  background: var(--gradient-accent);
  box-shadow: 0 10px 30px -10px var(--color-accent-glow);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px -12px var(--color-accent-glow);
  color: #fff;
}

.btn-ghost {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--color-border-strong);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */
.hero {
  position: relative;
  padding: 120px 0 96px;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -1px 0 auto 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(148, 163, 184, 0.35),
    transparent
  );
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      to right,
      rgba(148, 163, 184, 0.06) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0.55),
    transparent 70%
  );
  -webkit-mask-image: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0.55),
    transparent 70%
  );
  pointer-events: none;
}

.hero-inner {
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  margin-bottom: 24px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border-strong);
  border-radius: 999px;
}

.hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 10px var(--color-success);
}

.hero h1 {
  font-size: clamp(2.25rem, 5.5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
  color: #fff;
}

.hero h1 .accent {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  max-width: 640px;
  margin: 0 auto 36px;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--color-text-muted);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ------------------------------------------------------------
   Stats bar
   ------------------------------------------------------------ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 72px;
  padding: 28px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0)
  );
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.stat {
  text-align: center;
}

.stat-value {
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@media (max-width: 720px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ------------------------------------------------------------
   App cards
   ------------------------------------------------------------ */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.app-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.01)
  );
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.app-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    600px circle at var(--x, 50%) var(--y, 0%),
    rgba(59, 130, 246, 0.08),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.app-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-lg);
}

.app-card:hover::before {
  opacity: 1;
}

.app-card-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.app-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px -10px var(--color-accent-glow);
}

.app-icon svg {
  width: 34px;
  height: 34px;
}

.app-meta h3 {
  font-size: 1.25rem;
  color: #fff;
  margin: 0 0 4px;
}

.app-meta span {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.app-desc {
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

.app-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  padding: 0;
  list-style: none;
}

.app-tags li {
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #cbd5e1;
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid var(--color-border);
  border-radius: 999px;
}

.app-card-foot {
  margin-top: auto;
}

/* Google Play badge */
.play-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  color: #fff;
  background: #000;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  transition: transform 0.15s ease, border-color 0.2s ease;
}

.play-badge:hover {
  transform: translateY(-1px);
  color: #fff;
  border-color: #555;
}

.play-badge svg {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
}

.play-badge .play-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.play-badge .play-text small {
  font-size: 0.65rem;
  font-weight: 400;
  color: #cbd5e1;
  letter-spacing: 0.04em;
}

.play-badge .play-text strong {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Placeholder / coming-soon card */
.app-card-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  padding: 32px;
  text-align: center;
  background: repeating-linear-gradient(
    135deg,
    rgba(148, 163, 184, 0.03) 0 10px,
    transparent 10px 20px
  );
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius-lg);
}

.app-card-placeholder .plus {
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.06);
  border: 1px solid var(--color-border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
}

.app-card-placeholder h3 {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 4px;
}

.app-card-placeholder p {
  font-size: 0.9rem;
  margin: 0;
}

/* ------------------------------------------------------------
   Features
   ------------------------------------------------------------ */
.features {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.01),
    rgba(255, 255, 255, 0)
  );
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.feature {
  padding: 24px;
  background: var(--color-bg-elev-1);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.feature-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.12);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature h3 {
  font-size: 1.05rem;
  color: #fff;
  margin: 0 0 6px;
}

.feature p {
  font-size: 0.92rem;
  margin: 0;
}

/* ------------------------------------------------------------
   CTA block
   ------------------------------------------------------------ */
.cta-block {
  position: relative;
  padding: 56px 32px;
  text-align: center;
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.12),
    rgba(139, 92, 246, 0.12)
  );
  border: 1px solid rgba(139, 92, 246, 0.22);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.cta-block h2 {
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 10px;
}

.cta-block p {
  max-width: 520px;
  margin: 0 auto 28px;
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.site-footer {
  padding: 56px 0 32px;
  border-top: 1px solid var(--color-border);
  background: rgba(5, 7, 13, 0.7);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-brand p {
  margin-top: 14px;
  max-width: 320px;
  font-size: 0.92rem;
}

.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 600;
  color: #cbd5e1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 16px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  font-size: 0.93rem;
  color: var(--color-text-muted);
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  font-size: 0.85rem;
  color: var(--color-text-dim);
}

@media (max-width: 720px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ------------------------------------------------------------
   Legal / document pages
   ------------------------------------------------------------ */
.doc {
  max-width: 780px;
  margin: 0 auto;
  padding: 72px 24px 96px;
}

.doc h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  color: #fff;
  margin-bottom: 8px;
}

.doc .doc-meta {
  color: var(--color-text-dim);
  font-size: 0.88rem;
  margin-bottom: 36px;
}

.doc h2 {
  font-size: 1.2rem;
  color: #fff;
  margin-top: 36px;
  margin-bottom: 10px;
}

.doc p,
.doc li {
  color: #c7d1e0;
  font-size: 0.98rem;
  line-height: 1.75;
}

.doc a {
  color: #93c5fd;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.doc a:hover {
  color: #bfdbfe;
}

.doc ul {
  padding-left: 1.25rem;
}

.doc hr {
  margin: 40px 0;
  border: 0;
  border-top: 1px solid var(--color-border);
}

/* ------------------------------------------------------------
   Mobile adjustments
   ------------------------------------------------------------ */
@media (max-width: 720px) {
  .section {
    padding: 72px 0;
  }

  .hero {
    padding: 88px 0 64px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    position: absolute;
    top: 68px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    background: rgba(11, 15, 26, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-links a {
    padding: 12px 14px;
    font-size: 0.98rem;
  }

  .site-header.nav-open .nav-links {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .stats {
    margin-top: 56px;
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
    animation: none !important;
  }
}
