/* ============================================================
   SiteFrame — styles.css
   Dark · Gold · Premium · Anim-heavy
   ============================================================ */

:root {
  --bg: #0a0a0a;
  --bg-1: #0f0f10;
  --bg-2: #151517;
  --bg-3: #1c1c1f;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.12);
  --text: #f5f5f5;
  --text-dim: #a8a8a8;
  --text-mute: #6c6c6c;
  --gold: #d4af37;
  --gold-bright: #f5d76e;
  --gold-soft: rgba(212, 175, 55, 0.15);
  --red: #dc2626;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-fa: 'Vazirmatn', 'Inter', sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --container: 1200px;
  --pad: clamp(20px, 4vw, 48px);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body[dir="rtl"] { font-family: var(--font-fa); }

img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
input, button { font-family: inherit; }

::selection { background: var(--gold); color: #000; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--pad);
}

/* ---------- film grain ---------- */
.grain {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/></svg>");
}

/* ---------- custom cursor (desktop only) ---------- */
.cursor, .cursor-trail {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease, width 0.2s ease, height 0.2s ease, opacity 0.2s;
  opacity: 0;
}
.cursor {
  width: 8px; height: 8px;
  background: var(--gold);
  mix-blend-mode: difference;
}
.cursor-trail {
  width: 36px; height: 36px;
  border: 1px solid var(--gold);
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1), width 0.3s, height 0.3s, opacity 0.3s, border-color 0.2s;
}
body.cursor-on .cursor,
body.cursor-on .cursor-trail { opacity: 1; }
.cursor-trail.is-hover {
  width: 64px; height: 64px;
  background: rgba(212,175,55,0.06);
  border-color: var(--gold-bright);
}
@media (max-width: 900px), (hover: none) {
  .cursor, .cursor-trail { display: none; }
  * { cursor: auto !important; }
}
body.cursor-on, body.cursor-on a, body.cursor-on button { cursor: none; }

/* ---------- typography ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; margin: 0; }
body[dir="rtl"] h1,
body[dir="rtl"] h2,
body[dir="rtl"] h3 { font-family: var(--font-fa); letter-spacing: 0; }

.gold { color: var(--gold); }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--pad);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(10, 10, 10, 0.55);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}
.nav.is-scrolled {
  background: rgba(10, 10, 10, 0.85);
  border-bottom-color: var(--line);
}

/* ---------- logo (typographic, with framed "Frame" + star inside on the right) ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--text);
  user-select: none;
  gap: 6px;
}
.logo__site { display: inline-block; }
.logo__frame {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 4px 26px 4px 10px;
  border: 1.5px solid var(--gold);
  border-radius: 8px;
  color: var(--text);
  overflow: visible;
}
.logo__star {
  position: absolute;
  right: 6px;
  top: 50%;
  width: 14px;
  height: 14px;
  fill: var(--gold);
  transform: translateY(-50%);
  filter: drop-shadow(0 0 8px rgba(212,175,55,0.6));
}
.logo__frame-text { display: inline-block; }
.logo--small { font-size: 18px; gap: 5px; }
.logo--small .logo__frame { padding: 3px 22px 3px 8px; }
.logo--small .logo__star { width: 12px; height: 12px; right: 5px; }

/* the escape animation: star flies up, frame pulses */
.logo .logo__star {
  animation: star-escape 5s ease-in-out infinite;
  transform-origin: center;
}
.logo__frame {
  animation: frame-pulse 5s ease-in-out infinite;
}
@keyframes star-escape {
  0%, 70%, 100% { transform: translateY(-50%) rotate(0) scale(1); opacity: 1; }
  78% { transform: translate(-8px, -150%) rotate(-40deg) scale(0.9); opacity: 1; }
  85% { transform: translate(-20px, -200%) rotate(-120deg) scale(0.6); opacity: 0; }
  86% { transform: translate(2px, -50%) rotate(0) scale(0); opacity: 0; }
  92% { transform: translateY(-50%) rotate(0) scale(1.2); opacity: 1; }
}
@keyframes frame-pulse {
  0%, 70%, 100% { box-shadow: 0 0 0 rgba(212,175,55,0); }
  85% { box-shadow: 0 0 24px rgba(212,175,55,0.5); border-color: var(--gold-bright); }
}

