/* ─────────────────────────────────────────────
   Reshta — Shared Design System
   Used by: index.html, privacy.html
   ───────────────────────────────────────────── */

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

/* ── Design Tokens ── */
:root {
  --bg:      #0d0f14;
  --bg2:     #13161e;
  --bg3:     #1a1d28;
  --bg4:     #1f2335;
  --lime:    #c8f04a;
  --lime2:   color-mix(in srgb, var(--lime) 80%, black);
  --white:   #f0f2f0;
  --muted:   #6b7280;
  --muted2:  #4a5060;
  --border:  #252a3a;
  --blue:    #4a9eff;
  --purple:  #9b6dff;
  --green:   #4ade80;
  --mono:    'Space Mono', monospace;
  --sans:    'Syne', sans-serif;

  /* Shared layout */
  --page-max: 1200px;
  --section-px: 48px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

/* ── Base ── */
html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--sans);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--lime);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--lime2);
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ─────────────────────────────────────────────
   Navigation
   ───────────────────────────────────────────── */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

nav {
  padding: 20px var(--section-px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(13, 15, 20, .85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .04);
}

.nav-logo {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--lime);
  letter-spacing: -.02em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  transition: color .2s;

  &:hover {
    color: var(--white);
  }
}

.nav-cta {
  background: var(--lime);
  color: #0d0f14;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background .2s;

  &:hover {
    background: var(--lime2);
    color: #0d0f14;
  }
}

/* ─────────────────────────────────────────────
   Hero
   ───────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px var(--section-px) 80px;
  position: relative;
  overflow: hidden;

  &::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(200, 240, 74, .06) 0%, transparent 70%);
    pointer-events: none;
  }

  &::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(74, 158, 255, .04) 0%, transparent 70%);
    pointer-events: none;
  }
}

.hero-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .15em;
  color: var(--lime);
  text-transform: uppercase;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp .6s .2s forwards;
}

.hero-title {
  font-size: clamp(42px, 5.5vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.03em;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp .6s .3s forwards;

  & span { color: var(--lime); }
}

.hero-sub {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 40px;
  font-weight: 400;
  opacity: 0;
  animation: fadeUp .6s .4s forwards;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp .6s .5s forwards;
}

.hero-note {
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted2);
  opacity: 0;
  animation: fadeUp .6s .6s forwards;
}

/* ── Buttons ── */
.btn-primary {
  background: var(--lime);
  color: #0d0f14;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background .2s, transform .2s;

  &:hover {
    background: var(--lime2);
    color: #0d0f14;
    transform: translateY(-1px);
  }
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  font-family: var(--mono);
  font-size: 14px;
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: border-color .2s, background .2s;

  &:hover {
    border-color: var(--muted2);
    background: var(--bg2);
    color: var(--white);
  }
}

/* ─────────────────────────────────────────────
   Phone Mock
   ───────────────────────────────────────────── */
.phone-wrap {
  position: relative;
  opacity: 0;
  animation: fadeUp .7s .4s forwards;
}

.phone {
  width: 260px;
  margin: 0 auto;
  background: var(--bg2);
  border-radius: 36px;
  border: 1.5px solid var(--border);
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0, 0, 0, .6);
  position: relative;
}

.phone-screen { padding: 0; }

.phone-status {
  background: #0d0f14;
  padding: 14px 20px 8px;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
}

.phone-header {
  padding: 8px 20px 16px;
  background: var(--bg);
}

.phone-date {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--lime);
}

.card-needed {
  background: var(--bg3);
  margin: 0 16px 12px;
  border-radius: 16px;
  padding: 16px;
}

.card-label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 6px;
  letter-spacing: .06em;
}

.card-amount {
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--lime);
  margin-bottom: 8px;
}

.card-sub-row {
  display: flex;
  gap: 16px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 10px;

  & span { color: var(--white); }
}

.chip-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.chip {
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 4px 10px;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.chip-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}

.card-income {
  background: var(--bg3);
  margin: 0 16px 12px;
  border-radius: 16px;
  padding: 14px 16px;
}

.income-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.income-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

.income-val {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
}

.bar-wrap {
  background: rgba(255, 255, 255, .08);
  border-radius: 99px;
  height: 4px;
  margin-bottom: 6px;
  overflow: hidden;
}

