/* Verna Design site, version 2: dark and cinematic around a live 3D hero. Vazirmatn and three.js are
   served from this server: the page makes no request outside Iran. Colours come from the panel
   (--ground, --ink, --accent, --f1..--f4). */
@font-face { font-family: IRANSansX; font-weight: 400; font-display: swap; src: url(/fonts/IRANSansXFaNum-regular.woff2) format("woff2"); }
@font-face { font-family: IRANSansX; font-weight: 500; font-display: swap; src: url(/fonts/IRANSansXFaNum-medium.woff2) format("woff2"); }
@font-face { font-family: IRANSansX; font-weight: 700; font-display: swap; src: url(/fonts/IRANSansXFaNum-bold.woff2) format("woff2"); }

:root {
  --ground: #0b0f13; --ink: #f2efe8; --accent: #ffd249; --accent-ink: #0b0f13;
  --f1: #131a1f; --f2: #ffd249; --f3: #f2efe8; --f4: #1b252b;
  --soft: color-mix(in srgb, var(--ink) 68%, var(--ground));
  --line: color-mix(in srgb, var(--ink) 12%, transparent);
  --m: 32px;
  --display: clamp(40px, 1.4rem + 3.6vw, 80px);
  --h2: clamp(34px, 1.4rem + 2.8vw, 66px);
  --h3: clamp(21px, 1rem + .6vw, 28px);
  --lead: clamp(18px, 1rem + .35vw, 22px);
  --body: 17px;
  --small: 14px;
  --r: 22px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 var(--body)/1.75 IRANSansX, Vazirmatn, Tahoma, sans-serif; overflow-x: clip; }
img, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1360px; margin-inline: auto; padding-inline: var(--m); }
.sec { padding-block: clamp(96px, 12vw, 168px); }
.h2 { font-size: var(--h2); font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; }
.h3 { font-size: var(--h3); font-weight: 700; line-height: 1.35; }
.sec-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 64px; align-items: end; margin-bottom: 56px; }
.sec-intro { font-size: var(--lead); color: var(--soft); max-width: 46ch; }
svg { width: 1.1em; height: 1.1em; flex: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 54px; padding: 0 28px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); border: 0; cursor: pointer; text-decoration: none; white-space: nowrap;
  font: 700 16px/1 IRANSansX, Vazirmatn, Tahoma, sans-serif; transition: transform .3s var(--ease), background-color .2s, color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn.sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ink) 35%, transparent); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.dark { background: var(--accent-ink); color: var(--accent); }
.btn.wide { width: 100%; }
.arrow-link { display: inline-flex; align-items: center; gap: .5em; font-weight: 700; color: var(--accent); text-decoration: none; }
.arrow-link svg { transition: transform .3s var(--ease); }
.arrow-link:hover svg { transform: translateX(-6px); }

/* ------------------------------------------------ hero */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 55% at 30% 55%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%); }
.bar { display: flex; align-items: center; gap: 28px; padding-block: 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 700; text-decoration: none; }
.pill { font-size: 11px; font-weight: 700; letter-spacing: 3px; background: var(--accent); color: var(--accent-ink); padding: 4px 9px 3px 6px; border-radius: 999px; }
.nav { display: flex; gap: 6px; margin-inline-start: auto; }
.nl { padding: 10px 14px; border-radius: 999px; text-decoration: none; font-size: 15px; font-weight: 500; color: var(--soft); transition: color .2s, background-color .2s; }
.nl:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 8%, transparent); }
.hero-grid { flex: 1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px 40px; align-items: center; padding-bottom: 36px; }
.visual { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; position: relative; z-index: 2; }
.display { font-size: var(--display); font-weight: 700; line-height: 1.12; letter-spacing: -0.025em; }
.lede { font-size: var(--lead); color: var(--soft); max-width: 38ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

.demo { width: 100%; padding: 16px 18px; border-radius: var(--r); background: color-mix(in srgb, var(--f1) 88%, transparent);
  box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 14px; }
.demo-title { font-weight: 700; display: flex; align-items: center; gap: 10px; }
.demo-title::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 #3ddc8488; animation: live 1.8s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 9px #3ddc8400; } 100% { box-shadow: 0 0 0 0 #3ddc8400; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 38px; padding: 0 14px; border-radius: 999px; border: 0; cursor: pointer; font: 500 14px IRANSansX, Vazirmatn, Tahoma, sans-serif;
  color: var(--ink); background: color-mix(in srgb, var(--ink) 8%, transparent); transition: background-color .2s, color .2s; }
