@import url("https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800;900&display=swap");

:root {
  --bg-0: #05070d;
  --bg-1: #0a1120;
  --bg-2: #0f1a30;
  --bg-3: #14213d;
  --panel-line: rgba(212, 175, 55, 0.16);
  --panel-line-strong: rgba(212, 175, 55, 0.32);

  --gold-1: #ffe9a8;
  --gold-2: #e8bd52;
  --gold-3: #b8862c;
  --gold-grad: linear-gradient(120deg, var(--gold-1), var(--gold-2) 55%, var(--gold-3));

  --ink-0: #f6f3ea;
  --ink-1: #c7d0e2;
  --ink-2: #8a93ab;
  --ink-3: #5b6479;

  --cyan: #49d9e8;

  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-gold: 0 10px 40px -12px rgba(232, 189, 82, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: "Vazirmatn", sans-serif;
  background: var(--bg-0);
  color: var(--ink-1);
  direction: rtl;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1100px 620px at 85% -8%, rgba(232, 189, 82, 0.10), transparent 60%),
    radial-gradient(900px 560px at -10% 30%, rgba(73, 217, 232, 0.06), transparent 60%),
    radial-gradient(1200px 700px at 50% 115%, rgba(232, 189, 82, 0.07), transparent 60%);
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

.icon { width: 20px; height: 20px; flex-shrink: 0; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-scale { opacity: 0; transform: scale(.92); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal-scale.in { opacity: 1; transform: scale(1); }
.stagger.in .reveal:nth-child(1) { transition-delay: .05s; }
.stagger.in .reveal:nth-child(2) { transition-delay: .12s; }
.stagger.in .reveal:nth-child(3) { transition-delay: .19s; }
.stagger.in .reveal:nth-child(4) { transition-delay: .26s; }
.stagger.in .reveal:nth-child(5) { transition-delay: .33s; }

/* ================= HEADER ================= */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 200;
  padding: 20px 0;
  transition: padding .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease), backdrop-filter .35s ease;
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(6, 10, 20, 0);
  backdrop-filter: blur(0px);
  transition: inherit;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { padding: 12px 0; }
.site-header.scrolled::before {
  background: rgba(6, 10, 20, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--panel-line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 60px; height: 60px; border-radius: 18px;
  background: #ffffff;
  border: 1px solid var(--panel-line-strong);
  display: grid; place-items: center; color: var(--gold-2);
  box-shadow: var(--shadow-gold);
  overflow: hidden;
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text b { color: var(--ink-0); font-weight: 800; font-size: 18px; }
.brand-text span { font-size: 11.5px; color: var(--gold-2); letter-spacing: .5px; }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  padding: 9px 16px; border-radius: 999px; font-size: 14.5px; color: var(--ink-1);
  transition: color .25s ease, background .25s ease;
}
.main-nav a:hover, .main-nav a.active { color: var(--gold-1); background: rgba(232,189,82,0.08); }

.header-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 999px;
  background: var(--gold-grad); color: #241705; font-weight: 700; font-size: 14px;
  box-shadow: var(--shadow-gold);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.header-cta:hover { transform: translateY(-2px); box-shadow: 0 16px 44px -10px rgba(232,189,82,.55); }
.nav-toggle { display: none; }
.mobile-quick-toolbar {
  display: none;
}
.mobile-quick-toolbar a {
  white-space: nowrap;
}

/* ================= HERO ================= */
.hero { position: relative; padding: 152px 0 76px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--panel-line-strong);
  color: var(--gold-1); font-size: 13px; font-weight: 600; background: rgba(232,189,82,.06);
  margin-bottom: 22px;
}
.eyebrow .icon { width: 15px; height: 15px; animation: sparkle-spin 3.5s linear infinite; }
@keyframes sparkle-spin { to { transform: rotate(360deg); } }

.hero h1 {
  font-size: clamp(34px, 4.6vw, 58px); font-weight: 800; line-height: 1.22; color: var(--ink-0); margin: 0 0 20px;
}
.hero h1 .gold {
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% auto; animation: shine 5s linear infinite;
}
@keyframes shine { to { background-position: 200% center; } }

.hero p.lead { font-size: 17px; line-height: 1.9; color: var(--ink-1); max-width: 540px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn { display: inline-flex; align-items: center; gap: 9px; padding: 15px 26px; border-radius: 14px; font-size: 15px; font-weight: 700; border: none; transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s ease; }
.btn-primary { background: var(--gold-grad); color: #241705; box-shadow: var(--shadow-gold); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 50px -12px rgba(232,189,82,.55); }
.btn-ghost { background: rgba(255,255,255,.03); color: var(--ink-0); border: 1px solid var(--panel-line-strong); }
.btn-ghost:hover { background: rgba(232,189,82,.08); border-color: var(--gold-2); transform: translateY(-3px); }
.btn-ghost .icon { color: var(--gold-2); }

.hero-visual { position: relative; height: 460px; }
.hero-base-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .35s ease; z-index: 2; }
.hero-visual.has-base-image .hero-base-image { opacity: 1; }
.hero-visual.has-base-image .hero-art,
.hero-visual.has-base-image .hero-orbit,
.hero-visual.has-base-image .hero-particle { opacity: 0; pointer-events: none; }
.hero-art { width: 100%; height: 100%; }
.hero-orbit {
  position: absolute; inset: 0; border-radius: 50%; margin: auto; width: 360px; height: 360px;
  border: 1px dashed var(--panel-line-strong); animation: spin 34s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero-particle { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 12px 3px rgba(232,189,82,.7); animation: float 6s ease-in-out infinite; }

.stats-bar {
  position: relative; z-index: 2; margin-top: -30px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.stat-card {
  background: linear-gradient(160deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--panel-line); border-radius: var(--radius-md);
  padding: 22px 20px; display: flex; align-items: center; gap: 14px;
  transition: transform .35s var(--ease), border-color .35s ease, box-shadow .35s ease;
}
.stat-card:hover { transform: translateY(-6px); border-color: var(--panel-line-strong); box-shadow: var(--shadow-gold); }
.stat-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(232,189,82,.09); color: var(--gold-2); flex-shrink: 0; }
.stat-num { font-size: 26px; font-weight: 800; color: var(--ink-0); }
.stat-label { font-size: 13px; color: var(--ink-2); }

/* ================= SECTION HEAD ================= */
.section { padding: 86px 0; position: relative; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 38px; }
.fields-wrap .section-head { margin: 42px auto 28px; }
.section-tag { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-2); font-weight: 700; font-size: 13.5px; letter-spacing: .4px; margin-bottom: 14px; }
.section-tag::before, .section-tag::after { content: ""; width: 26px; height: 1px; background: var(--panel-line-strong); }
.section-head h2 { font-size: clamp(26px, 3.2vw, 38px); color: var(--ink-0); font-weight: 800; margin: 0 0 14px; }
.section-head p { color: var(--ink-2); font-size: 15.5px; line-height: 1.8; }

/* ================= FIELDS GRID ================= */
.fields-wrap { position: relative; }
.suggestions-showcase {
  position: relative;
  overflow: hidden;
  max-width: 900px;
  height: clamp(340px, 50vw, 520px);
  margin: 0 auto 30px;
  padding: 0;
  border-radius: 26px;
  border: 1px solid var(--panel-line-strong);
  background:
    radial-gradient(circle at 50% 0%, rgba(255,233,168,.22), transparent 30%),
    radial-gradient(circle at 20% 92%, rgba(73,217,232,.13), transparent 32%),
    linear-gradient(135deg, rgba(73, 217, 232, 0.10), transparent 36%),
    linear-gradient(160deg, rgba(255,255,255,.075), rgba(255,255,255,.018));
  box-shadow: 0 38px 100px -40px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.05), var(--shadow-gold);
  perspective: 1100px;
}
.suggestions-copy {
  position: relative;
  z-index: 4;
  max-width: 650px;
  margin: 0 auto 22px;
  text-align: center;
}
.suggestions-copy h3 {
  margin: 0 0 10px;
  color: var(--ink-0);
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 800;
}
.suggestions-copy p {
  margin: 0;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.8;
}
.suggestions-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5,7,13,.92), transparent 18%, transparent 82%, rgba(5,7,13,.92)),
    linear-gradient(180deg, rgba(255,255,255,.06), transparent 28%);
  z-index: 3;
}
.suggestions-glow {
  position: absolute;
  inset: 8px;
  border-radius: 20px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(232,189,82,.22), transparent 18%, transparent 82%, rgba(73,217,232,.16));
  opacity: .75;
  z-index: 2;
}
.suggestions-track {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
}
.suggestion-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(40%, 270px);
  aspect-ratio: 9 / 16;
  padding: 0;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.12);
  background:
    radial-gradient(circle at 50% 18%, rgba(232,189,82,.14), transparent 42%),
    #05070d;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.66);
  filter: saturate(.76) brightness(.70);
  box-shadow: 0 18px 42px -30px rgba(0,0,0,.75), inset 0 1px 0 rgba(255,255,255,.08);
  transition: transform .8s var(--ease), opacity .8s var(--ease), filter .8s var(--ease), border-color .8s ease, box-shadow .8s ease;
}
.suggestion-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(5,7,13,.56), transparent 52%),
    linear-gradient(135deg, rgba(255,255,255,.12), transparent 26%);
  pointer-events: none;
}
.suggestion-card.is-current {
  z-index: 4;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.08);
  filter: saturate(1.12) brightness(1.04);
  border-color: rgba(255,233,168,.72);
  box-shadow: 0 38px 92px -34px rgba(0,0,0,.95), 0 0 38px -12px rgba(232,189,82,.82);
}
.suggestion-card.is-current::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: inset 0 0 26px rgba(255,233,168,.12);
  z-index: 2;
}
.suggestion-card.is-prev { z-index: 2; opacity: .58; transform: translate(-116%, -44%) scale(.82) rotate(-5deg); }
.suggestion-card.is-next { z-index: 2; opacity: .58; transform: translate(16%, -44%) scale(.82) rotate(5deg); }
.suggestion-card.is-hidden { pointer-events: none; }
.suggestion-card video,
.suggestion-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.suggestion-play {
  position: absolute;
  inset: 0;
  margin: auto;
  z-index: 5;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  border: 1px solid var(--panel-line-strong);
  background: linear-gradient(140deg, rgba(255,233,168,.95), rgba(232,189,82,.92));
  color: #241705;
  box-shadow: 0 18px 42px -16px rgba(232,189,82,.75), 0 0 0 8px rgba(232,189,82,.08);
  transition: transform .35s var(--ease), opacity .25s ease, filter .25s ease;
}
.suggestion-play:hover {
  transform: scale(1.08);
  filter: brightness(1.08);
}
.suggestion-play .icon {
  width: 24px;
  height: 24px;
}
.suggestion-card.is-playing .suggestion-play {
  opacity: .2;
  transform: scale(.86);
}
.fields-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
.field-card {
  position: relative; border-radius: var(--radius-md); overflow: hidden;
  background: var(--bg-2); border: 1px solid var(--panel-line);
  aspect-ratio: 4 / 4.6; cursor: pointer;
  transition: transform .45s var(--ease), border-color .4s ease, box-shadow .45s ease;
}
.field-card:hover { transform: translateY(-10px) scale(1.015); border-color: var(--gold-2); box-shadow: 0 26px 60px -18px rgba(0,0,0,.6), var(--shadow-gold); }
.field-card:hover .field-media { transform: scale(1.08); }
.field-card:hover .field-icon-wrap { transform: translateY(-4px); background: var(--gold-grad); color: #241705; }

.field-media { position: absolute; inset: 0; transition: transform .7s var(--ease); }
.field-media svg, .field-media img { width: 100%; height: 100%; object-fit: cover; }
.field-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(5,7,13,.96) 8%, rgba(5,7,13,.55) 55%, rgba(5,7,13,.15));
}

