/* ==========================================================================
   Home page styles
   ========================================================================== */

/* ---- HERO --------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(3rem, 8vw, 6rem);
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(45,212,255,.12), transparent 60%),
    radial-gradient(700px 500px at 5% 110%, rgba(255,176,32,.08), transparent 60%),
    var(--ink);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(2rem, 5vw, 4rem); }
.hero h1 { font-size: clamp(2rem, 5.5vw, 3.4rem); margin-block: 1rem 1.1rem; }
.hero h1 .accent { color: var(--cyan); }
.hero .lead { font-size: 1.12rem; margin-bottom: 1.8rem; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 1.6rem; margin-top: 2rem; flex-wrap: wrap; }
.hero-trust div { display: flex; flex-direction: column; }
.hero-trust b { font-size: 1.5rem; color: var(--white); font-weight: 900; }
.hero-trust span { font-size: .85rem; color: var(--muted); }

/* ---- Circuit board signature -------------------------------------------- */
.board {
  position: relative; aspect-ratio: 1/1; border-radius: 24px;
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); box-shadow: var(--shadow);
  overflow: hidden;
}
.board svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.trace { fill: none; stroke: rgba(45,212,255,.35); stroke-width: 1.5; }
.trace-live { fill: none; stroke: var(--cyan); stroke-width: 2;
  stroke-dasharray: 14 220; filter: drop-shadow(0 0 5px var(--cyan));
  animation: flow 4s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -234; } }
.node { fill: var(--panel); stroke: var(--cyan); stroke-width: 1.5; }
.node-pulse { fill: var(--cyan); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity:.4; r:3; } 50% { opacity:1; r:5; } }
.chip { fill: var(--ink-2); stroke: var(--amber); stroke-width: 1.5; }
.chip-label { fill: var(--amber); font: 700 13px Vazirmatn; }

/* ---- Categories --------------------------------------------------------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2.5rem; }
.cat-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.25rem; transition: transform .18s, border-color .18s, box-shadow .18s;
}
.cat-card:hover { transform: translateY(-4px); border-color: rgba(45,212,255,.5); box-shadow: var(--glow-cyan); }
.cat-icon { width: 52px; height: 52px; border-radius: 12px; background: rgba(45,212,255,.1);
  display: grid; place-items: center; margin-bottom: 1rem; color: var(--cyan); }
.cat-icon svg { width: 28px; height: 28px; }
.cat-card h3 { font-size: 1.1rem; color: var(--white); }
.cat-card p { font-size: .9rem; color: var(--muted); margin-top: .35rem; }

/* ---- How it works ------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.step { position: relative; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 2rem 1.5rem; }
.step-num { font-size: 2.4rem; font-weight: 900; color: rgba(45,212,255,.25); line-height: 1; }
.step h3 { margin-block: .6rem .4rem; font-size: 1.2rem; color: var(--white); }
.step p { color: var(--muted); font-size: .95rem; }

/* ---- Why us ------------------------------------------------------------- */
.why { background: var(--ink-2); border-block: 1px solid var(--line); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-top: 2.5rem; }
.why-card { text-align: center; padding: 1.5rem 1rem; }
.why-card .why-icon { width: 60px; height: 60px; margin: 0 auto 1rem; border-radius: 16px;
  background: rgba(255,176,32,.1); display: grid; place-items: center; color: var(--amber); }
.why-card .why-icon svg { width: 30px; height: 30px; }
.why-card h3 { font-size: 1.05rem; color: var(--white); }
.why-card p { font-size: .9rem; color: var(--muted); margin-top: .4rem; }

/* ---- Latest blog -------------------------------------------------------- */
.blog-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.post-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .18s, border-color .18s; }
.post-card:hover { transform: translateY(-4px); border-color: rgba(45,212,255,.4); }
.post-thumb { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--panel-2), var(--ink-2));
  position: relative; display: grid; place-items: center; }
.post-thumb svg { width: 48px; height: 48px; color: var(--cyan); opacity: .5; }
.post-tag { position: absolute; inset-block-start: .8rem; inset-inline-end: .8rem;
  background: rgba(11,15,24,.8); color: var(--cyan); font-size: .75rem; font-weight: 700;
  padding: .25rem .7rem; border-radius: 100px; border: 1px solid rgba(45,212,255,.3); }
.post-body { padding: 1.25rem; }
.post-body time { font-size: .8rem; color: var(--muted); }
.post-body h3 { font-size: 1.1rem; color: var(--white); margin-block: .5rem; }
.post-body p { font-size: .92rem; color: var(--muted); }
.post-body .more { color: var(--cyan); font-weight: 700; font-size: .9rem; margin-top: .8rem; display: inline-block; }

/* ---- Shop teaser -------------------------------------------------------- */
.shop-teaser { position: relative; overflow: hidden; }
.teaser-box { background:
    radial-gradient(600px 300px at 80% 20%, rgba(255,176,32,.12), transparent),
    var(--panel);
  border: 1px solid var(--line); border-radius: 24px; padding: clamp(2.5rem, 6vw, 4rem);
  text-align: center; }
.teaser-box .eyebrow { margin-bottom: 1rem; }
.teaser-box h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
.teaser-box p { color: var(--muted); max-width: 55ch; margin: 1rem auto 0; }

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .board { max-width: 420px; margin-inline: auto; order: -1; }
  .cat-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .steps, .post-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .cat-grid, .why-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1; justify-content: center; }
}

/* ---- Reveal-on-scroll --------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].in { opacity: 1; transform: none; }
