/* =========================================================
   Urban Rojgar — Liquid Glass Design System
   ========================================================= */

:root {
  --bg: #0A0A12;
  --bg-soft: #0F0F1A;
  --surface: rgba(255, 255, 255, 0.055);
  --surface-strong: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);

  --purple: #8B5CF6;
  --purple-soft: #A78BFA;
  --blue: #3E7BFA;
  --blue-soft: #60A5FA;
  --orange: #FB923C;
  --orange-soft: #FDBA74;

  --text: #F5F5FA;
  --muted: #A0A0B2;
  --muted-2: #6C6C82;

  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

h1, h2, h3, h4, .display {
  font-family: 'Poppins', 'Inter', sans-serif;
  letter-spacing: -0.02em;
  font-weight: 600;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--orange-soft);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Ambient background field ---------- */
.ambient-field {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  will-change: transform;
}

.blob-1 {
  width: 46vw; height: 46vw;
  top: -12vw; left: -10vw;
  background: radial-gradient(circle at 30% 30%, var(--purple), transparent 70%);
  animation: drift1 26s var(--ease) infinite alternate;
}
.blob-2 {
  width: 40vw; height: 40vw;
  top: 30vh; right: -14vw;
  background: radial-gradient(circle at 60% 40%, var(--blue), transparent 70%);
  animation: drift2 32s var(--ease) infinite alternate;
}
.blob-3 {
  width: 34vw; height: 34vw;
  bottom: -10vw; left: 20vw;
  background: radial-gradient(circle at 50% 50%, var(--orange), transparent 70%);
  opacity: 0.22;
  animation: drift3 28s var(--ease) infinite alternate;
}

@keyframes drift1 { from { transform: translate(0,0) scale(1); } to { transform: translate(6vw, 8vh) scale(1.12); } }
@keyframes drift2 { from { transform: translate(0,0) scale(1); } to { transform: translate(-7vw, -6vh) scale(0.94); } }
@keyframes drift3 { from { transform: translate(0,0) scale(1); } to { transform: translate(4vw, -5vh) scale(1.08); } }

.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Glass primitives ---------- */
.glass {
  background: linear-gradient(160deg, var(--surface-strong), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: 0 1px 0 0 rgba(255,255,255,0.06) inset,
              0 20px 60px -20px rgba(0,0,0,0.55);
}

.glass-tight {
  border-radius: var(--radius-md);
}

.glass-hover {
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.glass-hover:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 1px 0 0 rgba(255,255,255,0.08) inset, 0 30px 70px -20px rgba(0,0,0,0.65);
}

/* ---------- Gradient text / accents ---------- */
.grad-text {
  background: linear-gradient(100deg, var(--purple-soft) 0%, var(--blue-soft) 50%, var(--orange-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.grad-line {
  height: 2px;
  width: 64px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--purple), var(--blue), var(--orange));
}

/* ---------- Nav ---------- */
.nav-shell {
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  background: rgba(10, 10, 18, 0.55);
  border-bottom: 1px solid var(--border);
}

.nav-link {
  position: relative;
  color: var(--muted);
  transition: color 0.25s var(--ease);
}
.nav-link:hover { color: var(--text); }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--purple), var(--orange));
  transition: transform 0.3s var(--ease);
}
.nav-link:hover::after { transform: scaleX(1); }

