:root {
  --bg: #0a0a12;
  --morpho-blue: #3d5afb;
  --morpho-violet: #a855f7;
  --morpho-pink: #ec4899;
  --gold: #ffb800;
  --text-primary: #f5f5fa;
  --text-muted: #8a8aa3;
  --border: #ffffff1f;
  --font-display: 'Vazirmatn', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
body { background: var(--bg); color: var(--text-primary); font-family: var(--font-display); line-height: 1.7; overflow-x: hidden; position: relative; min-height: 100vh; display: flex; flex-direction: column; }
body::after {
  content: ''; position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.035; pointer-events: none; z-index: 999; mix-blend-mode: overlay;
}
::selection { background: var(--morpho-violet); color: #fff; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--morpho-blue); outline-offset: 4px; border-radius: 4px; }
button { font-family: inherit; }
main { flex: 1; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.eyebrow { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.05em; color: var(--gold); text-transform: uppercase; display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.eyebrow::before { content: ''; width: 20px; height: 1px; background: var(--gold); }
.eyebrow.center { justify-content: center; }

/* ---------- LOGO MARK ---------- */
.logo-lockup { display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 30px; height: 30px; flex-shrink: 0; background: linear-gradient(135deg, var(--morpho-blue), var(--morpho-violet), var(--morpho-pink)); animation: morph 8s ease-in-out infinite; }
.logo-mark.large { width: 72px; height: 72px; margin: 0 auto 26px; animation-duration: 7s; }
.logo-mark.small { width: 20px; height: 20px; }
@keyframes morph { 0%,100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; } 50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; } }
.logo { font-weight: 800; font-size: 1.4rem; background: linear-gradient(135deg, var(--morpho-blue), var(--morpho-violet)); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.logo.small { font-size: 1.05rem; }

/* ---------- NAV ---------- */
.nav { position: fixed; top: 0; inset-inline: 0; z-index: 100; padding: 20px 0; transition: all 0.4s var(--ease); }
.nav.scrolled { padding: 13px 0; background: rgba(10,10,18,0.78); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav-links { display: flex; gap: 28px; font-size: 0.93rem; color: var(--text-muted); }
.nav-links a { transition: color 0.3s; white-space: nowrap; position: relative; }
.nav-links a:hover { color: var(--text-primary); }
.nav-links a.active { color: var(--text-primary); }
.nav-links a.active::after { content: ''; position: absolute; bottom: -6px; inset-inline: 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--morpho-blue), var(--morpho-pink)); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: flex; background: rgba(255,255,255,0.06); border: 1px solid var(--border); border-radius: 100px; padding: 3px; }
.lang-switch button { border: none; background: transparent; color: var(--text-muted); font-family: var(--font-mono); font-size: 0.76rem; font-weight: 600; padding: 6px 13px; border-radius: 100px; cursor: pointer; transition: all 0.3s var(--ease); }
.lang-switch button.active { background: var(--text-primary); color: var(--bg); }
.nav-cta { padding: 10px 22px; border-radius: 100px; background: var(--text-primary); color: var(--bg); font-size: 0.86rem; font-weight: 700; transition: transform 0.3s var(--ease), box-shadow 0.3s; white-space: nowrap; }
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,255,255,0.15); }
@media (max-width: 860px) { .nav-links { display: none; } }
@media (max-width: 480px) { .lang-switch { display: none; } }

