/* ==========================================================================
   ALBAZAR.IR — بازار هوش مصنوعی
   Stylesheet v1.0
   ========================================================================== */

/* ==========================================================================
   1. VARIABLES
   ========================================================================== */
:root {
  /* Brand colors */
  --c-primary:      #7c5ce0;
  --c-primary-dark: #5b21b6;
  --c-primary-soft: #a78bfa;
  --c-primary-glow: rgba(124, 92, 224, 0.25);
  --c-dark:         #0f1b3d;
  --c-dark-2:       #1a2955;
  --c-green:        #2e9e7a;
  --c-green-dark:   #1f7a5c;

  /* Neutrals */
  --c-bg:           #f8f7fc;
  --c-bg-alt:       #ffffff;
  --c-surface:      #ffffff;
  --c-border:       #e5e3ef;
  --c-text:         #1a1a2e;
  --c-text-2:       #4a4a68;
  --c-text-3:       #7a7a95;
  --c-ink:          #0f1b3d;

  /* Semantic */
  --c-info-bg:      #eef2ff;
  --c-info-bd:      #c7d2fe;
  --c-info-tx:      #3730a3;
  --c-warn:         #f59e0b;
  --c-success:      #10b981;

  /* Type */
  --ff-base: "Vazirmatn", "IRANSansX", "Segoe UI", Tahoma, sans-serif;
  --ff-mono: "JetBrains Mono", "Fira Code", Consolas, monospace;

  /* Radius */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-full: 999px;

  /* Shadow */
  --sh-sm: 0 2px 6px rgba(15, 27, 61, 0.06);
  --sh-md: 0 8px 24px rgba(15, 27, 61, 0.08);
  --sh-lg: 0 20px 48px rgba(15, 27, 61, 0.12);
  --sh-glow: 0 12px 32px rgba(124, 92, 224, 0.28);

  /* Layout */
  --w-container: 1240px;
  --header-h: 78px;

  /* Motion */
  --t-fast: 0.18s ease;
  --t-med: 0.32s ease;
  --t-slow: 0.55s ease;
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--ff-base);
  font-size: 16px;
  line-height: 1.8;
  color: var(--c-text);
  background: var(--c-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--c-primary);
  text-decoration: none;
  transition: color var(--t-fast);
}
a:hover { color: var(--c-primary-dark); }

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

ul, ol { list-style: none; }

h1, h2, h3, h4, h5 {
  font-weight: 800;
  line-height: 1.4;
  color: var(--c-ink);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.9rem, 3.4vw + 0.4rem, 3.1rem); }
h2 { font-size: clamp(1.45rem, 2vw + 0.6rem, 2.1rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.02rem; }

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

/* Accessibility helpers */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2.5px solid var(--c-primary);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ==========================================================================
   3. LAYOUT
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--w-container);
  margin-inline: auto;
  padding-inline: clamp(16px, 3vw, 32px);
}

section {
  padding-block: clamp(56px, 7vw, 100px);
}

section + section {
  padding-top: 0;
}

/* ==========================================================================
   4. HEADER & NAV
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--c-border);
  height: var(--header-h);
  display: flex;
  align-items: center;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
}

/* --- Logo --- */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  color: var(--c-ink);
}
.logo:hover { color: var(--c-primary); }

.berry-anim {
  display: inline-block;
  width: 46px;
  height: 46px;
  animation: floaty 5s ease-in-out infinite;
}
.berry-anim svg { width: 100%; height: 100%; }

.brand-text {
  display: flex;
  flex-direction: column;
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.2;
  color: var(--c-ink);
}
.brand-text small {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--c-text-3);
  letter-spacing: 0.08em;
  margin-top: 2px;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-4px) rotate(4deg); }
}

/* --- Burger --- */
.burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  background: var(--c-bg);
  color: var(--c-ink);
  border: 1px solid var(--c-border);
}
.burger svg { width: 24px; height: 24px; }

/* --- Main nav --- */
.main-nav > ul {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 12px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--c-text-2);
  border-radius: 10px;
  white-space: nowrap;
  transition: all var(--t-fast);
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--c-primary);
  background: var(--c-primary-glow);
}

