/* ============================================================
   Aljuma — corporate one-pager
   Self-contained, no external dependencies.
   ============================================================ */

:root {
  --bg: #0A0A0F;
  --bg-alt: #0E0E15;
  --surface: #14141D;
  --surface-2: #191924;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #ECECF2;
  --muted: #9A9AAB;
  --faint: #6C6C7E;

  --accent-1: #7C7CFF;
  --accent-2: #22D3EE;
  --accent-grad: linear-gradient(120deg, #7C7CFF 0%, #22D3EE 100%);

  --maxw: 1160px;
  --pad: clamp(20px, 5vw, 48px);
  --radius: 16px;
  --radius-sm: 10px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, "Helvetica Neue", sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 {
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 700;
}

p { margin: 0; }

a {
  color: inherit;
  text-decoration: none;
}

img, svg { display: block; max-width: 100%; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.grad-text {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent-1);
  color: #0A0A0F;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 1000;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent-grad);
  color: #07070B;
  box-shadow: 0 8px 30px -10px rgba(124, 124, 255, 0.6);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px -12px rgba(34, 211, 238, 0.65);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  border-color: var(--accent-1);
  background: rgba(124, 124, 255, 0.08);
  transform: translateY(-2px);
}
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
    backdrop-filter 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(10, 10, 15, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 18px;
}
.brand-mark { display: inline-flex; }
.nav {
  display: flex;
  gap: 30px;
  margin-inline: auto;
}
.nav a {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s var(--ease);
}
.nav a:hover { color: var(--text); }
.header-cta { padding: 10px 20px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  cursor: pointer;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  margin-inline: auto;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav[hidden] { display: none; }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px var(--pad) 24px;
  background: rgba(10, 10, 15, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.mobile-nav a {
  padding: 12px 4px;
  color: var(--muted);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.mobile-nav a:last-child { border: none; }

/* ---------- Eyebrow / section heads ---------- */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent-2);
  margin-bottom: 16px;
}
.section {
  padding-block: clamp(72px, 11vw, 132px);
}
.section-alt { background: var(--bg-alt); }
.section-title {
  font-size: clamp(28px, 4.6vw, 46px);
}
.section-head {
  max-width: 640px;
  margin-bottom: clamp(40px, 6vw, 64px);
}
.section-lead {
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
  margin-top: 18px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(72px, 13vw, 150px);
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 620px;
  background:
    radial-gradient(ellipse 50% 60% at 25% 20%, rgba(124, 124, 255, 0.28), transparent 60%),
    radial-gradient(ellipse 45% 55% at 78% 15%, rgba(34, 211, 238, 0.22), transparent 60%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; max-width: 880px; }
.hero-title {
  font-size: clamp(38px, 7vw, 74px);
  margin-block: 8px 24px;
}
.hero-sub {
  color: var(--muted);
  font-size: clamp(17px, 2.3vw, 21px);
  max-width: 620px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}
.hero-logos {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  padding: 0;
  margin: 56px 0 0;
  color: var(--faint);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.hero-logos li {
  position: relative;
  padding-left: 20px;
}
.hero-logos li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-grad);
  transform: translateY(-50%);
}

/* ---------- Stats ---------- */
.stats {
  border-block: 1px solid var(--border);
  background: var(--bg-alt);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  padding-block: clamp(40px, 6vw, 64px);
}
.stat { text-align: center; padding: 8px 12px; }
.stat-num {
  display: block;
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label {
  display: block;
  color: var(--muted);
  font-size: 14.5px;
  margin-top: 6px;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}
.about-copy p { color: var(--muted); font-size: 18px; }
.about-copy p + p { margin-top: 20px; }

/* ---------- Pillars ---------- */
.pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.pillar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 40px);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.pillar:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
}
.pillar-title {
  font-size: 23px;
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 24px;
}
.pillar-index {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-2);
  letter-spacing: 0.05em;
}
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 20px;
}
.feature-list li {
  display: grid;
  gap: 4px;
  padding-left: 22px;
  position: relative;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent-grad);
}
.feature-list strong { font-weight: 600; }
.feature-list span { color: var(--muted); font-size: 15.5px; }

/* ---------- Chips ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: clamp(48px, 7vw, 72px);
}
.chip {
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.chip:hover { border-color: var(--accent-1); color: #fff; }

/* ---------- Benefits ---------- */
.benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.benefit {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
}
.benefit h3 { font-size: 19px; margin-bottom: 10px; }
.benefit p { color: var(--muted); font-size: 15.5px; }

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  border-top: 2px solid var(--border-strong);
  padding-top: 24px;
}
.step-num {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-2);
  margin-bottom: 14px;
  letter-spacing: 0.05em;
}
.step h3 { font-size: 20px; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15.5px; }

/* ---------- Cases ---------- */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.case {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.case:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.case-tag {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-2);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.case h3 { font-size: 21px; margin-bottom: 10px; }
.case > p { color: var(--muted); font-size: 15.5px; flex: 1; }
.case-metric {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.case-metric strong {
  font-size: 30px;
  letter-spacing: -0.02em;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.case-metric span { color: var(--muted); font-size: 14px; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 72px);
  align-items: start;
}
.contact-details { margin-top: 28px; }
.contact-mail {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: opacity 0.2s var(--ease);
}
.contact-mail:hover { opacity: 0.8; }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 36px);
  display: grid;
  gap: 18px;
}
.field { display: grid; gap: 7px; }
.field label { font-size: 14px; font-weight: 600; color: var(--muted); }
.field input,
.field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px rgba(124, 124, 255, 0.18);
}
.form-note {
  font-size: 14px;
  color: var(--accent-2);
  min-height: 1em;
  margin: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding-top: clamp(48px, 7vw, 72px);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-tag { color: var(--muted); font-size: 15px; margin-top: 14px; max-width: 280px; }
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-nav a { color: var(--muted); font-size: 15px; transition: color 0.2s var(--ease); }
.footer-nav a:hover { color: var(--text); }
.legal {
  display: grid;
  gap: 6px;
  font-style: normal;
  color: var(--muted);
  font-size: 14.5px;
}
.legal-title {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 700;
  color: var(--faint);
  margin-bottom: 6px;
}
.legal a { color: var(--accent-2); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-block: 24px;
  border-top: 1px solid var(--border);
  color: var(--faint);
  font-size: 13.5px;
}
.footer-legal-links a { color: var(--faint); transition: color 0.2s var(--ease); }
.footer-legal-links a:hover { color: var(--text); }

/* ---------- Reveal animation ----------
   Gated behind `.js` so content stays fully visible without JavaScript. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .about-grid,
  .pillars,
  .benefits,
  .cases-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 1px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .steps { grid-template-columns: 1fr; }
  .footer-bottom { justify-content: flex-start; }
}

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