/* ---------- nav right / lang switcher ---------- */
.nav__right { position: relative; }
.lang {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s;
}
.lang:hover { border-color: var(--gold); background: rgba(212,175,55,0.05); }
.lang__current { display: inline-flex; align-items: center; gap: 6px; }
.flag {
  width: 22px; height: 14px;
  border-radius: 2px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.1);
}
.lang__chev { width: 10px; height: 6px; transition: transform 0.2s; }
.lang.is-open .lang__chev { transform: rotate(180deg); }

.lang__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 180px;
  padding: 6px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.lang__menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 13px;
  text-align: left;
  transition: background 0.15s;
}
.lang__item:hover { background: rgba(255,255,255,0.05); }
.lang__item.is-active { background: rgba(212,175,55,0.08); color: var(--gold); }
.lang__item span:nth-child(2) { flex: 1; }
.lang__code { font-size: 11px; color: var(--text-mute); letter-spacing: 0.05em; }

body[dir="rtl"] .lang__menu { right: auto; left: 0; }
body[dir="rtl"] .lang__item { text-align: right; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform 0.3s; }
.btn--primary {
  background: var(--gold);
  color: #0a0a0a;
  box-shadow: 0 8px 30px rgba(212,175,55,0.3);
}
.btn--primary:hover {
  background: var(--gold-bright);
  box-shadow: 0 12px 40px rgba(212,175,55,0.45);
}
.btn--primary:hover svg { transform: translateX(4px); }
.btn--ghost {
  border: 1px solid var(--line-2);
  color: var(--text);
}
.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(212,175,55,0.05);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 140px;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 75%);
  opacity: 0.7;
}
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.45;
}
.hero__glow--1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(212,175,55,0.3), transparent 70%);
  top: 20%; left: -10%;
  animation: float 20s ease-in-out infinite;
}
.hero__glow--2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(212,175,55,0.18), transparent 70%);
  bottom: 0; right: -10%;
  animation: float 24s ease-in-out infinite reverse;
}
@keyframes float {
  0%, 100% { transform: translate(0,0); }
  50% { transform: translate(40px, -30px); }
}

.hero__content {
  position: relative;
  z-index: 2;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 32px;
  background: rgba(255,255,255,0.02);
}
.hero__eyebrow .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero__title {
  font-size: clamp(40px, 8vw, 96px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
  max-width: 14ch;
}

.hero__sub {
  font-size: clamp(17px, 1.6vw, 21px);
  color: var(--text-dim);
  max-width: 52ch;
  margin: 0 0 44px;
  font-weight: 400;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 80px;
}

.hero__stats {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: clamp(16px, 2.4vw, 32px);
  padding-top: 36px;
  margin-bottom: 80px;
  border-top: 1px solid var(--line);
  max-width: 1040px;
}
.stat {
  flex: 1 1 0;
  min-width: 0;
}
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
  line-height: 1;
  white-space: nowrap;
}
.stat__label {
  font-size: 11px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stat__div {
  flex: 0 0 1px;
  width: 1px;
  height: 36px;
  background: var(--line);
}
@media (max-width: 820px) {
  .hero__stats {
    flex-wrap: wrap;
    gap: 22px 24px;
    max-width: 100%;
  }
  .stat { flex: 1 1 40%; }
  .stat__div { display: none; }
}

.hero__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 80px;
  font-size: 11px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  z-index: 2;
}
.hero__scroll svg {
  width: 14px; height: 22px;
  color: var(--text-mute);
}
.hero__scroll svg circle {
  animation: scroll-dot 2s ease-in-out infinite;
}
@keyframes scroll-dot {
  0% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(8px); opacity: 0; }
  61%, 100% { transform: translateY(0); opacity: 1; }
}

/* ---------- section heads ---------- */
.section-head {
  margin-bottom: 60px;
  max-width: 800px;
}
.section-head__num {
  display: inline-block;
  font-size: 13px;
  font-family: var(--font-display);
  color: var(--gold);
  letter-spacing: 0.2em;
  margin-bottom: 16px;
  padding-left: 36px;
  position: relative;
}
.section-head__num::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 24px; height: 1px;
  background: var(--gold);
}
.section-head__title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.section-head__sub {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 56ch;
}

