:root {
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --surface: #ffffff;
  --surface-strong: #eef3f9;
  --border: rgba(15, 23, 42, 0.09);
  --border-strong: rgba(15, 23, 42, 0.16);
  --text: #0f172a;
  --text-muted: #64748b;
  --accent: #0284c7;
  --accent-2: #4f46e5;
  --accent-glow: rgba(2, 132, 199, 0.22);
  --on-accent: #ffffff;
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1160px;
  --shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  /* `clip` keeps decorative overflow out of view without turning the
     element into a scroll container, which would break RTL scroll origin. */
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: "Heebo", "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body.no-scroll { overflow: hidden; }

img { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: #0369a1; }

h1, h2, h3 { line-height: 1.25; margin: 0; font-weight: 700; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: fixed;
  inset-inline-start: 16px;
  top: -80px;
  background: var(--accent);
  color: var(--on-accent);
  padding: 10px 18px;
  font-weight: 700;
  z-index: 200;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: top .2s ease;
}
.skip-link:focus { top: 0; color: var(--on-accent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  color: var(--on-accent);
  box-shadow: 0 6px 18px var(--accent-glow);
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-text {
  font-size: 1.3rem;
  font-weight: 300;
  letter-spacing: .5px;
  direction: ltr;
}
.brand-text strong { font-weight: 900; }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: .97rem;
  font-weight: 500;
  transition: color .2s ease, background .2s ease;
}
.site-nav a:hover { color: var(--text); background: var(--surface-strong); }
.site-nav a.is-active { color: var(--text); background: var(--surface-strong); }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3.5px auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--on-accent);
  box-shadow: 0 12px 30px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px var(--accent-glow); color: var(--on-accent); }
.btn-ghost {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover { background: var(--surface-strong); border-color: var(--accent); color: var(--text); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 170px 0 110px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 50% -8%, rgba(79, 70, 229, 0.12), transparent 70%),
    radial-gradient(700px 420px at 80% 10%, rgba(2, 132, 199, 0.1), transparent 65%),
    linear-gradient(180deg, var(--bg-soft), var(--bg));
}
.hero-glow {
  position: absolute;
  width: min(620px, 100%);
  height: 620px;
  top: -280px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--accent-glow), transparent 62%);
  filter: blur(30px);
  pointer-events: none;
}
.hero-inner { position: relative; }

.eyebrow {
  display: inline-block;
  margin: 0 0 22px;
  padding: 7px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: .9rem;
  letter-spacing: .3px;
}
.eyebrow strong { color: var(--text); font-weight: 700; }

.hero h1 {
  font-size: clamp(3.4rem, 11vw, 6.6rem);
  font-weight: 900;
  letter-spacing: -2px;
  direction: ltr;
  background: linear-gradient(135deg, #0f172a 10%, var(--accent) 55%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero-sub {
  margin: 10px 0 0;
  font-size: clamp(1.2rem, 3.4vw, 1.85rem);
  font-weight: 500;
  color: var(--text);
}
.hero-lead {
  max-width: 620px;
  margin: 20px auto 0;
  color: var(--text-muted);
  font-size: 1.08rem;
}
.hero-lead strong { color: var(--accent); }

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 66px 0 0;
  padding: 0;
  list-style: none;
}
.hero-stats li {
  flex: 1 1 170px;
  max-width: 230px;
  padding: 20px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(8px);
}
.stat-num {
  display: block;
  direction: ltr;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.1;
  color: var(--accent);
}
.stat-label { display: block; font-size: .92rem; color: var(--text-muted); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}
.section-title {
  font-size: clamp(1.75rem, 4.6vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -.5px;
  max-width: 780px;
}
.section-title span {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.section-lead {
  max-width: 700px;
  margin: 18px 0 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.about { background: linear-gradient(180deg, var(--bg), var(--bg-soft)); }
.about .section-lead { max-width: 820px; font-size: 1.1rem; }

/* ---------- Features ---------- */
.features { background: var(--bg-soft); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 48px;
}
.feature-card {
  padding: 30px 26px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}
.feature-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: linear-gradient(140deg, rgba(2, 132, 199, 0.12), rgba(79, 70, 229, 0.12));
  border: 1px solid var(--border-strong);
  color: var(--accent);
}
.feature-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature-card h3 { font-size: 1.16rem; margin-bottom: 8px; }
.feature-card p { margin: 0; color: var(--text-muted); font-size: .99rem; }

/* ---------- Pricing ---------- */
.pricing { background: linear-gradient(180deg, var(--bg-soft), var(--bg)); }
.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  margin-top: 52px;
  align-items: start;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 34px 28px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.plan:hover { transform: translateY(-5px); border-color: var(--border-strong); }
.plan-featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(2, 132, 199, 0.08), var(--surface));
  box-shadow: 0 20px 50px rgba(2, 132, 199, 0.12);
}
.plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--on-accent);
  font-size: .8rem;
  font-weight: 700;
  white-space: nowrap;
}
.plan-name { font-size: 1.32rem; }
.plan-price {
  margin: 10px 0 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
  color: var(--accent);
  font-size: 1.02rem;
  font-weight: 700;
}
.plan-features { margin: 0 0 28px; padding: 0; list-style: none; flex: 1; }
.plan-features li {
  position: relative;
  padding-inline-start: 30px;
  margin-bottom: 12px;
  color: var(--text);
  font-size: .99rem;
}
.plan-features li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: .5em;
  width: 16px;
  height: 9px;
  border-inline-start: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.plan-features li.off { color: var(--text-muted); }
