/* ══════════════════════════════════════════════════════════════
   اسمارت‌پلنر — راهنمای قابلیت‌ها
   جهان: «کنسولِ سنجشِ شیشه‌ای» — شیشهٔ تیراژشده، خطِ اسکنِ
   افقی، اعدادِ نیکسی‌تیوب. تیره، عمیق، اندازه‌گیری‌محور.
   ══════════════════════════════════════════════════════════════ */

/* فونتِ محلی — در ایران به CDN گوگل دسترسی نیست */
@font-face {
  font-family: "Vazirmatn"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/static/fonts/Vazirmatn-400.ttf") format("truetype");
}
@font-face {
  font-family: "Vazirmatn"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/static/fonts/Vazirmatn-500.ttf") format("truetype");
}
@font-face {
  font-family: "Vazirmatn"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/static/fonts/Vazirmatn-700.ttf") format("truetype");
}
@font-face {
  font-family: "Vazirmatn"; font-style: normal; font-weight: 900; font-display: swap;
  src: url("/static/fonts/Vazirmatn-900.ttf") format("truetype");
}

:root {
  /* زمینهٔ سبزِ شب */
  --void: #050C09;
  --deep: #07100C;
  --floor: #0A1710;
  --floor-2: #0D1E15;

  /* شیشهٔ سبزِ نیمه‌شفاف */
  --glass: rgba(165, 245, 200, .045);
  --glass-2: rgba(165, 245, 200, .075);
  --edge: rgba(165, 245, 200, .13);
  --edge-hot: rgba(165, 245, 200, .30);

  /* خطِ مهتابی */
  --mint: #A5F5C8;
  --mint-dim: rgba(165, 245, 200, .62);

  /* سبزِ برند */
  --brand: #1B6B4A;
  --brand-lit: #2E9166;

  /* طلاییِ داده — نیکسی‌تیوب */
  --gold: #D4AF37;
  --gold-lit: #F0C94F;
  --gold-dim: rgba(212, 175, 55, .28);

  /* متن */
  --ink: #EAF4EE;
  --ink-2: #A9BFB2;
  --ink-3: #6E8579;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --shell: 1200px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
  background: var(--void);
  color: var(--ink);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* بسترِ کلی: شبکه‌ی خطوطِ شیشه‌ای + هاله‌ی سبز */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(1100px 620px at 78% -12%, rgba(46,145,102,.20), transparent 62%),
    radial-gradient(820px 520px at 6% 14%, rgba(212,175,55,.075), transparent 58%),
    linear-gradient(180deg, var(--deep), var(--void) 40%, var(--deep));
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(165,245,200,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(165,245,200,.028) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(1200px 900px at 50% 8%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(1200px 900px at 50% 8%, #000 20%, transparent 78%);
}

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 28px; }

/* ═══ دکمه‌ها ═══ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 26px; border-radius: var(--r-md);
  font-family: inherit; font-size: 15px; font-weight: 700; letter-spacing: -.01em;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-lit {
  background: var(--mint); color: #04150D; border-color: var(--mint);
  box-shadow: 0 0 0 1px rgba(165,245,200,.18), 0 10px 30px rgba(46,145,102,.26);
}
.btn-lit:hover { background: #C4FFD9; }
.btn-ghost { color: var(--mint-dim); border-color: var(--edge); background: var(--glass); }
.btn-ghost:hover { color: var(--mint); border-color: var(--edge-hot); background: var(--glass-2); }
.btn-lg { padding: 15px 36px; font-size: 16.5px; }

/* ═══ سربرگ ═══ */
.masthead {
  position: sticky; top: 0; z-index: 60;
  background: rgba(7,16,12,.78);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid var(--edge);
}
.masthead-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.mark { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); }
.mark-glyph {
  display: grid; place-items: center; width: 32px; height: 32px;
  border-radius: var(--r-sm); color: #04150D;
  background: linear-gradient(150deg, var(--mint), var(--brand-lit));
}
.mark-text { font-weight: 900; font-size: 18px; letter-spacing: -.02em; }
.masthead-nav { display: flex; gap: 2px; margin-inline-start: auto; }
.masthead-nav a {
  color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 500;
  padding: 7px 13px; border-radius: var(--r-sm); transition: color .16s, background .16s;
}
.masthead-nav a:hover { color: var(--mint); background: var(--glass); }
.masthead-cta {
  color: var(--mint); text-decoration: none; font-size: 14px; font-weight: 700;
  padding: 8px 17px; border-radius: var(--r-sm);
  border: 1px solid var(--edge-hot); background: var(--glass-2);
  transition: background .2s, border-color .2s;
}
.masthead-cta:hover { background: rgba(165,245,200,.14); border-color: var(--mint); }

/* ═══ هیرو ═══ */
.hero { position: relative; padding: 66px 0 76px; }
.hero-grid {
  display: grid; grid-template-columns: 1.06fr .94fr;
  gap: 60px; align-items: center;
}
.hero-copy h1 {
  font-size: clamp(30px, 4.3vw, 51px); font-weight: 900; line-height: 1.28;
  letter-spacing: -.035em; margin: 0 0 20px;
  color: #F2FBF6;
  /* ⚠️ تیتر با وزن و اندازه می‌گوید، نه با گرادیان */
  text-shadow: 0 0 44px rgba(165,245,200,.20);
}
.hero-sub { font-size: 16.5px; color: var(--ink-2); margin: 0 0 30px; max-width: 54ch; }
.hero-cta { display: flex; gap: 11px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-tags { list-style: none; display: flex; gap: 9px; flex-wrap: wrap; padding: 0; margin: 0; }
.hero-tags li {
  font-size: 13px; font-weight: 600; color: var(--mint-dim);
  background: var(--glass); border: 1px solid var(--edge);
  padding: 5px 13px; border-radius: var(--r-sm);
}

/* ═══ نوارِ هفت‌روزه ═══ */
.weekstrip {
  position: relative;
  background: linear-gradient(180deg, var(--glass-2), var(--glass));
  border: 1px solid var(--edge); border-radius: var(--r-lg);
  padding: 18px 20px 20px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(165,245,200,.10), 0 26px 60px rgba(0,0,0,.42);
  overflow: hidden;
}
.weekstrip-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 13px; border-bottom: 1px solid var(--edge);
}
.ws-label { font-size: 12.5px; font-weight: 700; color: var(--mint-dim); letter-spacing: .04em; }
/* خطِ اسکن — حرکتِ آرامِ نور روی لبه‌ی بالا */
.ws-scanline {
  position: absolute; inset-block-start: 0; inset-inline-start: -30%;
  width: 30%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--mint), transparent);
  box-shadow: 0 0 14px 2px rgba(165,245,200,.45);
  animation: sweep 7.5s cubic-bezier(.45,.05,.55,.95) infinite;
}
@keyframes sweep {
  0%   { inset-inline-start: -32%; opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { inset-inline-start: 100%; opacity: 0; }
}

.weekstrip-cols {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 1px; margin: 16px 0 18px;
  background: var(--edge); border: 1px solid var(--edge); border-radius: var(--r-sm);
  overflow: hidden;
}
.wcol {
  background: rgba(7,16,12,.72); padding: 11px 4px 9px;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  position: relative; transition: background .25s;
}
.wcol-day { font-size: 11.5px; font-weight: 700; color: var(--ink-3); }
.wcol-bar {
  width: 100%; height: 62px; border-radius: 2px;
  background: linear-gradient(180deg, rgba(165,245,200,.30), rgba(165,245,200,.07));
  position: relative; overflow: hidden;
}
.wcol-bar::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: var(--h);
  background: linear-gradient(180deg, rgba(165,245,200,.34), rgba(165,245,200,.06));
}
.wcol-num { font-size: 12px; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.wcol.is-today { background: rgba(46,145,102,.20); }
.wcol.is-today .wcol-day { color: var(--mint); }
.wcol.is-today .wcol-num { color: var(--mint); }
.wcol.is-today .wcol-bar {
  background: linear-gradient(180deg, rgba(212,175,55,.34), rgba(212,175,55,.08));
  box-shadow: 0 0 18px rgba(212,175,55,.24);
}
.wcol.is-today .wcol-bar::after {
  background: linear-gradient(180deg, var(--gold), rgba(212,175,55,.20));
}

/* ═══ نیکسی‌تیوب ═══ */
.nixies { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--edge); border: 1px solid var(--edge); border-radius: var(--r-sm); overflow: hidden; }
.nixie {
  background: rgba(7,16,12,.72); padding: 13px 8px 11px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.nixie-tube {
  position: relative; display: grid; place-items: center;
  width: 100%; padding: 9px 6px; border-radius: var(--r-sm);
  background: radial-gradient(ellipse at 50% 118%, rgba(212,175,55,.30), transparent 66%), rgba(5,12,9,.85);
  border: 1px solid var(--gold-dim);
  overflow: hidden;
}
.nixie-tube::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.07), transparent 42%);
}
.nixie-glow {
  font-size: 20px; font-weight: 900; letter-spacing: -.02em;
  color: var(--gold-lit);
  text-shadow: 0 0 5px rgba(240,201,79,.95), 0 0 16px rgba(212,175,55,.65), 0 0 34px rgba(212,175,55,.32);
  font-variant-numeric: tabular-nums;
  animation: nixie-flicker 6.5s steps(1, end) infinite;
}
@keyframes nixie-flicker {
  0%, 88%, 100% { opacity: 1; }
  89% { opacity: .55; }
  91% { opacity: 1; }
  93% { opacity: .70; }
  95% { opacity: 1; }
}
.nixie-cap { font-size: 11px; color: var(--ink-3); text-align: center; line-height: 1.5; }

