/* V1 — Design System + Public Shell Foundation */
:root{
 --tby-font:"Vazirmatn",Tahoma,Arial,sans-serif;
 --tby-shell-max:1200px;
 --tby-page-gutter:clamp(18px,3vw,34px);
 --tby-bg:#080d1d;
 --tby-bg-soft:#0d1428;
 --tby-surface:#111a31;
 --tby-surface-2:#16213d;
 --tby-text:#f5f8ff;
 --tby-muted:#aab5cd;
 --tby-border:rgba(173,194,236,.15);
 --tby-accent:#3d77ff;
 --tby-cyan:#20d5e8;
 --tby-purple:#8f55ff;
 --tby-success:#20bd8c;
 --tby-danger:#ef5f72;
 --tby-radius-sm:12px;
 --tby-radius-md:18px;
 --tby-radius-lg:26px;
 --tby-shadow-sm:0 10px 30px rgba(0,0,0,.14);
 --tby-shadow-md:0 24px 70px rgba(0,0,0,.22);
}
html[data-tby-theme="light"],html[data-theme="light"]{
 --tby-bg:#f7f9ff;
 --tby-bg-soft:#eef3ff;
 --tby-surface:#fff;
 --tby-surface-2:#f5f7fd;
 --tby-text:#121b32;
 --tby-muted:#66728c;
 --tby-border:rgba(37,59,107,.13);
 --tby-shadow-sm:0 10px 30px rgba(31,54,105,.07);
 --tby-shadow-md:0 24px 70px rgba(31,54,105,.10);
}
html{background:var(--tby-bg);color-scheme:dark}html[data-tby-theme="light"],html[data-theme="light"]{color-scheme:light}
body{font-family:var(--tby-font);color:var(--tby-text);background:var(--tby-bg);line-height:1.8;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
body.tby-v1-public,body.tby-v1-system{background:var(--tby-bg)}
.container{width:min(var(--tby-shell-max),calc(100% - (var(--tby-page-gutter) * 2)));margin-inline:auto;min-width:0}
:where(h1,h2,h3,h4,h5,h6){font-family:var(--tby-font);color:var(--tby-text);text-wrap:balance}:where(p,li,dd,dt){text-wrap:pretty}
:where(h1){line-height:1.22}:where(h2,h3){line-height:1.4}
.tby-skip{position:fixed;z-index:10000;inset:10px auto auto 50%;transform:translate(-50%,-180%);padding:10px 18px;border-radius:12px;background:#fff;color:#071029;font-weight:850;box-shadow:var(--tby-shadow-sm);transition:transform .16s ease}.tby-skip:focus{transform:translate(-50%,0)}
.topbar{min-height:34px;display:flex;align-items:center;justify-content:center;padding:6px var(--tby-page-gutter);background:#060b19;color:#cbd5ec;border-bottom:1px solid rgba(255,255,255,.07);font-size:11px;letter-spacing:.01em}.topbar a{color:#6fe9e2;font-weight:800;margin-inline-start:8px}.topbar a:hover,.topbar a:focus-visible{color:#fff}
.site-header{height:auto;min-height:76px;position:sticky;top:0;z-index:120;background:color-mix(in srgb,var(--tby-bg) 84%,transparent);border-bottom:1px solid var(--tby-border);box-shadow:0 10px 32px rgba(1,6,20,.08);backdrop-filter:blur(20px) saturate(145%);-webkit-backdrop-filter:blur(20px) saturate(145%)}
.site-header .nav{min-height:76px;height:auto;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:clamp(18px,2.2vw,32px)}
.site-header .logo{display:inline-flex;align-items:center;justify-content:flex-start;min-width:0;width:54px;height:54px;padding:5px;border-radius:17px;background:linear-gradient(145deg,color-mix(in srgb,var(--tby-accent) 13%,var(--tby-surface)),color-mix(in srgb,var(--tby-purple) 9%,var(--tby-surface)));border:1px solid var(--tby-border);box-shadow:var(--tby-shadow-sm);overflow:hidden}
.site-header .logo img{display:block;width:100%;height:100%;object-fit:contain}
.site-header .main-menu{min-width:0;display:flex;align-items:center;justify-content:center;gap:clamp(5px,1vw,15px);font-size:12.5px;font-weight:720;white-space:nowrap}
.site-header .main-menu a{position:relative;display:inline-flex;align-items:center;min-height:42px;padding:0 9px;border-radius:12px;color:var(--tby-muted);transition:color .18s ease,background .18s ease,transform .18s ease}
.site-header .main-menu a:hover,.site-header .main-menu a:focus-visible{color:var(--tby-text);background:color-mix(in srgb,var(--tby-accent) 9%,transparent)}
.site-header .main-menu a.active,.site-header .main-menu a[aria-current="page"]{color:var(--tby-text);background:linear-gradient(135deg,color-mix(in srgb,var(--tby-accent) 17%,transparent),color-mix(in srgb,var(--tby-purple) 10%,transparent));box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--tby-accent) 20%,transparent)}
.site-header .main-menu a.active:after,.site-header .main-menu a[aria-current="page"]:after{content:"";position:absolute;right:18%;left:18%;bottom:3px;height:2px;border-radius:999px;background:linear-gradient(90deg,var(--tby-cyan),var(--tby-accent),var(--tby-purple))}
.site-header .nav-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;white-space:nowrap;font-size:12.5px}.site-header .nav-actions .login{min-height:42px;display:inline-flex;align-items:center;padding:0 10px;border-radius:12px;font-weight:850;color:var(--tby-text)}.site-header .nav-actions .login:hover,.site-header .nav-actions .login:focus-visible{background:color-mix(in srgb,var(--tby-accent) 9%,transparent)}
.site-header .tby-public-head-icon,.site-header .tby-theme-toggle{width:42px;height:42px;min-width:42px;display:inline-grid;place-items:center;border-radius:13px;border:1px solid var(--tby-border);background:color-mix(in srgb,var(--tby-surface) 88%,transparent);color:var(--tby-text);box-shadow:none}.site-header .tby-public-head-icon svg{width:19px;height:19px}.site-header .tby-public-head-icon:hover,.site-header .tby-public-head-icon:focus-visible,.site-header .tby-theme-toggle:hover,.site-header .tby-theme-toggle:focus-visible{border-color:color-mix(in srgb,var(--tby-accent) 45%,var(--tby-border));background:color-mix(in srgb,var(--tby-accent) 11%,var(--tby-surface))}
.site-header .btn.mini{min-height:42px;padding:0 15px;border-radius:13px;font-size:12px;box-shadow:0 10px 26px rgba(54,91,226,.20)}
.footer{position:relative;overflow:hidden;margin-top:0;padding:64px 0 22px;background:#060b19;color:#f5f8ff;border-top:1px solid rgba(255,255,255,.08)}.footer:before{content:"";position:absolute;inset:-220px auto auto -160px;width:480px;height:480px;border-radius:50%;background:radial-gradient(circle,rgba(67,109,255,.16),transparent 70%);pointer-events:none}.footer:after{content:"";position:absolute;inset:auto -200px -300px auto;width:620px;height:620px;border-radius:50%;background:radial-gradient(circle,rgba(143,85,255,.11),transparent 70%);pointer-events:none}.footer .container{position:relative;z-index:1}
.footer-grid{display:grid;grid-template-columns:minmax(260px,1.6fr) repeat(3,minmax(130px,.8fr));gap:clamp(28px,4vw,58px)}.footer-grid>div{display:flex;flex-direction:column;align-items:flex-start;gap:10px;color:#aeb9d0;font-size:12px}.footer-grid h4{margin:4px 0 9px;color:#fff;font-size:14px}.footer-grid a{color:#aeb9d0;transition:color .18s ease,transform .18s ease}.footer-grid a:hover,.footer-grid a:focus-visible{color:#fff;transform:translateX(-2px)}.footer-grid p{max-width:370px;margin:4px 0 12px;line-height:2;color:#aeb9d0}.footer .footer-logo{display:inline-grid;place-items:center;width:64px;height:64px;padding:6px;border-radius:19px;background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.10);overflow:hidden}.footer .footer-logo img{width:100%;height:100%;object-fit:contain}.footer .socials{display:flex;gap:8px;align-items:center}.footer .socials span{width:36px;height:36px;display:grid;place-items:center;border-radius:11px;background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.08);color:#dce7ff}.footer .socials svg{width:18px;height:18px}.foot-bottom{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-top:44px;padding-top:20px;border-top:1px solid rgba(255,255,255,.09);color:#7785a5;font-size:10.5px}
.page-shell,.panel-page{background:var(--tby-bg);color:var(--tby-text)}.page-shell{padding-block:clamp(46px,6vw,76px)}.panel-page{padding-block:clamp(46px,6vw,76px)}
.page-title{gap:20px}.page-title h1,.prose h1,.contact-grid h1{color:var(--tby-text);font-size:clamp(32px,4vw,44px);letter-spacing:-.02em}.page-title p,.prose .lead,.contact-grid>div>p{color:var(--tby-muted);line-height:1.95}
:where(a,button,input,select,textarea,[tabindex]):focus-visible{outline:3px solid color-mix(in srgb,var(--tby-cyan) 60%,white);outline-offset:3px}
img,svg,video,canvas{max-width:100%}pre,code{max-width:100%}pre{overflow:auto}
@media (min-width:1024px) and (max-width:1180px){.site-header .nav{gap:14px}.site-header .main-menu{gap:2px;font-size:11.5px}.site-header .main-menu a{padding-inline:6px}.site-header .nav-actions{gap:6px}.site-header .btn.mini{padding-inline:11px}.site-header .logo{width:48px;height:48px}.footer-grid{gap:28px}}
@media (max-width:1023px){.site-header .nav{display:flex}.site-header .main-menu{justify-content:flex-start}.footer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:680px){.footer{padding-top:44px}.footer-grid{grid-template-columns:1fr;gap:28px}.foot-bottom{align-items:flex-start;flex-direction:column}.footer-grid>div:first-child{padding-bottom:8px;border-bottom:1px solid rgba(255,255,255,.08)}}
@media (prefers-reduced-motion:reduce){.site-header *,.footer *,.tby-skip{transition:none!important;animation:none!important}}