.main-nav .caret {
  width: 14px;
  height: 14px;
  transition: transform var(--t-fast);
}

/* --- Dropdown --- */
.has-child { position: relative; }
.has-child:hover .caret { transform: rotate(180deg); }

.submenu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 260px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;

  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all var(--t-fast);
  z-index: 50;
}

.has-child:hover > .submenu,
.has-child:focus-within > .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu li { width: 100%; }
.submenu a {
  width: 100%;
  padding: 9px 12px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--c-text-2);
  border-radius: 8px;
  white-space: normal;
}
.submenu a:hover {
  background: var(--c-bg);
  color: var(--c-primary);
}

.submenu .ico {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  color: var(--c-primary);
  flex-shrink: 0;
}
.submenu .ico svg { width: 16px; height: 16px; }

/* --- Nav CTA --- */
.nav-cta {
  background: var(--c-primary) !important;
  color: #fff !important;
  border-radius: var(--r-full) !important;
  padding: 9px 18px !important;
  margin-inline-start: 8px;
  box-shadow: var(--sh-glow);
}
.nav-cta:hover {
  background: var(--c-primary-dark) !important;
  transform: translateY(-1px);
}

/* ==========================================================================
   5. TICKER BAR
   ========================================================================== */
.ticker-bar {
  background: var(--c-dark);
  color: #fff;
  overflow: hidden;
  height: 40px;
  display: flex;
  align-items: center;
}

.ticker-inner {
  display: flex;
  gap: 48px;
  animation: ticker 55s linear infinite;
  white-space: nowrap;
  will-change: transform;
}
.ticker-bar:hover .ticker-inner {
  animation-play-state: paused;
}

.ticker-inner span {
  font-size: 0.82rem;
  font-weight: 500;
  color: #e8e6f5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ticker-inner strong { font-size: 1rem; }

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(50%); }
}

/* ==========================================================================
   6. HERO
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(60px, 8vw, 110px);
  background: linear-gradient(180deg, #0f1b3d 0%, #1a2955 100%);
  color: #fff;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.28;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(2px) saturate(120%);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(124, 92, 224, 0.5), transparent 55%),
    radial-gradient(ellipse at 85% 90%, rgba(167, 139, 250, 0.35), transparent 55%);
}

.hero :is(h1, h2, h3) { color: #fff; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--c-primary-soft), var(--c-primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

/* --- Badge --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 8px 16px;
  border-radius: var(--r-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: #e8e6f5;
  margin-bottom: 22px;
  backdrop-filter: blur(6px);
}

.dot-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6); }
  70%  { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

/* --- TL;DR Box --- */
.tldr-box {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(167, 139, 250, 0.35);
  border-right: 4px solid var(--c-primary-soft);
  border-radius: var(--r-md);
  padding: 18px 22px;
  margin-block: 24px;
  backdrop-filter: blur(8px);
}
.tldr-box strong {
  display: block;
  font-size: 0.85rem;
  color: var(--c-primary-soft);
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.tldr-box p {
  font-size: 0.94rem;
  color: #e0ddf0;
  line-height: 1.9;
}

.hero > .container > .hero-grid > div > p {
  color: #cfcbe0;
  font-size: 1rem;
  max-width: 620px;
}
.hero b { color: #fff; }

/* --- Buttons --- */
.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-block: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--r-full);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all var(--t-med);
  cursor: pointer;
  white-space: nowrap;
  border: 2px solid transparent;
}
.btn svg { width: 18px; height: 18px; }

.btn-primary {
  background: var(--c-primary);
  color: #fff;
  box-shadow: var(--sh-glow);
}
.btn-primary:hover {
  background: var(--c-primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(124, 92, 224, 0.4);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: var(--c-primary-soft);
}

.btn-green {
  background: var(--c-green);
  color: #fff;
  box-shadow: 0 10px 24px rgba(46, 158, 122, 0.3);
}
.btn-green:hover {
  background: var(--c-green-dark);
  color: #fff;
  transform: translateY(-2px);
}

/* --- Hero previews --- */
.hero-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-block: 34px;
}