.chip:hover { background: color-mix(in srgb, var(--ink) 15%, transparent); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--ground); }
.demo-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.demo-fields { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.fld { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; color: var(--soft); }

.fld input, .fld select, .fld textarea { width: 100%; min-height: 48px; border: 0; border-radius: 12px; padding: 10px 14px; color: var(--ink);
  background: color-mix(in srgb, var(--ink) 7%, var(--ground)); font: 500 16px/1.5 IRANSansX, Vazirmatn, Tahoma, sans-serif; box-shadow: inset 0 0 0 1px var(--line); }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: 0; box-shadow: inset 0 0 0 2px var(--accent); }
.fld input[dir="ltr"] { text-align: right; }
.demo .save { min-height: 48px; }
.demo-note { font-size: 13px; color: var(--soft); }

.stage { position: relative; height: min(62svh, 640px); min-height: 380px; }
.stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; opacity: 0; transition: opacity 1.2s var(--ease); }
.stage.ready canvas { opacity: 1; }
.stage-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .8s; }
.stage.ready .stage-poster { opacity: 0; pointer-events: none; }
.stage.flat { display: grid; place-items: center; }
.flat-laptop { width: 82%; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; border: 10px solid #1d2125; box-shadow: 0 40px 80px -30px #000; }
.flat-phone { position: absolute; left: 4%; bottom: 6%; width: 24%; aspect-ratio: 600 / 1300; border-radius: 26px; overflow: hidden; border: 8px solid #1d2125; box-shadow: 0 30px 60px -20px #000; }
.flat-laptop canvas, .flat-phone canvas { width: 100%; height: 100%; opacity: 1; position: static; }

/* ------------------------------------------------ live meter band */
.meter { background: var(--f2); color: var(--accent-ink); }
.meter-in { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 32px; align-items: center; padding-block: 44px; }
.meter-title { font-size: var(--lead); font-weight: 700; }
.meter-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.m { display: flex; flex-direction: column; gap: 2px; }
.m-val { white-space: nowrap; font-size: clamp(28px, 1rem + 2vw, 50px); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.m-lab { font-size: 15px; font-weight: 500; }

/* ------------------------------------------------ services */
.svc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.svc-card { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; text-decoration: none; color: #fff; background: var(--f1); isolation: isolate; }
.svc-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.svc-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(5, 7, 9, .92) 8%, rgba(5, 7, 9, .25) 55%, rgba(5, 7, 9, 0) 75%); }
.svc-card:hover img { transform: scale(1.06); }
.svc-body { position: absolute; inset: auto 0 0 0; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.svc-t { font-size: var(--h3); font-weight: 700; line-height: 1.3; }
.svc-p { font-size: 15px; line-height: 1.7; color: #e3e2de; }
.svc-go { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--accent); opacity: .85; transition: opacity .3s, transform .3s var(--ease); }
.svc-card:hover .svc-go { opacity: 1; transform: translateY(-3px); }

/* ------------------------------------------------ panel (a light section) */
.pnl { background: var(--f3); color: var(--accent-ink); --soft: color-mix(in srgb, var(--accent-ink) 70%, var(--f3)); }
.pnl-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: center; }
.pnl-shot { perspective: 1600px; }
.browser { border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 50px 100px -40px rgba(10, 15, 19, .45), 0 0 0 1px rgba(10, 15, 19, .08);
  transform: rotateY(-10deg) rotateX(5deg); transform-origin: 70% 50%; transition: transform 1s var(--ease); }
.pnl-shot:hover .browser { transform: none; }
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #e9e7e1; }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #c9c5bb; }
.browser-bar span { margin-inline-start: auto; margin-inline-end: auto; font-size: 12px; color: #5d6467; background: #f6f5f1; padding: 2px 14px; border-radius: 999px; }
.browser img { width: 100%; height: auto; }
.pnl-copy { display: flex; flex-direction: column; gap: 22px; }
.ticks { display: flex; flex-direction: column; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.ticks svg { margin-top: .32em; padding: 3px; width: 1.35em; height: 1.35em; border-radius: 50%; background: var(--accent); color: var(--accent-ink); }

/* ------------------------------------------------ features: bento */
.feat .h2 { margin-bottom: 48px; }
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(240px, auto); gap: 16px; }
.tile { border-radius: var(--r); padding: 30px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; background: var(--f4); }
.tile-phrase { font-size: clamp(26px, 1rem + 1.6vw, 44px); font-weight: 700; line-height: 1.15; letter-spacing: -0.015em; }
.tile-text { color: var(--soft); max-width: 44ch; }
.tile.t2 { grid-column: span 2; }
.tile.t1 { grid-column: span 2; grid-row: span 2; background: var(--accent); color: var(--accent-ink); --soft: color-mix(in srgb, var(--accent-ink) 75%, var(--accent)); }
.tile.t1 .tile-phrase { font-size: clamp(44px, 1.5rem + 4.6vw, 112px); line-height: 1.02; }
.tile.t3 { background: var(--f1); box-shadow: inset 0 0 0 1px var(--line); }

/* ------------------------------------------------ work */
.work .h2 { margin-bottom: 48px; }
.work-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; }
.case { border-radius: var(--r); background: var(--f1); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; display: flex; flex-direction: column; }
.case-pics { position: relative; padding: 32px 32px 0 72px; background: var(--f4); }
.case-d { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 12px 12px 0 0; }
.case-m { position: absolute; left: 24px; bottom: -24px; width: 22%; aspect-ratio: 540 / 1169; object-fit: cover; object-position: top; border-radius: 18px; border: 6px solid #0d1114; box-shadow: 0 24px 48px -16px #000; }
.case-body { padding: 34px 32px 32px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.case-meta { font-size: var(--small); color: var(--soft); }
.case-p { color: var(--soft); max-width: 60ch; }
.case.next { justify-content: space-between; align-items: flex-start; padding: 32px; gap: 16px; text-decoration: none; background: transparent;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 55%, transparent); transition: background-color .3s; }
.case.next:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.case.next .h3 { font-size: var(--h2); line-height: 1.1; }

/* ------------------------------------------------ pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan { position: relative; border-radius: var(--r); padding: 32px; background: var(--f1); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 12px; }
.plan .ticks { margin: 12px 0 24px; flex: 1; font-size: 15px; }
.plan .ticks svg { background: color-mix(in srgb, var(--ink) 12%, transparent); color: var(--ink); }
.plan-for { color: var(--soft); font-size: 15px; }
.plan-price { font-size: 15px; color: var(--soft); }
.plan-price b { font-size: clamp(32px, 1rem + 2vw, 50px); color: var(--ink); letter-spacing: -0.02em; margin-inline-end: 6px; }
.plan.feat { background: var(--accent); color: var(--accent-ink); box-shadow: none; --soft: color-mix(in srgb, var(--accent-ink) 72%, var(--accent)); }
.plan.feat .plan-price b { color: var(--accent-ink); }
.plan.feat .ticks svg { background: var(--accent-ink); color: var(--accent); }
.plan-flag { align-self: flex-start; font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: var(--accent-ink); color: var(--accent); }
.price-note { margin-top: 32px; color: var(--soft); max-width: 80ch; font-size: 15px; }

/* ------------------------------------------------ steps */
.steps { background: var(--f1); }
.steps .h2 { margin-bottom: 56px; max-width: 18ch; }
.step-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.step { position: relative; padding-top: 28px; display: flex; flex-direction: column; gap: 10px; }
.step::before { content: ""; position: absolute; top: 0; inset-inline: 0; height: 3px; border-radius: 3px; background: color-mix(in srgb, var(--ink) 12%, transparent); }
.step::after { content: ""; position: absolute; top: 0; inset-inline-start: 0; height: 3px; width: 0; border-radius: 3px; background: var(--accent); transition: width 1.2s var(--ease); transition-delay: calc(var(--d, 0) * 220ms + 200ms); }
.step.in::after { width: 100%; }
.step-n { font-size: 15px; font-weight: 700; color: var(--accent); }
.step p { color: var(--soft); }

/* ------------------------------------------------ contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; align-items: start; }
.contact-copy { display: flex; flex-direction: column; gap: 20px; }
.contact-rows { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.crow { font-size: var(--h3); font-weight: 700; }
.crow a { text-decoration: none; unicode-bidi: isolate; }
.crow a:hover { color: var(--accent); }
.lead { padding: 28px; border-radius: var(--r); background: var(--f1); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 16px; }
.lead .fld { font-size: 14px; }
.lead textarea { min-height: 110px; resize: vertical; }
.lead-end { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.lead-msg { font-weight: 700; color: var(--accent); }

/* ------------------------------------------------ footer */
.foot { background: var(--ground); overflow: hidden; padding-top: 64px; box-shadow: inset 0 1px 0 var(--line); }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px; margin-inline-start: -14px; }
.foot-legal { color: var(--soft); font-size: var(--small); }
.foot-credits { margin-top: 18px; color: color-mix(in srgb, var(--ink) 50%, var(--ground)); font-size: 13px; line-height: 1.8; max-width: 90ch; }
.foot-mark { font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; white-space: nowrap; text-align: center; color: var(--accent); font-size: 26vw; margin-top: 8px; margin-bottom: -0.12em; }
.foot-mark .fit { display: inline-block; transform-origin: 50% 100%; }

/* ------------------------------------------------ tablet and phone */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .visual { display: contents; }
  .stage { order: -1; height: 46svh; min-height: 320px; margin-inline: calc(var(--m) * -1); margin-bottom: -16px; }
  .demo { order: 2; }
  .sec-head, .pnl-grid, .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile.t1, .tile.t2 { grid-column: 1 / -1; grid-row: auto; }
  .plans { grid-template-columns: 1fr; max-width: 560px; }
  .step-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .work-grid { grid-template-columns: 1fr; }
  .meter-in { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 680px) {
  :root { --m: 16px; --r: 18px; }
  .nav { display: none; }
  .bar .btn { margin-inline-start: auto; }
  .stage { height: 40svh; min-height: 280px; }
  .demo-fields { grid-template-columns: 1fr 1fr; }
  .demo-fields .fld:first-child, .demo .save { grid-column: 1 / -1; }
  .cta-row .btn { flex: 1; }
  .meter-row { grid-template-columns: 1fr; gap: 14px; }
  .m { flex-direction: row-reverse; justify-content: space-between; align-items: baseline; gap: 12px; }
  .m-val { font-size: 30px; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc-card { aspect-ratio: 5 / 4; }
  .bento { grid-template-columns: 1fr; }
  .tile.t1 { grid-column: auto; grid-row: auto; }
  .tile.t1 .tile-phrase { font-size: 13vw; }
  .step-row { grid-template-columns: 1fr; }
  .case-pics { padding: 20px 20px 0 48px; }
  .case-body, .plan, .lead, .case.next { padding: 22px; }
  .browser { transform: none; }
}

/* ------------------------------------------------ motion (content stays visible without script) */
.js .rise { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
.js .rise.in { opacity: 1; transform: none; }
.arrive { animation: arrive .9s var(--ease) both; }
.hero-copy > .arrive:nth-child(2) { animation-delay: .1s; }
.hero-copy > .arrive:nth-child(3) { animation-delay: .2s; }
.demo.arrive { animation-delay: .35s; }
@keyframes arrive { from { opacity: 0; transform: translateY(24px); } }
@supports (animation-timeline: view()) {
  .browser { animation: straighten linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
  @keyframes straighten { from { transform: rotateY(-18deg) rotateX(10deg) scale(.92); } to { transform: rotateY(-4deg) rotateX(2deg); } }
  .svc-card img { animation: drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
  @keyframes drift { from { translate: 0 -4%; scale: 1.12; } to { translate: 0 4%; scale: 1.12; } }
  .foot-mark .fit { animation: markGrow linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
  @keyframes markGrow { from { transform: scale(.9) translateY(10%); } }
}
.pv .rise, .pv .arrive, .pv .fit { opacity: 1 !important; transform: none !important; transition: none !important; animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .rise { opacity: 1; transform: none; }
}
