:root {
  --accent: #7c5cff;
  --accent2: #22d3ee;
  --bg: #07060d;
  --text: #f1f0f7;
  --muted: #a5a2b8;
  --card: rgba(255, 255, 255, 0.045);
  --line: rgba(255, 255, 255, 0.09);
  --radius: 22px;
  --font: Vazirmatn, Tahoma, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.8; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
#bg3d { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.noise { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
main, .nav, .footer { position: relative; z-index: 2; }
.grad { background: linear-gradient(100deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* nav */
.nav { position: fixed; top: 14px; inset-inline: 0; margin: 0 auto; width: min(1120px, calc(100% - 28px)); display: flex; align-items: center; gap: 18px;
  padding: 10px 14px 10px 18px; border: 1px solid var(--line); border-radius: 999px; background: rgba(10, 9, 18, .55); backdrop-filter: blur(16px); z-index: 50; transition: transform .35s; }
.nav.hide { transform: translateY(-120%); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; }
.brand-mark { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-weight: 900; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; }
.nav-links { display: flex; gap: 6px; margin-inline-start: auto; }
.nav-links a { padding: 6px 14px; border-radius: 999px; color: var(--muted); font-size: 14.5px; transition: .2s; }
.nav-links a:hover { color: var(--text); background: var(--card); }
.menu-btn { display: none; background: none; border: 0; width: 38px; height: 38px; cursor: pointer; }
.menu-btn span { display: block; width: 20px; height: 2px; background: var(--text); margin: 5px auto; border-radius: 2px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border-radius: 14px; font-weight: 700; font-size: 15.5px; transition: transform .2s, box-shadow .2s, background .2s; cursor: pointer; border: 0; font-family: inherit; }
.btn-sm { padding: 8px 16px; font-size: 14px; border-radius: 999px; }
.btn-primary { background: linear-gradient(110deg, var(--accent), var(--accent2)); color: #fff; box-shadow: 0 10px 34px -10px var(--accent); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 44px -12px var(--accent); }
.btn-ghost { border: 1px solid var(--line); background: var(--card); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, .09); }

/* hero */
.hero { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px 20px 80px; position: relative; }
.hero-inner { max-width: 880px; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-size: 13.5px; color: var(--muted); backdrop-filter: blur(8px); }
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 12px #34d399; animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .4; } }
.hero-title { font-size: clamp(42px, 8vw, 96px); line-height: 1.15; font-weight: 900; margin: 22px 0 18px; letter-spacing: -.01em; }
.hero-title .w { display: inline-block; }
.hero-sub { font-size: clamp(16px, 2.2vw, 21px); color: var(--muted); max-width: 640px; margin: 0 auto 34px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.scroll-hint { position: absolute; bottom: 28px; left: 50%; translate: -50% 0; width: 26px; height: 42px; border: 2px solid var(--line); border-radius: 20px; }
.scroll-hint span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--text); animation: scroll 1.8s infinite; }
@keyframes scroll { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* sections */
.section { padding: 110px 20px; max-width: 1180px; margin: 0 auto; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--accent2); padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }
.section-head h2 { font-size: clamp(30px, 5vw, 54px); line-height: 1.25; margin: 14px 0 10px; font-weight: 900; }
.section-head p { color: var(--muted); margin: 0; }

/* 3D carousel */
.slider-section { overflow: hidden; max-width: none; }
.carousel3d { height: 440px; perspective: 1400px; display: grid; place-items: center; cursor: grab; user-select: none; touch-action: pan-y; outline: none; }
.carousel3d.dragging { cursor: grabbing; }
.ring { position: relative; width: 300px; height: 380px; transform-style: preserve-3d; }
.card3d { position: absolute; inset: 0; border-radius: var(--radius); padding: 28px 24px; display: flex; flex-direction: column; gap: 12px;
  background: linear-gradient(160deg, rgba(255,255,255,.10), rgba(255,255,255,.02)); border: 1px solid var(--line); backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9); transition: opacity .5s, filter .5s, border-color .5s; backface-visibility: hidden; }
.card3d .ic { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-size: 32px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 40%, transparent), color-mix(in srgb, var(--accent2) 30%, transparent)); }
.card3d h3 { margin: 6px 0 0; font-size: 23px; font-weight: 800; }
.card3d p { margin: 0; color: var(--muted); font-size: 15px; flex: 1; }
.card3d .tag { align-self: flex-start; font-size: 12.5px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--accent2); }
.card3d.active { border-color: color-mix(in srgb, var(--accent) 70%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent), 0 40px 100px -30px var(--accent); }
.card3d.far { opacity: .35; filter: blur(1px) saturate(.6); }
.carousel-ui { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 18px; }
.round-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--text); font-size: 24px; cursor: pointer; transition: .2s; font-family: inherit; }
.round-btn:hover { background: var(--accent); border-color: var(--accent); }
.dots { display: flex; gap: 8px; }
.dots button { width: 9px; height: 9px; border-radius: 99px; border: 0; background: var(--line); cursor: pointer; transition: .3s; padding: 0; }
.dots button.on { width: 28px; background: linear-gradient(90deg, var(--accent), var(--accent2)); }

