:root {
  --ink: #081210;
  --surface: #0e1c1a;
  --card: #122422;
  --line: #23403b;
  --teal: #2dd4bf;
  --teal-deep: #0f766e;
  --brass: #d97706;
  --muted: #93b3ad;
  --text: #f0f7f5;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: "Almarai", "Inter", system-ui, sans-serif;
  overflow-x: hidden;
}
/* blueprint grid + ambient glows: the workshop signature */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(900px 480px at 85% -60px, rgba(45, 212, 191, 0.14), transparent 65%),
    radial-gradient(760px 480px at 8% 30%, rgba(224, 170, 62, 0.07), transparent 60%),
    radial-gradient(1000px 620px at 50% 115%, rgba(15, 118, 110, 0.16), transparent 65%);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background-image:
    repeating-linear-gradient(0deg, rgba(45, 212, 191, 0.05) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(90deg, rgba(45, 212, 191, 0.05) 0 1px, transparent 1px 44px);
  mask-image: radial-gradient(1000px 700px at 50% 0%, #000 30%, transparent 75%);
}
[dir="ltr"] body, body.ltr { font-family: "Inter", "Almarai", system-ui, sans-serif; }
a { color: inherit; }
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px;
  background: rgba(8, 18, 16, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.15rem; }
.brand b { color: var(--teal); }
.mark-img {
  width: 34px; height: 34px; border-radius: 9px;
  box-shadow: 0 0 18px rgba(45, 212, 191, 0.45);
}
footer .mark-img { width: 40px; height: 40px; margin-bottom: 12px; }
.nav nav { display: flex; gap: 22px; }
.nav nav a { text-decoration: none; color: var(--muted); font-size: 0.95rem; }
.nav nav a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang {
  background: transparent; color: var(--muted);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 6px 12px; cursor: pointer; font-weight: 700;
}
.lang:hover { color: var(--text); border-color: var(--teal); }
.btn {
  display: inline-block; text-decoration: none; font-weight: 800;
  border-radius: 11px; border: 1px solid transparent; cursor: pointer;
}
.btn.primary {
  background: linear-gradient(180deg, #14b8a6, var(--teal-deep));
  color: #04110f;
  box-shadow: 0 8px 30px rgba(45, 212, 191, 0.35);
}
.btn.primary:hover { filter: brightness(1.1); }
.btn.ghost { border-color: var(--line); color: var(--text); }
.btn.ghost:hover { border-color: var(--teal); }
.btn.sm { padding: 8px 16px; font-size: 0.85rem; }
.btn.lg { padding: 15px 34px; font-size: 1.08rem; }
.hero {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px;
  max-width: 1180px; margin: 0 auto; padding: 88px 24px 64px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  color: var(--brass); font-weight: 700; font-size: 0.88rem;
  border: 1px solid rgba(224, 170, 62, 0.4); border-radius: 20px;
  padding: 5px 16px; margin: 0 0 18px;
  background: rgba(224, 170, 62, 0.08);
}
.hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 4rem); line-height: 1.3;
  margin: 0 0 18px; font-weight: 800;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--teal) 20%, var(--brass) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sub { color: var(--muted); font-size: 1.12rem; line-height: 2; margin: 0 0 30px; max-width: 34rem; }
.cta-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.req { color: var(--muted); font-size: 0.85rem; }
.stats { display: flex; gap: 40px; margin-top: 40px; }
.stats div { display: flex; flex-direction: column; }
.stats b {
  font-size: 1.9rem; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff, var(--teal));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stats span { color: var(--muted); font-size: 0.85rem; }