/* ═══ نوارِ خوانش (شاخص‌ها) ═══ */
.readout {
  border-block: 1px solid var(--edge);
  background: linear-gradient(180deg, rgba(165,245,200,.032), transparent);
}
.readout-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.readout-cell {
  padding: 26px 22px; text-align: center;
  border-inline-start: 1px solid var(--edge);
}
.readout-cell:first-child { border-inline-start: 0; }
.readout-cell b {
  display: block; font-size: 27px; font-weight: 900; letter-spacing: -.03em;
  color: var(--mint); line-height: 1.3;
}
.readout-cell b.num { font-variant-numeric: tabular-nums; }
.readout-cell span { font-size: 13px; color: var(--ink-3); display: block; line-height: 1.75; }
.readout-b { border: 1px solid var(--edge); border-radius: var(--r-lg); overflow: hidden; background: var(--glass); }
.readout-b .readout-cell { border-inline-start: 1px solid var(--edge); }

/* ═══ بخش‌ها ═══ */
.cols-section, .measure, .arena, .tiers { padding: 86px 0; }
.section-head { max-width: 700px; margin: 0 0 48px; }
.section-head h2 {
  font-size: clamp(25px, 3.1vw, 37px); font-weight: 900; line-height: 1.38;
  letter-spacing: -.03em; margin: 0 0 13px;
}
.section-head p { font-size: 16px; color: var(--ink-2); margin: 0; }

