/*
 * ژورنال مپ — styles.css
 * Theme: ۱:۱ با تم اپ Flutter
 * منبع: mobile-apps/trade_journal/lib/app/config/app_theme.dart
 * Dark-charcoal fintech terminal با گرادیان سیان → سبز برند.
 */

@font-face {
  font-family: "IRANSans";
  src: url("./assets/fonts/IRANSans.ttf") format("truetype");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ── AppTheme.dark() color scheme ── */
  --bg: #0d1117;            /* bgDark — surface */
  --surface: #161b22;       /* bgDarkSurface — cards */
  --container: #1c2128;     /* bgDarkContainer — nav/drawer */
  --surface-2: #13181f;     /* surfaceContainer */
  --surface-low: #090e14;   /* surfaceContainerLowest — phone screen */
  --border-subtle: #21262d; /* borderSubtle / outlineVariant */
  --line: #30363d;          /* borderMuted / outline */

  --text: #e6edf3;          /* textPrimary / onSurface */
  --muted: #8b949e;         /* textSecondary / onSurfaceVariant */

  --cyan: #00d4ff;          /* AppTheme.cyan — primary */
  --on-cyan: #001f2a;       /* onPrimary */
  --cyan-container: #003547;
  --on-cyan-container: #b3efff;

  --green: #7cff6b;         /* AppTheme.green — secondary / profit */
  --on-green: #003a00;
  --green-container: #005200;
  --on-green-container: #97ff88;

  --amber: #ffb800;         /* AppTheme.amber — premium / pending */
  --amber-container: #3b2800;
  --on-amber-container: #ffdfa0;

  --loss: #ff4d4f;          /* AppTheme.loss — error */

  --deep-cyan: #0075a3;     /* light primary / pressed variant */
  --deep-green: #2e7d32;

  /* ── Web tokens (mapped) ── */
  --card: var(--surface);
  --shadow: 0 18px 48px rgba(0, 212, 255, 0.12);
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.35);
  --radius: 20px;
  --radius-sm: 16px;
  --font: "IRANSans", Tahoma, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 68px;
  --container-pad: clamp(16px, 4vw, 24px);
  --touch-min: 44px;
  --brand-grad: linear-gradient(90deg, var(--cyan), var(--green));
  --brand-grad-135: linear-gradient(135deg, var(--cyan), var(--green));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: clamp(0.95rem, 0.9rem + 0.2vw, 1.05rem);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  line-height: 1.4;
  font-weight: 800;
}

::selection {
  background: rgba(0, 212, 255, 0.32);
  color: var(--text);
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -100px;
  right: 16px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--cyan);
  color: var(--on-cyan);
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: min(1140px, 100%);
  margin-inline: auto;
  padding-inline: max(var(--container-pad), env(safe-area-inset-left, 0px))
    max(var(--container-pad), env(safe-area-inset-right, 0px));
}

.text-gradient {
  background: var(--brand-grad-135);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ——— Header (تیره، مثل اپ) ——— */
.brand img {
  border-radius: 50%;
  object-fit: contain;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(13, 17, 23, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--header-h);
  padding-block: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 800;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  margin-inline-start: auto;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
}

.site-nav a {
  position: relative;
  transition: color 0.2s var(--ease);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  color: var(--cyan);
  font-weight: 700;
}

.site-nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -4px;
  height: 2px;
  background: var(--cyan);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.25s var(--ease);
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.topbar-cta {
  flex-shrink: 0;
  align-self: center;
  margin-block: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: var(--touch-min);
  height: var(--touch-min);
  min-width: var(--touch-min);
  min-height: var(--touch-min);
  padding: 8px;
  margin-inline-start: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--container);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
    background 0.2s, border-color 0.2s;
}

.btn-sm {
  padding: 9px 16px;
  font-size: 0.88rem;
}

.btn-primary {
  background: var(--brand-grad-135);
  color: var(--on-cyan);
  box-shadow: 0 6px 20px rgba(0, 212, 255, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 212, 255, 0.4);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
  background: var(--surface);
}

.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0, 212, 255, 0.06);
}

.btn-outline-light {
  border-color: rgba(230, 237, 243, 0.5);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #fff;
}

