:root {
  --navy: #0b1324;
  --graphite: #1a1d23;
  --ivory: #f7f6f2;
  --paper: #fffefa;
  --blue: #2563eb;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft-blue: #eef4ff;
  --grid: rgba(11, 19, 36, 0.08);
  --dark-line: rgba(247, 246, 242, 0.16);
  --shadow: 0 22px 60px rgba(11, 19, 36, 0.12);
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 118px;
  background: var(--ivory);
}

body {
  margin: 0;
  background:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    var(--ivory);
  background-size: 160px 160px;
  color: var(--navy);
  font-family: "Space Grotesk", "IBM Plex Sans Arabic", system-ui, sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

body[dir="rtl"] {
  font-family: "IBM Plex Sans Arabic", "Space Grotesk", system-ui, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 34px;
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  padding: 14px 16px;
  background: rgba(255, 254, 250, 0.86);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(11, 19, 36, 0.04);
  backdrop-filter: blur(18px);
}

section {
  scroll-margin-top: 118px;
}

.brand,
.header-actions,
.hero-actions,
.contact-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  min-width: max-content;
  overflow: hidden;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
}

.brand-mark svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: var(--navy);
  stroke-width: 4.4;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.brand-mark .brand-accent {
  stroke: var(--navy);
  stroke-width: 4;
}

.brand-text {
  display: grid;
  gap: 2px;
  text-transform: uppercase;
}

.brand-word {
  color: var(--navy);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.34em;
}

.brand-subword {
  color: var(--navy);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.44em;
}

body[dir="rtl"] .brand-word,
body[dir="rtl"] .brand-subword {
  letter-spacing: 0.16em;
}

.nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 2.4vw, 30px);
  color: var(--graphite);
  font-size: 0.76rem;
  font-weight: 600;
  min-width: 0;
}

.nav a {
  transition: color 180ms ease;
}

.nav a:hover {
  color: var(--blue);
}

.header-actions {
  gap: 10px;
}

.lang-toggle {
  display: grid;
  min-width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--navy);
  cursor: pointer;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  transition:
    transform 180ms cubic-bezier(0.22, 1, 0.36, 1),
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.button::after {
  content: " ->";
  margin-inline-start: 12px;
}

.button:hover {
  transform: translateY(-2px);
  background: #1d4ed8;
  border-color: #1d4ed8;
}

.button-small {
  min-height: 40px;
  padding-inline: 16px;
  font-size: 0.76rem;
}

.button-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.button-secondary:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.section-pad {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 108px 24px;
}

.hero {
  display: block;
  min-height: calc(100svh - 78px);
  padding-top: 72px;
}

.hero-copy {
  position: relative;
  max-width: 980px;
  padding-top: 58px;
}

.eyebrow,
.project-kicker,
.meta {
  display: block;
  margin: 0 0 18px;
  color: var(--graphite);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.project-kicker {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--blue);
}

body[dir="rtl"] .eyebrow,
body[dir="rtl"] .project-kicker,
body[dir="rtl"] .meta {
  letter-spacing: 0.06em;
}

