/* Sakan Digital — landing page. Ported from the LiquidCore design file. */

:root {
  --bg: #0B1A12;
  --ink: #EEF3E8;
  --muted: #BFD0BF;
  --body: #C9D6C6;
  --faint: #A6B8A6;
  --lime: #C6F36B;
  --lime-soft: #D6FF8A;
  --amber: #F2C877;
  --display: Unbounded, sans-serif;
  --text: Inter, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--text); }
a { color: var(--lime-soft); }
a:hover { color: #F0FFD0; }
h1, h2, h3 { text-wrap: balance; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--lime); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 16px; color: var(--bg); }

/* clip, not hidden: hidden would make .page a scroll container and freeze the view() reveals */
.page { position: relative; width: 100%; overflow: hidden; overflow: clip; }
.wrap { position: relative; z-index: 3; max-width: 1280px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }

/* ---------- Glass ---------- */
.glass {
  position: relative;
  background: linear-gradient(135deg, rgba(255,255,255,.20), rgba(255,255,255,.05) 55%, rgba(255,255,255,.12));
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -14px 28px rgba(255,255,255,.05), 0 30px 60px -30px rgba(0,0,0,.7);
}
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(120% 60% at 20% 0%, rgba(255,255,255,.35), transparent 45%);
}

/* ---------- Buttons ---------- */
.btn { display: inline-block; text-decoration: none; padding: 16px 26px; border-radius: 999px; font-weight: 600; }
.btn-primary { background: var(--lime); color: var(--bg); }
.btn-primary:hover { background: var(--lime-soft); color: var(--bg); }
.btn-ghost { color: var(--ink); padding: 16px 24px; }
.btn-ghost:hover { color: var(--ink); border-color: rgba(198,243,107,.7); }