/* ---------- WHY section ---------- */
.why { padding: 120px 0; }
.why__grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(20px, 3vw, 40px);
  align-items: stretch;
}
.why__card {
  border: 1px solid var(--line);
  background: var(--bg-1);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
}
.why__card--bad { opacity: 0.85; }
.why__card--good {
  border-color: rgba(212,175,55,0.3);
  background: linear-gradient(180deg, rgba(212,175,55,0.04), transparent 60%);
}
.why__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-mute);
  margin-bottom: 18px;
}
.why__label--good { color: var(--gold); }
/* google-maps-style mockup */
.map {
  position: relative;
  aspect-ratio: 16/10;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 30% 20%, rgba(40,40,42,.6) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(30,30,32,.7) 0%, transparent 60%),
    #16161a;
}
.map__streets {
  position: absolute; inset: 0;
}
.map__streets .map__h, .map__streets .map__v {
  position: absolute;
  background: #2c2c30;
  box-shadow: 0 0 0 1px rgba(0,0,0,.3);
}
.map__streets .map__h { left: -2%; right: -2%; height: 9px; transform: skewY(-1deg); }
.map__streets .map__v { top: -2%; bottom: -2%; width: 8px; transform: skewX(2deg); }
.map__street-name {
  position: absolute;
  font-size: 9px;
  color: #5a5a60;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
}

.map__pin {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 10px;
  color: var(--text-dim);
  white-space: nowrap;
  pointer-events: none;
}
.map__pin .map__icon {
  display: inline-block;
  font-size: 14px;
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.6));
}
.map__pin--gray .map__icon { color: #888; }
.map__pin--gray .map__pin-name {
  margin-top: 2px;
  font-size: 9px;
  color: #888;
  background: rgba(0,0,0,.5);
  padding: 1px 5px;
  border-radius: 3px;
  letter-spacing: 0.02em;
}
.map__pin--lost .map__icon {
  color: #555;
  font-size: 12px;
}

/* the "you with site" pin = gold marker + popup */
.map__pin--you {
  z-index: 4;
}
.map__marker {
  width: 28px; height: 38px;
  filter: drop-shadow(0 4px 8px rgba(212,175,55,.5));
  animation: marker-bounce 2.4s ease-in-out infinite;
}
@keyframes marker-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.map__pulse {
  position: absolute;
  top: 50%; left: 50%;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--gold);
  transform: translate(-50%, -50%);
  opacity: 0.4;
  animation: map-pulse 2s ease-out infinite;
}
.map__pulse--2 { animation-delay: 1s; }
@keyframes map-pulse {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
  100% { transform: translate(-50%, -50%) scale(4.5); opacity: 0; }
}
.map__popup {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: #fafafa;
  color: #0a0a0a;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,.4), 0 0 0 1px rgba(212,175,55,.4);
  white-space: nowrap;
  font-size: 11px;
  pointer-events: none;
  animation: popup-in .8s 1.2s cubic-bezier(.2,.8,.2,1) backwards;
}
@keyframes popup-in {
  0% { opacity: 0; transform: translate(-50%, 8px) scale(.85); }
  100% { opacity: 1; transform: translate(-50%, 0) scale(1); }
}
.map__popup::after {
  content: '';
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #fafafa;
}
.map__popup-img {
  width: 28px; height: 28px;
  border-radius: 5px;
  background: linear-gradient(135deg, #d4af37, #8b6f1d);
  flex-shrink: 0;
}
.map__popup-body { display: flex; flex-direction: column; line-height: 1.2; gap: 1px; }
.map__popup-body strong { font-size: 11px; font-weight: 600; color: #0a0a0a; }
.map__rating { font-size: 10px; color: #f59e0b; }
.map__rating em { font-style: normal; color: #555; margin-left: 3px; }
.map__link { font-size: 10px; color: #1a73e8; font-weight: 500; }
.why__list { list-style: none; padding: 0; margin: 0 0 18px; }
.why__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px dashed var(--line);
}
.why__list li:last-child { border-bottom: 0; }
.why__list li.dim { color: var(--text-mute); }
.why__list svg { width: 16px; height: 16px; flex-shrink: 0; }
.why__quote {
  margin: 0;
  padding: 14px 16px;
  background: rgba(220,38,38,0.06);
  border-left: 2px solid var(--red);
  border-radius: 6px;
  font-style: italic;
  font-size: 14px;
  color: #ff8e8e;
}
.why__quote--good {
  background: rgba(212,175,55,0.08);
  border-left-color: var(--gold);
  color: var(--gold-bright);
}
.why__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
}
.why__arrow svg { width: 60px; }

@media (max-width: 800px) {
  .why__grid { grid-template-columns: 1fr; }
  .why__arrow { transform: rotate(90deg); margin: 0 auto; }
}

/* ---------- FEATURES ---------- */
.features { padding: 120px 0; background: var(--bg-1); position: relative; }
.features::before, .features::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2), transparent);
}
.features::before { top: 0; }
.features::after { bottom: 0; }

