/* =================================================================
   ALPIAX SOLUTIONS LTD — Global Stylesheet
   Direction: Modern Minimal / dark  |  Accent: medium blue
   Fonts: Plus Jakarta Sans (display) + Inter (body)
================================================================= */

/* ── TOKENS ───────────────────────────────────────────────────── */
:root {
  --bg:          oklch(10% 0.018 250);
  --surface:     oklch(14% 0.020 250);
  --surface-2:   oklch(18% 0.022 250);
  --fg:          oklch(95% 0.006 240);
  --fg-muted:    oklch(60% 0.012 240);
  --border:      oklch(22% 0.022 250);
  --accent:      oklch(64% 0.22 240);
  --accent-dim:  oklch(64% 0.22 240 / 0.12);
  --accent-glow: oklch(64% 0.22 240 / 0.28);
  --accent-soft: oklch(64% 0.22 240 / 0.08);

  --font-d: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-b: 'Inter', system-ui, sans-serif;
  --font-m: ui-monospace, 'JetBrains Mono', Menlo, monospace;

  --nav-h:   72px;
  --max-w:   1200px;
  --pad-x:   clamp(20px, 5vw, 72px);
  --sec-pad: clamp(64px, 8vw, 104px);
  --r:       12px;
  --r-lg:    18px;
  --r-xl:    24px;
}

/* ── RESET ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-b);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
button { font-family: inherit; }

/* ── TYPE HELPERS ─────────────────────────────────────────────── */
.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
h1, h2, h3, h4 {
  font-family: var(--font-d);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

/* ── LAYOUT ───────────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.section        { padding: var(--sec-pad) 0; }
.section--alt   { background: var(--surface); }

/* ── NAV ──────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 200;
  background: oklch(10% 0.018 250 / 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.nav .container { height: 100%; }
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-d);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--fg);
  flex-shrink: 0;
}
.nav-logo em { font-style: normal; color: var(--accent); }
.nav-logo-mark { height: 53px; width: auto; flex-shrink: 0; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-muted);
  transition: color 0.15s;
  white-space: nowrap;
}
.nav-link:hover,
.nav-link.active { color: var(--fg); }
.nav-cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  background: var(--accent);
  color: oklch(10% 0.018 250);
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  transition: opacity 0.15s, transform 0.15s, box-shadow 0.15s;
}
.nav-cta:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--accent-glow);
}
.nav-burger {
  display: none;
  background: none;
  border: none;
  color: var(--fg);
  cursor: pointer;
  padding: 6px;
  line-height: 0;
}

/* mobile overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 190;
  background: var(--bg);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
}
.nav-overlay.open { display: flex; }
.nav-overlay-link {
  font-family: var(--font-d);
  font-size: 32px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.03em;
  transition: color 0.15s;
}
.nav-overlay-link:hover { color: var(--accent); }
.nav-overlay-close {
  position: absolute;
  top: 20px; right: 20px;
  background: none;
  border: none;
  color: var(--fg-muted);
  cursor: pointer;
  padding: 8px;
  line-height: 0;
}
.nav-overlay-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 32px;
  background: var(--accent);
  color: oklch(10% 0.018 250);
  font-family: var(--font-d);
  font-size: 16px;
  font-weight: 700;
  border-radius: 999px;
  margin-top: 8px;
}

/* ── BUTTONS ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  font-family: var(--font-b);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s, border-color 0.2s, background 0.2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: oklch(10% 0.018 250);
}
.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px oklch(64% 0.22 240 / 0.35);
}
.btn-ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--fg-muted);
  background: var(--surface);
}
.btn-lg {
  padding: 14px 32px;
  font-size: 15px;
}

/* ── GRADIENT TEXT UTILITY ───────────────────────────────────── */
.text-gradient {
  background: linear-gradient(135deg, var(--accent) 0%, oklch(75% 0.19 205) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── PAGE HEADER ─────────────────────────────────────────────── */
.page-header {
  padding-top: calc(var(--nav-h) + 80px);
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 30% -10%, oklch(64% 0.22 240 / 0.1) 0%, transparent 65%),
    var(--bg);
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.22;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 100% 100% at 40% 0%, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 100% 100% at 40% 0%, black 0%, transparent 75%);
}
.page-header > .container { position: relative; z-index: 1; }
.page-header .eyebrow { margin-bottom: 16px; }
.page-header h1 {
  font-size: clamp(40px, 6vw, 68px);
  max-width: 800px;
  letter-spacing: -0.04em;
}
.page-header p {
  margin-top: 20px;
  font-size: 18px;
  color: var(--fg-muted);
  max-width: 540px;
  line-height: 1.65;
}

/* ── SECTION HEADING ─────────────────────────────────────────── */
.sec-head { margin-bottom: 56px; }
.sec-head .eyebrow { margin-bottom: 14px; }
.sec-head h2 {
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.04em;
}
.sec-head p {
  margin-top: 16px;
  color: var(--fg-muted);
  font-size: 17px;
  max-width: 560px;
  line-height: 1.65;
}
.sec-head--center { text-align: center; }
.sec-head--center p { margin-left: auto; margin-right: auto; }

/* ── CTA BANNER ──────────────────────────────────────────────── */
.cta-banner {
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 80px 56px;
  text-align: center;
  background: var(--surface);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -1px; left: 50%; transform: translateX(-50%);
  width: 500px;
  height: 250px;
  background: radial-gradient(ellipse at top, oklch(64% 0.22 240 / 0.14) 0%, transparent 70%);
  pointer-events: none;
}
.cta-banner::after {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.cta-banner h2 {
  font-size: clamp(28px, 4vw, 48px);
  position: relative;
  letter-spacing: -0.04em;
}
.cta-banner p {
  margin-top: 18px;
  color: var(--fg-muted);
  font-size: 17px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  line-height: 1.65;
}
.cta-banner-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
  position: relative;
}
@media (max-width: 540px) {
  .cta-banner { padding: 52px 28px; border-radius: var(--r-lg); }
}

/* ── FOOTER ───────────────────────────────────────────────────── */
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-d);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 14px;
  color: var(--fg);
}
.footer-logo em { font-style: normal; color: var(--accent); }
.footer-logo-mark { height: 53px; width: auto; flex-shrink: 0; }

.footer {
  border-top: 1px solid var(--border);
  padding: 72px 0 44px;
  position: relative;
}
.footer::before {
  content: '';
  position: absolute;
  top: -1px; left: 50%; transform: translateX(-50%);
  width: 300px;
  height: 1px;
  background: linear-gradient(90deg, transparent, oklch(64% 0.22 240 / 0.5), transparent);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}
.footer-brand .nav-logo { display: inline-block; margin-bottom: 14px; }
.footer-brand p {
  font-size: 14px;
  color: var(--fg-muted);
  max-width: 280px;
  line-height: 1.65;
}
.footer-col h4 {
  font-family: var(--font-b);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 18px;
}
.footer-col li + li { margin-top: 12px; }
.footer-col a {
  font-size: 14px;
  color: var(--fg-muted);
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--fg); }
.footer-bottom {
  margin-top: 52px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  font-size: 13px;
  color: var(--fg-muted);
}
.footer-bottom a {
  font-size: 13px;
  color: var(--fg-muted);
  transition: color 0.15s;
}
.footer-bottom a:hover { color: var(--fg); }

/* ── SHARED NAV JS (mobile toggle) ───────────────────────────── */
/* see inline <script> in each page */

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
