/*
 * Landing page — Secure Code Workspace.
 *
 * Separate from brand.css because this is the only page in the product that is
 * not a console page: it has no sidebar, no AdminLTE, and it is served to
 * anonymous visitors. It reuses the brand tokens and adds nothing to the pages
 * an operator works in.
 *
 * Bilingual by construction: the same markup carries English and Arabic, and
 * `[dir="rtl"]` flips direction rather than a separate stylesheet. With
 * JavaScript disabled both languages are visible, stacked — a reader always
 * gets the content.
 */

:root {
  --l-ink:        #000C23;
  --l-ink-2:      #000F28;
  --l-ink-3:      #001942;
  --l-cyan:       #38CDF5;
  --l-cyan-hi:    #52E8FF;
  --l-azure:      #40A3FF;
  --l-indigo:     #6785EF;
  --l-violet:     #463691;
  --l-text:       #DCE9F7;
  --l-mist:       #BFE4FF;
  --l-slate:      #8CA6C4;
  --l-line:       rgba(56, 205, 245, .16);
  --l-gradient:   linear-gradient(100deg, var(--l-cyan) 0%, var(--l-azure) 48%, var(--l-indigo) 100%);
  --l-max:        1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--l-ink);
  color: var(--l-text);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
        Arial, "Noto Sans Arabic", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--l-cyan); text-decoration: none; }
a:hover { color: var(--l-cyan-hi); }

.wrap { max-width: var(--l-max); margin: 0 auto; padding: 0 24px; }

/* ---------------------------------------------------------------------- */
/* Header                                                                  */
/* ---------------------------------------------------------------------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(0, 12, 35, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--l-line);
}
.top .wrap {
  display: flex; align-items: center; gap: 16px;
  min-height: 68px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand img { width: 34px; height: 34px; }
.brand b { font-size: 16px; font-weight: 650; color: #fff; letter-spacing: -.01em; }
/* The kicker only. Scoped to the inner span, or the uppercase inherits into
   the product name that shares the wrapper. */
.brand b + span, .brand span > span {
  display: block; font-size: 11px; letter-spacing: .07em;
  text-transform: uppercase; color: var(--l-cyan); font-weight: 500;
}
.brand b { text-transform: none; }
.top nav { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }

.btn {
  display: inline-block; border: 0; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 14px;
  padding: 9px 18px; border-radius: 8px;
  background: var(--l-gradient); color: #04121F;
}
.btn:hover { color: #04121F; filter: brightness(1.08); }
.btn.ghost {
  background: transparent; color: var(--l-mist);
  border: 1px solid var(--l-line); padding: 8px 14px;
}
.btn.ghost:hover { border-color: var(--l-cyan); color: #fff; }
.btn.ghost[aria-pressed="true"] {
  border-color: var(--l-cyan); color: #04121F; background: var(--l-cyan);
}

/* ---------------------------------------------------------------------- */
/* Hero                                                                   */
/* ---------------------------------------------------------------------- */
.hero {
  padding: 84px 0 72px;
  background:
    radial-gradient(1200px 640px at 10% -10%, rgba(64, 163, 255, .20), transparent 62%),
    radial-gradient(900px 560px at 96% 4%, rgba(103, 133, 239, .18), transparent 60%);
  border-bottom: 1px solid var(--l-line);
}
.hero h1 {
  font-size: clamp(34px, 5.2vw, 58px);
  line-height: 1.06; letter-spacing: -.025em;
  margin: 0 0 10px; color: #fff; font-weight: 700;
  max-width: 26ch;
}
.hero h1 .accent {
  background: var(--l-gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .rule {
  height: 3px; width: 168px; border-radius: 3px;
  background: var(--l-gradient); margin: 22px 0 24px;
}
.hero .lede {
  font-size: clamp(17px, 2vw, 20px); color: var(--l-mist);
  max-width: 62ch; margin: 0 0 14px; font-weight: 300;
}
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero .note { font-size: 13px; color: var(--l-slate); margin-top: 14px; }

/* ---------------------------------------------------------------------- */
/* Sections                                                               */
/* ---------------------------------------------------------------------- */
section.band { padding: 68px 0; border-bottom: 1px solid var(--l-line); }
section.band.tint { background: linear-gradient(180deg, #00102A 0%, var(--l-ink) 100%); }

h2 {
  font-size: clamp(24px, 3vw, 34px); line-height: 1.15;
  letter-spacing: -.02em; color: #fff; margin: 0 0 10px; font-weight: 650;
}
h2 + .sub { color: var(--l-slate); max-width: 68ch; margin: 0 0 34px; }

h3 { font-size: 17px; margin: 0 0 6px; color: #fff; font-weight: 620; }

/* The problem: a plain list of the ways code leaves, deliberately unadorned. */
.leaks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px;
         grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); }
.leaks li {
  border: 1px solid rgba(255, 120, 120, .22);
  background: rgba(120, 20, 30, .12);
  border-radius: 10px; padding: 13px 16px; font-size: 15px;
}
.question {
  margin: 34px 0 0; padding: 22px 26px;
  border-inline-start: 3px solid var(--l-cyan);
  background: var(--l-ink-2); border-radius: 0 10px 10px 0;
  font-size: clamp(18px, 2.2vw, 23px); color: #fff; font-weight: 600;
}
[dir="rtl"] .question { border-radius: 10px 0 0 10px; }

/* The idea */
.idea {
  display: grid; gap: 18px; align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 6px;
}
.idea .half {
  border: 1px solid var(--l-line); border-radius: 12px;
  padding: 26px; background: var(--l-ink-2);
}
.idea .half.no { border-color: rgba(255, 120, 120, .26); }
.idea .half.yes { border-color: rgba(56, 205, 245, .38); }
.idea .half .k {
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--l-slate); margin-bottom: 8px;
}
.idea .half p { margin: 0; font-size: clamp(17px, 2vw, 21px); color: #fff;
                font-weight: 600; line-height: 1.3; }

/* Feature catalogue */
.features { display: grid; gap: 14px;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.feature {
  border: 1px solid var(--l-line); border-radius: 12px;
  background: var(--l-ink-2); padding: 20px 22px;
}
.feature .head { display: flex; align-items: flex-start; gap: 12px; }
.feature .ico {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center; font-size: 17px;
  background: rgba(64, 163, 255, .14); color: var(--l-cyan);
}
.feature p { margin: 8px 0 0; font-size: 14px; color: var(--l-slate); }
.feature .ref {
  display: inline-block; margin-top: 12px; font-size: 11px;
  color: var(--l-slate); border: 1px solid var(--l-line);
  border-radius: 99px; padding: 2px 9px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

/* How it works */
.steps { display: grid; gap: 14px;
         grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: s; }
.step {
  border: 1px solid var(--l-line); border-radius: 12px;
  padding: 20px 22px; background: var(--l-ink-2); position: relative;
}
.step::before {
  counter-increment: s; content: counter(s);
  position: absolute; top: 18px; inset-inline-end: 20px;
  font-size: 30px; font-weight: 700; color: rgba(56, 205, 245, .18);
  line-height: 1;
}
.step p { margin: 6px 0 0; font-size: 14px; color: var(--l-slate); }

/* Assets */
.assets { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.assets span {
  border: 1px solid var(--l-line); border-radius: 99px;
  padding: 7px 15px; font-size: 14px; color: var(--l-mist);
  background: var(--l-ink-2);
}

/* Closing line */
.closing { text-align: center; padding: 78px 0; }
.closing p {
  font-size: clamp(22px, 3.4vw, 36px); line-height: 1.25; font-weight: 650;
  color: #fff; margin: 0 auto; max-width: 24ch; letter-spacing: -.02em;
}
.closing p .accent {
  background: var(--l-gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.closing .cta { margin-top: 30px; }

footer.foot {
  border-top: 1px solid var(--l-line); padding: 26px 0 34px;
  color: var(--l-slate); font-size: 13px;
}
footer.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
footer.foot .tag { margin-inline-start: auto; color: var(--l-mist); }

/* ---------------------------------------------------------------------- */
/* Bilingual switching                                                    */
/* ---------------------------------------------------------------------- */
/* No JavaScript: both languages render, Arabic after English, each in its own
   direction. With JavaScript, one is shown at a time. */
[lang="ar"] { direction: rtl; text-align: right; }
[lang="ar"] .assets, [lang="ar"] .hero .cta { justify-content: flex-start; }

html.js [data-lang] { display: none; }
html.js[data-show="en"] [data-lang="en"] { display: block; }
html.js[data-show="ar"] [data-lang="ar"] { display: block; }
/* Inside a button or link the shown label must stay on the same line. */
html.js .btn > [data-lang] { display: none; }
html.js[data-show="en"] .btn > [data-lang="en"],
html.js[data-show="ar"] .btn > [data-lang="ar"] { display: inline; }

@media (max-width: 640px) {
  .hero { padding: 56px 0 48px; }
  section.band { padding: 48px 0; }
  .top .wrap { flex-wrap: wrap; min-height: 0; padding-block: 12px; }
  .top nav { margin-inline-start: 0; width: 100%; }
}