/* ═══ تیغه‌های قابلیت ═══ */
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--edge); border: 1px solid var(--edge); border-radius: var(--r-lg); overflow: hidden; }
.col {
  background: var(--floor); padding: 26px 24px 28px;
  transition: background .28s;
  position: relative;
}
.col::after {
  content: ""; position: absolute; inset-block-start: 0; inset-inline: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--mint), transparent);
  opacity: 0; transition: opacity .32s;
}
.col:hover { background: var(--floor-2); }
.col:hover::after { opacity: .55; }
.col.is-accent { background: linear-gradient(170deg, var(--floor-2), rgba(212,175,55,.055)); }
.col.is-accent::after { opacity: .5; }
.col h3 {
  display: flex; align-items: center; gap: 9px;
  font-size: 16.5px; font-weight: 800; letter-spacing: -.02em;
  margin: 0 0 5px; line-height: 1.55;
}
.col-glyph {
  flex: none; display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: var(--r-sm);
  color: var(--mint); background: var(--glass-2);
  border: 1px solid var(--edge);
}
.col.is-accent .col-glyph { color: var(--gold-lit); border-color: var(--gold-dim); background: rgba(212,175,55,.10); }
.col-lede { font-size: 13px; color: var(--ink-3); margin: 0 0 16px; padding-inline-start: 39px; }
.col ul { list-style: none; padding: 0; margin: 0; }
.col li {
  position: relative; padding-inline-start: 17px; margin-bottom: 8px;
  font-size: 13.5px; color: var(--ink-2); line-height: 1.8;
}
.col li:last-child { margin-bottom: 0; }
.col li::before {
  content: ""; position: absolute; inset-inline-start: 2px; inset-block-start: 11px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--brand-lit);
}
.col.is-accent li::before { background: var(--gold); }