/* بج کافه‌بازار — assets/badge-new.png (https://cafebazaar.ir/badge) */
.bazaar-badge {
  display: inline-block;
  line-height: 0;
  flex-shrink: 0;
  border-radius: 9px;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.bazaar-badge:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.bazaar-badge:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.bazaar-badge__img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

.bazaar-badge__img--large {
  width: min(206px, 100%);
}

.bazaar-badge__img--medium {
  width: min(150px, 100%);
}

.topbar-cta.bazaar-badge {
  align-self: center;
  margin-block: 0;
}

.topbar-cta .bazaar-badge__img--medium {
  width: auto;
  height: 36px;
  max-height: calc(var(--header-h) - 12px);
}

.store-bazaar-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  padding: clamp(48px, 8vw, 96px) 0 clamp(32px, 5vw, 56px);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(560px 320px at 82% -6%, rgba(0, 212, 255, 0.16), transparent 68%),
    radial-gradient(520px 300px at 12% 8%, rgba(124, 255, 107, 0.1), transparent 66%),
    radial-gradient(900px 520px at 50% 118%, rgba(0, 117, 163, 0.18), transparent 70%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 7px 14px;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(124, 255, 107, 0.8);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.7rem, 4.4vw, 2.7rem);
  font-weight: 800;
}

.subtitle {
  margin: 18px 0 0;
  max-width: 58ch;
  color: var(--muted);
}

.subtitle strong {
  color: var(--green);
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
}

.hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.hint svg {
  flex-shrink: 0;
  color: var(--amber);
}

.hint strong {
  color: var(--text);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.hero-badges li {
  padding: 7px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
}

/* ——— Hero visual ——— */
.hero-visual {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 18px;
  min-height: 460px;
  padding-top: 64px;
}

.hero-logo {
  position: absolute;
  top: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
}

.hero-logo img {
  width: 96px;
  height: 96px;
  object-fit: contain;
}

.hero-logo-ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(0, 212, 255, 0.35);
  border-radius: 50%;
  animation: ring-pulse 3.2s var(--ease) infinite;
}

.hero-logo-ring--2 {
  inset: -14px;
  border-color: rgba(124, 255, 107, 0.22);
  animation-delay: -1.6s;
}

@keyframes ring-pulse {
  0% {
    transform: scale(0.92);
    opacity: 0.9;
  }
  70% {
    transform: scale(1.08);
    opacity: 0.15;
  }
  100% {
    transform: scale(0.92);
    opacity: 0.9;
  }
}

/* قاب گوشی — مثل سیلوئت اپ روی پس‌زمینه تیره */
.phone {
  position: relative;
  width: min(280px, 86vw);
  border: 1px solid var(--line);
  border-radius: 34px;
  background: var(--surface-low);
  padding: 10px;
  box-shadow:
    0 0 0 6px var(--container),
    var(--shadow-sm);
  animation: float 5s ease-in-out infinite;
}

.phone-notch {
  position: absolute;
  top: 16px;
  inset-inline-start: 50%;
  transform: translateX(50%);
  width: 84px;
  height: 18px;
  border-radius: 999px;
  background: var(--container);
  z-index: 3;
}

.phone-screen {
  border-radius: 26px;
  overflow: hidden;
  background: var(--surface-2);
  line-height: 0;
}

.phone-shot {
  width: 100%;
  height: auto;
  display: block;
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  font-size: 0.78rem;
  animation: float 4.2s ease-in-out infinite;
}

.float-card strong {
  display: block;
  font-size: 0.84rem;
}

.float-card small {
  color: var(--muted);
}

.float-card--1 {
  top: 16%;
  inset-inline-start: -4%;
  animation-delay: -1s;
}

.float-card--2 {
  bottom: 10%;
  inset-inline-end: -6%;
  animation-delay: -2.5s;
}

.float-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(0, 212, 255, 0.1);
}

.float-icon img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

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

/* ——— Stats ——— */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  gap: 14px;
  padding: 8px 0 32px;
}