.field-icon-wrap {
  position: absolute; top: 14px; inset-inline-end: 14px; z-index: 3;
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(255,255,255,.06); border: 1px solid var(--panel-line-strong); color: var(--gold-2);
  transition: transform .35s var(--ease), background .35s ease, color .35s ease;
}
.field-icon-wrap .icon { width: 19px; height: 19px; }

.field-body { position: absolute; bottom: 0; inset-inline: 0; z-index: 3; padding: 18px; }
.field-body h3 { color: var(--ink-0); font-size: 17px; font-weight: 800; margin: 0 0 4px; }
.field-body .sub { color: var(--gold-2); font-size: 11.5px; font-weight: 600; margin-bottom: 8px; display: block; }
.field-body p { color: var(--ink-2); font-size: 12.5px; line-height: 1.7; margin: 0 0 10px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .4s var(--ease), opacity .35s ease; }
.field-card:hover .field-body p { max-height: 70px; opacity: 1; }
.field-link { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--gold-1); }
.field-link .icon { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.field-card:hover .field-link .icon { transform: translateX(-4px); }

/* ================= VIDEO SECTION ================= */
.video-section .container { position: relative; }
.video-frame {
  position: relative; border-radius: 28px; overflow: hidden; border: 1px solid var(--panel-line-strong);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.7);
  background: linear-gradient(160deg, var(--bg-3), var(--bg-1));
}
.video-frame video, .video-frame .video-fallback { width: 100%; aspect-ratio: 16/8; object-fit: cover; }
.video-fallback { display: flex; align-items: center; justify-content: center; }
.video-play-btn {
  position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border-radius: 50%;
  background: var(--gold-grad); color: #241705; display: grid; place-items: center; border: none;
  box-shadow: 0 0 0 0 rgba(232,189,82,.5); animation: pulse-ring 2.4s ease-out infinite;
}
.video-play-btn .icon { width: 30px; height: 30px; }
.video-play-btn.hidden { display: none; }
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(232,189,82,.45);} 70% { box-shadow: 0 0 0 26px rgba(232,189,82,0);} 100% { box-shadow: 0 0 0 0 rgba(232,189,82,0);} }

/* ================= CTA BANNER ================= */
.cta-banner {
  position: relative; border-radius: 30px; overflow: hidden; padding: 56px;
  background: linear-gradient(120deg, #101d38, #0a1120 60%);
  border: 1px solid var(--panel-line-strong);
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.cta-banner::before {
  content: ""; position: absolute; width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,189,82,.16), transparent 70%);
  top: -220px; inset-inline-end: -160px;
}
.cta-left { display: flex; align-items: center; gap: 20px; position: relative; z-index: 1; }
.cta-cap { width: 68px; height: 68px; border-radius: 18px; background: rgba(232,189,82,.1); border: 1px solid var(--panel-line-strong); display: grid; place-items: center; color: var(--gold-2); }
.cta-cap .icon { width: 34px; height: 34px; }
.cta-left h3 { color: var(--ink-0); font-size: 24px; margin: 0 0 6px; font-weight: 800; }
.cta-left p { color: var(--ink-2); margin: 0; font-size: 14.5px; }

/* ================= FOOTER ================= */
.site-footer { border-top: 1px solid var(--panel-line); padding: 70px 0 26px; background: var(--bg-1); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 40px; margin-bottom: 46px; }
.footer-brand p { color: var(--ink-2); font-size: 13.5px; line-height: 1.9; margin: 14px 0 18px; }
.social-row { display: flex; gap: 10px; }
.social-row a { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--panel-line-strong); display: grid; place-items: center; color: var(--gold-2); transition: background .3s ease, transform .3s ease; }
.social-row a:hover { background: var(--gold-grad); color: #241705; transform: translateY(-3px); }
.footer-col h4 { color: var(--ink-0); font-size: 15px; margin: 0 0 18px; font-weight: 700; }
.footer-col li { margin-bottom: 11px; }
.footer-col a { color: var(--ink-2); font-size: 13.5px; transition: color .25s ease; }
.footer-col a:hover { color: var(--gold-1); }
.footer-col .contact-row { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 13.5px; }
.footer-col .contact-row .icon { width: 16px; height: 16px; color: var(--gold-2); flex-shrink: 0; }
.footer-bottom { border-top: 1px solid var(--panel-line); padding-top: 22px; display: flex; justify-content: space-between; color: var(--ink-3); font-size: 12.5px; flex-wrap: wrap; gap: 10px; }

/* ================= FLOATING NOTIFICATION ================= */
.float-notify {
  position: fixed; bottom: 26px; right: 26px; z-index: 500; width: 320px;
  background: linear-gradient(160deg, var(--bg-3), var(--bg-1));
  border: 1px solid var(--panel-line-strong); border-radius: 20px; padding: 18px;
  box-shadow: 0 30px 70px -20px rgba(0,0,0,.65), var(--shadow-gold);
  transform: translateY(140%) scale(.92); opacity: 0; transition: transform .6s var(--ease), opacity .6s var(--ease);
  pointer-events: none;
}
.float-notify.show { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }
.float-notify .fn-top { display: flex; align-items: flex-start; gap: 12px; }
.fn-avatar { width: 42px; height: 42px; border-radius: 12px; background: var(--gold-grad); color: #241705; display: grid; place-items: center; flex-shrink: 0; animation: bob 2.6s ease-in-out infinite; }
.fn-avatar .icon { width: 22px; height: 22px; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.fn-text b { display: block; color: var(--ink-0); font-size: 14px; margin-bottom: 4px; }
.fn-text p { margin: 0; font-size: 12.5px; color: var(--ink-2); line-height: 1.7; }
.fn-close { position: absolute; top: 10px; left: 10px; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.06); border: 1px solid var(--panel-line); color: var(--ink-2); display: grid; place-items: center; transition: background .25s ease, color .25s ease; }
.fn-close .icon { width: 11px; height: 11px; }
.fn-close:hover { background: rgba(255,255,255,.12); color: var(--ink-0); }
.fn-actions { display: flex; gap: 8px; margin-top: 14px; }
.fn-actions button { flex: 1; padding: 10px; border-radius: 10px; font-size: 12.5px; font-weight: 700; border: none; }
.fn-cta { background: var(--gold-grad); color: #241705; }
.fn-cta:hover { filter: brightness(1.08); }
.fn-later { background: transparent; border: 1px solid var(--panel-line-strong) !important; color: var(--ink-2); }
.fn-later:hover { color: var(--ink-0); }
.fn-pulse { position: absolute; inset: -1px; border-radius: 20px; border: 1px solid var(--gold-2); opacity: 0; animation: notify-pulse 2.6s ease-out 1; pointer-events: none; }
@keyframes notify-pulse { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.06); } }

/* count animation helper */
[data-count] { font-variant-numeric: tabular-nums; }

@keyframes float { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-14px);} }

/* ================= RESPONSIVE ================= */
@media (max-width: 1080px) {
  .fields-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 320px; order: -1; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .main-nav { display: none; }
  .mobile-quick-toolbar {
    position: fixed;
    top: 84px;
    inset-inline: 12px;
    z-index: 190;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px;
    border: 1px solid var(--panel-line);
    border-radius: 16px;
    background: rgba(6, 10, 20, 0.76);
    backdrop-filter: blur(14px);
    box-shadow: 0 16px 38px -24px rgba(0,0,0,.85);
    scrollbar-width: none;
  }
  .mobile-quick-toolbar::-webkit-scrollbar { display: none; }
  .mobile-quick-toolbar a {
    flex: 1 0 auto;
    min-width: max-content;
    padding: 9px 13px;
    border-radius: 999px;
    background: rgba(232,189,82,.08);
    border: 1px solid rgba(232,189,82,.14);
    color: var(--gold-1);
    font-size: 12.5px;
    font-weight: 700;
    text-align: center;
  }
  .nav-toggle { display: none; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--panel-line-strong); background: transparent; color: var(--ink-0); }
  .suggestions-showcase { height: clamp(300px, 60vw, 460px); }
  .suggestion-card { width: min(46%, 250px); }
}
@media (max-width: 640px) {
  .fields-grid { grid-template-columns: repeat(2, 1fr); }
  .suggestions-showcase { height: 360px; margin-bottom: 28px; border-radius: 20px; }
  .suggestion-card { width: min(58%, 210px); border-radius: 16px; }
  .suggestion-card.is-current { transform: translate(-50%, -50%) scale(1.04); }
  .suggestion-card.is-prev { transform: translate(-96%, -44%) scale(.76) rotate(-5deg); }
  .suggestion-card.is-next { transform: translate(-4%, -44%) scale(.76) rotate(5deg); }
  .suggestion-play { width: 34px; height: 34px; border-radius: 12px; }
  .suggestion-play .icon { width: 18px; height: 18px; }
  .cta-banner { flex-direction: column; text-align: center; padding: 36px 24px; }
  .cta-left { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .float-notify { right: 14px; bottom: 14px; width: calc(100% - 28px); }
  .section { padding: 64px 0; }
  .hero { padding-top: 156px; }
  .breadcrumb { padding-top: 176px; }
  .brand-mark { width: 54px; height: 54px; }
  .brand-text b { font-size: 16px; }
}

/* ================= FIELD PAGE ================= */
.breadcrumb { padding: 150px 0 0; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.breadcrumb a { color: var(--ink-2); transition: color .25s ease; }
.breadcrumb a:hover { color: var(--gold-1); }
.breadcrumb .icon { width: 13px; height: 13px; }
.breadcrumb .current { color: var(--gold-2); }

.field-hero { padding: 26px 0 60px; }
.field-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.field-hero-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--panel-line-strong); box-shadow: 0 40px 90px -30px rgba(0,0,0,.7); aspect-ratio: 4/3.3; }
.field-hero-media video, .field-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.field-hero-media .field-media-fallback { width: 100%; height: 100%; }
.field-hero-media .field-media-fallback svg { width: 100%; height: 100%; }

.field-tag { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-2); font-size: 13px; font-weight: 700; background: rgba(232,189,82,.08); border: 1px solid var(--panel-line-strong); padding: 6px 14px; border-radius: 999px; margin-bottom: 18px; }
.field-hero h1 { font-size: clamp(30px, 4vw, 46px); color: var(--ink-0); font-weight: 800; margin: 0 0 8px; }
.field-hero .field-sub { color: var(--gold-1); font-size: 15px; font-weight: 600; margin-bottom: 22px; display: block; }
.field-hero .field-desc { font-size: 16.5px; line-height: 2; color: var(--ink-1); margin-bottom: 30px; }
.field-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.field-highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 20px; }
.hl-card { background: var(--bg-2); border: 1px solid var(--panel-line); border-radius: 16px; padding: 20px; text-align: center; transition: transform .3s var(--ease), border-color .3s ease; }
.hl-card:hover { transform: translateY(-6px); border-color: var(--gold-2); }
.hl-card .icon { width: 26px; height: 26px; color: var(--gold-2); margin-bottom: 10px; }
.hl-card b { display: block; color: var(--ink-0); font-size: 13.5px; margin-bottom: 4px; }
.hl-card span { font-size: 11.5px; color: var(--ink-2); }

.related-fields { }
.related-scroll { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.mini-card { display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--bg-2); border: 1px solid var(--panel-line); border-radius: 14px; transition: transform .3s var(--ease), border-color .3s ease; }
.mini-card:hover { transform: translateY(-5px); border-color: var(--gold-2); }
.mini-card .mini-icon { width: 38px; height: 38px; border-radius: 10px; background: rgba(232,189,82,.09); color: var(--gold-2); display: grid; place-items: center; flex-shrink: 0; }
.mini-card .mini-icon .icon { width: 18px; height: 18px; }
.mini-card b { font-size: 13px; color: var(--ink-0); display: block; }

@media (max-width: 900px) {
  .field-hero-grid { grid-template-columns: 1fr; }
  .field-highlights { grid-template-columns: 1fr; }
  .related-scroll { grid-template-columns: repeat(2, 1fr); }
}

/* ================= THEME SWITCHER ================= */
.header-actions { display: flex; align-items: center; gap: 10px; }
.theme-switcher {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px; border: 1px solid var(--panel-line-strong); border-radius: 999px;
  background: rgba(255,255,255,.055); backdrop-filter: blur(12px);
}
.theme-btn {
  min-width: 38px; height: 34px; border: 0; border-radius: 999px;
  background: transparent; color: var(--ink-1); font-size: 13px; font-weight: 800;
  transition: transform .25s var(--ease), background .25s ease, color .25s ease, box-shadow .25s ease;
}
.theme-btn:hover { transform: translateY(-1px); color: var(--gold-1); }
.theme-btn.active { background: var(--gold-grad); color: #241705; box-shadow: var(--shadow-gold); }
.studio-credit { color: var(--gold-1); font-weight: 800; position: relative; }
.studio-credit::after { content: ""; position: absolute; inset-inline: 0; bottom: -3px; height: 2px; background: var(--gold-grad); border-radius: 999px; }
.studio-credit:hover { color: var(--gold-2); }

body[data-theme="dim"] {
  --bg-0: #111827;
  --bg-1: #172033;
  --bg-2: #202c43;
  --bg-3: #2a3750;
  --ink-0: #fffaf0;
  --ink-1: #e3e8f2;
  --ink-2: #b5bed0;
  --ink-3: #8a94a6;
  --panel-line: rgba(232, 189, 82, 0.22);
  --panel-line-strong: rgba(232, 189, 82, 0.40);
}

body[data-theme="light"] {
  --bg-0: #f7f3e9;
  --bg-1: #fffaf0;
  --bg-2: #ffffff;
  --bg-3: #f0e5cf;
  --ink-0: #1f2430;
  --ink-1: #374151;
  --ink-2: #667085;
  --ink-3: #8a94a6;
  --panel-line: rgba(184, 134, 44, 0.20);
  --panel-line-strong: rgba(184, 134, 44, 0.38);
  --shadow-gold: 0 10px 34px -14px rgba(184, 134, 44, 0.42);
}
body[data-theme="light"] .site-header::before { background: rgba(255, 250, 240, 0); }
body[data-theme="light"] .site-header.scrolled::before,
body[data-theme="light"] .mobile-quick-toolbar { background: rgba(255, 250, 240, 0.78); }
body[data-theme="light"] .main-nav a:hover,
body[data-theme="light"] .main-nav a.active { color: #8a5b12; background: rgba(184,134,44,.10); }
body[data-theme="light"] .btn-primary,
body[data-theme="light"] .header-cta,
body[data-theme="light"] .fn-cta { color: #241705; }
body[data-theme="light"] .btn-ghost { background: rgba(255,255,255,.72); }
body[data-theme="light"] .hero-art circle { fill: #fffaf0; }

/* ================= INFO MODAL & FIELD DESCRIPTION ================= */
.fn-topic-actions { flex-direction: column; }
.fn-cta-alt { background: linear-gradient(135deg, rgba(255,233,168,.18), rgba(184,134,44,.12)); color: var(--gold-1); border: 1px solid var(--panel-line-strong) !important; }
.fn-dismiss { width: 100%; margin-top: 8px; padding: 10px; border-radius: 10px; font-size: 12.5px; font-weight: 700; background: transparent; border: 1px solid var(--panel-line-strong); color: var(--ink-2); }
.info-modal { position: fixed; inset: 0; z-index: 700; display: grid; place-items: center; padding: 22px; opacity: 0; pointer-events: none; transition: opacity .35s ease; }
.info-modal.show { opacity: 1; pointer-events: auto; }
.info-modal-backdrop { position: absolute; inset: 0; background: rgba(2,6,14,.74); backdrop-filter: blur(10px); }
.float-notify > *:not(.fn-pulse) { position: relative; z-index: 1; }
.info-modal-card { position: relative; width: min(680px, 100%); max-height: min(78vh, 720px); overflow: auto; background: linear-gradient(160deg, var(--bg-3), var(--bg-1)); border: 1px solid var(--panel-line-strong); border-radius: 26px; padding: 30px; box-shadow: 0 34px 90px -24px rgba(0,0,0,.8), var(--shadow-gold); transform: translateY(24px) scale(.96); transition: transform .35s var(--ease); }
.info-modal.show .info-modal-card { transform: translateY(0) scale(1); }
.info-modal-close { position: absolute; top: 16px; left: 16px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--panel-line); background: rgba(255,255,255,.07); color: var(--ink-2); display: grid; place-items: center; }
.info-modal-close .icon { width: 15px; height: 15px; }
.info-modal-card h3 { color: var(--ink-0); font-size: clamp(22px, 4vw, 32px); margin: 14px 0 10px; }
.info-modal-intro { color: var(--ink-1); font-size: 15px; line-height: 2; margin: 0 0 18px; }
.info-modal-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.info-modal-list li { position: relative; color: var(--ink-1); background: rgba(255,255,255,.045); border: 1px solid var(--panel-line); border-radius: 14px; padding: 11px 38px 11px 12px; font-size: 13.5px; line-height: 1.8; }
.info-modal-list li::before { content: "✦"; position: absolute; right: 14px; top: 12px; color: var(--gold-2); }
body.modal-open { overflow: hidden; }
.field-description-card { position: relative; margin: 22px 0 30px; padding: 22px; border-radius: 22px; background: linear-gradient(145deg, rgba(232,189,82,.11), rgba(255,255,255,.045)); border: 1px solid var(--panel-line-strong); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.field-description-label { display: inline-flex; margin-bottom: 10px; color: var(--gold-2); font-size: 12px; font-weight: 800; letter-spacing: .2px; }
.field-description-card .field-desc { margin-bottom: 0; }
@media (max-width: 680px) {
  .info-modal-card { padding: 24px 18px; border-radius: 22px; }
  .info-modal-list { grid-template-columns: 1fr; }
}
