/* Syaaq marketing site: base
   Font, brand tokens, reset, type, buttons, utilities. Load order: base, layout, components, pages. */

/* The TheSans Arabic @font-face rules live in fonts.css (generated by build.py). */

/* Tokens and reset */

:root {
  color-scheme: light;

  /* Brand palette */
  --aqua: #2dffcc;
  --emerald: #02c4a1;
  --paper: #ffffff;
  --forest: #072929;
  --night: #041717;
  --spearmint: #c7ffe7;
  --freesia: #fbffeb;
  --grey: #9db08d;
  --velocity: linear-gradient(115deg, #2dffcc 0%, #58ff9b 45%, #e993ff 100%);

  /* Working tints of the palette */
  --ink: var(--night);
  --sub: #3f5453;
  --muted: #5f706e;
  --line: rgba(7, 41, 41, 0.12);
  --line-soft: rgba(7, 41, 41, 0.07);
  --line-strong: rgba(7, 41, 41, 0.22);
  --orchid: #f7e6ff;
  --sage: #eef2e8;
  --mint-wash: #effff7;
  --aqua-hover: #18f2be;

  --shadow-card: 0 1px 2px rgba(4, 23, 23, 0.05), 0 10px 30px -14px rgba(4, 23, 23, 0.22);

  --wrap: 76rem;
  --gutter: clamp(1rem, 4.5vw, 3rem);
  --frame: clamp(0.5rem, 1.4vw, 1.25rem);
  --pad: clamp(4.5rem, 9vw, 8rem);
  --radius: 0.9rem;
  --radius-lg: 1.4rem;
  --sans: "TheSans Arabic", Tahoma, "Segoe UI", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-size: 1.0625rem; line-height: 1.8; background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.3em; }
b, strong { font-weight: 500; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--spearmint); }
[hidden] { display: none !important; }
bdi, .ltr { unicode-bidi: isolate; }
.ltr { direction: ltr; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.skip-link { position: absolute; inset-inline-start: 1rem; top: -4rem; z-index: 100; padding: 0.6rem 1rem; border-radius: 0.5rem; background: var(--night); color: #fff; }
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2 * var(--gutter), 52rem); margin-inline: auto; }
.section { padding-block: var(--pad); position: relative; }
.section-tight { padding-block: calc(var(--pad) * 0.55); }

/* Type */
h1, h2, h3 { font-weight: 300; line-height: 1.28; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); line-height: 1.2; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.split-copy h2, .feature-copy h2 { font-size: clamp(1.85rem, 3.3vw, 2.75rem); }
h3 { font-size: clamp(1.12rem, 1.5vw, 1.28rem); font-weight: 500; line-height: 1.5; }
.accent { font-weight: 700; }
.eyebrow { display: block; width: fit-content; font-size: 0.95rem; font-weight: 500; color: var(--muted); }
.lead { font-size: clamp(1.08rem, 1.45vw, 1.25rem); color: var(--sub); line-height: 1.85; text-wrap: pretty; }
.sub { color: var(--sub); }
.small { font-size: 0.92rem; }
.tiny { font-size: 0.82rem; }
.muted { color: var(--muted); }

.section-head { display: grid; gap: 1rem; max-width: 56rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head p { max-width: 40rem; }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 2.9rem; padding: 0.65rem 1.4rem; border-radius: 99px; border: 1px solid transparent; font-weight: 500; font-size: 1rem; line-height: 1.3; text-decoration: none; white-space: nowrap; transition: background 0.2s, border-color 0.2s, color 0.2s; }
.btn .icon { width: 1.05em; height: 1.05em; stroke-width: 2.2; }
.btn-primary { background: var(--aqua); color: var(--night); }
.btn-primary:hover { background: var(--aqua-hover); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--night); }
.btn-ghost:hover { border-color: var(--night); }
.btn-sm { min-height: 2.4rem; padding: 0.4rem 1.05rem; font-size: 0.95rem; }
.btn-lg { min-height: 3.25rem; padding: 0.75rem 1.75rem; font-size: 1.05rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; }
.center .btn-row, .btn-row.center { justify-content: center; }

.text-link { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 500; color: var(--night); text-decoration: none; }
.text-link .icon { order: -1; width: 1.55rem; height: 1.55rem; padding: 0.36rem; border-radius: 50%; background: var(--forest); color: var(--aqua); stroke-width: 2.6; transition: transform 0.25s var(--ease); }
.text-link:hover .icon { transform: translateX(-3px); }
.text-link:hover { text-decoration: underline; }

/* Reveal */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="scale"] { transform: translateY(18px); }

/* Utilities */
.mt-1 { margin-top: 0.75rem; } .mt-2 { margin-top: 1.5rem; } .mt-3 { margin-top: 2.5rem; }
.center { text-align: center; }
.stack { display: grid; gap: 1rem; }
.kicker-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.kicker-list li { font-size: 0.86rem; padding: 0.3rem 0.8rem; border-radius: 99px; background: var(--paper); border: 1px solid var(--line); color: var(--sub); }

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