/* ═══ AI ═══ */
.ai {
  position: relative; padding: 86px 0; overflow: hidden;
  background:
    radial-gradient(900px 460px at 22% 0%, rgba(46,145,102,.18), transparent 62%),
    linear-gradient(180deg, var(--deep), var(--void));
  border-block: 1px solid var(--edge);
}
.ai-grid { display: grid; grid-template-columns: 1.04fr .96fr; gap: 54px; align-items: center; }
.ai-copy h2 { font-size: clamp(25px, 3.1vw, 37px); font-weight: 900; line-height: 1.36; letter-spacing: -.03em; margin: 0 0 14px; }
.ai-sub { font-size: 16px; color: var(--ink-2); margin: 0 0 26px; }
.ai-list { list-style: none; padding: 0; margin: 0; }
.ai-list li {
  position: relative; padding-inline-start: 26px; margin-bottom: 12px;
  font-size: 15px; color: var(--ink-2); line-height: 1.85;
}
.ai-list li::before {
  content: ""; position: absolute; inset-inline-start: 4px; inset-block-start: 12px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--mint); box-shadow: 0 0 8px rgba(165,245,200,.6);
}
.ai-privacy {
  margin: 26px 0 0; padding: 15px 18px;
  background: var(--glass); border: 1px solid var(--edge); border-radius: var(--r-md);
  font-size: 14px; color: var(--ink-2); line-height: 1.85;
}

/* گفتگو — داخلِ یک کادرِ شیشه‌ای، تا معلق در فضا نماند */
.ai-talk {
  display: flex; flex-direction: column; gap: 11px;
  background: linear-gradient(180deg, var(--glass-2), var(--glass));
  border: 1px solid var(--edge); border-radius: var(--r-lg);
  padding: 20px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(165,245,200,.10), 0 24px 54px rgba(0,0,0,.36);
  position: relative; overflow: hidden;
}
/* خطِ اسکنِ آرام روی لبهٔ بالای کادرِ گفتگو */
.ai-talk::after {
  content: ""; position: absolute; inset-block-start: 0; inset-inline-start: -28%;
  width: 28%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--mint), transparent);
  box-shadow: 0 0 10px 1px rgba(165,245,200,.4);
  animation: sweep 9s cubic-bezier(.45,.05,.55,.95) infinite;
  animation-delay: 2.4s;
}
.bubble {
  padding: 13px 17px; border-radius: var(--r-md); font-size: 14.5px; line-height: 1.85;
  border: 1px solid var(--edge);
}
.bubble-ask {
  align-self: flex-start; max-width: 82%;
  background: var(--glass-2); color: var(--ink); font-weight: 600;
  border-start-start-radius: 3px;
}
.bubble-say {
  align-self: flex-end; max-width: 90%;
  background: linear-gradient(180deg, rgba(46,145,102,.24), rgba(46,145,102,.12));
  color: var(--ink); border-color: var(--edge-hot);
  border-start-end-radius: 3px;
}
.bubble-say b { color: var(--mint); }
.bubble-dots { display: inline-flex; gap: 4px; }
.bubble-dots i {
  width: 5px; height: 5px; border-radius: 50%; background: var(--mint-dim);
  animation: dot 1.3s infinite;
}
.bubble-dots i:nth-child(2) { animation-delay: .18s; }
.bubble-dots i:nth-child(3) { animation-delay: .36s; }
@keyframes dot { 0%, 60%, 100% { opacity: .28; } 30% { opacity: 1; } }