.bar-fill {
  height: 4px;
  border-radius: 99px;
  background: var(--lime);

  &.blue { background: var(--blue); }
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--muted);
}

.phone-tabs {
  display: flex;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.tab {
  flex: 1;
  padding: 10px 4px 8px;
  text-align: center;
  font-family: var(--mono);
  font-size: 8px;
  color: var(--muted);

  &.active { color: var(--lime); }
}

.tab-icon {
  font-size: 14px;
  margin-bottom: 2px;
}

.badge-float {
  position: absolute;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: 11px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .4);

  &.left {
    left: -60px;
    top: 30%;
    animation: float 3s ease-in-out infinite;
  }

  &.right {
    right: -50px;
    bottom: 25%;
    animation: float 3s ease-in-out infinite .5s;
  }
}

.badge-val {
  font-size: 16px;
  font-weight: 700;
  color: var(--lime);
}

.badge-lbl {
  color: var(--muted);
  font-size: 9px;
  margin-top: 2px;
}

/* ─────────────────────────────────────────────
   Stats
   ───────────────────────────────────────────── */
.stats {
  padding: 80px var(--section-px);
  border-top: 1px solid var(--border);
}

.stats-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}

.stat {
  background: var(--bg);
  padding: 48px 40px;
  text-align: center;
}

.stat-num {
  font-family: var(--mono);
  font-size: 48px;
  font-weight: 700;
  color: var(--lime);
  margin-bottom: 8px;
}

.stat-lbl {
  font-size: 15px;
  color: var(--muted);
}

/* ─────────────────────────────────────────────
   Section Shared
   ───────────────────────────────────────────── */
.section-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .15em;
  color: var(--lime);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 64px;
  line-height: 1.1;
}

/* ─────────────────────────────────────────────
   How It Works
   ───────────────────────────────────────────── */
.how {
  padding: 100px var(--section-px);
  position: relative;
}

.how-inner {
  max-width: var(--page-max);
  margin: 0 auto;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
}

.step {
  background: var(--bg2);
  padding: 40px 32px;
  position: relative;
  overflow: hidden;

  &::before {
    content: attr(data-n);
    position: absolute;
    top: 20px;
    right: 24px;
    font-family: var(--mono);
    font-size: 48px;
    font-weight: 700;
    color: rgba(255, 255, 255, .03);
    line-height: 1;
  }
}

.step-icon {
  width: 44px;
  height: 44px;
  background: rgba(200, 240, 74, .1);
  border: 1px solid rgba(200, 240, 74, .2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 20px;
}

.step-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* ─────────────────────────────────────────────
   Screens / Features
   ───────────────────────────────────────────── */
.screens {
  padding: 100px var(--section-px);
  background: var(--bg2);
}

.screens-inner {
  max-width: var(--page-max);
  margin: 0 auto;
}

.screens-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 64px;
}

.screen-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .3s, border-color .3s;

  &:hover {
    transform: translateY(-4px);
    border-color: var(--muted2);
  }
}

.screen-preview {
  height: 200px;
  background: var(--bg4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.screen-info { padding: 20px; }

.screen-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.screen-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* Mini screen previews */
.mini-screen {
  width: 100%;
  height: 100%;
  background: var(--bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  font-family: var(--mono);
}

.ms-header {
  padding: 10px 12px 6px;
  background: #0d0f14;
}

.ms-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--white);
}

.ms-date {
  font-size: 9px;
  color: var(--lime);
}

.ms-body { padding: 10px 12px; }

.ms-big {
  font-size: 22px;
  font-weight: 700;
  color: var(--lime);
  margin: 4px 0 8px;
}

.ms-row {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: var(--muted);
  margin-bottom: 4px;
}

.ms-chip {
  display: inline-block;
  background: rgba(255, 255, 255, .06);
  border-radius: 99px;
  padding: 2px 8px;
  font-size: 8px;
  color: var(--muted);
  margin: 2px 2px 0 0;
}

/* Calendar */
.cal-row {
  display: flex;
  gap: 3px;
  margin-bottom: 3px;
}

.cal-day {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: rgba(255, 255, 255, .05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  color: var(--muted);

  &.dot { position: relative; }
}

.cal-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--lime);
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
}

/* Savings */
.sav-card {
  background: rgba(255, 255, 255, .05);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  margin-bottom: 6px;
}