.stat {
  text-align: center;
  padding: 18px 12px;
  background: var(--card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
}

.stat-value {
  display: block;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 800;
  background: var(--brand-grad-135);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  display: block;
  margin-top: 4px;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ——— Sections ——— */
.section {
  padding: clamp(40px, 6vw, 72px) 0;
}

.section--alt {
  background: var(--surface-2);
  border-block: 1px solid var(--border-subtle);
}

.section-tag {
  display: inline-block;
  margin: 0 0 8px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--cyan);
}

.section-tag::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-inline-end: 6px;
  border-radius: 50%;
  background: var(--green);
  vertical-align: middle;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  font-weight: 800;
}

.section-desc {
  margin: 10px 0 0;
  max-width: 56ch;
  color: var(--muted);
}

/* ——— Features ——— */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 16px;
  margin-top: 32px;
}

.feature-card {
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.feature-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.12), rgba(124, 255, 107, 0.12));
}

.feature-icon img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

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

.feature-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ——— Tools (کارت‌های بخش «ابزارها» در اپ) ——— */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 14px;
  margin-top: 32px;
}

.tool-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

.tool-tile:hover {
  transform: translateY(-3px);
  border-color: var(--cyan);
}

.tool-tile--locked {
  border-color: rgba(255, 184, 0, 0.3);
}

.tool-tile--locked:hover {
  border-color: var(--amber);
}

.tool-icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
}

.tool-body {
  flex: 1;
  min-width: 0;
}

.tool-body h3 {
  margin: 0 0 2px;
  font-size: 0.98rem;
}

.tool-body p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

/* badge ها — دقیقاً مثل اپ: رنگ متن + پس‌زمینه آلفای ۱۲٪ */
.tool-badge {
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.tool-badge--free {
  color: var(--green);
  background: rgba(124, 255, 107, 0.12);
}

.tool-badge--new {
  color: var(--cyan);
  background: rgba(0, 212, 255, 0.12);
}

.tool-badge--premium {
  color: var(--amber);
  background: rgba(255, 184, 0, 0.12);
}

/* ——— Screens ——— */
.screens-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 20px;
  margin-top: 32px;
}

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

.screen-mock {
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface-low);
  line-height: 0;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.screen-card:hover .screen-mock {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.screen-mock--shot img {
  width: 100%;
  height: auto;
  display: block;
}

.screen-card h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.screen-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ——— Steps ——— */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 16px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
}

.step h3 {
  margin: 12px 0 4px;
  font-size: 1rem;
}

.step p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.step-num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--brand-grad-135);
  color: var(--on-cyan);
  font-weight: 800;
  font-size: 1.05rem;
}

/* ——— Download ——— */
.download-section {
  position: relative;
  background:
    radial-gradient(720px 300px at 18% 0%, rgba(0, 212, 255, 0.14), transparent 70%),
    radial-gradient(640px 280px at 88% 100%, rgba(124, 255, 107, 0.12), transparent 70%),
    var(--container);
  border-block: 1px solid var(--border-subtle);
  overflow: hidden;
}

.download-section .section-tag--light,
.download-section h2 {
  color: var(--text);
}

.download-section .section-desc--light {
  color: var(--muted);
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 20px;
  margin-top: 32px;
  align-items: stretch;
}

.store-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 24px;
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.store-card:hover {
  border-color: var(--cyan);
  background: rgba(0, 212, 255, 0.05);
  transform: translateY(-3px);
}

.store-card--apk h3 {
  margin: 0;
  font-size: 1.05rem;
}

.store-card--apk p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
}

.store-card-icon {
  font-size: 1.6rem;
  color: var(--cyan);
}

.store-card-cta {
  margin-top: 8px;
  font-weight: 700;
  color: var(--cyan);
}

/* ——— CTA banner ——— */
.cta-banner {
  padding: clamp(32px, 5vw, 56px) 0;
}

.cta-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  background:
    radial-gradient(420px 200px at 90% -10%, rgba(0, 212, 255, 0.16), transparent 70%),
    radial-gradient(420px 220px at 0% 110%, rgba(124, 255, 107, 0.12), transparent 70%),
    var(--surface);
}

.cta-banner h2 {
  margin: 0 0 6px;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
}

.cta-banner p {
  margin: 0;
  color: var(--muted);
}

.cta-group--banner {
  margin-top: 0;
}

/* ——— FAQ ——— */
.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
  max-width: 780px;
}