.hero-term {
  position: relative;
  background: #050d0c; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 30px 90px rgba(20, 184, 166, 0.16), 0 10px 36px rgba(0, 0, 0, 0.6);
  overflow: visible;
}
.term-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 11px 15px; background: var(--surface);
  border-bottom: 1px solid var(--line);
  border-radius: 16px 16px 0 0;
  font-family: "JetBrains Mono", monospace; font-size: 0.75rem; color: var(--muted);
}
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.term-bar i:first-child { background: #e0655a; }
.term-bar i:nth-child(2) { background: var(--brass); }
.term-bar i:nth-child(3) { background: var(--teal); }
.term-bar span { margin-inline-start: 8px; }
.ssl {
  margin-inline-start: auto !important;
  color: var(--teal); border: 1px solid var(--line);
  border-radius: 6px; padding: 1px 8px;
}
.hero-term pre {
  margin: 0; padding: 22px; min-height: 264px;
  font-family: "JetBrains Mono", monospace; font-size: 0.82rem; line-height: 2.05;
  color: #c9e4df; white-space: pre-wrap;
}
.hero-term .ok { color: var(--teal); }
.caret { color: var(--brass); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.chip {
  position: absolute; z-index: 2;
  font-family: "JetBrains Mono", monospace; font-size: 0.72rem; font-weight: 600;
  background: var(--surface); border: 1px solid var(--teal);
  color: var(--teal); border-radius: 9px; padding: 6px 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}
.chip.c1 { top: 34%; inset-inline-end: -24px; transform: rotate(3deg); }
.chip.c2 { bottom: 22%; inset-inline-start: -24px; transform: rotate(-3deg); border-color: var(--brass); color: var(--brass); }
.section { max-width: 1180px; margin: 0 auto; padding: 60px 24px; }
.section h2 {
  font-size: 1.9rem; margin: 0 0 30px; font-weight: 800;
  padding-inline-start: 16px;
  border-inline-start: 4px solid var(--brass);
}
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps article {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 26px 22px; position: relative; overflow: hidden;
}
.steps article:hover { border-color: var(--teal); }
.steps .n {
  font-size: 3.4rem; font-weight: 800; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--teal-deep);
}
.steps h3 { margin: 12px 0 8px; }
.steps p { margin: 0; color: var(--muted); line-height: 1.8; font-size: 0.94rem; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid article {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 24px;
}
.grid article:hover { border-color: var(--teal); transform: translateY(-2px); }
.grid article { transition: transform 0.2s ease, border-color 0.2s ease; }
.grid h3 { margin: 0 0 8px; font-size: 1.05rem; color: var(--brass); }
.grid p { margin: 0; color: var(--muted); line-height: 1.85; font-size: 0.94rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
table { width: 100%; border-collapse: collapse; background: var(--card); font-size: 0.95rem; }
th, td { padding: 15px 18px; text-align: start; border-bottom: 1px solid var(--line); }
thead th { background: var(--surface); }
thead th:nth-child(2), tbody td:nth-child(2) { background: rgba(45, 212, 191, 0.08); }
thead th:nth-child(2) { color: var(--teal); }
tbody tr:last-child td { border-bottom: 0; }
td:nth-child(2) { font-weight: 700; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 760px; }
.plan {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; padding: 32px 28px; text-align: center; position: relative;
}
.plan.hot {
  border-color: var(--brass);
  box-shadow: 0 18px 60px rgba(224, 170, 62, 0.18);
}
.plan .flag {
  position: absolute; top: -13px; inset-inline: 0; margin: 0 auto; width: max-content;
  background: linear-gradient(180deg, #e8b654, var(--brass)); color: #221a08;
  font-size: 0.78rem; font-weight: 800;
  padding: 4px 16px; border-radius: 20px;
}
.plan h3 { margin: 6px 0; color: var(--muted); font-size: 1rem; }
.amount b { font-size: 3rem; font-variant-numeric: tabular-nums; }
.amount span { color: var(--muted); }
.plan .btn { margin-top: 18px; width: 100%; padding: 13px; }
.guarantee { color: var(--muted); font-size: 0.9rem; margin-top: 18px; }
details {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 17px 22px; margin-bottom: 10px;
}
summary { cursor: pointer; font-weight: 700; }
summary::marker { color: var(--teal); }
details p { color: var(--muted); line-height: 1.9; margin: 10px 0 0; }
.cta-end { text-align: center; }
.cta-end h2 { font-size: 2.2rem; border: 0; padding: 0; }
footer {
  border-top: 1px solid var(--line); text-align: center;
  padding: 36px 24px 52px; color: var(--muted); font-size: 0.9rem;
}
footer a { color: var(--teal); text-decoration: none; }
footer .mark { margin-bottom: 12px; }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
/* entrance choreography + living details */
.progress {
  position: fixed; top: 0; inset-inline: 0; z-index: 20; height: 3px;
  background: linear-gradient(90deg, var(--teal-deep), var(--teal), var(--brass));
  transform: scaleX(0); transform-origin: 100% 50%;
}
[dir="ltr"] .progress { transform-origin: 0 50%; }
.hero-copy > * { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-copy > *:nth-child(1) { animation-delay: 0.05s; }
.hero-copy > *:nth-child(2) { animation-delay: 0.15s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.25s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.35s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.48s; }
.hero-term { animation: rise 0.8s 0.4s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }
.btn.primary.lg { animation: glow-pulse 2.8s ease-in-out infinite; }
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 8px 30px rgba(45, 212, 191, 0.35); }
  50% { box-shadow: 0 8px 44px rgba(45, 212, 191, 0.6); }
}
.term-bar { position: relative; }
.term-bar::after {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal); margin-inline-start: 6px;
  animation: blink 1.6s ease-in-out infinite;
  box-shadow: 0 0 10px var(--teal);
}
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 56px; }
  .grid, .plans, .steps { grid-template-columns: 1fr; }
  .nav nav { display: none; }
  .chip.c1 { inset-inline-end: 8px; }
  .chip.c2 { inset-inline-start: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .caret { animation: none; }
  .hero-copy > *, .hero-term { animation: none; }
  .btn.primary.lg { animation: none; }
  .term-bar::after { animation: none; }
  html { scroll-behavior: auto; }
}