.sav-name {
  font-size: 9px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.sav-goal {
  font-size: 8px;
  color: var(--muted);
  margin-bottom: 4px;
}

.sav-progress {
  background: rgba(255, 255, 255, .08);
  height: 3px;
  border-radius: 99px;
  overflow: hidden;
}

.sav-fill {
  height: 3px;
  border-radius: 99px;
  background: var(--blue);
}

/* ─────────────────────────────────────────────
   Why Reshta
   ───────────────────────────────────────────── */
.why {
  padding: 100px var(--section-px);
}

.why-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.why-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.why-item {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 20px;
  align-items: flex-start;

  &:first-child { border-top: 1px solid var(--border); }
}

.why-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted2);
  min-width: 28px;
  margin-top: 2px;
}

.why-text {
  & h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
  }

  & p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.65;
  }
}

/* ─────────────────────────────────────────────
   CTA
   ───────────────────────────────────────────── */
.cta {
  padding: 120px var(--section-px);
  text-align: center;
  position: relative;
  overflow: hidden;

  &::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(200, 240, 74, .05) 0%, transparent 70%);
    pointer-events: none;
  }
}

.cta-inner {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.cta h2 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.05;
  margin-bottom: 20px;

  & span { color: var(--lime); }
}

.cta p {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 40px;
}

.store-btns {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.store-btn {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 24px;
  text-decoration: none;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: border-color .2s, transform .2s;
  min-width: 160px;

  &:hover {
    border-color: var(--muted2);
    transform: translateY(-2px);
    color: var(--white);
  }

  &.placeholder {
    opacity: .7;
    cursor: not-allowed;

    &:hover {
      transform: none;
      border-color: var(--border);
    }
  }
}

.store-icon {
  font-size: 24px;
  line-height: 1;
}

.store-label {
  font-size: 11px;
  color: var(--muted);
  font-family: var(--mono);
}

.store-name {
  font-size: 15px;
  font-weight: 700;
}

/* ─────────────────────────────────────────────
   Footer
   ───────────────────────────────────────────── */
footer {
  padding: 40px var(--section-px);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--lime);
  text-decoration: none;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;

  & a {
    font-size: 13px;
    color: var(--muted);
    text-decoration: none;
    transition: color .2s;

    &:hover { color: var(--white); }
  }
}

.footer-copy {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted2);
}

/* ─────────────────────────────────────────────
   Privacy page specifics
   ───────────────────────────────────────────── */
.wrap {
  max-width: 50rem;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

.card {
  background: var(--bg2);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
  border: 1px solid var(--border);
  padding: 2.25rem 2rem 2rem;
}

.brand {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 0.5rem;
}

.lede {
  font-size: 1rem;
  color: var(--muted);
  margin: 0 0 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.meta {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.note {
  font-size: 0.95rem;
  background: var(--bg3);
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 1rem 1.1rem;
  margin: 1.25rem 0;
  color: var(--white);
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--mono);
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.85rem;
  background: var(--bg3);
  transition: border-color .2s, background .2s;

  &:hover {
    border-color: #3a4358;
    background: #202637;
    color: var(--lime);
  }
}

/* ─────────────────────────────────────────────
   Privacy typography
   ───────────────────────────────────────────── */
.card h1 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.8rem;
  color: var(--white);
}

.card h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  color: var(--white);
  letter-spacing: -0.01em;

  &:first-of-type { margin-top: 0; }
}

.card p {
  margin: 0 0 1rem;
}

.card ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.card li {
  margin-bottom: 0.4rem;

  &::marker { color: var(--lime); }
}

.card footer {
  border: none;
  margin-top: 2rem;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
  justify-content: flex-start;
}

/* ─────────────────────────────────────────────
   Responsive
   ───────────────────────────────────────────── */
@media (max-width: 900px) {
  :root { --section-px: 24px; }

  .hero-inner,
  .why-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .steps,
  .screens-grid,
  .stats-inner {
    grid-template-columns: 1fr 1fr;
  }

  .badge-float.left,
  .badge-float.right {
    display: none;
  }

  .wrap { padding: 1rem 0.75rem 2.5rem; }

  .card { padding: 1.5rem 1rem; }
}

@media (max-width: 600px) {
  .steps,
  .screens-grid,
  .stats-inner {
    grid-template-columns: 1fr;
  }

  .nav-links { display: none; }

  footer {
    flex-direction: column;
    gap: 16px;
  }
}
