:root{
    --ink:#0F162B;
    --ink-2:#0C1E4A;
    --paper:#f7f4ee;
    --paper-2:#eee9dc;
    --gold:#0469FC;
    --gold-2:#3083ff;
    --violet:#7c5cff;
    --green:#3fa780;
    --line-dark: rgba(247,244,238,0.14);
    --line-light: rgba(18,19,28,0.12);
    --muted:#9c9eb0;
    --muted-2:#6b6d7d;
    --radius:15px;
    --maxw:1280px;
}
*{ margin:0; padding:0; box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
    font-family:'Vazirmatn', sans-serif;
    background:var(--paper);
    color:var(--ink);
    line-height:1.75;
    -webkit-font-smoothing:antialiased;
}
img,svg{ display:block; max-width:100%; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; }
::selection{ background:var(--gold); color:var(--ink); }
:focus-visible{ outline:2px solid var(--gold); outline-offset:2px; }
.wrap{ max-width:var(--maxw); margin:0 auto; padding:0 28px; }

.eyebrow{
    font-size:13px; font-weight:600; letter-spacing:.06em; color:var(--gold);
    display:flex; align-items:center; gap:10px; margin-bottom:18px;
}
.eyebrow::before{ content:""; width:22px; height:1px; background:var(--gold); display:inline-block; }
h1,h2,h3,h4{ font-weight:800; letter-spacing:-.01em; }

.btn{
    display:inline-flex; align-items:center; gap:10px;
    padding:14px 26px; border-radius:var(--radius);
    font-weight:700; font-size:15px; border:1px solid transparent;
    cursor:pointer; transition:transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
}
.btn:hover{ transform:translateY(-2px); }
.btn-gold{font-family: 'Vazirmatn'; background:var(--gold); color:var(--paper); }
.btn-gold:hover{ background:var(--gold-2); }
.btn-outline-dark{ border-color:var(--line-dark); color:var(--paper); }
.btn-outline-dark:hover{ border-color:var(--paper); }
.btn-outline-light{ border-color:var(--line-light); color:var(--ink); }
.btn-outline-light:hover{ border-color:var(--ink); }