/* ---------- Buttons ---------- */
.btn-primary {
  background: linear-gradient(100deg, var(--purple), var(--blue));
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), filter 0.3s var(--ease);
  box-shadow: 0 12px 30px -10px rgba(139, 92, 246, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 16px 36px -8px rgba(62, 123, 250, 0.55); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
  border-radius: 999px;
  font-weight: 600;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn-ghost:hover { background: var(--surface-strong); transform: translateY(-2px); }

.store-badge{
    display:inline-flex;
    align-items:center;
    gap:12px;

    min-width:200px;
    height:60px;

    padding:0 20px;

    border-radius:12px;
    text-decoration:none;
    color:#fff;

    transition:all .25s cubic-bezier(.4,0,.2,1);
    position:relative;
}

.store-badge::after{
    content:"";
    position:absolute;
    inset:0;
    border-radius:inherit;
    opacity:0;
    transition:opacity .25s ease;
    background:linear-gradient(135deg,rgba(255,255,255,.12) 0%,rgba(255,255,255,.04) 100%);
    pointer-events:none;
}

.store-badge:hover::after{
    opacity:1;
}

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

.store-badge span{
    display:flex;
    flex-direction:column;
    gap:1px;
}

.store-badge small{
    font-size:10px;
    font-weight:500;
    text-transform:uppercase;
    letter-spacing:.06em;
    color:rgba(255,255,255,.78);
    line-height:1;
}

.store-badge strong{
    font-size:19px;
    font-weight:700;
    line-height:1;
    color:#fff;
    letter-spacing:-.01em;
}

/* App Store (official Apple black badge style) */
.app-store-badge{
    background:#000;
    border:1px solid rgba(255,255,255,.2);
    box-shadow:
        0 2px 8px rgba(0,0,0,.3),
        0 8px 24px rgba(0,0,0,.2),
        inset 0 1px 0 rgba(255,255,255,.08);
}

.app-store-badge:hover{
    transform:translateY(-3px) scale(1.02);
    box-shadow:
        0 4px 12px rgba(0,0,0,.35),
        0 16px 40px rgba(0,0,0,.3),
        inset 0 1px 0 rgba(255,255,255,.1);
}

.app-store-badge:active{
    transform:translateY(-1px) scale(0.99);
    transition-duration:.1s;
}

/* Google Play (official Google badge style) */
.play-store-badge{
    background:#000;
    border:1px solid rgba(255,255,255,.2);
    box-shadow:
        0 2px 8px rgba(0,0,0,.3),
        0 8px 24px rgba(0,0,0,.2),
        inset 0 1px 0 rgba(255,255,255,.08);
}

.play-store-badge:hover{
    transform:translateY(-3px) scale(1.02);
    box-shadow:
        0 4px 12px rgba(0,0,0,.35),
        0 16px 40px rgba(0,0,0,.3),
        inset 0 1px 0 rgba(255,255,255,.1);
}

.play-store-badge:active{
    transform:translateY(-1px) scale(0.99);
    transition-duration:.1s;
}

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Guide timeline ---------- */
.guide-track {
  position: relative;
}
.guide-track::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--purple), var(--blue) 50%, var(--orange));
  opacity: 0.35;
}
@media (min-width: 768px) {
  .guide-track::before { left: 50%; margin-left: -0.5px; }
}

.step-index {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--bg);
  background: linear-gradient(135deg, var(--purple-soft), var(--orange-soft));
  border-radius: 999px;
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 0 0 6px var(--bg), 0 10px 24px -8px rgba(139,92,246,0.6);
}

/* ---------- Phone mockup frame ---------- */
.phone-frame {
  width: 260px;
  aspect-ratio: 9 / 19.5;
  border-radius: 38px;
  padding: 10px;
  background: linear-gradient(155deg, rgba(255,255,255,0.14), rgba(255,255,255,0.03));
  border: 1px solid var(--border-strong);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.04) inset;
  position: relative;
  flex-shrink: 0;
}
.phone-screen {
  width: 100%; height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: var(--bg-soft);
  position: relative;
}
.phone-notch {
  position: absolute;
  top: 10px; left: 50%;
  transform: translateX(-50%);
  width: 84px; height: 20px;
  background: #050508;
  border-radius: 999px;
  z-index: 5;
}

/* ---------- FAQ ---------- */
.faq-item summary {
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .chevron { transition: transform 0.3s var(--ease); }
.faq-item[open] .chevron { transform: rotate(45deg); }
.faq-item .faq-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease);
}
.faq-item[open] .faq-body { grid-template-rows: 1fr; }
.faq-body > div { overflow: hidden; }

/* ---------- Misc ---------- */
.pill {
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-size: 12px;
  letter-spacing: 0.03em;
}

.legal-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li {
  color: var(--muted);
  line-height: 1.75;
}
.legal-content ul { list-style: disc; padding-left: 1.4rem; margin: 0.75rem 0; }
.legal-content a { color: var(--blue-soft); text-decoration: underline; text-underline-offset: 3px; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--purple);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }
