@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800&display=swap');

:root {
  color-scheme: dark;
  --bg: #090a0c;
  --panel: #111315;
  --paper: #e8e7df;
  --text: #f4f4ef;
  --muted: #96978f;
  --line: rgba(255,255,255,.12);
  --accent: #d7ff3f;
  --ink: #13150b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Vazirmatn, Tahoma, sans-serif; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }

.site-header {
  height: 5.4rem; padding: 0 clamp(1rem, 4vw, 4rem); display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 2rem; border-bottom: 1px solid var(--line); position: relative; z-index: 20;
}
.logo { display: inline-flex; align-items: center; gap: .65rem; width: max-content; font-weight: 800; font-size: 1.08rem; }
.logo-mark { display: grid; place-items: center; width: 2.15rem; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 50%; color: var(--accent); font-size: .92rem; }
.main-nav { display: flex; gap: 2rem; font-size: .77rem; color: #b7b8b1; }
.main-nav a, .admin-link { transition: color .2s; }
.main-nav a:hover, .admin-link:hover { color: var(--accent); }
.admin-link { justify-self: end; font-size: .73rem; color: #a0a19b; }
.admin-link span { color: var(--accent); margin-right: .35rem; }

.kicker { display: inline-flex; align-items: center; gap: .55rem; color: var(--accent); font-size: .68rem; font-weight: 600; letter-spacing: .04em; }
.kicker i { width: .38rem; aspect-ratio: 1; background: currentColor; border-radius: 50%; box-shadow: 0 0 0 .3rem rgba(215,255,63,.07); }
.home-hero { min-height: calc(100svh - 5.4rem); display: grid; grid-template-columns: .8fr 1.2fr; border-bottom: 1px solid var(--line); }
.hero-copy { padding: clamp(3rem, 8vw, 7.5rem) clamp(1.5rem, 7vw, 7rem); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; border-left: 1px solid var(--line); }
.hero-copy h1 { margin: 1.6rem 0 1.8rem; font-size: clamp(4.1rem, 7.4vw, 8rem); font-weight: 400; line-height: .92; letter-spacing: -.065em; }
.hero-copy h1 em { color: var(--accent); font-style: normal; }
.hero-copy p { max-width: 31rem; color: #aaa9a3; font-size: 1rem; line-height: 2; margin: 0 0 2.2rem; }
.primary-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 2.5rem; min-width: 13rem; padding: 1rem 1.2rem; border-radius: 999px; background: var(--accent); color: var(--ink); font-size: .77rem; font-weight: 700; transition: transform .2s, box-shadow .2s; }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 .8rem 2.5rem rgba(215,255,63,.12); }
.hero-object { min-height: 37rem; position: relative; overflow: hidden; background: radial-gradient(circle at 50%, rgba(255,255,255,.08), transparent 55%); }
.hero-object::before { content:""; position:absolute; inset:0; opacity:.23; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg,var(--line) 1px,transparent 1px); background-size:5rem 5rem; }
.hero-object model-viewer { position: absolute; inset: 2rem; width: calc(100% - 4rem); height: calc(100% - 4rem); z-index: 2; --poster-color: transparent; }
.hero-number { position: absolute; top: 2.2rem; left: 2.2rem; font-size: 4rem; font-weight: 300; line-height: 1; z-index: 3; color: #42443f; }
.orbit { position: absolute; inset: 18% 25%; border: 1px solid rgba(215,255,63,.13); border-radius: 50%; transform: rotate(-18deg); }
.orbit-b { inset: 28% 15%; transform: rotate(35deg); }

.catalog-section { padding: clamp(4.5rem, 9vw, 9rem) clamp(1rem, 4vw, 4rem); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 3rem; }
.section-heading h2 { margin: .75rem 0 0; font-size: clamp(2.2rem, 5vw, 4.8rem); line-height: 1; font-weight: 500; letter-spacing: -.05em; }
.item-count { color: var(--muted); font-size: .75rem; padding-bottom: .4rem; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.product-card { min-width: 0; }
.product-visual { display: block; height: clamp(22rem, 42vw, 36rem); position: relative; overflow: hidden; background: var(--paper); border-radius: 1.2rem; color: #121212; }
.product-visual::after { content:""; position:absolute; inset:0; pointer-events:none; background: radial-gradient(circle, transparent 40%, rgba(0,0,0,.08)); }
.product-visual model-viewer { width: 100%; height: 100%; transition: transform .45s ease; --poster-color: transparent; }
.product-visual:hover model-viewer { transform: scale(1.035); }
.card-index { position: absolute; top: 1.2rem; right: 1.25rem; z-index: 2; font-size: .7rem; font-weight: 700; }
.view-pill { position:absolute; bottom:1rem; left:1rem; z-index:3; display:flex; align-items:center; gap:.6rem; padding:.75rem 1rem; border-radius:999px; background:rgba(255,255,255,.78); backdrop-filter:blur(12px); font-size:.68rem; font-weight:700; }
.view-pill b { color: var(--accent); background:#111; width:1.5rem; height:1.5rem; display:grid; place-items:center; border-radius:50%; }
.product-info { padding: 1.25rem .35rem 0; }
.product-info > span { color: var(--accent); font-size: .63rem; }
.product-info h3 { margin: .35rem 0 .15rem; font-size: 1.35rem; font-weight: 600; }
.product-info p { margin: 0; color: var(--muted); font-size: .78rem; }
.empty-state { padding: 6rem 1rem; text-align:center; border:1px dashed var(--line); border-radius:1.2rem; color:var(--muted); }
.empty-state span { color:var(--accent); font-size:2rem; }
.empty-state h3 { color:var(--text); }

.about-band { padding: clamp(4rem,8vw,7rem) clamp(1rem,4vw,4rem); border-top:1px solid var(--line); background:#0d0f11; }
.steps { display:grid; grid-template-columns:repeat(3,1fr); margin-top:2.5rem; border-top:1px solid var(--line); }
.steps > div { padding:2.2rem 2rem 0; min-height:14rem; border-left:1px solid var(--line); }
.steps > div:last-child { border-left:0; }
.steps b { color:var(--accent); font-size:.66rem; }
.steps h3 { font-size:1.3rem; margin:2rem 0 .6rem; }
.steps p { color:var(--muted); font-size:.82rem; line-height:1.9; max-width:18rem; }

.site-footer { min-height:12rem; display:flex; align-items:flex-end; justify-content:space-between; gap:2rem; padding:3rem clamp(1rem,4vw,4rem); border-top:1px solid var(--line); }
.footer-logo { margin-bottom:1rem; }
.site-footer p { color:var(--muted); font-size:.75rem; margin:0; }
.footer-meta { display:flex; gap:2rem; color:#6c6e69; font-size:.6rem; text-transform:uppercase; letter-spacing:.1em; }

/* Device page */
.device-page { padding: 1.1rem clamp(1rem, 3vw, 3rem) 5rem; }
.back-link { display:inline-flex; padding: .7rem 0 1.4rem; color: var(--muted); font-size:.7rem; }
.back-link:hover { color:var(--accent); }
.device-layout { min-height:calc(100svh - 9rem); display:grid; grid-template-columns:minmax(0,1.55fr) minmax(18rem,.65fr); gap:1.2rem; }
.device-stage { min-height:43rem; position:relative; overflow:hidden; border-radius:1.25rem; background:var(--paper); color:#121212; }
.device-stage::before { content:""; position:absolute; inset:0; background-image:linear-gradient(rgba(0,0,0,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(0,0,0,.045) 1px,transparent 1px); background-size:4rem 4rem; }
.viewer-topline { position:absolute; top:1.2rem; left:1.3rem; right:1.3rem; z-index:5; display:flex; direction:rtl; justify-content:space-between; align-items:center; font-size:.62rem; font-weight:700; }
.viewer-topline span:first-child { display:flex; align-items:center; gap:.45rem; }
.viewer-topline i { width:.4rem; aspect-ratio:1; border-radius:50%; background:var(--accent); box-shadow:0 0 0 .25rem rgba(75,85,25,.1); }
.viewer-topline span:last-child { color:#73746f; font-weight:500; }
#product-viewer { position:absolute; inset:0; width:100%; height:100%; direction:ltr; --poster-color:transparent; --progress-bar-color:var(--accent); }
.viewer-loader { position:absolute; inset:0; display:flex; flex-direction:column; gap:1rem; align-items:center; justify-content:center; background:var(--paper); transition:.35s; }
.viewer-loader.is-hidden { opacity:0; visibility:hidden; }
.viewer-loader span { width:3.5rem; aspect-ratio:1; border:1px solid rgba(0,0,0,.15); border-top-color:#111; border-radius:50%; animation:spin 1s linear infinite; }
.viewer-loader small { color:#777; }
@keyframes spin { to { transform:rotate(360deg); } }
.hotspot { position:relative; width:2.75rem; height:2.75rem; padding:0; border:0; border-radius:50%; background:transparent; color:#11130a; cursor:pointer; isolation:isolate; }
.hotspot::before,.hotspot::after { content:""; position:absolute; inset:.2rem; z-index:-1; border-radius:50%; border:1px solid rgba(215,255,63,.95); animation:hotspot-pulse 2.4s ease-out infinite; }
.hotspot::after { inset:-.15rem; opacity:.35; animation-delay:.8s; }
.hotspot-core { position:absolute; inset:.42rem; display:grid; place-items:center; border:1px solid rgba(255,255,255,.85); border-radius:50%; background:linear-gradient(145deg,#e8ff7b,var(--accent)); box-shadow:0 .45rem 1.1rem rgba(15,18,5,.28),inset 0 0 0 1px rgba(0,0,0,.08); transition:transform .22s ease,box-shadow .22s ease; }
.hotspot-core svg { width:1rem; height:1rem; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.hotspot-label { position:absolute; top:50%; right:calc(100% + .65rem); width:max-content; max-width:12.5rem; padding:.55rem .7rem; display:flex; flex-direction:column; align-items:flex-start; border:1px solid rgba(255,255,255,.58); border-radius:.65rem; background:rgba(17,19,20,.88); color:#fff; box-shadow:0 .7rem 1.8rem rgba(0,0,0,.22); backdrop-filter:blur(12px); direction:rtl; text-align:right; opacity:0; visibility:hidden; transform:translate(.35rem,-50%); transition:opacity .2s ease,transform .2s ease,visibility .2s; pointer-events:none; }
.hotspot-label::after { content:""; position:absolute; top:50%; right:-.3rem; width:.55rem; height:.55rem; background:rgba(17,19,20,.88); border-top:1px solid rgba(255,255,255,.4); border-right:1px solid rgba(255,255,255,.4); transform:translateY(-50%) rotate(45deg); }
.hotspot-label strong { color:var(--accent); font-size:.67rem; font-weight:700; }
.hotspot-label small { margin-top:.12rem; color:#b8bab3; font-size:.5rem; white-space:nowrap; }
.hotspot:hover .hotspot-core,.hotspot:focus-visible .hotspot-core,.hotspot.is-active .hotspot-core { transform:scale(1.12); box-shadow:0 .55rem 1.4rem rgba(15,18,5,.32),0 0 0 .4rem rgba(215,255,63,.17); }
.hotspot:hover .hotspot-label,.hotspot:focus-visible .hotspot-label,.hotspot.is-active .hotspot-label { opacity:1; visibility:visible; transform:translate(0,-50%); }
.hotspot:focus-visible { outline:2px solid #fff; outline-offset:3px; }
@keyframes hotspot-pulse { 0% { transform:scale(.72); opacity:.8; } 70%,100% { transform:scale(1.35); opacity:0; } }
.ar-launch { position:absolute; right:1.1rem; bottom:1.1rem; display:flex; align-items:center; gap:.55rem; padding:.85rem 1.15rem; border:0; border-radius:999px; background:var(--accent); color:var(--ink); font-size:.68rem; font-weight:800; cursor:pointer; }
.ar-launch svg { width:1.1rem; stroke-width:1.5; }
.ar-exit { position:absolute; top:max(1rem,env(safe-area-inset-top)); left:1rem; padding:.7rem 1rem; border:1px solid rgba(255,255,255,.28); border-radius:999px; background:rgba(10,11,13,.72); color:#fff; backdrop-filter:blur(12px); font-size:.7rem; cursor:pointer; }
.ar-instructions,.ar-detail-panel { display:none; direction:rtl; }
#product-viewer[ar-status="session-started"] > .ar-instructions,
#product-viewer[ar-status="object-placed"] > .ar-instructions { position:absolute; right:1rem; bottom:max(1rem,env(safe-area-inset-bottom)); z-index:20; display:flex; align-items:center; gap:.75rem; padding:.75rem .85rem; max-width:18rem; border:1px solid rgba(255,255,255,.18); border-radius:.85rem; background:rgba(10,11,13,.72); color:#fff; backdrop-filter:blur(14px); }
.ar-instructions > span { display:grid; place-items:center; flex:0 0 auto; width:2.1rem; aspect-ratio:1; border-radius:50%; background:var(--accent); color:#111; font-size:1.15rem; }
.ar-instructions p { margin:0; font-size:.62rem; line-height:1.6; }
.ar-instructions strong { color:var(--accent); }
#product-viewer[ar-status="session-started"] > .ar-detail-panel.is-open,
#product-viewer[ar-status="object-placed"] > .ar-detail-panel.is-open { position:absolute; right:1rem; left:1rem; bottom:max(1rem,env(safe-area-inset-bottom)); z-index:30; display:grid; grid-template-columns:auto 1fr; gap:1rem; padding:1.1rem; border-radius:1rem; background:rgba(244,244,239,.94); color:#151515; box-shadow:0 1rem 3rem rgba(0,0,0,.28); backdrop-filter:blur(18px); }
.ar-detail-index { color:#a7a8a1; font-size:2rem; line-height:1; }
.ar-detail-content { min-width:0; }
.ar-detail-panel small { color:#777972; font-size:.55rem; }
.ar-detail-panel h2 { margin:.18rem 0 .3rem; font-size:1rem; }
.ar-detail-panel p { margin:0; color:#63645f; font-size:.67rem; line-height:1.7; }
.ar-detail-close { position:absolute; top:.55rem; left:.55rem; width:1.85rem; aspect-ratio:1; border:0; border-radius:50%; background:#deded7; color:#222; cursor:pointer; }
.ar-step-navigation { display:flex; gap:.5rem; margin-top:.85rem; }
.ar-step-navigation button { flex:1; min-height:2.65rem; padding:.6rem .75rem; border:1px solid #d3d4cc; border-radius:.65rem; background:#fff; color:#222; font-size:.62rem; font-weight:600; cursor:pointer; touch-action:manipulation; }
.ar-step-navigation button:last-child { border-color:#20221d; background:#20221d; color:var(--accent); }
.ar-step-navigation button:disabled { opacity:.35; cursor:not-allowed; }
.viewer-controls { position:absolute; bottom:1.1rem; left:1.1rem; z-index:4; display:flex; gap:.5rem; direction:rtl; }
.viewer-controls button { padding:.75rem .95rem; border:1px solid rgba(0,0,0,.12); border-radius:999px; background:rgba(255,255,255,.7); color:#151515; backdrop-filter:blur(10px); font-size:.64rem; cursor:pointer; }
.gesture-hint { position:absolute; bottom:1.25rem; right:1.25rem; z-index:3; margin:0; color:#777; font-size:.62rem; }
.device-stage.ar-ready .gesture-hint { display:none; }
.device-details { padding:clamp(1.7rem,4vw,4rem) clamp(1rem,2vw,2rem); display:flex; flex-direction:column; }
.device-details h1 { margin:1rem 0 .2rem; font-size:clamp(2.8rem,4.8vw,5.2rem); line-height:.95; font-weight:500; letter-spacing:-.055em; }
.device-tagline { margin:.4rem 0 2rem; color:var(--accent); font-size:.9rem; }
.device-description { color:#a8a9a2; line-height:2; font-size:.86rem; margin:0 0 2.2rem; }
.spec-grid { display:grid; grid-template-columns:1fr 1fr; border-top:1px solid var(--line); border-right:1px solid var(--line); }
.spec-grid div { padding:1.1rem; border-left:1px solid var(--line); border-bottom:1px solid var(--line); }
.spec-grid span,.spec-grid strong { display:block; }
.spec-grid span { color:#73756f; font-size:.58rem; margin-bottom:.45rem; }
.spec-grid strong { font-size:.78rem; font-weight:500; }
.tutorial-catalog { margin-top:2rem; padding-top:1.4rem; border-top:1px solid var(--line); }
.tutorial-heading { display:flex; justify-content:space-between; align-items:end; gap:1rem; margin-bottom:.9rem; }
.tutorial-heading span { color:var(--accent); font-size:.56rem; }
.tutorial-heading h2 { margin:.15rem 0 0; font-size:1.15rem; font-weight:600; }
.tutorial-heading > strong { padding:.35rem .55rem; border:1px solid rgba(215,255,63,.28); border-radius:999px; color:var(--accent); font-size:.55rem; font-weight:600; white-space:nowrap; }
.tutorial-steps { max-height:18.3rem; overflow:auto; padding-left:.25rem; display:grid; gap:.4rem; scrollbar-width:thin; scrollbar-color:#41443b transparent; }
.tutorial-step-button { width:100%; min-height:3.25rem; padding:.55rem .65rem; display:grid; grid-template-columns:2.1rem 1fr 1rem; align-items:center; gap:.65rem; border:1px solid var(--line); border-radius:.75rem; background:rgba(255,255,255,.025); text-align:right; cursor:pointer; transition:border-color .2s,background .2s,transform .2s; }
.tutorial-step-button > span { display:grid; place-items:center; width:2.1rem; aspect-ratio:1; border-radius:.55rem; background:#1a1c1e; color:#85877f; font-size:.61rem; transition:background .2s,color .2s; }
.tutorial-step-button > strong { min-width:0; color:#c9cac3; font-size:.68rem; font-weight:500; }
.tutorial-step-button svg { width:.9rem; stroke-width:1.8; transform:rotate(180deg); color:#686a64; }
.tutorial-step-button:hover,.tutorial-step-button.is-active { border-color:rgba(215,255,63,.45); background:rgba(215,255,63,.07); transform:translateX(-.15rem); }
.tutorial-step-button.is-active > span { background:var(--accent); color:var(--ink); font-weight:800; }
.tutorial-step-button.is-active > strong { color:#fff; }
.tutorial-step-button.is-active svg { color:var(--accent); }
.tutorial-note { display:flex; align-items:center; gap:.45rem; margin:.8rem 0 0; color:#777972; font-size:.55rem; }
.tutorial-note i { width:.35rem; aspect-ratio:1; border-radius:50%; background:var(--accent); box-shadow:0 0 0 .2rem rgba(215,255,63,.08); }
.hotspot-sheet { position:fixed; z-index:101; left:clamp(1rem,3vw,3rem); bottom:clamp(1rem,3vw,3rem); width:min(29rem,calc(100% - 2rem)); padding:1.5rem; display:grid; grid-template-columns:auto 1fr; gap:1.2rem; background:#f3f2eb; color:#151515; border-radius:1rem; box-shadow:0 1.5rem 5rem rgba(0,0,0,.35); transform:translateY(calc(100% + 5rem)); opacity:0; transition:.35s ease; }
.hotspot-sheet[aria-hidden="false"] { transform:none; opacity:1; }
.sheet-index { font-size:2.8rem; color:#c8c8c0; line-height:1; }
.hotspot-sheet small { color:#797a75; font-size:.57rem; }
.hotspot-sheet h2 { margin:.25rem 0 .45rem; font-size:1.25rem; }
.hotspot-sheet p { margin:0; color:#666762; font-size:.76rem; line-height:1.8; }
.sheet-navigation { display:flex; gap:.55rem; margin-top:1.1rem; }
.sheet-navigation button { flex:1; padding:.7rem .8rem; border:1px solid #d3d4cc; border-radius:.65rem; background:#fff; color:#222; font-size:.62rem; cursor:pointer; }
.sheet-navigation button:last-child { border-color:#20221d; background:#20221d; color:var(--accent); }
.sheet-navigation button:disabled { opacity:.35; cursor:not-allowed; }
.sheet-close { position:absolute; top:.7rem; left:.7rem; width:2rem; aspect-ratio:1; border:0; border-radius:50%; background:#deded7; color:#222; cursor:pointer; }
.sheet-backdrop { display:none; position:fixed; inset:0; z-index:100; background:rgba(0,0,0,.25); }
.sheet-backdrop.is-visible { display:block; }
.not-found { min-height:70svh; display:grid; place-items:center; align-content:center; gap:1rem; text-align:center; }
.not-found > span { color:var(--accent); }

@media (max-width: 1000px) {
  .product-grid { grid-template-columns:repeat(2,1fr); }
  .device-layout { grid-template-columns:1fr; }
  .device-stage { min-height:62svh; }
  .device-details { min-height:auto; }
  .tutorial-steps { max-height:none; grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width: 720px) {
  .site-header { height:4.5rem; grid-template-columns:1fr auto; padding:0 1rem; }
  .main-nav { display:none; }
  .admin-link { font-size:0; }
  .admin-link span { font-size:1rem; }
  .home-hero { grid-template-columns:1fr; }
  .hero-copy { min-height:calc(68svh - 4.5rem); padding:3.5rem 1.25rem; border-left:0; }
  .hero-copy h1 { font-size:clamp(4rem,19vw,6.3rem); }
  .hero-copy p { font-size:.86rem; }
  .hero-object { min-height:50svh; border-top:1px solid var(--line); }
  .hero-object model-viewer { inset:1rem; width:calc(100% - 2rem); height:calc(100% - 2rem); }
  .hero-number { top:1rem; left:1rem; font-size:2.5rem; }
  .catalog-section { padding:4.5rem 1rem; }
  .section-heading { align-items:start; }
  .section-heading h2 { font-size:2.8rem; }
  .product-grid { grid-template-columns:1fr; }
  .product-visual { height:31rem; }
  .steps { grid-template-columns:1fr; }
  .steps > div { min-height:auto; padding:2rem 0; border-left:0; border-bottom:1px solid var(--line); }
  .site-footer { align-items:flex-start; flex-direction:column; }
  .footer-meta { width:100%; justify-content:space-between; gap:1rem; }
  .device-page { padding: .65rem .65rem 4rem; }
  .device-layout { gap:0; }
  .device-stage { min-height:67svh; border-radius:1rem; }
  .viewer-topline { top:1rem; left:1rem; right:1rem; }
  .gesture-hint { display:none; }
  .viewer-controls { left:.75rem; right:.75rem; bottom:.75rem; }
  .viewer-controls button { flex:1; }
  .device-stage.ar-ready .viewer-controls { right:auto; }
  .device-stage.ar-ready #reset-view { display:none; }
  .ar-launch { right:.75rem; bottom:.75rem; }
  .device-details { padding:3rem .7rem 1rem; }
  .device-details h1 { font-size:3.4rem; }
  .tutorial-steps { grid-template-columns:1fr; }
  .tutorial-step-button { min-height:3.5rem; }
  .hotspot { width:2.65rem; height:2.65rem; }
  .hotspot-label { right:auto; left:calc(100% + .55rem); max-width:10rem; }
  .hotspot-label::after { right:auto; left:-.3rem; border-right:0; border-left:1px solid rgba(255,255,255,.4); transform:translateY(-50%) rotate(-45deg); }
  .hotspot-sheet { left:.65rem; right:.65rem; bottom:.65rem; width:auto; }
}

@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior:auto!important; animation-duration:.01ms!important; transition-duration:.01ms!important; }
}