.hp-item {
  position: relative;
  display: block;
  aspect-ratio: 1;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.12);
  transition: all var(--t-med);
}
.hp-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.hp-item span {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 8px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(transparent, rgba(15, 27, 61, 0.85));
}
.hp-item:hover {
  border-color: var(--c-primary-soft);
  transform: translateY(-3px);
}
.hp-item:hover img { transform: scale(1.08); }

/* --- Hero stats --- */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-md);
  backdrop-filter: blur(8px);
}
.hero-stats > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: center;
}
.hero-stats strong {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--c-primary-soft);
}
.hero-stats span {
  font-size: 0.72rem;
  color: #b5b0c9;
}

/* --- Scroll cue --- */
.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  font-size: 0.82rem;
  color: #b5b0c9;
  animation: bob 2.4s ease-in-out infinite;
}
.scroll-cue svg {
  width: 18px;
  height: 18px;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

/* --- Hero visual --- */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
}

.big-berry {
  width: min(100%, 380px);
  filter: drop-shadow(0 20px 40px rgba(124, 92, 224, 0.35));
  animation: bob 6s ease-in-out infinite;
}

.float-berry {
  position: absolute;
  width: 60px;
  height: 60px;
  animation: floaty 5s ease-in-out infinite;
  filter: drop-shadow(0 8px 16px rgba(124, 92, 224, 0.3));
}

/* ==========================================================================
   7. QUICK ACCESS
   ========================================================================== */
.quick-access {
  padding-block: clamp(40px, 5vw, 70px);
  background: var(--c-bg);
  position: relative;
  z-index: 2;
  margin-top: -40px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}

.quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 12px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  text-align: center;
  transition: all var(--t-med);
  color: var(--c-text);
}
.quick-item:hover {
  transform: translateY(-4px);
  border-color: var(--c-primary-soft);
  box-shadow: var(--sh-md);
  color: var(--c-text);
}

.qi-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--c-primary-glow);
  color: var(--c-primary);
  transition: all var(--t-med);
}
.quick-item:hover .qi-icon {
  background: var(--c-primary);
  color: #fff;
  transform: scale(1.06);
}
.qi-icon svg { width: 22px; height: 22px; }

.qi-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--c-ink);
}
.qi-sub {
  font-size: 0.75rem;
  color: var(--c-text-3);
}

/* ==========================================================================
   8. SECTION HEAD
   ========================================================================== */
.sec-head {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: clamp(32px, 4vw, 56px);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--c-primary-glow);
  color: var(--c-primary-dark);
  border-radius: var(--r-full);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}
.kicker svg { width: 15px; height: 15px; }

.sec-head h2 { margin-bottom: 12px; }
.sec-head p {
  color: var(--c-text-2);
  font-size: 1rem;
  line-height: 1.9;
}

/* ==========================================================================
   9. FEATURE SPLIT
   ========================================================================== */
.feature-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  margin-bottom: clamp(32px, 4vw, 56px);
}

.feature-split figure {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-md);
  background: var(--c-surface);
}
.feature-split figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.img-badge {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  background: var(--c-primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--r-full);
  z-index: 2;
}

.feature-split figcaption {
  padding: 14px 18px;
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  font-size: 0.82rem;
  color: var(--c-text-2);
}
.feature-split figcaption strong {
  display: block;
  color: var(--c-ink);
  font-size: 0.88rem;
  margin-bottom: 2px;
}

.feature-text h3 {
  margin-bottom: 14px;
  font-size: 1.35rem;
}

.feature-text p {
  color: var(--c-text-2);
  margin-bottom: 16px;
  line-height: 1.9;
}

.feature-text ul {
  display: grid;
  gap: 10px;
}
.feature-text li {
  position: relative;
  padding-inline-start: 28px;
  font-size: 0.93rem;
  color: var(--c-text-2);
}
.feature-text li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  background: var(--c-primary-glow);
  color: var(--c-primary-dark);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
}