body[dir="rtl"] .project-kicker {
  left: auto;
  right: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 980px;
  margin-bottom: 24px;
  color: var(--navy);
  font-size: clamp(3.2rem, 6.2vw, 6.15rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  max-width: 900px;
  margin-bottom: 22px;
  color: var(--navy);
  font-size: clamp(2.15rem, 4vw, 4.05rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: 0;
}

h3,
h4 {
  margin-bottom: 12px;
  color: var(--navy);
  font-size: 1.28rem;
  font-weight: 700;
}

h4 {
  margin-top: 0;
  font-size: 1.08rem;
}

p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-lede {
  max-width: 720px;
  font-size: 1.05rem;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.proof-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  padding: 0;
  background: var(--paper);
  border: 1px solid var(--line);
}

.proof-bar div {
  min-height: 114px;
  padding: 24px;
  border-inline-start: 1px solid var(--line);
}

.proof-bar div:first-child {
  border-inline-start: 0;
}

.proof-bar strong {
  display: block;
  margin-bottom: 9px;
  color: var(--navy);
  font-size: 1.44rem;
}

.proof-bar span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.split-section,
.about-section,
.contact-section {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 58px;
}

.work-section {
  display: grid;
  gap: 20px;
}

.work-section .section-heading {
  margin-bottom: 18px;
}

.work-section .section-heading h2 {
  max-width: none;
}

.split-section .section-intro,
.about-section .section-intro {
  position: sticky;
  top: 124px;
  align-self: start;
}

.section-intro p,
.section-heading p {
  max-width: 620px;
}

.work-carousel {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.carousel-viewport {
  position: relative;
  height: clamp(430px, 58vw, 620px);
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(11, 19, 36, 0.08), transparent 18%, transparent 82%, rgba(11, 19, 36, 0.08)),
    var(--paper);
  perspective: 1200px;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.carousel-viewport.is-dragging {
  cursor: grabbing;
}

.work-card {
  position: absolute;
  top: 30px;
  bottom: 30px;
  left: 50%;
  width: min(74%, 860px);
  display: block;
  min-height: 100%;
  background: var(--paper);
  border: 0;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-50%, 0, 0) scale(0.78) rotateY(0deg);
  transform-origin: center;
  transition:
    opacity 320ms ease,
    filter 320ms ease,
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

.work-card.is-active {
  opacity: 1;
  z-index: 4;
  pointer-events: auto;
  transform: translate3d(calc(-50% + var(--drag-x, 0px)), 0, 120px) scale(1) rotateY(0deg);
  filter: none;
  box-shadow: 0 28px 70px rgba(11, 19, 36, 0.18);
}

.work-card.is-prev {
  z-index: 2;
  opacity: 0.72;
  transform: translate3d(calc(-104% + var(--drag-x, 0px)), 0, -80px) scale(0.82) rotateY(13deg);
  filter: grayscale(0.18) saturate(0.88);
}

.work-card.is-next {
  z-index: 2;
  opacity: 0.72;
  transform: translate3d(calc(4% + var(--drag-x, 0px)), 0, -80px) scale(0.82) rotateY(-13deg);
  filter: grayscale(0.18) saturate(0.88);
}

.work-card.is-hidden-left {
  opacity: 0;
  transform: translate3d(calc(-150% + var(--drag-x, 0px)), 0, -160px) scale(0.7) rotateY(16deg);
}

.work-card.is-hidden-right {
  opacity: 0;
  transform: translate3d(calc(50% + var(--drag-x, 0px)), 0, -160px) scale(0.7) rotateY(-16deg);
}

.carousel-viewport.is-dragging .work-card {
  transition: opacity 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.work-card:focus-within .mockup,
.work-card.is-active:hover .mockup,
.work-card.is-active:focus-within .mockup {
  transform: none;
}

.work-card:focus-within .mockup::after,
.work-card.is-active:hover iframe,
.work-card.is-active:focus-within iframe {
  transform: scale(1.01);
  filter: saturate(1) contrast(1.02);
}

.mockup {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  background: var(--navy);
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: center;
}

.mockup iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
  transform: scale(1.01);
  transform-origin: top center;
  filter: saturate(0.88) contrast(0.98);
  transition:
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 260ms ease;
}

.mockup::before,
.mockup::after,
.mockup span {
  display: none;
  content: "";
  position: absolute;
  border: 1px solid rgba(247, 246, 242, 0.22);
}

.mockup::before {
  inset: 34px;
  z-index: 2;
  pointer-events: none;
}

.mockup::after {
  width: 42%;
  height: 50%;
  right: 38px;
  bottom: 38px;
  background: rgba(247, 246, 242, 0.06);
  z-index: 2;
  pointer-events: none;
  transition:
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 220ms ease;
}

body[dir="rtl"] .mockup::after {
  right: auto;
  left: 38px;
}

.mockup span:nth-child(1) {
  left: 38px;
  top: 42px;
  width: 42%;
  height: 8px;
}

.mockup iframe + span,
.mockup iframe ~ span {
  display: none;
}

.mockup span:nth-child(2) {
  left: 38px;
  top: 68px;
  width: 28%;
  height: 8px;
}

.mockup span:nth-child(3) {
  left: 38px;
  bottom: 42px;
  width: 34%;
  height: 38px;
  background: rgba(247, 246, 242, 0.06);
}

body[dir="rtl"] .mockup span {
  left: auto;
  right: 38px;
}

.mockup-dark {
  background:
    linear-gradient(90deg, rgba(37, 99, 235, 0.28), transparent 38%),
    var(--navy);
}

.mockup-light {
  background:
    linear-gradient(90deg, rgba(247, 246, 242, 0.16), transparent 44%),
    var(--graphite);
}

.mockup-blue {
  background:
    linear-gradient(90deg, rgba(37, 99, 235, 0.46), transparent 46%),
    var(--navy);
}

.mockup-clinic {
  background:
    linear-gradient(135deg, rgba(247, 246, 242, 0.2), transparent 42%),
    #17202b;
}

.mockup-traders {
  background:
    linear-gradient(90deg, rgba(26, 29, 35, 0.28), transparent 42%),
    linear-gradient(135deg, var(--navy), #243243);
}

.mockup-vanta {
  background:
    linear-gradient(145deg, rgba(53, 213, 255, 0.24), transparent 38%),
    linear-gradient(135deg, #070a10, #151d27 72%);
}

.mockup-atlas {
  background:
    linear-gradient(145deg, rgba(185, 147, 90, 0.26), transparent 38%),
    linear-gradient(135deg, #171410, #2a211b 72%);
}

.mockup-aurum {
  background:
    linear-gradient(145deg, rgba(169, 120, 69, 0.3), transparent 42%),
    linear-gradient(135deg, #1b1511, #2d221c 72%);
}

.work-overlay {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid rgba(247, 246, 242, 0.24);
  background: linear-gradient(135deg, rgba(8, 16, 28, 0.92), rgba(5, 8, 13, 0.72));
  color: var(--ivory);
  backdrop-filter: blur(6px);
}

.work-overlay-meta {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(53, 213, 255, 0.92);
}

.work-overlay h3 {
  margin: 0;
  font-size: 1.04rem;
  color: var(--ivory);
}

.work-overlay p {
  margin: 0;
  color: rgba(247, 246, 242, 0.84);
  font-size: 0.8rem;
  line-height: 1.5;
}

.card-body {
  position: absolute;
  right: 22px;
  top: 22px;
  bottom: auto;
  z-index: 5;
  padding: 0;
  background: transparent;
  border: 0;
  backdrop-filter: none;
}

.carousel-controls {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
}

.carousel-controls button {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--navy);
  min-height: 42px;
  padding: 0 14px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.carousel-controls button:hover {
  color: var(--blue);
  border-color: rgba(37, 99, 235, 0.38);
  transform: translateY(-1px);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.carousel-dots button {
  width: 42px;
  min-height: 10px;
  height: 10px;
  padding: 0;
  border-color: rgba(11, 19, 36, 0.16);
  background: transparent;
}

.carousel-dots button.is-active {
  background: var(--blue);
  border-color: var(--blue);
}

.preview-spotlight {
  position: fixed;
  inset: 20px;
  z-index: 80;
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--navy);
  border: 1px solid rgba(247, 246, 242, 0.22);
  box-shadow: 0 38px 120px rgba(11, 19, 36, 0.42);
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px) scale(0.965);
  transition:
    opacity 220ms ease,
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.preview-spotlight.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.preview-spotlight::before {
  content: "";
  position: absolute;
  inset: 18px;
  z-index: 2;
  border: 1px solid rgba(247, 246, 242, 0.14);
  pointer-events: none;
}

.preview-spotlight__bar {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 16px 18px;
  background: rgba(11, 19, 36, 0.92);
  border-bottom: 1px solid rgba(247, 246, 242, 0.14);
  color: var(--ivory);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.preview-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 34px;
  border: 1px solid rgba(247, 246, 242, 0.28);
  border-radius: 999px;
  background: rgba(247, 246, 242, 0.08);
  color: var(--ivory);
  font-size: 1rem;
  cursor: pointer;
}

.preview-spotlight iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

body.preview-open .site-header,
body.preview-open main > section:not(#work),
body.preview-open .site-footer {
  filter: blur(2px);
}

body.preview-open {
  overflow: hidden;
}

.card-body a,
.work-card a,
.preview-pill {
  color: var(--blue);
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
}

.card-body a::after,
.work-card a::after {
  content: " ->";
}

.work-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.preview-pill {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--blue);
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
}

.preview-pill,
.card-body a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding-inline: 14px;
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(11, 19, 36, 0.18);
  backdrop-filter: blur(18px);
}

.card-body a {
  border: 1px solid rgba(255, 254, 250, 0.72);
  background: rgba(255, 254, 250, 0.88);
}

.services-section {
  width: 100%;
  max-width: none;
  padding-inline: max(24px, calc((100vw - var(--max)) / 2 + 24px));
  background: var(--paper);
  border-block: 1px solid var(--line);
}

.section-heading {
  margin-bottom: 48px;
}

.section-heading > p:last-child {
  max-width: 620px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 590px;
  padding: 32px;
  background: var(--ivory);
  border: 1px solid var(--line);
}

.price-card.featured {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--ivory);
}

.price-card.featured p,
.price-card.featured li,
.price-card.featured h3,
.price-card.featured .meta {
  color: rgba(247, 246, 242, 0.82);
}

.price-card.featured h3 {
  color: var(--ivory);
}

.price-card.featured h4 {
  color: var(--ivory);
}

.plan-pill {
  align-self: flex-start;
  margin-bottom: 18px;
  padding: 7px 10px;
  background: var(--blue);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.price-card h3 {
  margin-bottom: 18px;
  font-size: clamp(2.35rem, 4vw, 3rem);
  line-height: 0.95;
}

.price-card h3 span {
  color: var(--muted);
  font-size: 0.9rem;
}

ul {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.price-card li,
.addon-grid li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  color: var(--graphite);
  font-size: 0.9rem;
}

.price-card.featured li {
  border-top-color: var(--dark-line);
}

.addon-grid {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 42px;
  margin-top: 18px;
  padding: 34px;
  background: var(--graphite);
  color: var(--ivory);
}

.addon-grid ul {
  margin-top: 0;
}

.addon-grid h3 {
  color: var(--ivory);
}

.addon-grid p,
.addon-grid li {
  color: rgba(247, 246, 242, 0.7);
}

.addon-grid li {
  border-top-color: var(--dark-line);
}

.addon-grid strong {
  color: var(--ivory);
}

.brand-pricing {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 0.36fr);
  gap: 28px;
  margin-top: 18px;
  padding: 34px;
  background: var(--ivory);
  border: 1px solid var(--line);
}

.brand-pricing > div:first-child {
  max-width: 720px;
}

.brand-price-block {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.brand-price-block span,
.brand-price-block em {
  color: var(--muted);
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.brand-price-block strong {
  color: var(--navy);
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  line-height: 1;
}

.brand-price-block small {
  color: var(--muted);
  font-size: 0.92rem;
}

.brand-items {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: 4px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.brand-items li {
  display: grid;
  gap: 14px;
  min-height: 118px;
  padding: 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--graphite);
}

.brand-items strong {
  color: var(--blue);
}

.process-section {
  width: 100%;
  max-width: none;
  padding-inline: max(24px, calc((100vw - var(--max)) / 2 + 24px));
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 48px;
  border-top: 1px solid var(--line);
}

.process-list article {
  min-height: 310px;
  padding: 28px 28px 0 0;
  border-inline-end: 1px solid var(--line);
}

body[dir="rtl"] .process-list article {
  padding: 28px 0 0 28px;
}

.process-list article:last-child {
  border-inline-end: 0;
}

.process-list span {
  display: block;
  margin-bottom: 78px;
  color: var(--blue);
  font-size: 0.74rem;
  font-weight: 700;
}

.about-section {
  align-items: start;
}

.about-copy {
  display: grid;
  gap: 18px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}


.answer-grid,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.answer-grid {
  margin-top: 10px;
}

.answer-grid article,
.faq-grid article {
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.answer-grid h3,
.faq-grid h3 {
  margin-bottom: 10px;
  font-size: 1rem;
}

.answer-grid p,
.faq-grid p {
  margin-bottom: 0;
  font-size: 0.92rem;
}

.faq-section {
  width: 100%;
  max-width: none;
  padding-inline: max(24px, calc((100vw - var(--max)) / 2 + 24px));
  background: var(--paper);
  border-block: 1px solid var(--line);
}

.faq-grid article {
  background: var(--ivory);
}

.contact-section {
  border-top: 1px solid var(--line);
}

.contact-links {
  flex-wrap: wrap;
  gap: 14px 22px;
  margin-top: 34px;
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 700;
}

.contact-links span {
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: 36px;
  background: var(--paper);
  border: 1px solid var(--line);
}

label {
  display: grid;
  gap: 9px;
  color: var(--graphite);
  font-size: 0.78rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  padding: 13px 14px;
  outline: none;
}

textarea {
  resize: vertical;
}

input.is-invalid,
select.is-invalid,
textarea.is-invalid {
  border-color: #dc2626;
  background: #fff5f5;
}

.field-error {
  margin: 8px 0 0;
  color: #dc2626;
  font-size: 0.78rem;
  line-height: 1.4;
  min-height: 1rem;
}

.form-status {
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
  min-height: 46px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.form-status.is-success,
.form-status.is-error {
  opacity: 1;
  transform: translateY(0);
}

.form-status.is-success {
  border-color: rgba(16, 185, 129, 0.4);
  background: #f0fdf4;
  color: #166534;
}

.form-status.is-error {
  border-color: rgba(220, 38, 38, 0.35);
  background: #fef2f2;
  color: #991b1b;
}

.button.is-loading {
  opacity: 0.8;
  cursor: wait;
}

.form-status:empty {
  display: none;
}

.contact-send-modal {
  position: fixed;
  inset: 0;
  z-index: 118;
  display: grid;
  place-items: center;
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.contact-send-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.contact-send-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 22, 0.66);
  backdrop-filter: blur(4px);
}

.contact-send-modal__panel {
  position: relative;
  width: min(560px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(11, 19, 36, 0.97);
  color: #f8fafc;
  padding: 28px;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.45);
  transform: scale(0.96) translateY(12px);
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-send-modal.is-open .contact-send-modal__panel {
  transform: scale(1) translateY(0);
}

.contact-send-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

body[dir='rtl'] .contact-send-modal__close {
  right: auto;
  left: 10px;
}

.contact-send-modal__panel h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(1.24rem, 2.8vw, 1.6rem);
}

.contact-send-modal__panel p {
  margin: 0 0 18px;
  color: rgba(248, 250, 252, 0.76);
}

.contact-send-modal__actions {
  display: grid;
  gap: 12px;
}

.contact-send-whatsapp {
  min-height: 46px;
  border: 1px solid #2563eb;
  background: #2563eb;
  color: #fff;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.contact-send-whatsapp:hover {
  transform: translateY(-1px);
  background: #1d4ed8;
  border-color: #1d4ed8;
}

.contact-send-email-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.contact-send-email {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-weight: 600;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.contact-send-email:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.54);
  background: rgba(255, 255, 255, 0.12);
}

input:focus,
select:focus,
textarea:focus,
.lang-toggle:focus-visible,
.button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.22);
  outline-offset: 3px;
}


.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 34px;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 42px 24px 58px;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--blue);
  font-weight: 700;
}

[data-reveal] {
  transform: translateY(14px);
  opacity: 0;
  transition:
    transform 500ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 500ms ease;
}

[data-reveal].is-visible {
  transform: translateY(0);
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 1020px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
    border-inline: 0;
  }

  .nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .hero,
  .split-section,
  .about-section,
  .contact-section,
  .addon-grid,
  .answer-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .split-section .section-intro,
  .about-section .section-intro {
    position: static;
  }

  .hero {
    min-height: auto;
    padding-top: 58px;
  }

  .pricing-grid,
  .proof-bar,
  .process-list,
  .brand-items {
    grid-template-columns: 1fr 1fr;
  }

  .work-card,
  .work-card.is-active {
    display: block;
  }

  .carousel-viewport {
    height: 620px;
    min-height: 0;
  }

  .work-card {
    width: min(82%, 680px);
  }

  .work-card.is-prev {
    transform: translate3d(calc(-108% + var(--drag-x, 0px)), 0, -70px) scale(0.78) rotateY(9deg);
  }

  .work-card.is-next {
    transform: translate3d(calc(8% + var(--drag-x, 0px)), 0, -70px) scale(0.78) rotateY(-9deg);
  }
}

@media (max-width: 680px) {
  html {
    scroll-padding-top: 132px;
  }

  section {
    scroll-margin-top: 132px;
  }

  .site-header {
    width: 100%;
    margin-top: 0;
    padding: 12px;
    gap: 12px;
  }

  .brand-word {
    font-size: 0.82rem;
    letter-spacing: 0.22em;
  }

  .brand-subword {
    font-size: 0.54rem;
    letter-spacing: 0.3em;
  }

  .header-actions .button {
    display: none;
  }

  .section-pad {
    padding: 68px 18px;
  }

  .hero {
    padding-top: 44px;
  }

  h1 {
    font-size: clamp(2.6rem, 13vw, 4.2rem);
    line-height: 1.03;
  }

  h2 {
    font-size: clamp(2rem, 9.5vw, 3.1rem);
    line-height: 1.08;
  }

  .proof-bar,
  .pricing-grid,
  .process-list,
  .brand-pricing,
  .brand-items {
    grid-template-columns: 1fr;
  }

  .proof-bar {
    width: calc(100% - 36px);
  }

  .proof-bar div {
    min-height: auto;
    border-inline-start: 0;
    border-top: 1px solid var(--line);
  }

  .proof-bar div:first-child {
    border-top: 0;
  }

  .process-list article,
  body[dir="rtl"] .process-list article {
    min-height: auto;
    padding: 24px 0;
    border-inline-end: 0;
    border-bottom: 1px solid var(--line);
  }

  .process-list article:last-child {
    border-bottom: 0;
  }

  .process-list span {
    margin-bottom: 26px;
  }

  .card-body,
  .price-card,
  .addon-grid,
  .brand-pricing,
  .contact-form {
    padding: 24px;
  }

  .carousel-viewport {
    height: 560px;
    min-height: 0;
  }

  .work-card {
    top: 18px;
    bottom: 18px;
    width: 86%;
  }

  .work-card,
  .work-card.is-active {
    grid-template-columns: 1fr;
  }

  .mockup {
    aspect-ratio: 3 / 2;
  }

  .work-overlay {
    left: 14px;
    right: 14px;
    bottom: 14px;
    padding: 12px;
  }

  .work-overlay p {
    font-size: 0.74rem;
  }

  .card-body {
    right: 14px;
    top: 14px;
    bottom: auto;
  }

  .work-actions {
    justify-content: flex-start;
  }

  .preview-spotlight {
    inset: 8px;
  }

  .preview-spotlight__bar {
    padding: 12px;
    font-size: 0.58rem;
    letter-spacing: 0.08em;
  }

  .carousel-controls {
    grid-template-columns: 1fr;
  }

  .carousel-dots {
    order: -1;
  }

  .price-card {
    min-height: auto;
  }

  .answer-grid article,
  .faq-grid article {
    padding: 20px;
  }

  .brand-items {
    border-left: 0;
  }

  .brand-items li {
    border-right: 0;
  }

  .site-footer {
    grid-template-columns: 1fr;
    padding: 34px 18px 48px;
  }
}


.currency-switcher-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 26px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: rgba(255, 254, 250, 0.82);
  backdrop-filter: blur(10px);
}

.currency-switcher-label {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.currency-switcher {
  min-height: 36px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--navy);
  padding: 0 10px;
  font-size: 0.82rem;
  font-weight: 600;
}

.currency-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.currency-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.currency-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 13, 21, 0.58);
  backdrop-filter: blur(3px);
}

.currency-modal__panel {
  position: relative;
  width: min(540px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(11, 19, 36, 0.96);
  color: #f8fafc;
  padding: 28px;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.45);
  transform: scale(0.96) translateY(12px);
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.currency-modal.is-open .currency-modal__panel {
  transform: scale(1) translateY(0);
}

.currency-modal__panel h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(1.26rem, 2.6vw, 1.62rem);
}

.currency-modal__panel p {
  margin: 0 0 18px;
  color: rgba(248, 250, 252, 0.76);
}

.currency-modal__buttons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.currency-btn {
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-weight: 700;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.currency-btn:hover,
.currency-btn.is-active {
  background: #2563eb;
  border-color: #2563eb;
  transform: translateY(-1px);
}

.currency-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

body[dir='rtl'] .currency-modal__close {
  right: auto;
  left: 10px;
}

@media (max-width: 760px) {
  .contact-send-modal__panel {
    padding: 22px 18px;
  }

  .contact-send-email-grid {
    grid-template-columns: 1fr;
  }

  .currency-modal__buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .currency-switcher-wrap {
    width: 100%;
    justify-content: space-between;
  }

  .currency-switcher {
    min-width: 120px;
  }

}