/* features */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.feature { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); transition: border-color .3s, transform .3s; transform-style: preserve-3d; will-change: transform; position: relative; overflow: hidden; }
.feature::before { content: ''; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 22%, transparent), transparent 40%); opacity: 0; transition: opacity .3s; }
.feature:hover::before { opacity: 1; }
.feature:hover { border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.feature .ic { font-size: 30px; }
.feature h3 { margin: 12px 0 6px; font-size: 20px; }
.feature p { margin: 0; color: var(--muted); }

/* stats */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; text-align: center; }
.stat { padding: 30px 10px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); }
.stat b { display: block; font-size: clamp(36px, 5vw, 56px); font-weight: 900; line-height: 1.1; }
.stat span { color: var(--muted); }

/* marquee */
.marquee { overflow: hidden; padding: 26px 0; border-block: 1px solid var(--line); background: rgba(255, 255, 255, .02); direction: ltr; }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marq 28s linear infinite; font-size: 24px; font-weight: 800; color: var(--muted); }
.marquee-track span { white-space: nowrap; }
.marquee-track span::after { content: '✦'; margin-left: 56px; color: var(--accent); }
@keyframes marq { to { transform: translateX(-50%); } }

/* timeline */
.timeline { list-style: none; padding: 0; margin: 0 auto; max-width: 760px; position: relative; }
.timeline::before { content: ''; position: absolute; inset-block: 10px; inset-inline-start: 23px; width: 2px; background: linear-gradient(var(--accent), var(--accent2)); opacity: .5; }
.timeline li { position: relative; padding-inline-start: 72px; margin-bottom: 34px; }
.timeline .n { position: absolute; inset-inline-start: 0; top: 0; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-weight: 900; background: var(--bg); border: 1px solid var(--line); box-shadow: 0 0 0 6px var(--bg); }
.timeline h3 { margin: 4px 0; font-size: 21px; }
.timeline p { margin: 0; color: var(--muted); }

/* contact */
.contact-card { text-align: center; padding: 64px 28px; border-radius: 32px; border: 1px solid var(--line);
  background: radial-gradient(120% 120% at 50% 0%, color-mix(in srgb, var(--accent) 25%, transparent), transparent 60%), var(--card); }
.contact-card h2 { font-size: clamp(30px, 5vw, 52px); margin: 0 0 10px; font-weight: 900; }
.contact-card p { color: var(--muted); margin: 0 0 28px; }
.contact-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.footer { text-align: center; padding: 36px 20px 46px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
.reveal { opacity: 0; transform: translateY(40px); }

@media (max-width: 820px) {
  .nav-links { position: fixed; top: 74px; inset-inline: 14px; flex-direction: column; padding: 12px; border-radius: 20px; background: rgba(10, 9, 18, .95); border: 1px solid var(--line); display: none; }
  .nav-links.open { display: flex; }
  .menu-btn { display: block; margin-inline-start: auto; }
  #navCta { display: none; }
  .carousel3d { height: 400px; }
  .ring { width: 250px; height: 340px; }
}
@media (prefers-reduced-motion: reduce) { .marquee-track, .badge .dot, .scroll-hint span { animation: none; } .reveal { opacity: 1; transform: none; } }
