/* 968.ai design system — shared by the marketing site, legal pages and billing.
   Direction: Brainwave layout, subtle palette — neutral greys; Omani red and green are
   ONE deep accent (red or green), used solid and sparingly. Never both.
   Latin = Sora, Arabic = Readex Pro (same geometric construction). */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700&family=Readex+Pro:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Neutral greys; Omani red + green are the ONLY colours, used solid and
     sparingly: green = working accent (focus, links, checks), red = brand note
     (logo, highlight, featured plan). No gradients between them. */
  --ink-0: #0C0C0D;   /* page */
  --ink-1: #141415;   /* raised */
  --ink-2: #1B1B1D;   /* card */
  --ink-3: #252527;   /* control */
  --ink-4: #2F2F32;   /* hover */
  --line: #262628;
  --line-2: #38383B;

  --tx-1: #FFFFFF;
  --tx-2: #D9D9DC;
  --tx-3: #A6A6AD;
  --tx-4: #75757C;

  /* ONE accent colour (Omani red by default; the green-led variant swaps only
     these three values). Never paired with a second colour — checks, badges
     and focus states are neutral, so it can't read as a traffic light. */
  --accent: #C8414B;
  --accent-ink: #E06A73;          /* accent used as text on dark */
  --accent-soft: rgba(200, 65, 75, .12);
  --red: var(--accent);
  --green: var(--accent);
  --mint: var(--tx-3);

  /* legacy names: hairlines, not gradients */
  --glow: var(--line-2);
  --glow-line: linear-gradient(var(--red), var(--red));

  /* translucent effects, flipped in day mode */
  --fx-1: rgba(255,255,255,.04);
  --fx-grid: rgba(255,255,255,.025);
  --fx-ring: rgba(255,255,255,.05);
  --fx-focus: rgba(255,255,255,.32);
  --hdr-bg: rgba(12,12,13,.78);

  --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px;
  --shadow: 0 24px 60px -24px rgba(0,0,0,.6);

  --font: 'Sora', 'Readex Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-ar: 'Readex Pro', 'Sora', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

/* ---- accent switch: green-led variant ---- */
html[data-accent="green"] { --accent: #2E8B57; --accent-ink: #56B583; --accent-soft: rgba(46,139,87,.12); }

/* ---- day (light) theme ---- */
html[data-theme="day"] {
  --ink-0: #FFFFFF; --ink-1: #FAFAFA; --ink-2: #F4F4F5; --ink-3: #ECECEE; --ink-4: #E4E4E7;
  --line: #E7E7EA; --line-2: #D4D4D8;
  --tx-1: #0C0C0D; --tx-2: #3F3F46; --tx-3: #52525B; --tx-4: #71717A;
  --accent: #B0303B; --accent-ink: #B0303B; --accent-soft: rgba(176,48,59,.08);
  --fx-1: rgba(0,0,0,.03); --fx-grid: rgba(0,0,0,.035); --fx-ring: rgba(0,0,0,.06); --fx-focus: rgba(0,0,0,.35);
  --hdr-bg: rgba(255,255,255,.82);
  color-scheme: light;
}
html[data-theme="day"][data-accent="green"] { --accent: #1F7A4A; --accent-ink: #1F7A4A; --accent-soft: rgba(31,122,74,.08); }
html[data-theme="day"] .bg-orb { opacity: .06 !important; }
html[data-theme="day"] .card { box-shadow: 0 1px 2px rgba(0,0,0,.04); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ink-0); color: var(--tx-2);
  font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased;
}
html[dir="rtl"] body, html.ar body { font-family: var(--font-ar); }
a { color: inherit; }
img, svg { display: block; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* one DOM, both languages */
html.ar [data-en], html.en [data-ar] { display: none !important; }

.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }

/* ---------- type ---------- */
.eyebrow {
  font: 500 12px/1 var(--mono); letter-spacing: .15em; text-transform: uppercase;
  color: var(--tx-4);
}
html.ar .eyebrow { font-family: var(--font-ar); letter-spacing: 0; font-size: 14px; }
.h1 { font-weight: 600; font-size: clamp(36px, 6vw, 68px); line-height: 1.08; letter-spacing: -.02em; color: var(--tx-1); margin: 0; }
.h2 { font-weight: 600; font-size: clamp(28px, 4vw, 44px); line-height: 1.15; letter-spacing: -.015em; color: var(--tx-1); margin: 0; }
.h3 { font-weight: 600; font-size: 20px; line-height: 1.3; color: var(--tx-1); margin: 0; }
html.ar .h1, html.ar .h2 { letter-spacing: 0; line-height: 1.3; }
.lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--tx-3); line-height: 1.65; }
.muted { color: var(--tx-4); }
.grad-text { color: var(--accent-ink); }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--tx-1); direction: ltr; }
.logo svg { width: 30px; height: 30px; }
.logo b { font: 600 20px/1 'Sora', sans-serif; letter-spacing: -.01em; }

/* ---------- buttons ---------- */
.btn {
  --h: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; line-height: 1; font-family: inherit; text-decoration: none; cursor: pointer;
  white-space: nowrap; transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn-lg { --h: 52px; padding: 0 26px; font-size: 16px; }
.btn-primary { background: var(--tx-1); color: var(--ink-0); }
.btn-primary:hover { background: var(--tx-2); }
/* gradient-ring button: the signature action */
.btn-glow {
  position: relative; color: var(--tx-1); background: var(--ink-0); isolation: isolate;
}
.btn-glow::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; z-index: -2;
  background: var(--red);
}
.btn-glow::after {
  content: ""; position: absolute; inset: 1px; border-radius: inherit; z-index: -1; background: var(--ink-1);
  transition: background .2s;
}
.btn-glow:hover::after { background: var(--ink-3); }
.btn-ghost { background: transparent; color: var(--tx-1); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--ink-3); }
.btn-text { background: none; color: var(--tx-2); padding: 0 12px; }
.btn-text:hover { color: var(--tx-1); }
.btn-block { width: 100%; }

/* ---------- surfaces ---------- */
.card {
  background: var(--ink-1); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.card-glow { position: relative; isolation: isolate; border: none; }
.card-glow::before {
  content: ""; position: absolute; inset: 0; padding: 1px; border-radius: inherit; z-index: -1;
  background: var(--accent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px;
  background: var(--ink-2); border: 1px solid var(--line); color: var(--tx-2); font-weight: 500; font-size: 14px; line-height: 1;
  font-family: inherit; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.chip:hover { background: var(--ink-3); color: var(--tx-1); border-color: var(--line-2); }
.chip svg { width: 16px; height: 16px; }

.badge {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px;
  background: var(--fx-1); color: var(--tx-2); border: 1px solid var(--line-2); font-weight: 500; font-size: 13px; line-height: 1; font-family: inherit;
}

/* ---------- forms ---------- */
.field {
  width: 100%; height: 48px; padding: 0 16px; border-radius: var(--r-md);
  background: var(--ink-2); border: 1px solid var(--line); color: var(--tx-1);
  font-weight: 400; font-size: 15px; line-height: 1; font-family: inherit; outline: none; transition: border-color .2s, box-shadow .2s;
}
.field::placeholder { color: var(--tx-4); }
.field:focus { border-color: var(--fx-focus); box-shadow: 0 0 0 3px var(--fx-1); }

/* ---------- background ornaments ---------- */
.bg-grid {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(to right, var(--fx-grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--fx-grid) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.bg-orb {
  position: absolute; border-radius: 50%; filter: blur(110px); pointer-events: none; z-index: 0; opacity: .5;
}

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