/* ==========================================================================
   10. CARD GRIDS
   ========================================================================== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

/* Generic card */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  transition: all var(--t-med);
}
.card:hover {
  border-color: var(--c-primary-soft);
  box-shadow: var(--sh-md);
  transform: translateY(-3px);
}

.card .icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--c-primary-glow), rgba(167, 139, 250, 0.35));
  color: var(--c-primary-dark);
  margin-bottom: 16px;
}
.card .icon svg { width: 26px; height: 26px; }

.card h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}
.card p {
  color: var(--c-text-2);
  font-size: 0.9rem;
  line-height: 1.9;
}
.card ul {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}
.card li {
  position: relative;
  padding-inline-start: 18px;
  font-size: 0.88rem;
  color: var(--c-text-2);
}
.card li::before {
  content: "•";
  position: absolute;
  inset-inline-start: 0;
  color: var(--c-primary);
  font-weight: 900;
}

/* ==========================================================================
   11. NOTES
   ========================================================================== */
.note {
  display: flex;
  gap: 16px;
  padding: 20px 22px;
  border-radius: var(--r-md);
  border: 1px solid;
  margin-top: 32px;
  align-items: flex-start;
}
.note svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 3px;
}
.note strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 4px;
}
.note > div { font-size: 0.92rem; line-height: 1.9; }

.note.info {
  background: var(--c-info-bg);
  border-color: var(--c-info-bd);
  color: var(--c-info-tx);
}
.note.info svg { color: var(--c-info-tx); }
.note.info strong { color: var(--c-info-tx); }

/* ==========================================================================
   12. STATS BANNER
   ========================================================================== */
.stats-banner {
  background: linear-gradient(135deg, var(--c-dark) 0%, var(--c-primary-dark) 100%);
  color: #fff;
  padding-block: clamp(40px, 5vw, 60px) !important;
}
.stats-banner .stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  text-align: center;
}
.stat-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat-item .num {
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  font-weight: 900;
  background: linear-gradient(120deg, #fff, var(--c-primary-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
}
.stat-item .lbl {
  font-size: 0.82rem;
  color: #cfcbe0;
  font-weight: 500;
}

/* ==========================================================================
   13. TOPIC CARDS
   ========================================================================== */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

.topic-card {
  position: relative;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all var(--t-med);
  display: flex;
  flex-direction: column;
}
.topic-card:hover {
  border-color: var(--c-primary-soft);
  box-shadow: var(--sh-lg);
  transform: translateY(-4px);
}

.topic-card figure {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--c-bg);
}
.topic-card figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.topic-card:hover figure img { transform: scale(1.06); }

.t-body {
  padding: 22px 20px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  position: relative;
}

.t-icon {
  position: absolute;
  top: -22px;
  inset-inline-start: 20px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--c-primary);
  color: #fff;
  box-shadow: var(--sh-glow);
}
.t-icon svg { width: 22px; height: 22px; }

.t-body h3 {
  font-size: 1.05rem;
  margin-block: 14px 8px;
}
.t-body p {
  color: var(--c-text-2);
  font-size: 0.88rem;
  line-height: 1.9;
  margin-bottom: 16px;
  flex-grow: 1;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--c-primary);
  transition: all var(--t-fast);
}
.read-more svg {
  width: 15px;
  height: 15px;
  transition: transform var(--t-fast);
}
.read-more:hover svg { transform: translateX(-4px); }

/* ==========================================================================
   14. ROADMAP
   ========================================================================== */
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  position: relative;
}

.roadmap-item {
  position: relative;
  padding: 28px 22px 24px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  text-align: center;
  transition: all var(--t-med);
}
.roadmap-item:hover {
  border-color: var(--c-primary-soft);
  box-shadow: var(--sh-md);
  transform: translateY(-3px);
}

.step-num {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark));
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: var(--sh-glow);
  border: 3px solid var(--c-bg);
}
.roadmap-item h4 {
  font-size: 1rem;
  margin-bottom: 8px;
  margin-top: 6px;
}
.roadmap-item p {
  font-size: 0.85rem;
  color: var(--c-text-2);
  line-height: 1.85;
}

/* ==========================================================================
   15. POST CARDS
   ========================================================================== */