/* ---------- HEADER ---------- */
header{
    position:fixed; top:0; right:0; left:0; z-index:50;
    background:rgba(18,19,28,.72); backdrop-filter:blur(14px);
    border-bottom:1px solid var(--line-dark);
}
.nav{ display:flex; align-items:center; justify-content:space-between; height:76px; color:var(--paper); }
.logo{ font-size:19px; font-weight:800; letter-spacing:-.02em; display:flex; align-items:center; gap:10px; }
.logo-mark{ width:26px; height:26px; color:var(--gold); }
.nav-links{ display:flex; align-items:center; gap:28px; font-size:14px; color:var(--muted); }
.nav-links a{ transition:color .2s; }
.nav-links a:hover{ color:var(--paper); }
.nav-cta{ display:flex; align-items:center; gap:18px; }
.burger{ display:none; width:26px; height:20px; position:relative; cursor:pointer; background:none; border:none; }
.burger span{ position:absolute; right:0; left:0; height:2px; background:var(--paper); transition:.3s; }
.burger span:nth-child(1){ top:0; }
.burger span:nth-child(2){ top:9px; }
.burger span:nth-child(3){ top:18px; }
.burger.open span:nth-child(1){ transform:translateY(9px) rotate(45deg); }
.burger.open span:nth-child(2){ opacity:0; }
.burger.open span:nth-child(3){ transform:translateY(-9px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero{ position:relative; background:var(--ink); color:var(--paper); padding:160px 0 0; overflow:hidden; }
.hero-pattern{ position:absolute; inset:0; color:var(--paper); opacity:.05; animation:driftPattern 60s linear infinite; }
@keyframes driftPattern{ to{ transform:translate(-60px,-60px); } }
.hero-glow{
    position:absolute; width:640px; height:640px; border-radius:50%;
    background:radial-gradient(circle, #0467fc4d, transparent 70%);
    top:-220px; left:-160px; pointer-events:none;
}
.hero-inner{ position:relative; z-index:2; display:grid; grid-template-columns:1.1fr .9fr; gap:56px; align-items:center; padding-bottom:70px; }
.hero h1{ font-size:clamp(34px,4.6vw,58px); line-height:1.22; margin-bottom:24px; }
.hero h1 em{ font-style:normal; color:var(--gold); }
.hero p.lead{ color:var(--muted); font-size:17px; max-width:520px; margin-bottom:34px; }
.hero-actions{ display:flex; gap:16px; flex-wrap:wrap; margin-bottom:44px; }
.hero-stats{ display:flex; gap:32px; flex-wrap:wrap; }
.hero-stats div{ border-right:1px solid var(--line-dark); padding-right:18px; }
.hero-stats div:first-child{ border-right:none; padding-right:0; }
.hero-stats b{ display:block; font-size:24px; color:var(--gold); font-weight:800; }
.hero-stats span{ font-size:12.5px; color:var(--muted); }

.hero-visual{
    position:relative; border:1px solid var(--line-dark); border-radius:var(--radius);
    padding:26px; background:linear-gradient(160deg, rgba(124,92,255,.14), rgba(226,163,61,.06));
    min-height:340px; display:flex; flex-direction:column; justify-content:space-between;
}
.hero-visual .frame-label{ font-size:16px; color:var(--muted); letter-spacing:.08em; }
.hero-visual .editor-svg{ width:100%; height:auto; margin:18px 0; }
.hero-visual .frame-caption{ font-size:13px; color:var(--muted);margin-right: 50px; }
.stat-badge{
    position:absolute; background:var(--ink-2); border:1px solid var(--line-dark);
    border-radius:var(--radius); padding:10px 14px; display:flex; align-items:center; gap:9px;
    font-size:12px; box-shadow:0 16px 30px -18px rgba(0,0,0,.6);
}
.stat-badge b{ font-size:15px; color:var(--gold); display:block; }
.stat-badge span{ color:var(--muted);}
.stat-badge .stat-badge-icon { font-size:18px;}
.stat-badge.b1{ top:-16px; left:-30px; }
.stat-badge.b2{ bottom:-16px; right:-30px; }
@media (max-width:720px){ .stat-badge{ display:none; } .hero-visual .frame-caption {margin: 0px;} }

/* ---------- INFO STRIP (replaces "trusted brands") ---------- */
.info-strip{ background:var(--ink-2); color:var(--muted); border-bottom:1px solid var(--line-dark); padding:22px 0; }
.info-strip .wrap{ display:flex; align-items:center; gap:34px; flex-wrap:wrap; justify-content:space-between; }
.info-item{ display:flex; align-items:center; gap:10px; font-size:13.5px; color:var(--muted); white-space:nowrap; }
.info-item b{ color:var(--paper); font-weight:700; }
.info-dot{ width:6px; height:6px; border-radius:50%; background:var(--green); box-shadow:0 0 0 4px rgba(63,167,128,.18); flex:none; }

/* ---------- SECTION GENERIC ---------- */
section{ padding:100px 0; }
section + section{ position:relative; }
.section-head{ max-width:640px; margin-bottom:56px; }
.section-head h2{ font-size:clamp(26px,3.2vw,40px); line-height:1.28; }
.section-head p{ color:var(--muted-2); font-size:15.5px; margin-top:14px; }
.light-on-dark .section-head p{ color:var(--muted); }
.center{ margin-inline:auto; text-align:center; }

/* ---------- SERVICES ---------- */
.services{ background:var(--paper); }
.service-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--line-light); border:1px solid var(--line-light); }
.service-card{ background:var(--paper); padding:34px 30px; transition:background .3s; }
.service-card:hover{ background:var(--paper-2); }
.service-num{ font-size:13px; color:var(--gold); font-weight:700; letter-spacing:.05em; margin-bottom:20px; display:block; }
.service-card h3{ font-size:18px; margin-bottom:10px; }
.service-card p{ font-size:14px; color:var(--muted-2); }

/* ---------- PROCESS ---------- */
.process{ background:var(--ink); color:var(--paper); }
.process .section-head p{ color:var(--muted); }
.process-row{ display:grid; grid-template-columns:repeat(5,1fr); gap:0; position:relative; }
.process-row::before{ content:""; position:absolute; top:13px; right:8%; left:8%; height:1px; background:var(--line-dark); }
.process-step{ position:relative; padding-top:50px; padding-left:14px; }
.process-step .dot{
    position:absolute; top:0; right:0; width:26px; height:26px; border-radius:50%;
    background:var(--ink); border:1px solid var(--gold); color:var(--gold);
    display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:800;
}
.process-step h4{ font-size:15.5px; margin-bottom:8px; }
.process-step p{ font-size:13px; color:var(--muted); }

/* ---------- PORTFOLIO ---------- */
.portfolio{ background:var(--paper); }
.portfolio-note{ font-size:13.5px; color:var(--muted-2); margin-top:-34px; margin-bottom:40px; }
.portfolio-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.p-card{
    position:relative; border-radius:var(--radius); overflow:hidden; aspect-ratio:4/5;
    display:flex; flex-direction:column; justify-content:flex-end; padding:22px; color:#fff; isolation:isolate;
}
.p-card::before{ content:""; position:absolute; inset:0; z-index:-2; }
.p-card::after{ content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,.05) 55%); }
.p-card .corner{ position:absolute; top:18px; left:18px; width:26px; height:26px; opacity:.5; color:#fff; }
.p-card .cat{ font-size:12px; color:var(--gold-2); margin-bottom:8px; letter-spacing:.03em; }
.p-card h3{ font-size:18px; font-weight:700; margin-bottom:8px; }
.p-card .tag-row{ display:flex; gap:6px; flex-wrap:wrap; }
.p-card .tag{ font-size:10.5px; padding:4px 9px; border-radius:99px; background:rgba(255,255,255,.14); }
.p1::before{ background:linear-gradient(135deg,#2b2540,#7c5cff); }
.p2::before{ background:linear-gradient(135deg,#182530,#2f7d6c); }
.p3::before{ background:linear-gradient(135deg,#301c22,#c14e5c); }
.p4::before{ background:linear-gradient(135deg,#3a2e1a,#e2a33d); }
.p5::before{ background:linear-gradient(135deg,#1c2333,#4a6fd6); }
.p6::before{ background:linear-gradient(135deg,#2a2417,#b98a3c); }

/* ---------- STATS BAND ---------- */
.stats-band{ background:var(--paper-2); border-top:1px solid var(--line-light); border-bottom:1px solid var(--line-light); }
.stats-grid{ display:grid; grid-template-columns:repeat(4,1fr); }
.stat-item{ padding:46px 24px; text-align:center; border-right:1px solid var(--line-light); }
.stat-item:first-child{ border-right:none; }
.stat-item b{ display:block; font-size:34px; font-weight:800; color:var(--ink); }
.stat-item span{ font-size:13px; color:var(--muted-2); }

/* ---------- EXPERIENCE ---------- */
.experience{ background:var(--paper); }
.exp-list{ display:flex; flex-direction:column; gap:1px; background:var(--line-light); border:1px solid var(--line-light); }
.exp-item{ background:var(--paper); padding:30px 32px; display:grid; grid-template-columns:150px 1fr; gap:26px; }
.exp-year{ font-size:13px; font-weight:700; color:var(--gold); letter-spacing:.03em; height:fit-content; }
.exp-item h3{ font-size:18px; margin-bottom:4px; }
.exp-role{ font-size:12.5px; color:var(--muted-2); margin-bottom:12px; }
.exp-item p{ font-size:14.5px; color:var(--muted-2); margin-bottom:14px; max-width:62ch; }
.exp-tags{ display:flex; gap:8px; flex-wrap:wrap; }
.exp-tag{ font-size:11.5px; font-weight:600; padding:5px 11px; border-radius:99px; background:var(--paper-2); color:var(--ink); }

/* ---------- ABOUT ---------- */
.about{ background:var(--paper); }
.about-inner{ display:grid; grid-template-columns:.85fr 1.15fr; gap:64px; align-items:center; }
.about-visual{ aspect-ratio:1/1.05; border-radius:var(--radius); background:var(--ink); position:relative; overflow:hidden; }
.about-visual svg{ position:absolute; inset:0; width:100%; height:100%; color:var(--gold); opacity:.35; }
.about-visual .mono{
    position:absolute; inset:0; display:grid; place-items:center;
    font-size:88px; font-weight:800; color:rgba(247,244,238,.14);
}
.about-visual .badge{
    position:absolute; bottom:20px; right:20px; left:20px; background:rgba(18,19,28,.75);
    border:1px solid var(--line-dark); color:var(--paper); padding:15px 17px; border-radius:var(--radius); font-size:13px;
}
.about-text h2{ font-size:clamp(24px,3vw,34px); margin-bottom:20px; line-height:1.32; }
.about-text p{ color:var(--muted-2); font-size:15px; margin-bottom:16px; }
.about-list{ margin-top:24px; display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.about-list li{ display:flex; align-items:flex-start; gap:11px; font-size:13.5px; color:var(--ink); }
.about-list li::before{ content:""; width:6px; height:6px; background:var(--gold); margin-top:7px; flex-shrink:0; transform:rotate(45deg); }

/* ---------- TOOLS ---------- */
.tools{ background:var(--paper-2); }
.tool-grid{ display:grid; grid-template-columns:repeat(5,1fr); gap:1px; background:var(--line-light); border:1px solid var(--line-light); }
.tool-chip{ background:var(--paper-2); text-align:center; padding:22px 10px; font-weight:700; font-size:13.5px; color:var(--ink); transition:.2s; }
.tool-chip:hover{ background:var(--ink); color:var(--gold); }

/* ---------- SKILLS + BELIEFS (dark) ---------- */
.skillsec{ background:var(--ink); color:var(--paper); }
.skillsec .section-head p{ color:var(--muted); }
.skills-grid{ display:grid; grid-template-columns:1.15fr .85fr; gap:24px; }
.panel{ background:var(--ink-2); border:1px solid var(--line-dark); border-radius:var(--radius); padding:30px; }
.skill{ margin-bottom:18px; }
.skill:last-child{ margin-bottom:0; }
.skill-top{ display:flex; justify-content:space-between; font-size:14px; margin-bottom:8px; }
.skill-top span{ color:var(--muted); font-size:12.5px; }
.bar{ height:6px; border-radius:99px; background:rgba(247,244,238,.08); overflow:hidden; }
.bar i{ display:block; height:100%; width:0; border-radius:99px; background:linear-gradient(90deg, var(--gold), var(--gold-2)); transition:width 1.1s cubic-bezier(.16,.8,.3,1); }
.skill.inview .bar i{ width:var(--w); }
.quote-stack{ display:flex; flex-direction:column; gap:24px; }
.t-card{ border:1px solid var(--line-dark); border-radius:var(--radius); padding:26px; background:var(--ink-2); }
.t-quote{ font-size:14.5px; color:var(--paper); margin-bottom:20px; }
.t-person{ display:flex; align-items:center; gap:12px; }
.t-avatar{ width:36px; height:36px; border-radius:50%; background:var(--gold); color:var(--ink); display:flex; align-items:center; justify-content:center; font-weight:800; font-size:13px; }
.t-person b{ display:block; font-size:13.5px; }
.t-person span{ font-size:12px; color:var(--muted); }

/* ---------- EDUCATION ---------- */
.education{ background:var(--paper); }
.edu-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--line-light); border:1px solid var(--line-light); }
.edu-card{ background:var(--paper); padding:28px 26px; }
.edu-card .yr{ font-size:12px; color:var(--gold); font-weight:700; letter-spacing:.04em; margin-bottom:14px; display:block; }
.edu-card b{ display:block; font-size:15.5px; margin-bottom:6px; }
.edu-card span{ font-size:13px; color:var(--muted-2); }

/* ---------- NOTES / ARTICLES ---------- */
.notes{ background:var(--paper-2); }
.article-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.article-card{ background:var(--paper); border:1px solid var(--line-light); border-radius:var(--radius); padding:26px; transition:transform .2s; }
.article-card:hover{ transform:translateY(-4px); }
.article-tag{ font-size:11.5px; color:var(--gold); font-weight:700; letter-spacing:.04em; margin-bottom:14px; display:block; }
.article-card h4{ font-size:15px; margin-bottom:8px; line-height:1.5; }
.article-card p{ font-size:13px; color:var(--muted-2); }

/* ---------- FAQ ---------- */
.faq{ background:var(--paper); }
.faq-list{ max-width:820px; display:flex; flex-direction:column; gap:1px; background:var(--line-light); border:1px solid var(--line-light); }
.faq-item{ background:var(--paper); }
.faq-item summary{
    cursor:pointer; list-style:none; padding:22px 26px; font-size:15px; font-weight:700;
    display:flex; justify-content:space-between; align-items:center; gap:14px;
}
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary .plus{ color:var(--gold); font-size:20px; flex:none; transition:transform .2s; }
.faq-item[open] summary .plus{ transform:rotate(45deg); }
.faq-item .faq-body{ padding:0 26px 24px; font-size:14px; color:var(--muted-2); max-width:70ch; }

/* ---------- CTA BANNER ---------- */
.cta-banner{ background:linear-gradient(120deg, var(--gold), var(--gold-2)); color:var(--ink); padding:64px 0; }
.cta-inner{ display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:24px; }
.cta-inner h2{ font-size:clamp(22px,3vw,30px); max-width:560px; }
.cta-inner p{ font-size:14px; margin-top:8px; color:rgba(18,19,28,.75); }

/* ---------- CONTACT ---------- */
.contact{ background:var(--paper); }
.contact-inner{ display:grid; grid-template-columns:.85fr 1.15fr; gap:56px; }
.contact-info h2{ font-size:clamp(24px,3vw,34px); margin-bottom:18px; line-height:1.3; }
.contact-info p{ color:var(--muted-2); font-size:15px; margin-bottom:30px; }
.contact-detail{ display:flex; gap:14px; margin-bottom:18px; font-size:14px; }
.contact-detail b{ display:block; font-size:12px; color:var(--muted-2); margin-bottom:3px; font-weight:600; }
.contact-form{ background:var(--paper-2); border:1px solid var(--line-light); border-radius:var(--radius); padding:32px; display:grid; gap:16px; }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.field label{ display:block; font-size:12.5px; font-weight:600; margin-bottom:7px; }
.field input, .field select, .field textarea{
    width:100%; border:1px solid var(--line-light); background:var(--paper);
    padding:12px 13px; border-radius:2px; font-family:inherit; font-size:14px; color:var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus{ outline:2px solid var(--gold); outline-offset:1px; }
.field textarea{ resize:vertical; min-height:100px; }
.form-note{ font-size:12px; color:var(--muted-2); }

/* ---------- FOOTER ---------- */
footer{ background:var(--ink); color:var(--muted); padding:64px 0 28px; position:relative; overflow:hidden; }
.footer-pattern{ position:absolute; inset:0; color:var(--paper); opacity:.03; }
.footer-top{ position:relative; z-index:1; display:grid; grid-template-columns:1.3fr 1fr 1fr 1fr; gap:36px; padding-bottom:44px; border-bottom:1px solid var(--line-dark); }
.footer-brand .logo{ color:var(--paper); margin-bottom:14px; }
.footer-brand p{ font-size:13.5px; max-width:280px; }
.footer-col h4{ color:var(--paper); font-size:13.5px; margin-bottom:16px; }
.footer-col li{ margin-bottom:10px; font-size:13px; }
.footer-col a:hover{ color:var(--paper); }
.footer-bottom{ position:relative; z-index:1; display:flex; justify-content:space-between; align-items:center; padding-top:22px; font-size:12px; flex-wrap:wrap; gap:12px; }
.socials{ display:flex; gap:14px; }

/* ---------- REVEAL ---------- */
.reveal{ opacity:0; transform:translateY(22px); transition:opacity .7s ease, transform .7s ease; }
.reveal.in{ opacity:1; transform:translateY(0); }
@media (prefers-reduced-motion: reduce){
    .reveal{ opacity:1; transform:none; transition:none; }
    .hero-pattern{ animation:none; }
    .bar i{ transition:none; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width:980px){
    .hero-inner{ grid-template-columns:1fr; padding-bottom:50px; }
    .service-grid{ grid-template-columns:repeat(2,1fr); }
    .portfolio-grid{ grid-template-columns:repeat(2,1fr); }
    .about-inner{ grid-template-columns:1fr; }
    .about-visual{ max-width:360px; margin:0 auto; }
    .tool-grid{ grid-template-columns:repeat(3,1fr); }
    .skills-grid{ grid-template-columns:1fr; }
    .edu-grid{ grid-template-columns:1fr; }
    .article-grid{ grid-template-columns:1fr; }
    .exp-item{ grid-template-columns:1fr; }
    .contact-inner{ grid-template-columns:1fr; }
    .process-row{ grid-template-columns:repeat(3,1fr); row-gap:38px; }
    .process-row::before{ display:none; }
    .stats-grid{ grid-template-columns:repeat(2,1fr); }
    .stat-item{ border-right:none !important; border-bottom:1px solid var(--line-light); }
    .footer-top{ grid-template-columns:1fr 1fr; }
}
@media (max-width:720px){
    .nav-links{
        position:fixed; top:76px; right:0; left:0; bottom:0; background:var(--ink);
        flex-direction:column; justify-content:flex-start; padding:36px 28px; gap:24px;
        font-size:17px; transform:translateX(100%); transition:transform .35s ease;
    }
    .nav-links.open{ transform:translateX(0); }
    .burger{ display:block; }
    .nav-cta .btn-outline-dark{ display:none; }
    .service-grid{ grid-template-columns:1fr; }
    .portfolio-grid{ grid-template-columns:1fr; }
    .process-row{ grid-template-columns:1fr; }
    .stats-grid{ grid-template-columns:1fr; }
    .tool-grid{ grid-template-columns:repeat(2,1fr); }
    .about-list{ grid-template-columns:1fr; }
    .edu-grid{ grid-template-columns:1fr; }
    .form-row{ grid-template-columns:1fr; }
    .footer-top{ grid-template-columns:1fr; }
    .info-strip .wrap{ justify-content:flex-start; }
    section{ padding:64px 0; }
    .hero{ padding:130px 0 0; }
}