.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  --mx: 50%; --my: 50%;
}
.features__grid::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(212,175,55,0.10), transparent 50%);
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.4s;
  opacity: 0;
}
.features__grid:hover::before { opacity: 1; }
.feature { position: relative; z-index: 2; }
.feature {
  background: var(--bg-1);
  padding: 36px 28px;
  transition: background 0.3s;
  position: relative;
}
.feature:hover {
  background: var(--bg-2);
}
.feature::after {
  content: '';
  position: absolute;
  left: 28px; bottom: 28px; right: 28px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.feature:hover::after { transform: scaleX(1); }
.feature__icon {
  width: 44px; height: 44px;
  margin-bottom: 22px;
  color: var(--gold);
}
.feature__icon svg { width: 100%; height: 100%; }
.feature h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}
.feature p {
  font-size: 14px;
  color: var(--text-dim);
  margin: 0;
  line-height: 1.55;
}
@media (max-width: 1000px) { .features__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features__grid { grid-template-columns: 1fr; } }

/* ---------- PORTFOLIO ---------- */
.portfolio { padding: 120px 0; }
.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.work {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-1);
  border: 1px solid var(--line);
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1), border-color 0.3s, box-shadow 0.3s;
  text-decoration: none;
}
.work:hover {
  transform: translateY(-6px);
  border-color: rgba(212,175,55,0.4);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5), 0 0 40px rgba(212,175,55,0.1);
}
.work__browser {
  background: #1a1a1a;
  border-bottom: 1px solid var(--line);
  position: relative;
  aspect-ratio: 4/3;
  display: flex;
  flex-direction: column;
}
.work__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.work__bar span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #2a2a2a;
}
.work__bar span:first-child { background: #ff5f57; opacity: 0.6; }
.work__bar span:nth-child(2) { background: #febc2e; opacity: 0.6; }
.work__bar span:nth-child(3) { background: #28c840; opacity: 0.6; }
.work__preview {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.work__preview::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(212,175,55,0.15), transparent 70%);
}
.work__preview--1 { background: linear-gradient(135deg, #2a1810 0%, #1a0e07 100%); }
.work__preview--2 { background: linear-gradient(135deg, #1f2a3a 0%, #0e1620 100%); }
.work__preview--3 { background: linear-gradient(135deg, #2a1f10 0%, #1a1408 100%); }
.work__preview-title {
  position: relative;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.work__preview-sub {
  position: relative;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.work__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
}
.work__meta h3 { font-size: 17px; font-weight: 600; }
.work__cta {
  font-size: 13px;
  color: var(--text-dim);
  transition: color 0.2s, transform 0.2s;
}
.work:hover .work__cta { color: var(--gold); }

@media (max-width: 900px) { .portfolio__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .portfolio__grid { grid-template-columns: 1fr; } }

/* ---------- CALCULATOR ---------- */
.calculator {
  padding: 120px 0;
  background: var(--bg-1);
  position: relative;
}
.calculator::before, .calculator::after {
  content: ''; position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2), transparent);
}
.calculator::before { top: 0; }
.calculator::after { bottom: 0; }

.calc {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
}
.calc__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.calc__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 22px 24px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  cursor: pointer;
}
.calc__row:hover { border-color: var(--line-2); background: var(--bg-3); }
.calc__row:has(input:checked) {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(212,175,55,0.06), var(--bg-2));
}
.calc__row--locked { cursor: default; }
.calc__row--locked:hover { background: var(--bg-2); border-color: var(--gold); }
.calc__row--locked { border-color: var(--gold); background: linear-gradient(180deg, rgba(212,175,55,0.04), var(--bg-2)); }
.calc__row--quote { cursor: default; opacity: 0.85; }

.calc__row input[type="checkbox"] {
  appearance: none;
  width: 22px; height: 22px;
  border: 1.5px solid var(--line-2);
  border-radius: 6px;
  position: relative;
  transition: background 0.15s, border-color 0.15s;
  flex-shrink: 0;
}
.calc__row input[type="checkbox"]:checked {
  background: var(--gold);
  border-color: var(--gold);
}
.calc__row input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 6px; top: 2px;
  width: 6px; height: 11px;
  border: solid #0a0a0a;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.calc__row input:disabled { opacity: 0.7; }

.calc__name { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.calc__desc { font-size: 13px; color: var(--text-dim); }
.calc__price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--gold);
  white-space: nowrap;
  text-align: right;
}
.calc__price span { font-size: 12px; color: var(--text-mute); margin-left: 4px; font-weight: 400; }
.calc__price--quote { font-size: 14px; color: var(--text-dim); }

.calc__total {
  position: sticky;
  top: 100px;
  padding: 32px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--gold);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px -20px rgba(212,175,55,0.2);
}
.calc__total-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 18px;
}
.calc__total-year {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 8px;
  font-family: var(--font-display);
  letter-spacing: -0.04em;
}
.calc__total-num { font-size: 64px; font-weight: 700; line-height: 1; color: var(--text); }
.calc__total-cur { font-size: 32px; color: var(--gold); }
.calc__total-per { font-size: 16px; color: var(--text-mute); margin-left: 4px; }
.calc__total-month {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.calc__total-month strong { color: var(--gold); font-weight: 600; }
.calc__total-once {
  font-size: 14px;
  color: var(--text-dim);
  padding-top: 14px;
  border-top: 1px solid var(--line);
  margin-bottom: 22px;
  display: none;
}
.calc__total-once.is-visible { display: block; }
.calc__total-once strong { color: var(--text); font-weight: 600; }
.calc__cta {
  width: 100%;
  justify-content: center;
}
.calc__total-note {
  font-size: 12px;
  color: var(--text-mute);
  text-align: center;
  margin-top: 14px;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .calc { grid-template-columns: 1fr; }
  .calc__total { position: static; }
}
@media (max-width: 560px) {
  .calc__row { grid-template-columns: auto 1fr; }
  .calc__price { grid-column: 2; padding-left: 0; text-align: left; }
}

/* ---------- STORY ---------- */
.story { padding: 120px 0; }
.lineage {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 80px;
  padding: 50px 30px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.lineage__step {
  flex: 1;
  min-width: 200px;
  text-align: center;
  padding: 20px;
  border-radius: var(--radius);
  transition: transform 0.3s, background 0.3s;
}
.lineage__step--active {
  background: linear-gradient(180deg, rgba(212,175,55,0.08), transparent);
  transform: scale(1.04);
}
.lineage__brand {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.lineage__star {
  width: 22px; height: 22px;
  margin-right: 6px;
  display: inline-flex;
}
.lineage__star svg { width: 100%; height: 100%; fill: var(--gold); filter: drop-shadow(0 0 6px rgba(212,175,55,0.5)); }
.lineage__word { white-space: nowrap; }
.lineage__framed {
  display: inline-block;
  padding: 2px 8px;
  border: 1.5px solid var(--gold);
  border-radius: 6px;
  margin-left: 2px;
}
.lineage__desc {
  font-size: 13px;
  color: var(--text-dim);
  margin: 0;
  max-width: 22ch;
  margin-inline: auto;
}
.lineage__arrow svg { width: 40px; height: 12px; }

@media (max-width: 800px) {
  .lineage { flex-direction: column; }
  .lineage__arrow { transform: rotate(90deg); }
}

.story__text {
  max-width: 720px;
  margin: 0 auto 60px;
  font-size: 17px;
  color: var(--text-dim);
  text-align: center;
}
.story__text p { margin: 0 0 18px; }
.story__text strong { color: var(--gold); font-weight: 600; }

/* industries strip — any local business */
.industries {
  margin: 60px auto 50px;
  max-width: 1100px;
  text-align: center;
}
.industries__label {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.industries__track {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.industries__track > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 13px;
  color: var(--text-dim);
  background: var(--bg-1);
  transition: border-color 0.25s, color 0.25s, transform 0.25s, background 0.25s;
}
.industries__track > span:hover {
  border-color: var(--gold);
  color: var(--text);
  transform: translateY(-2px);
  background: var(--bg-2);
}
.industries__more {
  border-style: dashed !important;
  color: var(--gold) !important;
  font-style: italic;
}

.story__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 13px;
  color: var(--text-dim);
  background: var(--bg-1);
}
.badge svg { width: 16px; height: 16px; color: var(--gold); }
.badge strong { color: var(--text); font-weight: 600; }

/* ---------- CONTACT ---------- */
.contact {
  padding: 140px 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-1) 100%);
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  width: 800px; height: 800px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(212,175,55,0.12), transparent 60%);
  filter: blur(80px);
  pointer-events: none;
}
.contact__inner {
  text-align: center;
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}
.contact__title {
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 600;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  line-height: 1;
}
.contact__title span { display: block; }
.contact__sub {
  font-size: 18px;
  color: var(--text-dim);
  margin-bottom: 50px;
}
.contact__cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 30px;
}
@media (max-width: 700px) {
  .contact__cards { grid-template-columns: 1fr; }
}
.contact__card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 26px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.25s, transform 0.25s, background 0.25s;
  text-align: left;
}
.contact__card:hover {
  border-color: var(--gold);
  background: var(--bg-3);
  transform: translateY(-3px);
}
.contact__icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(212,175,55,0.1);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact__icon svg { width: 22px; height: 22px; }
.contact__icon--wa { background: rgba(37,211,102,0.1); color: #25d366; }
.contact__card-body { flex: 1; }
.contact__card-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-mute);
  margin-bottom: 4px;
}
.contact__card-value {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
}
.contact__card-arrow {
  width: 16px; height: 16px;
  color: var(--text-mute);
  transition: color 0.2s, transform 0.2s;
}
.contact__card:hover .contact__card-arrow {
  color: var(--gold);
  transform: translateX(4px);
}
.contact__note {
  font-size: 13px;
  color: var(--text-mute);
  margin-top: 20px;
}