.post-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: all var(--t-med);
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  border-color: var(--c-primary-soft);
  box-shadow: var(--sh-md);
  transform: translateY(-4px);
}

.post-card figure {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--c-bg);
}
.post-card figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.post-card:hover figure img { transform: scale(1.06); }

.p-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.post-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--c-text-3);
  margin-bottom: 10px;
}
.post-meta svg {
  width: 13px;
  height: 13px;
}

.p-body h3 {
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 8px;
}
.p-body p {
  font-size: 0.83rem;
  color: var(--c-text-2);
  line-height: 1.85;
  margin-bottom: 14px;
  flex-grow: 1;
}

/* ==========================================================================
   16. FAQ
   ========================================================================== */
.faq {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 0;
  overflow: hidden;
  transition: all var(--t-fast);
}
.faq[open] {
  border-color: var(--c-primary-soft);
  box-shadow: var(--sh-sm);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px 18px 46px;
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--c-ink);
  position: relative;
  user-select: none;
  transition: color var(--t-fast);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--c-primary); }

.faq summary::after {
  content: "+";
  position: absolute;
  inset-inline-end: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--c-primary-glow);
  color: var(--c-primary-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.1rem;
  transition: all var(--t-fast);
}
.faq[open] summary::after {
  content: "−";
  background: var(--c-primary);
  color: #fff;
  transform: translateY(-50%) rotate(180deg);
}

.faq p {
  padding: 0 22px 20px;
  font-size: 0.9rem;
  color: var(--c-text-2);
  line-height: 1.95;
}

/* ==========================================================================
   17. CTA BANNER
   ========================================================================== */
.cta-banner {
  position: relative;
  background:
    radial-gradient(circle at 20% 20%, rgba(124, 92, 224, 0.35), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(46, 158, 122, 0.25), transparent 55%),
    linear-gradient(135deg, var(--c-dark) 0%, var(--c-primary-dark) 100%);
  color: #fff;
  border-radius: var(--r-xl);
  padding: clamp(32px, 5vw, 56px) clamp(24px, 4vw, 56px);
  text-align: center;
  overflow: hidden;
  box-shadow: var(--sh-lg);
}