.plan-features li.off::before {
  width: 14px;
  height: 14px;
  top: .35em;
  border: 0;
  transform: none;
  background:
    linear-gradient(45deg, transparent 44%, currentColor 44%, currentColor 56%, transparent 56%),
    linear-gradient(-45deg, transparent 44%, currentColor 44%, currentColor 56%, transparent 56%);
  opacity: .55;
}

/* ---------- Clients ---------- */
.clients { background: var(--bg); }
.client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 22px;
  margin-top: 52px;
}
.client {
  margin: 0;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.client:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.client-media {
  display: block;
  position: relative;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--bg-soft);
  cursor: zoom-in;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.client-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease, filter .3s ease;
}
.client-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(15, 23, 42, 0.35));
  opacity: 0;
  transition: opacity .3s ease;
}
.client:hover .client-media img { transform: scale(1.07); }
.client:hover .client-media::after { opacity: 1; }
.client figcaption { padding: 18px 20px 22px; }
.client figcaption h3 { font-size: 1.04rem; }
.client figcaption p { margin: 4px 0 0; color: var(--text-muted); font-size: .89rem; }

/* ---------- Contact ---------- */
.contact { background: linear-gradient(180deg, var(--bg), var(--bg-soft)); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact-list { margin: 38px 0 0; padding: 0; list-style: none; }
.contact-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.contact-icon {
  flex: 0 0 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--accent);
}
.contact-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-text { display: flex; flex-direction: column; }
.contact-text small { color: var(--text-muted); font-size: .84rem; line-height: 1.4; }
.contact-text a { font-size: 1.12rem; font-weight: 700; }

.contact-form { padding: 32px 30px; }
.contact-form label {
  display: block;
  margin: 0 0 7px;
  font-size: .92rem;
  font-weight: 500;
  color: var(--text-muted);
}
.contact-form label span { color: var(--accent); }
.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-bottom: 18px;
  padding: 13px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.contact-form textarea { resize: vertical; min-height: 110px; }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #94a3b8; }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.14);
}
.contact-form input[aria-invalid="true"],
.contact-form textarea[aria-invalid="true"] { border-color: #dc2626; }

.form-plan {
  margin: 0 0 22px;
  padding: 11px 16px;
  border: 1px dashed var(--accent);
  border-radius: var(--radius-sm);
  background: rgba(2, 132, 199, 0.06);
  color: var(--text);
  font-size: .94rem;
}
.form-status { margin: 16px 0 0; min-height: 1.4em; font-size: .95rem; }
.form-status.is-error { color: #dc2626; }
.form-status.is-ok { color: #059669; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-nav a { color: var(--text-muted); font-size: .95rem; }
.footer-nav a:hover { color: var(--text); }
.copy { margin: 0; color: var(--text-muted); font-size: .88rem; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
  animation: fade .25s ease;
}
.lightbox[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.lightbox-figure {
  margin: 0;
  max-width: min(620px, 100%);
  text-align: center;
}
.lightbox-figure img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #ffffff;
  box-shadow: var(--shadow);
}
.lightbox-figure figcaption {
  margin-top: 16px;
  color: #ffffff;
  font-size: 1.02rem;
  font-weight: 500;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  inset-inline-end: 24px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.22); border-color: #ffffff; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-header { background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(14px); border-bottom-color: var(--border); }
  .site-nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: max-height .3s ease, padding .3s ease, border-color .3s ease;
  }
  .site-nav.is-open {
    max-height: 340px;
    padding: 12px 24px 20px;
    border-bottom-color: var(--border);
  }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav a { padding: 13px 14px; border-radius: var(--radius-sm); font-size: 1.02rem; }

  .hero { padding: 132px 0 84px; }
  .section { padding: 72px 0; }
  .hero-stats { margin-top: 46px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .client-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
  .client figcaption { padding: 14px 16px 18px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
