/* =========================================================================
   Nizam — shared design system (landing + demo)
   RTL first · mobile first · no framework
   ========================================================================= */
:root {
  /* Ink (ardoise) */
  --ink: #222B33;
  --ink-2: #2B3640;
  --ink-3: #3A4651;
  --ink-4: #4A5763;
  /* Text on light */
  --slate: #56626C;
  --mute: #7D8890;
  /* Lines & surfaces, tinted toward the brand */
  --line: #DCE4E0;
  --line-2: #E9EEEB;
  --paper: #F2F5F3;
  --paper-2: #E8EEEA;
  --surface: #FBFCFB;
  /* The one accent: the confirmed order */
  --green: #2BB673;
  --green-hover: #26A567;
  --green-ink: #17643F;
  --green-tint: #E3F4EA;
  --green-tint-2: #D2EEDD;
  /* Status */
  --amber-tint: #FBF0D9; --amber-ink: #7A5200;
  --red-tint: #F8E6E3;   --red-ink: #9A3A30;
  /* On dark */
  --on-dark: #EEF2F0;
  --on-dark-2: #B9C3C9;
  --on-dark-3: #8C98A0;

  --font: "Readex Pro", "Segoe UI", Tahoma, Arial, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);      /* expo out */
  --ease-q: cubic-bezier(.25, 1, .5, 1);    /* quart out */

  --r-sm: 12px; --r-md: 18px; --r-lg: 26px; --r-xl: 34px;
  --shadow-1: 0 1px 2px rgba(34, 43, 51, .05), 0 4px 14px rgba(34, 43, 51, .05);
  --shadow-2: 0 2px 4px rgba(34, 43, 51, .05), 0 22px 50px -12px rgba(34, 43, 51, .22);
  --shadow-dark: 0 30px 70px -20px rgba(8, 12, 15, .65);

  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(76px, 10vw, 140px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
bdi { unicode-bidi: isolate; }
::selection { background: var(--green-tint-2); color: var(--ink); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.22; letter-spacing: 0; text-wrap: balance; }
.t-hero { font-size: clamp(44px, 7.4vw, 92px); line-height: 1.12; }
.t-h2 { font-size: clamp(31px, 4.6vw, 54px); }
.t-h3 { font-size: clamp(20px, 2.1vw, 24px); }
.t-lead { font-size: clamp(18px, 1.9vw, 21px); line-height: 1.8; color: var(--slate); max-width: 34em; text-wrap: pretty; }
.t-small { font-size: 14px; color: var(--mute); }
.dark .t-lead { color: var(--on-dark-2); }
.dark .t-small { color: var(--on-dark-3); }

/* "Thread" underline: the word sits on a green thread, ending in a nuqta. Legible on light. */
.threaded { position: relative; white-space: nowrap; font-style: normal; }
.threaded::after {
  content: ""; position: absolute; inset-inline: .02em; bottom: .02em; height: .085em;
  background: var(--green); border-radius: 999px; transform-origin: right center;
}
.threaded::before {
  content: ""; position: absolute; left: -.34em; bottom: -.075em; width: .25em; height: .25em;
  background: var(--green); transform: rotate(45deg); border-radius: .03em;
}
.dark .accent, .accent-dark { color: var(--green); font-style: normal; }

/* Eyebrow: nuqta + label, no pill */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600;
  color: var(--green-ink); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 9px; height: 9px; background: var(--green); transform: rotate(45deg); border-radius: 1.5px; }
.dark .eyebrow { color: var(--green); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 56px;
  font: 600 17px/1 var(--font); text-decoration: none; border: 0; cursor: pointer; white-space: nowrap;
  padding: 0 26px; border-radius: 999px;
  transition: background .25s var(--ease-q), transform .25s var(--ease-q), box-shadow .25s var(--ease-q), color .25s; }
.btn .arr { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; margin-inline-end: -12px;
  background: var(--ink); color: var(--green); font-size: 16px; transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(-4px); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--green); color: var(--ink); box-shadow: 0 10px 26px -10px rgba(43, 182, 115, .75); }
.btn-primary:hover { background: var(--green-hover); }
.btn-dark { background: var(--ink); color: var(--on-dark); }
.btn-dark .arr { background: var(--green); color: var(--ink); }
.btn-dark:hover { background: var(--ink-3); }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-line:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.dark .btn-line { color: var(--on-dark); box-shadow: inset 0 0 0 1.5px rgba(238, 242, 240, .22); }
.dark .btn-line:hover { box-shadow: inset 0 0 0 1.5px var(--on-dark); }
.btn-block { width: 100%; }
.link { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--green);
  text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .3s; }
.header.scrolled { border-bottom-color: var(--line); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.header .logo img { height: 32px; width: auto; }
.nav { display: none; gap: 30px; font-size: 15.5px; font-weight: 500; }
.nav a { text-decoration: none; color: var(--slate); transition: color .2s; }
.nav a:hover { color: var(--ink); }
.header .btn { min-height: 46px; padding: 0 20px; font-size: 15.5px; }
.header .btn .arr { width: 26px; height: 26px; font-size: 14px; margin-inline-end: -10px; }
@media (min-width: 900px) { .nav { display: flex; } }

/* ---------- The nuqta ---------- */
.nuqta { display: inline-block; width: 10px; height: 10px; background: var(--green); transform: rotate(45deg);
  border-radius: 1.5px; flex: none; }

/* ---------- Status pills ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13.5px; line-height: 1;
  padding: 7px 11px; border-radius: 999px; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 1px; transform: rotate(45deg); background: currentColor; opacity: .8; }
.p-new { background: var(--paper-2); color: var(--slate); }
.p-ok { background: var(--green-tint); color: var(--green-ink); }
.p-wait { background: var(--amber-tint); color: var(--amber-ink); }
.p-cancel { background: var(--red-tint); color: var(--red-ink); }
.p-ship { background: var(--ink); color: var(--on-dark); }
.p-ship::before { background: var(--green); opacity: 1; }

/* ---------- Forms ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 7px; }
.input { width: 100%; font: 400 17px var(--font); color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 16px; min-height: 54px; outline: none;
  transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none; }
select.input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2356626C' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: left 16px center; background-size: 12px 8px; background-repeat: no-repeat; padding-left: 40px; cursor: pointer; }
.input::placeholder { color: #A3ADB3; }
.input:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(34, 43, 51, .08); }
.field .error { display: none; font-size: 13.5px; color: var(--red-ink); margin-top: 6px; }
.field.has-error .input { border-color: #C9665B; background: #FFFBFA; }
.field.has-error .error { display: block; }

/* ---------- Reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0ms); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- Footer ---------- */
.footer { background: #1B2228; color: var(--on-dark-3); padding: 44px 0; font-size: 14.5px; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.footer img { height: 28px; width: auto; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
