/*
Theme Name: Yasna Digital Signatures
Author: Yasna System
Description: Trilingual catalog of digital signature products.
Text Domain: yasna-rsa
*/

@font-face{font-family:Manrope;src:url(manrope.woff2) format("woff2");font-weight:400 800;font-display:swap}
@font-face{font-family:Vazirmatn;src:url(vazirmatn.woff2) format("woff2");font-weight:400 900;font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+0870-08FF,U+200C-200E,U+FB50-FDFF,U+FE70-FEFF}
:root{--background:#09141d;--raised:#0d1d28;--card:#10222e;--border:#253c49;--text:#f3f8fa;--muted:#aebfc9;--mint:#77e9c4;--deep:#08241d;--wrap:1190px}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:28px}
body{margin:0;background:var(--background);color:var(--text);font:500 16px/1.7 Manrope,system-ui,sans-serif}
[dir="rtl"] body{font-family:Vazirmatn,Manrope,system-ui,sans-serif}
a{color:inherit;text-decoration:none}
a:focus-visible{outline:2px solid var(--mint);outline-offset:5px}
svg{width:24px;height:24px;flex:none;vertical-align:middle}
p{margin:0;color:var(--muted)}
h1,h2,h3{margin:0;font-weight:800;line-height:1.19}
.wrap{width:min(var(--wrap),calc(100% - 84px));margin-inline:auto}
.skip{position:fixed;inset-block-start:1rem;inset-inline-start:1rem;z-index:10;transform:translateY(-180%);color:var(--deep);background:var(--mint);padding:.65rem 1rem;border-radius:6px}
.skip:focus{transform:none}
.site-header{border-bottom:1px solid var(--border);background:#0a1720}
.header-inner,.footer-inner,.brand,.main-nav,.languages,.button,.actions,.card-top,.card-link,.back{display:flex;align-items:center}
.header-inner{justify-content:space-between;min-height:82px;gap:20px}
.brand{gap:11px;font-size:16px;font-weight:800;line-height:1.33}
.brand small{display:block;color:var(--muted);font-size:11px;margin-top:4px;font-weight:650}
.brand-mark{width:41px;height:41px;display:grid;place-items:center;border-radius:12px;color:var(--mint);background:#112e32;border:1px solid #28514e;flex:none}
.brand-mark svg{width:25px;height:25px}
.main-nav{gap:34px;color:var(--muted);font-size:14px}
.main-nav a:hover,.footer-inner>a:hover{color:var(--mint)}
.languages{gap:4px;padding:4px;border:1px solid var(--border);border-radius:10px;direction:ltr;font-size:12px;color:var(--muted)}
.languages a{padding:4px 9px;border-radius:6px}
.languages a:hover,.languages a[aria-current]{background:#203944;color:var(--text)}
.hero{display:grid;grid-template-columns:1.1fr .9fr;align-items:center;gap:38px;min-height:490px;padding-block:62px}
.hero h1{font-size:clamp(41px,5vw,68px);letter-spacing:-.056em}
[dir="rtl"] .hero h1{font-size:clamp(39px,4.5vw,63px);letter-spacing:0;line-height:1.4}
.hero h1 em{font-style:normal;color:var(--mint)}
.hero-copy>p{max-width:56ch;margin-top:22px;font-size:clamp(16px,1.45vw,18px);line-height:1.8}
.actions{flex-wrap:wrap;gap:11px}
.hero .actions{margin-top:30px}
.button{display:inline-flex;gap:9px;justify-content:center;min-height:48px;padding:9px 17px;border-radius:8px;font-weight:800;font-size:14px;border:1px solid transparent;transition:background-color .18s,border-color .18s}
.button svg,.card-link svg,.back svg,.footer-inner>a>svg{width:18px;height:18px}
.button.primary{background:var(--mint);color:var(--deep)}
.button.primary:hover{background:#a4f7de}
.button.secondary{background:#10212c;border-color:#344d59;color:var(--text)}
.button.secondary:hover{background:#1a3441;border-color:#60818c}
[dir="rtl"] .directional{transform:scaleX(-1)}
.hero-art{position:relative;min-width:0;height:350px;overflow:hidden;isolation:isolate;border:1px solid #244754;border-radius:26px;background:radial-gradient(ellipse at 48% 52%,#1d554f 0%,#12363c 39%,#10232e 75%);box-shadow:0 26px 75px #020b1249}
.hero-art::before{content:"";position:absolute;inset:0;background:linear-gradient(#7fdacb0d 1px,transparent 1px),linear-gradient(90deg,#7fdacb0d 1px,transparent 1px);background-size:26px 26px;mask-image:radial-gradient(ellipse,#000 40%,transparent 90%)}
.orbit{position:absolute;width:78%;height:66%;inset:17% 11%;border:1px solid #76e4c548;border-radius:50%;transform:rotate(-21deg)}
.orbit-b{transform:rotate(29deg);border-style:dashed;border-color:#76e4c530}
.node{position:absolute;width:8px;height:8px;background:#85edce;border-radius:50%;box-shadow:0 0 15px #77e9c4}
.node-a{top:21%;left:46%}.node-b{bottom:15%;left:39%}.node-c{top:28%;right:15%}
.paper{position:absolute;top:50%;left:50%;width:38%;max-width:186px;aspect-ratio: .76;transform:translate(-50%,-50%) rotate(-8deg);background:linear-gradient(145deg,#e7fff4,#a9d5cb);border-radius:13px;box-shadow:0 20px 48px #030d19a3;padding:8% 5%;color:#1a6d61}
.paper-back{transform:translate(-39%,-51%) rotate(12deg);background:linear-gradient(155deg,#648e8b,#365d68);border:1px solid #73b1a98c;box-shadow:none}
.paper-top{display:grid;gap:12px;margin-top:-10px}
.paper-top svg{width:26px;height:26px}
.paper-top i,.paper-lines i{display:block;height:4px;background:#498e8767;border-radius:5px}
.paper-top i{width:55%;height:5px;background:#258575}
.paper-lines{display:grid;gap:8px;margin-top:17px}
.paper-lines i:nth-child(2){width:83%}.paper-lines i:nth-child(4){width:53%}
.paper-signature{display:flex;margin-top:25px;margin-left:4px;align-items:center}
.paper-signature i{width:25px;height:11px;border:2px solid #258575;border-color:transparent transparent #258575 #258575;border-radius:50%;transform:rotate(-44deg)}
.paper-signature i+i{margin-left:-10px}
.art-seal{position:absolute;top:55%;left:57%;width:81px;height:81px;border-radius:21px;display:grid;place-items:center;transform:rotate(7deg);background:linear-gradient(145deg,#9dffe0,#56d9ad);color:#103e34;border:1px solid #c7ffeb;box-shadow:0 14px 30px #092620a9}
.art-seal svg{width:49px;height:49px}
.art-chip{position:absolute;display:flex;align-items:center;gap:7px;padding:7px 10px;border:1px solid #45746f;border-radius:8px;background:#102b33;color:#b4f8e0;font-weight:800;font-size:12px;z-index:1}
.art-chip svg{width:16px;height:16px}
.chip-pdf{left:10%;top:21%}.chip-xml{right:8%;top:39%}.chip-p7s{left:12%;bottom:20%}
.standards{background:#0c1b25;border-block:1px solid var(--border)}
.standards-inner{display:grid;grid-template-columns:repeat(4,1fr);min-height:71px}
.standards span{display:flex;align-items:center;justify-content:center;gap:9px;color:#cfe0e6;font-size:14px;font-weight:800}
.standards span+span{border-inline-start:1px solid var(--border)}
.standards svg{color:var(--mint);width:19px}
.catalog{padding-block:76px 70px}
.section-heading{margin-bottom:30px}
.label{font-size:13px;font-weight:800;color:var(--mint);margin-bottom:8px}
.section-heading h2,.contact h2{font-size:clamp(28px,4vw,45px);letter-spacing:-.04em}
[dir="rtl"] .section-heading h2,[dir="rtl"] .contact h2{letter-spacing:0;line-height:1.4}
.section-heading h2+p{margin-top:11px}
.products{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}
.product{display:flex;flex-direction:column;align-items:flex-start;padding:21px;min-height:241px;background:var(--card);border:1px solid var(--border);border-radius:14px;transition:border-color .18s,background-color .18s}
.product:hover,.product:focus-within{border-color:#488174;background:#132936}
.card-top{gap:11px;justify-content:space-between;width:100%;margin-bottom:16px}
.product-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:10px;background:#163739;color:var(--mint);border:1px solid #2b514e;flex:none}
.tag{background:#0b1a23;color:#bdd4dd;border:1px solid #304956;border-radius:5px;font:800 11px/1.4 Manrope,sans-serif;padding:3px 6px;white-space:nowrap}
.product h3{font:800 17px/1.35 Manrope,sans-serif}
.product p{font-size:14px;line-height:1.66;margin:9px 0 15px}
.card-link,.back{display:inline-flex;gap:8px,color:var(--mint);font-size:13px;font-weight:800}
.card-link{margin-top:auto}
.card-link:hover,.back:hover{text-decoration:underline;text-underline-offset:4px}
.contact{padding-block:0 65px}
.contact-inner{display:flex;justify-content:space-between;align-items:center;gap:22px;border:1px solid #2b514e;background:linear-gradient(122deg,#133136,#10212c 76%);border-radius:17px;padding:30px 34px}
.contact h2{font-size:clamp(23px,3.2vw,34px)}
.contact p{margin-top:9px}
.contact .actions{flex:none}
.site-footer{border-top:1px solid var(--border);background:#0a1720}
.footer-inner{min-height:77px;gap:19px;justify-content:space-between;color:var(--muted);font-size:13px}
.footer-inner .brand{color:var(--text);font-size:14px}
.footer-inner .brand-mark{width:34px;height:34px;border-radius:9px}
.footer-inner .brand-mark svg{width:21px}
.footer-inner>a>svg{margin-inline-start:6px}
.detail{padding-block:61px 72px;min-height:420px}
.detail h1{font-size:clamp(38px,6vw,68px);letter-spacing:-.05em;overflow-wrap:anywhere}
.detail p{margin-block:18px 26px;max-width:54ch;font-size:18px}
.detail .back{margin-bottom:28px;flex-direction:row-reverse}
.detail .back svg{rotate:180deg}
.detail-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);gap:45px;align-items:center}
.detail .card-top{justify-content:flex-start}
.features{background:var(--card);border:1px solid var(--border);border-radius:14px;padding:26px}
.features h2{font-size:24px}
.features ul{list-style:none;margin:13px 0 0;padding:0}
.features li{display:flex;align-items:flex-start;gap:9px;padding-block:10px;color:var(--muted)}
.features li+li{border-top:1px solid var(--border)}
.features svg{color:var(--mint);width:18px}
@media(max-width:1050px){
    .wrap{width:calc(100% - 64px)}
    .products{grid-template-columns:repeat(2,minmax(0,1fr))}
    .product{min-height:211px}
    .contact-inner{align-items:flex-start;flex-direction:column}
}
@media(max-width:760px){
    .wrap{width:calc(100% - 40px)}
    .header-inner{min-height:69px}
    .main-nav{display:none}
    .hero{grid-template-columns:1fr;gap:28px;padding-block:43px}
    .hero-art{height:325px}
    .paper{padding:34px 24px}
    .catalog{padding-block:53px}
    .detail-grid{grid-template-columns:1fr;gap:30px}
    .detail{padding-block:40px 52px}
}
@media(max-width:440px){
    .wrap{width:calc(100% - 32px)}
    .header-inner{gap:7px}
    .brand{font-size:13px;gap:6px}
    .brand-mark{width:33px;height:33px;border-radius:9px}
    .brand-mark svg{width:21px}
    .languages a{padding:3px 5px}
    .hero h1{font-size:37px}
    [dir="rtl"] .hero h1{font-size:36px}
    .hero-art{height:261px}
    .paper{padding:26px 15px}
    .paper-signature{margin-top:15px}
    .art-seal{width:61px;height:61px;border-radius:15px}
    .art-seal svg{width:38px;height:38px}
    .standards span{gap:4px;font-size:11px}
    .standards svg{width:14px}
    .standards-inner{min-height:54px}
    .products{grid-template-columns:1fr}
    .product{min-height:0}
    .contact-inner{padding:22px 17px}
    .contact .button{padding-inline:12px}
    .footer-inner{padding-block:16px;flex-wrap:wrap;gap:9px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}