/* ---------- Animations ---------- */
@keyframes morph {
  0%, 100% { border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; transform: translate(0,0) rotate(0); }
  33% { border-radius: 63% 37% 38% 62% / 58% 63% 37% 42%; transform: translate(60px,-40px) rotate(60deg); }
  66% { border-radius: 36% 64% 52% 48% / 38% 52% 48% 62%; transform: translate(-50px,30px) rotate(140deg); }
}
@keyframes float { 0%, 100% { transform: translate(0,0) rotate(var(--rot)); } 50% { transform: translate(var(--fx),var(--fy)) rotate(calc(var(--rot) * -1)); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breath { 0%, 100% { transform: translateX(70px); } 50% { transform: translateX(150px); } }
@keyframes up { from { opacity: 0; transform: translateY(40px); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes drop { from { offset-distance: 0%; } to { offset-distance: 100%; } }
@keyframes fromL { from { opacity: 0; transform: translateX(-160px) rotate(-6deg); } to { opacity: 1; transform: none; } }
@keyframes fromR { from { opacity: 0; transform: translateX(160px) rotate(6deg); } to { opacity: 1; transform: none; } }
@keyframes draw { from { stroke-dashoffset: 6400; } to { stroke-dashoffset: 0; } }

.float { animation: float var(--d) ease-in-out infinite; }
.in { animation: up 1.1s cubic-bezier(.2,.7,.2,1) both; }

/* Scroll-driven reveals where supported; content stays visible elsewhere. */
@supports (animation-timeline: view()) {
  .rv-up { animation: up linear both; animation-timeline: view(); animation-range: entry 0% cover 30%; }
  .rv-l  { animation: fromL linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
  .rv-r  { animation: fromR linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
}

/* ---------- Background blobs ---------- */
.blobs { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; filter: blur(60px); opacity: .75; animation: morph 18s ease-in-out infinite; }
.blob-1 { left: -8%; top: 2%; width: 620px; height: 620px; background: #1F6B45; }
.blob-2 { right: -10%; top: 10%; width: 520px; height: 520px; background: #8FBF3A; opacity: .45; animation-duration: 22s; animation-direction: reverse; }
.blob-3 { left: 30%; top: 32%; width: 700px; height: 560px; background: #146356; opacity: .6; animation-duration: 26s; }
.blob-4 { right: 0; top: 58%; width: 560px; height: 560px; background: #C48A2A; opacity: .35; animation-duration: 20s; }
.blob-5 { left: -5%; top: 78%; width: 640px; height: 520px; background: #1F6B45; animation-duration: 24s; animation-direction: reverse; }

/* ---------- Scroll droplet + trail ---------- */
.path { position: absolute; left: 50%; top: 0; width: 1440px; height: 100%; margin-left: -720px; pointer-events: none; z-index: 1; }
.path svg { position: absolute; left: 0; top: 0; width: 1440px; height: 4700px; }
.trail { stroke-dasharray: 6400; stroke-dashoffset: 6400; animation: draw 30s linear infinite; }
.droplet {
  position: absolute; left: 0; top: 0; width: 64px; height: 64px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.7), rgba(214,255,138,.35) 40%, rgba(214,255,138,.08) 70%);
  box-shadow: 0 0 60px 10px rgba(198,243,107,.35), inset 0 1px 0 rgba(255,255,255,.8);
  offset-path: path("M720 120 C 1200 500, 1250 900, 760 1250 S 180 1750, 560 2200 S 1220 2700, 760 3150 S 160 3650, 520 4050 S 980 4450, 720 4650");
  offset-rotate: 0deg;
  animation: drop 30s linear infinite;
}
@supports (animation-timeline: scroll()) {
  .droplet { animation: drop linear both; animation-timeline: scroll(root); }
  .trail { animation: draw linear both; animation-timeline: scroll(root); }
}

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 5; max-width: 1280px; margin: 0 auto; padding: 22px 32px; }
.nav-bar { border-radius: 999px; padding: 12px 14px 12px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { text-decoration: none; color: var(--ink); font-family: Unbounded, sans-serif; font-weight: 700; font-size: 17px; }
.logo:hover { color: var(--ink); }
.logo span { color: var(--lime); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; }
.nav a { text-decoration: none; color: var(--ink); padding: 10px 14px; border-radius: 999px; }
.nav a:hover { background: rgba(255,255,255,.08); }
.nav .nav-cta { background: var(--lime); color: var(--bg); padding: 10px 18px; font-weight: 600; }
.nav .nav-cta:hover { background: var(--lime-soft); color: var(--bg); }
.nav .nav-lang { border: 1px solid rgba(255,255,255,.3); padding: 9px 13px; font-weight: 600; }

/* ---------- Hero ---------- */
.hero { padding-top: 48px; padding-bottom: 120px; display: flex; flex-wrap: wrap; align-items: center; gap: 40px; }
.hero-copy { flex: 1 1 460px; min-width: 0; }
.hero h1 { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(38px, 5vw, 72px); line-height: 1.02; letter-spacing: -0.03em; }
.hero h1 span { display: block; }
.hero h1 .accent { margin-top: 14px; color: var(--lime); animation-delay: .25s; }
.hero-lede { margin: 28px 0 0; max-width: 460px; font-size: 19px; line-height: 1.6; color: var(--muted); animation-delay: .5s; }
.hero-ctas { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; animation-delay: .7s; }

.hero-vis { flex: 1 1 520px; min-width: 0; position: relative; aspect-ratio: 1; max-width: 600px; }
.goo { position: absolute; inset: 0; filter: url(#goo); }
.core { position: absolute; left: 50%; top: 50%; width: 180px; height: 180px; margin: -90px 0 0 -90px; border-radius: 50%; background: var(--lime); }
.orbit { position: absolute; left: 50%; top: 50%; width: 0; height: 0; animation: spin var(--d) linear infinite; }
.orbit > span { position: absolute; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); border-radius: 50%; background: var(--lime); animation: breath var(--b) ease-in-out infinite; }
.core-label { position: absolute; left: 50%; top: 50%; translate: -50% -50%; text-align: center; color: var(--bg); font-family: var(--display); font-weight: 700; font-size: 18px; line-height: 1.15; pointer-events: none; }

.stat { position: absolute; border-radius: 22px; padding: 16px 20px; min-width: 150px; }
.stat span { display: block; font-size: 12px; color: var(--muted); }
.stat .warn { color: var(--amber); }
.stat strong { font-size: 24px; }
.stat-1 { --d: 7s; --fx: 10px; --fy: -16px; --rot: -4deg; left: 0; top: 8%; }
.stat-2 { --d: 9s; --fx: -14px; --fy: 12px; --rot: 5deg; right: 0; top: 4%; }
.stat-3 { --d: 8s; --fx: 12px; --fy: 14px; --rot: 3deg; right: -2%; top: 58%; min-width: 170px; }
.stat-4 { --d: 10s; --fx: -10px; --fy: -14px; --rot: -3deg; left: 4%; top: 70%; min-width: 170px; }
.chip { --d: 6s; --fx: 8px; --fy: -10px; --rot: 6deg; position: absolute; left: 40%; top: 86%; border-radius: 999px; padding: 10px 18px; font-size: 13px; font-weight: 600; }

/* ---------- Section headings ---------- */
.h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(30px, 3.8vw, 52px); line-height: 1.1; letter-spacing: -0.03em; max-width: 760px; }
.section-lede { margin: 0; max-width: 520px; font-size: 17px; line-height: 1.6; color: var(--muted); }

/* ---------- Problems ---------- */
.problems { padding-top: 60px; padding-bottom: 100px; }
.problems-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 56px; }
.problems-head .h2 { max-width: 620px; }
.problems-head .section-lede { max-width: 380px; }
.pains { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.pain {
  padding: 24px 32px; max-width: 760px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px;
  transition: transform .4s cubic-bezier(.2,.8,.2,1), border-color .4s;
}
.pain:hover { transform: scale(1.03) rotate(-1deg); border-color: rgba(198,243,107,.7); }
.pain.left { border-radius: 999px 999px 999px 18px; }
.pain.right { border-radius: 999px 999px 18px 999px; margin-left: auto; }
.pain:nth-child(3) { margin-left: 8%; }
.pain:nth-child(4) { margin-right: 6%; }
.pain q { font-size: clamp(17px, 1.8vw, 22px); quotes: "\201C" "\201D"; }
.pain strong { font-weight: 600; color: var(--lime); white-space: nowrap; }

/* ---------- Systems ---------- */
.build { padding-top: 80px; padding-bottom: 120px; }
.build .h2 { margin-bottom: 72px; }
.systems { position: relative; display: flex; flex-direction: column; }
.svc { border-radius: 36px; padding: 48px; width: min(720px, 100%); }
.svc-1 { z-index: 3; }
.svc-2 { z-index: 2; margin: -32px 0 0 auto; background: linear-gradient(135deg, rgba(198,243,107,.22), rgba(255,255,255,.04)); }
.svc-3 { z-index: 1; margin: -32px 0 0 12%; background: linear-gradient(135deg, rgba(242,200,119,.2), rgba(255,255,255,.04)); }
.svc .tag { font-family: var(--display); color: var(--lime); font-size: 14px; }
.svc-3 .tag { color: var(--amber); }
.svc h3 { margin: 12px 0 10px; font-size: 32px; letter-spacing: -0.02em; }
.svc p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--body); }

/* ---------- Industries ---------- */
.industries { padding-top: 40px; padding-bottom: 100px; }
.industries .h2 { margin-bottom: 16px; }
.industries .section-lede { margin-bottom: 48px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.ind {
  overflow: hidden; border-radius: 32px; padding: 32px; min-height: 280px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.ind:hover { transform: translateY(-8px); }
.ind .liq {
  position: absolute; width: 220px; height: 220px; right: -60px; top: -60px; filter: blur(2px); opacity: .85;
  animation: morph 12s ease-in-out infinite; transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
.ind:hover .liq { transform: scale(1.5); }
.ind h3 { position: relative; margin: 0; font-family: var(--display); font-size: 24px; }
.ind p { position: relative; margin: 0; color: var(--body); line-height: 1.55; }

/* ---------- How we work ---------- */
.how { padding-top: 80px; padding-bottom: 80px; }
.how .h2 { margin-bottom: 48px; }
.steps { list-style: none; margin: 0; padding: 0; }
.step { border-radius: 28px; padding: 30px; --fx: 0px; --rot: 0deg; }
.step:nth-child(1) { --d: 8s; --fy: -10px; }
.step:nth-child(2) { --d: 9s; --fy: 10px; }
.step:nth-child(3) { --d: 7s; --fy: -12px; }
.step:nth-child(4) { --d: 10s; --fy: 8px; }
.step .num { font-family: var(--display); color: var(--lime); }
.step h3 { margin: 14px 0 8px; font-size: 21px; }
.step p { margin: 0; color: var(--body); line-height: 1.55; }

/* ---------- Talk / footer ---------- */
.talk { position: relative; z-index: 3; padding: 120px 32px 48px; }
.talk-card { max-width: 1280px; margin: 0 auto; border-radius: 44px; padding: clamp(40px, 6vw, 88px); }
.talk-card h2 { margin: 0 0 28px; font-family: var(--display); font-size: clamp(32px, 4.4vw, 64px); letter-spacing: -0.03em; line-height: 1.05; max-width: 900px; }
.talk-card .btn { padding: 18px 30px; font-size: 17px; }
.talk-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.talk-actions .alt { color: var(--muted); font-size: 15px; }
.site-footer { max-width: 1280px; margin: 56px auto 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--faint); }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .wrap, .site-header { padding-left: 16px; padding-right: 16px; }
  .talk { padding-left: 16px; padding-right: 16px; }
  .path { display: none; }
  .nav a:not(.nav-cta):not(.nav-lang) { display: none; }
  .hero { padding-bottom: 56px; }
  .hero-vis { max-width: 420px; margin: 0 auto; flex-basis: 100%; }
  .stat { padding: 10px 12px; min-width: 0; }
  .stat strong { font-size: 16px; }
  .svc { margin: 16px 0 0 0; padding: 32px 26px; }
  .svc h3 { font-size: 24px; }
  .pains .pain.pain { margin-left: 0; margin-right: 0; padding: 20px 24px; border-radius: 28px; }
  .pain strong { white-space: normal; }
  .blob { width: 360px; height: 360px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- See it in action ---------- */
.product { padding-top: 40px; padding-bottom: 110px; }
.product-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 48px; }
.product-head .section-lede { max-width: 420px; }

.showcase { position: relative; padding-right: 150px; }
.screen { border-radius: 28px; padding: 14px; }
.screen-bar { display: flex; gap: 7px; padding: 4px 6px 12px; }
.screen-bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.25); }
.screen-tabs { position: absolute; top: 12px; left: 80px; display: flex; flex-wrap: wrap; gap: 6px; }
.screen-tabs button {
  font: 600 13px/1 var(--text); color: var(--ink); background: transparent; border: 1px solid transparent;
  padding: 8px 14px; border-radius: 999px; cursor: pointer;
}
.screen-tabs button:hover { background: rgba(255,255,255,.08); }
.screen-tabs button[aria-selected="true"] { background: var(--lime); color: var(--bg); }
.screen-view { position: relative; border-radius: 16px; overflow: hidden; background: #f3f2ee; aspect-ratio: 16 / 10; }
.screen-view img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; }

.phone {
  position: absolute; right: 0; bottom: -48px; width: 230px; margin: 0; padding: 10px;
  border-radius: 40px; background: #0d1f16; border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), 0 0 0 6px rgba(255,255,255,.04);
}
.phone img { display: block; width: 100%; height: auto; aspect-ratio: 600 / 1100; object-fit: cover; object-position: top; border-radius: 30px; }
.phone figcaption { position: absolute; left: 50%; bottom: -40px; translate: -50% 0; white-space: nowrap; font-size: 13px; font-weight: 600; color: var(--muted); }

.product-points { list-style: none; margin: 96px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px 28px; }
.product-points li { padding-top: 16px; border-top: 1px solid rgba(255,255,255,.16); color: var(--body); line-height: 1.55; }
.product-points strong { display: block; color: var(--lime); font-family: var(--display); font-size: 15px; font-weight: 500; margin-bottom: 4px; }
.product-cta { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.product-cta .alt { color: var(--muted); font-size: 15px; }

@media (max-width: 760px) {
  .showcase { padding-right: 0; }
  .screen { padding: 10px; border-radius: 22px; }
  .screen-bar { display: none; }
  .screen-tabs { position: static; margin-bottom: 10px; }
  .screen-tabs button { font-size: 12px; padding: 8px 11px; }
  .phone { position: relative; right: auto; bottom: auto; width: 200px; margin: 40px auto 0; }
  .product-points { margin-top: 72px; }
}

/* ---------- Arabic (right-to-left) ---------- */
html[dir="rtl"] {
  --display: "Readex Pro", "IBM Plex Sans Arabic", sans-serif;
  --text: "IBM Plex Sans Arabic", system-ui, sans-serif;
}
/* Arabic letters must stay joined, so no negative tracking; taller lines for the script's ascenders. */
[dir="rtl"] :is(.hero h1, .h2, .svc h3, .talk-card h2) { letter-spacing: 0; line-height: 1.3; }
[dir="rtl"] .hero h1 { font-size: clamp(34px, 4.4vw, 62px); }
[dir="rtl"] .hero-lede, [dir="rtl"] .section-lede { line-height: 1.8; }
[dir="rtl"] .core-label { font-family: var(--display); }

[dir="rtl"] .pain.left { border-radius: 999px 999px 18px 999px; }
[dir="rtl"] .pain.right { border-radius: 999px 999px 999px 18px; margin-left: 0; margin-right: auto; }
[dir="rtl"] .pain:nth-child(3) { margin-left: 0; margin-right: 8%; }
[dir="rtl"] .pain:nth-child(4) { margin-right: auto; margin-left: 6%; }
[dir="rtl"] .svc-2 { margin: -32px auto 0 0; }
[dir="rtl"] .svc-3 { margin: -32px 12% 0 0; }

[dir="rtl"] .showcase { padding-right: 0; padding-left: 150px; }
[dir="rtl"] .screen-tabs { left: auto; right: 80px; }
[dir="rtl"] .screen-view img { object-position: top right; }
[dir="rtl"] .phone { right: auto; left: 0; }

@media (max-width: 760px) {
  [dir="rtl"] .pains .pain.pain { margin-left: 0; margin-right: 0; border-radius: 28px; }
  [dir="rtl"] .svc.svc { margin: 16px 0 0 0; }
  [dir="rtl"] .showcase { padding-left: 0; }
  [dir="rtl"] .phone { left: auto; }
}
[dir="rtl"] .nav-bar { padding: 12px 24px 12px 14px; }