/* ═══ رقابت ═══ */
.arena { background: linear-gradient(180deg, var(--void), var(--deep)); }
.arena-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--edge); border: 1px solid var(--edge); border-radius: var(--r-lg); overflow: hidden; margin-bottom: 20px; }
.pane { background: var(--floor); padding: 26px 24px; }
.pane h3 { font-size: 17px; font-weight: 800; margin: 0 0 15px; letter-spacing: -.02em; }
.pane ul { list-style: none; padding: 0; margin: 0; }
.pane li {
  position: relative; padding-inline-start: 20px; margin-bottom: 8px;
  font-size: 14px; color: var(--ink-2); line-height: 1.8;
}
.pane li::before {
  content: ""; position: absolute; inset-inline-start: 2px; inset-block-start: 11px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--gold);
}
.measure-note { text-align: center; margin: 26px 0 0; font-size: 13.5px; color: var(--ink-3); }

/* ═══ پلن‌ها ═══ */
.tiers { background: linear-gradient(180deg, var(--deep), var(--void)); border-top: 1px solid var(--edge); }
.tier-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--edge); border: 1px solid var(--edge); border-radius: var(--r-lg); overflow: hidden; max-width: 920px; margin: 0 auto; }
.tier { background: var(--floor); padding: 32px 30px; }
.tier.is-vip { background: linear-gradient(168deg, var(--floor-2), rgba(212,175,55,.07)); }
.tier h3 { font-size: 23px; font-weight: 900; letter-spacing: -.025em; margin: 0 0 4px; }
.tier-sub { font-size: 13.5px; color: var(--ink-3); margin: 0 0 22px; }
.tier ul { list-style: none; padding: 0; margin: 0; }
.tier li {
  position: relative; padding-inline-start: 24px; margin-bottom: 10px;
  font-size: 14.5px; color: var(--ink-2); line-height: 1.8;
}
.tier li::before {
  content: ""; position: absolute; inset-inline-start: 3px; inset-block-start: 10px;
  width: 8px; height: 4px; border-inline-start: 2px solid var(--mint);
  border-block-end: 2px solid var(--mint); transform: rotate(-45deg);
}
.tier.is-vip li::before { border-color: var(--gold); }
.tier-note {
  margin: 20px 0 0; padding-top: 16px; border-top: 1px dashed var(--edge);
  font-size: 12.5px; color: var(--ink-3); text-align: center;
}

/* ═══ پایانی ═══ */
.close {
  padding: 92px 0; text-align: center;
  background:
    radial-gradient(760px 380px at 50% 0%, rgba(46,145,102,.24), transparent 66%),
    linear-gradient(160deg, var(--deep), #061710);
  border-top: 1px solid var(--edge);
}
.close h2 { font-size: clamp(26px, 3.5vw, 40px); font-weight: 900; letter-spacing: -.035em; margin: 0 0 13px; }
.close p { font-size: 16.5px; color: var(--ink-2); margin: 0 0 30px; }

.foot { background: #030907; border-top: 1px solid var(--edge); padding: 30px 0; }
.foot-inner { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.foot p { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.foot-dim { color: var(--ink-3) !important; font-size: 12.5px !important; }

/* ═══ واکنش‌گرا ═══ */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 46px; }
  .ai-grid { grid-template-columns: 1fr; gap: 38px; }
  .cols { grid-template-columns: repeat(2, 1fr); }
  .readout-grid { grid-template-columns: repeat(2, 1fr); }
  .readout-cell:nth-child(3) { border-inline-start: 0; }
  .readout-cell:nth-child(n+3) { border-top: 1px solid var(--edge); }
  .masthead-nav { display: none; }
  .masthead-cta { margin-inline-start: auto; }
}
@media (max-width: 680px) {
  .shell { padding: 0 18px; }
  .hero { padding: 42px 0 54px; }
  .cols-section, .measure, .arena, .tiers, .ai, .close { padding: 56px 0; }
  .cols, .arena-grid, .tier-grid { grid-template-columns: 1fr; }
  .nixies { grid-template-columns: 1fr; }
  .weekstrip-cols { gap: 1px; }
  .wcol-bar { height: 46px; }
  .readout-cell { padding: 20px 14px; }
  .foot-inner { flex-direction: column; text-align: center; }
  .col-lede { padding-inline-start: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important; transition: none !important; scroll-behavior: auto !important;
  }
}