/* ---------- FOOTER ---------- */
.footer {
  padding: 50px 0 30px;
  border-top: 1px solid var(--line);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 30px;
  align-items: center;
}
.footer__brand p {
  font-size: 13px;
  color: var(--text-mute);
  margin: 6px 0 0;
}
.footer__links {
  display: flex;
  gap: 24px;
  font-size: 14px;
  justify-content: center;
}
.footer__links a {
  color: var(--text-dim);
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--gold); }
.footer__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 12px;
  color: var(--text-mute);
  gap: 4px;
}

@media (max-width: 760px) {
  .footer__inner { grid-template-columns: 1fr; text-align: center; }
  .footer__copy { align-items: center; }
}

/* ---------- reveal animations ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(.2,.8,.2,1), transform 0.8s cubic-bezier(.2,.8,.2,1);
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- RTL tweaks ---------- */
body[dir="rtl"] .logo__star { right: auto; left: 6px; }
body[dir="rtl"] .logo__frame { padding: 4px 10px 4px 26px; }
body[dir="rtl"] .logo--small .logo__frame { padding: 3px 8px 3px 22px; }
body[dir="rtl"] .logo--small .logo__star { left: 5px; right: auto; }
body[dir="rtl"] .lineage__star { margin-right: 0; margin-left: 6px; }
body[dir="rtl"] .lineage__framed { margin-left: 0; margin-right: 2px; }
body[dir="rtl"] .section-head__num { padding-left: 0; padding-right: 36px; }
body[dir="rtl"] .section-head__num::before { left: auto; right: 0; }
body[dir="rtl"] .calc__price { text-align: left; }
body[dir="rtl"] .why__quote { border-left: 0; border-right: 2px solid var(--red); }
body[dir="rtl"] .why__quote--good { border-right-color: var(--gold); }
body[dir="rtl"] .why__arrow svg { transform: scaleX(-1); }
body[dir="rtl"] .lineage__arrow svg { transform: scaleX(-1); }
body[dir="rtl"] .btn svg, body[dir="rtl"] .work__cta { transform: scaleX(-1); }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