.faq-item {
  padding: 16px 20px;
  background: var(--card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  list-style: none;
  position: relative;
  padding-inline-end: 28px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  inset-inline-end: 0;
  top: -2px;
  color: var(--cyan);
  font-size: 1.2rem;
  transition: transform 0.2s var(--ease);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 10px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.faq-item a {
  color: var(--cyan);
  font-weight: 700;
}

.faq-item a:hover {
  text-decoration: underline;
}

/* ——— Footer ——— */
.footer {
  padding: clamp(36px, 5vw, 56px) 0;
  border-top: 1px solid var(--border-subtle);
  background: var(--surface-2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: 28px;
  align-items: start;
}

.footer-brand p {
  margin: 12px 0 0;
  max-width: 40ch;
  font-size: 0.86rem;
  color: var(--muted);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 0.88rem;
  color: var(--muted);
}

.footer-nav a {
  transition: color 0.2s var(--ease);
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--cyan);
}

.footer-contact {
  text-align: end;
}

.footer-contact a {
  color: var(--cyan);
  font-weight: 700;
  font-size: 0.9rem;
}

.footer-contact a:hover {
  text-decoration: underline;
}

.footer-copy {
  margin: 8px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

/* ——— Reveal on scroll ——— */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal[data-delay="1"] {
  transition-delay: 0.12s;
}

.reveal[data-delay="2"] {
  transition-delay: 0.24s;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ——— قفل اسکرول هنگام منوی موبایل ——— */
.nav-open {
  overflow: hidden;
}

/* ——— Responsive ——— */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-copy .subtitle,
  .hero-copy .hint {
    margin-inline: auto;
  }

  .hero-copy .cta-group,
  .hero-copy .hero-badges {
    justify-content: center;
  }

  .hero-visual {
    min-height: 420px;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    inset-inline: 0;
    z-index: 49;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin: 0;
    padding: 12px var(--container-pad) 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
  }

  .nav-open .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 12px 10px;
    border-radius: 10px;
    font-size: 1rem;
  }

  .site-nav a:hover,
  .site-nav a.is-active {
    background: rgba(0, 212, 255, 0.08);
  }

  .site-nav a::after {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand p {
    margin-inline: auto;
  }

  .footer-nav {
    justify-content: center;
  }

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

  .cta-banner-inner {
    flex-direction: column;
    text-align: center;
  }

  .cta-banner-inner .cta-group {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 900px) {
  .float-card {
    display: none;
  }

  .hero-visual {
    min-height: 380px;
    padding-top: 56px;
  }

  .hero-logo {
    width: 120px;
    height: 120px;
  }

  .hero-logo img {
    width: 88px;
    height: 88px;
  }
}

@media (max-width: 640px) {
  .chip {
    font-size: 0.78rem;
    padding: 6px 12px;
    max-width: 100%;
    text-align: center;
    justify-content: center;
  }

  .cta-group {
    flex-direction: column;
    width: 100%;
    max-width: 400px;
    margin-inline: auto;
  }

  .cta-group .btn,
  .cta-group .bazaar-badge {
    width: 100%;
    max-width: 280px;
    display: flex;
    justify-content: center;
  }

  .cta-group .btn {
    min-height: var(--touch-min);
  }

  .bazaar-badge__img--large {
    width: min(206px, 92vw);
  }

  .hero-badges li {
    font-size: 0.78rem;
  }

  .phone {
    width: min(240px, 88vw);
  }

  .store-card {
    min-height: var(--touch-min);
  }

  .section {
    padding: clamp(32px, 8vw, 48px) 0;
  }
}

@media (max-width: 400px) {
  .brand span {
    font-size: 1rem;
  }

  .hero h1 {
    font-size: clamp(1.55rem, 8vw, 1.85rem);
  }

  .hero-visual {
    min-height: 340px;
    padding-top: 48px;
  }

  .stat {
    padding: 14px 10px;
  }
}

/* ——— لنداسکیپ موبایل ——— */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    padding-block: 20px;
  }

  .hero-visual {
    min-height: 280px;
    padding-top: 40px;
  }

  .nav-open .site-nav {
    max-height: calc(100dvh - var(--header-h) - 16px);
    overflow-y: auto;
  }
}

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

  *,
  .reveal,
  .phone,
  .float-card,
  .hero-logo-ring,
  .chip-dot {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