.cta-banner h2 {
  color: #fff;
  margin-bottom: 14px;
}
.cta-banner p {
  color: #d5d0e6;
  font-size: 0.98rem;
  max-width: 700px;
  margin-inline: auto;
  line-height: 1.95;
}
.cta-banner b { color: #fff; }

.cta-btns {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-block: 26px 22px;
}

.cta-owner {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #cfcbe0;
  line-height: 1.9;
}
.cta-owner b { color: #fff; }

.eitaa-id {
  display: block;
  margin-top: 14px;
  font-family: var(--ff-mono);
  font-size: 0.82rem;
  color: #a78bfa;
  direction: ltr;
  word-break: break-all;
}

/* ==========================================================================
   18. FOOTER
   ========================================================================== */
.site-footer {
  background: var(--c-dark);
  color: #c7c2d8;
  padding-block: clamp(44px, 6vw, 72px) 0;
  margin-top: clamp(40px, 6vw, 80px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
}
.footer-logo svg {
  width: 36px;
  height: 36px;
}

.footer-desc {
  font-size: 0.88rem;
  line-height: 1.95;
  margin-bottom: 20px;
  color: #a9a4bd;
}
.footer-desc b { color: #fff; }

.footer-contact {
  font-size: 0.85rem;
  line-height: 2;
  color: #a9a4bd;
}
.footer-contact strong { color: #fff; }
.footer-contact a {
  color: var(--c-primary-soft);
  font-family: var(--ff-mono);
}

.site-footer h4 {
  color: #fff;
  font-size: 0.92rem;
  margin-bottom: 16px;
  font-weight: 700;
}

.site-footer ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.site-footer li {
  font-size: 0.85rem;
  color: #a9a4bd;
}
.site-footer nav a {
  color: #a9a4bd;
  transition: color var(--t-fast);
}
.site-footer nav a:hover {
  color: var(--c-primary-soft);
}

.footer-bottom {
  padding-block: 22px;
  text-align: center;
  font-size: 0.82rem;
  color: #8883a0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.footer-bottom b { color: var(--c-primary-soft); }

/* ==========================================================================
   19. TO TOP BUTTON
   ========================================================================== */
#toTop {
  position: fixed;
  bottom: 24px;
  inset-inline-end: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--c-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sh-glow);
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: all var(--t-med);
}
#toTop svg { width: 22px; height: 22px; }
#toTop.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#toTop:hover {
  background: var(--c-primary-dark);
  transform: translateY(-3px);
}

/* ==========================================================================
   20. REVEAL ANIMATION
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   21. RESPONSIVE
   ========================================================================== */

/* Tablet — up to 1024px */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-visual { min-height: 280px; order: -1; }
  .big-berry { width: 240px; }
  .hero-btns { justify-content: center; }
  .tldr-box { text-align: right; }
  .scroll-cue { display: none; }

  .feature-split {
    grid-template-columns: 1fr;
  }

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

/* Mobile — up to 768px */
@media (max-width: 768px) {
  :root { --header-h: 66px; }

  /* Mobile nav */
  .burger { display: inline-flex; }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    inset-inline: 0;
    background: var(--c-surface);
    border-bottom: 1px solid var(--c-border);
    box-shadow: var(--sh-lg);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--t-med);
    z-index: 99;
  }
  .main-nav.open {
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .main-nav > ul {
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    gap: 2px;
  }
  .main-nav > ul > li { width: 100%; }
  .main-nav a {
    width: 100%;
    padding: 12px 14px;
    font-size: 0.95rem;
  }
  .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    border-radius: 0;
    padding: 4px 0 4px 12px;
    min-width: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--t-med);
    background: transparent;
  }
  .has-child.open > .submenu {
    max-height: 500px;
    padding-block: 4px;
  }
  .has-child.open .caret { transform: rotate(180deg); }

  /* Hero */
  .hero { padding-block: 44px; }
  .hero-preview { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .hp-item span { font-size: 0.68rem; padding: 6px 4px; }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .hero-stats strong { font-size: 1rem; }

  /* Sections */
  section { padding-block: 48px; }
  .sec-head { margin-bottom: 28px; }

  .quick-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
  }
  .quick-item { padding: 14px 8px; }
  .qi-icon { width: 38px; height: 38px; }
  .qi-icon svg { width: 18px; height: 18px; }

  .card { padding: 22px 20px; }

  /* CTA */
  .cta-banner { border-radius: var(--r-md); }
  .cta-btns { flex-direction: column; align-items: stretch; }
  .cta-btns .btn { justify-content: center; width: 100%; }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* ToTop */
  #toTop { bottom: 16px; inset-inline-end: 16px; width: 42px; height: 42px; }

  /* Ticker */
  .ticker-bar { height: 36px; }
  .ticker-inner span { font-size: 0.75rem; }
  .ticker-inner { animation-duration: 40s; }
}

/* Small mobile — up to 480px */
@media (max-width: 480px) {
  .brand-text { font-size: 0.9rem; }
  .brand-text small { font-size: 0.58rem; }
  .berry-anim { width: 38px; height: 38px; }

  .hero h1 { font-size: 1.55rem; }
  .hero-preview { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .tldr-box { padding: 14px 16px; }
  .tldr-box p { font-size: 0.85rem; }

  .btn { padding: 12px 20px; font-size: 0.88rem; }

  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .topic-grid { grid-template-columns: 1fr; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }

  .roadmap-grid { grid-template-columns: 1fr; }

  .faq summary { padding: 14px 40px 14px 16px; font-size: 0.86rem; }
}

/* ==========================================================================
   22. MOTION REDUCTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   23. PRINT
   ========================================================================== */
@media print {
  .site-header, .ticker-bar, #toTop, .cta-banner, .site-footer { display: none; }
  body { background: #fff; color: #000; }
  .hero { background: #fff; color: #000; }
  .hero h1, .hero p, .tldr-box p { color: #000; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 0.75em; color: #666; }
}