/* ---------- HERO (home) ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 130px 24px 80px; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55; }
.blob-1 { width: 480px; height: 480px; background: var(--morpho-blue); top: -8%; right: 3%; animation: float1 22s ease-in-out infinite, hue1 14s ease-in-out infinite; }
.blob-2 { width: 420px; height: 420px; background: var(--morpho-violet); bottom: -12%; left: 0%; animation: float2 26s ease-in-out infinite, hue2 16s ease-in-out infinite; }
.blob-3 { width: 340px; height: 340px; background: var(--morpho-pink); top: 32%; left: 28%; animation: float3 19s ease-in-out infinite, hue1 12s ease-in-out infinite; }
@keyframes float1 { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(-40px,40px) scale(1.1); } 66% { transform: translate(30px,-20px) scale(0.95); } }
@keyframes float2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(50px,-30px) scale(1.08); } }
@keyframes float3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-25px,25px) scale(1.12); } }
@keyframes hue1 { 0%,100% { filter: blur(90px) hue-rotate(0deg); } 50% { filter: blur(90px) hue-rotate(50deg); } }
@keyframes hue2 { 0%,100% { filter: blur(90px) hue-rotate(0deg); } 50% { filter: blur(90px) hue-rotate(-40deg); } }
.hero-content { position: relative; z-index: 2; max-width: 780px; }
.hero h1 { font-size: clamp(4rem, 13vw, 9rem); font-weight: 900; line-height: 0.95; background: linear-gradient(135deg, var(--morpho-blue) 0%, var(--morpho-violet) 45%, var(--morpho-pink) 100%); background-size: 200% 200%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; animation: gradientShift 8s ease infinite; margin-bottom: 26px; }
@keyframes gradientShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.hero .tagline { font-size: clamp(1.3rem, 3vw, 1.9rem); font-weight: 700; margin-bottom: 20px; }
.hero .subline { font-size: 1.05rem; color: var(--text-muted); max-width: 560px; margin: 0 auto 40px; }
.cta-group { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn { padding: 15px 32px; border-radius: 100px; font-weight: 700; font-size: 1rem; display: inline-flex; align-items: center; gap: 8px; transition: all 0.35s var(--ease); border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: linear-gradient(135deg, var(--morpho-blue), var(--morpho-violet)); color: #fff; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(61,90,251,0.35); }
.btn-ghost { border-color: var(--border); color: var(--text-primary); }
.btn-ghost:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.3); }
.btn-sm { padding: 10px 20px; font-size: 0.88rem; }
.scroll-cue { position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%); color: var(--text-muted); animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }

/* ---------- PAGE HEADER (sub-pages) ---------- */
.page-header { position: relative; padding: 150px 24px 90px; text-align: center; overflow: hidden; }
.page-header .blob { opacity: 0.35; }
.page-header .blob-1 { width: 360px; height: 360px; }
.page-header .blob-2 { width: 320px; height: 320px; }
.page-header-content { position: relative; z-index: 2; max-width: 700px; margin: 0 auto; }
.page-header h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); font-weight: 900; margin-bottom: 18px; }
.page-header p { color: var(--text-muted); font-size: 1.08rem; max-width: 560px; margin: 0 auto; }

/* ---------- REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- SECTION GENERICS ---------- */
section.block { padding: 120px 0; border-top: 1px solid var(--border); }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(2.1rem, 4.5vw, 3.2rem); font-weight: 800; }

/* ---------- ABOUT / STORY ---------- */
.story-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.story-grid blockquote { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; line-height: 1.35; position: sticky; top: 120px; }
.story-text p { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 22px; }
.badges { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.badge { font-family: var(--font-mono); font-size: 0.82rem; padding: 8px 16px; border: 1px solid var(--border); border-radius: 100px; color: var(--text-muted); }
@media (max-width: 860px) { .story-grid { grid-template-columns: 1fr; gap: 32px; } .story-grid blockquote { position: static; } }

/* ---------- VALUES ---------- */
.values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.value-card { padding: 32px; border: 1px solid var(--border); border-radius: 20px; background: rgba(255,255,255,0.02); }
.value-card .num { font-family: var(--font-mono); color: var(--gold); font-size: 0.85rem; margin-bottom: 12px; display: block; }
.value-card h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 8px; }
.value-card p { color: var(--text-muted); font-size: 0.96rem; }
@media (max-width: 700px) { .values-grid { grid-template-columns: 1fr; } }

/* ---------- PROCESS ---------- */
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; }
.step-num { font-family: var(--font-mono); font-size: 2.4rem; font-weight: 700; background: linear-gradient(135deg, var(--morpho-blue), var(--morpho-pink)); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; display: block; margin-bottom: 18px; }
.step h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 10px; }
.step p { color: var(--text-muted); font-size: 0.98rem; }
@media (max-width: 860px) { .process-grid { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- PRODUCTS ---------- */
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.card { position: relative; padding: 40px; border-radius: 24px; background: rgba(255,255,255,0.03); border: 1px solid var(--border); transition: transform 0.4s var(--ease); overflow: hidden; }
.card::before { content: ''; position: absolute; inset: 0; border-radius: 24px; padding: 1px; background: linear-gradient(135deg, var(--morpho-blue), var(--morpho-violet), var(--morpho-pink)); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity 0.4s; pointer-events: none; }
.card:hover { transform: translateY(-6px); }
.card:hover::before { opacity: 1; }
.card-icon { width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg, rgba(61,90,251,0.15), rgba(168,85,247,0.15)); display: flex; align-items: center; justify-content: center; color: var(--morpho-blue); margin-bottom: 24px; }
.card-icon.lg { width: 64px; height: 64px; border-radius: 18px; }
.card-icon svg { width: 26px; height: 26px; }
.card .tag { font-family: var(--font-mono); font-size: 0.75rem; color: var(--gold); text-transform: uppercase; letter-spacing: 0.04em; }
.card h3 { font-size: 1.5rem; font-weight: 800; margin: 10px 0 12px; }
.card p { color: var(--text-muted); font-size: 0.98rem; margin-bottom: 14px; }
.card .card-note { font-size: 0.85rem; opacity: 0.85; margin-top: 2px; padding: 12px 14px; border-radius: 12px; background: rgba(255,184,0,0.06); border: 1px solid rgba(255,184,0,0.18); }
.feature-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 22px; }
.chip { font-size: 0.76rem; color: var(--text-muted); background: rgba(255,255,255,0.05); border: 1px solid var(--border); padding: 5px 12px; border-radius: 100px; }
.card .link-row { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); font-family: var(--font-mono); font-size: 0.9rem; color: var(--text-primary); }
.card .link-row svg { color: var(--text-muted); transition: transform 0.3s, color 0.3s; width: 18px; height: 18px; }
.card:hover .link-row svg { transform: translate(2px,-2px); color: var(--gold); }
.product-full { display: grid; grid-template-columns: auto 1fr; gap: 40px; padding: 48px; }
@media (max-width: 860px) { .product-grid { grid-template-columns: 1fr; } .product-full { grid-template-columns: 1fr; text-align: center; } .product-full .card-icon { margin: 0 auto 24px; } }

/* ---------- MINI TEASER CARDS (home) ---------- */
.mini-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.mini-card { padding: 26px; border: 1px solid var(--border); border-radius: 18px; background: rgba(255,255,255,0.02); transition: transform 0.35s var(--ease), border-color 0.35s; }
.mini-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.3); }
.mini-card .card-icon { width: 42px; height: 42px; border-radius: 12px; margin-bottom: 16px; }
.mini-card .card-icon svg { width: 20px; height: 20px; }
.mini-card h4 { font-size: 1.02rem; font-weight: 800; margin-bottom: 6px; }
.mini-card p { color: var(--text-muted); font-size: 0.85rem; }
@media (max-width: 960px) { .mini-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .mini-grid { grid-template-columns: 1fr; } }

/* ---------- TEASER STRIP (home about/founder) ---------- */
.teaser-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.teaser-strip p { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 24px; }
.teaser-strip .founder-mini { display: flex; align-items: center; gap: 20px; }
@media (max-width: 860px) { .teaser-strip { grid-template-columns: 1fr; gap: 32px; text-align: center; } .teaser-strip .founder-mini { flex-direction: column; text-align: center; } }

/* ---------- FOUNDER ---------- */
.founder-panel { display: grid; grid-template-columns: auto 1fr; gap: 48px; align-items: start; background: rgba(255,255,255,0.02); border: 1px solid var(--border); border-radius: 32px; padding: 56px; }
.avatar { width: 128px; height: 128px; border-radius: 50%; background: linear-gradient(135deg, var(--morpho-blue), var(--morpho-violet), var(--morpho-pink)); display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-weight: 700; font-size: 1.6rem; color: #fff; flex-shrink: 0; }
.avatar.sm { width: 64px; height: 64px; font-size: 1rem; }
.founder-name { font-size: 1.8rem; font-weight: 800; margin-bottom: 4px; }
.founder-role { color: var(--gold); font-family: var(--font-mono); font-size: 0.85rem; margin-bottom: 22px; }
.founder-bio p { color: var(--text-muted); font-size: 1.02rem; margin-bottom: 18px; max-width: 620px; }
.founder-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
@media (max-width: 720px) { .founder-panel { grid-template-columns: 1fr; text-align: center; padding: 44px 28px; } .avatar { margin: 0 auto; } .founder-bio p { max-width: 100%; } .founder-actions { justify-content: center; } }

/* ---------- CONTACT ---------- */
.contact-hero { text-align: center; }
.contact-hero p { color: var(--text-muted); max-width: 480px; margin: 0 auto 36px; }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 60px; }
.contact-card { padding: 36px; border: 1px solid var(--border); border-radius: 22px; background: rgba(255,255,255,0.02); text-align: center; }
.contact-card .card-icon { margin: 0 auto 20px; }
.contact-card h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 10px; }
.contact-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 20px; }
@media (max-width: 700px) { .contact-cards { grid-template-columns: 1fr; } }

/* ---------- CTA STRIP ---------- */
.cta-strip { text-align: center; padding: 100px 0; }
.cta-strip h2 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; margin-bottom: 16px; }
.cta-strip p { color: var(--text-muted); max-width: 460px; margin: 0 auto 32px; }

/* ---------- FOOTER ---------- */
footer { border-top: 1px solid var(--border); padding: 40px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; color: var(--text-muted); font-size: 0.88rem; }
.footer-inner a { transition: color 0.3s; }
.footer-inner a:hover { color: var(--text-primary); }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
@media (max-width: 640px) { .footer-inner { flex-direction: column; text-align: center; } }
