/* ==========================================================================
   Saqrion — Sovereign Data Infrastructure
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  background: var(--bg);
  color: var(--text);
  transition: background 0.4s ease, color 0.4s ease;
}

/* ----- Theme tokens ------------------------------------------------------ */

:root[data-theme="dark"] {
  --bg: #0a0e1a;
  --bg-alt: #0f1424;
  --bg-elev: #141a2e;
  --bg-cta: #060912;
  --text: #f0ead6;
  --text-muted: #a0a8b8;
  --text-dim: #6b7488;
  --gold: #c9a961;
  --gold-bright: #d4b870;
  --gold-dim: #8a7340;
  --border: rgba(201, 169, 97, 0.18);
  --border-strong: rgba(201, 169, 97, 0.4);
  --hero-grad-1: rgba(201, 169, 97, 0.08);
  --hero-grad-2: rgba(10, 14, 26, 1);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

:root[data-theme="light"] {
  --bg: #faf8f3;
  --bg-alt: #f0ebe0;
  --bg-elev: #ffffff;
  --bg-cta: #1a1410;
  --text: #1a1410;
  --text-muted: #5a5246;
  --text-dim: #8a8275;
  --gold: #8a6d2e;
  --gold-bright: #a88440;
  --gold-dim: #5e4a1f;
  --border: rgba(138, 109, 46, 0.2);
  --border-strong: rgba(138, 109, 46, 0.45);
  --hero-grad-1: rgba(138, 109, 46, 0.08);
  --hero-grad-2: rgba(250, 248, 243, 1);
  --shadow: 0 20px 60px rgba(26, 20, 16, 0.1);
}

/* Logo swap */
:root[data-theme="dark"] .nav__logo--light,
:root[data-theme="dark"] .hero__logo--light,
:root[data-theme="dark"] .footer__logo--light { display: none; }
:root[data-theme="light"] .nav__logo--dark,
:root[data-theme="light"] .hero__logo--dark,
:root[data-theme="light"] .footer__logo--dark { display: none; }
:root[data-theme="dark"] .theme-toggle__icon--light { display: none; }
:root[data-theme="light"] .theme-toggle__icon--dark { display: none; }

/* ----- Layout primitives ------------------------------------------------- */

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}
.container--narrow { max-width: 780px; }

.section {
  padding: 120px 0;
  border-top: 1px solid var(--border);
}
.section--alt { background: var(--bg-alt); }
.section--cta { background: var(--bg-cta); color: #f0ead6; padding: 140px 0; text-align: center; }
.section--cta .section__eyebrow { color: var(--gold-bright); }
.section--cta .section__title { color: #f0ead6; }
.section--cta .section__lead { color: rgba(240, 234, 214, 0.7); }

.section__eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 16px;
}
.section__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 24px;
  max-width: 900px;
}
.section__lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 56px;
  max-width: 780px;
}
.section__note {
  margin-top: 56px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 820px;
}

.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) {
  .grid--3 { grid-template-columns: 1fr; }
}

.accent { color: var(--gold); }

/* ----- Buttons ----------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--gold);
  color: #0a0e1a;
  border-color: var(--gold);
}
.btn--primary:hover {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.btn--large {
  padding: 16px 32px;
  font-size: 15px;
}
.section--cta .btn--ghost {
  color: #f0ead6;
  border-color: rgba(240, 234, 214, 0.3);
}
.section--cta .btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ----- Nav --------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.4s ease;
}
:root[data-theme="light"] .nav { background: rgba(250, 248, 243, 0.88); }

.nav__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}
.nav__logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 4px;
}
.nav__wordmark {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.18em;
}
.nav__links {
  display: flex;
  gap: 32px;
  margin-left: auto;
}
.nav__links a {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav__links a:hover { color: var(--gold); }
.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
@media (max-width: 900px) {
  .nav__links { display: none; }
}

.theme-toggle {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.theme-toggle:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ----- Hero -------------------------------------------------------------- */

.hero {
  position: relative;
  padding: 100px 0 140px;
  overflow: hidden;
  text-align: center;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, var(--hero-grad-1), transparent 70%),
    radial-gradient(ellipse at 80% 100%, var(--hero-grad-1), transparent 60%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 32px;
}
.hero__mark {
  margin-bottom: 32px;
}
.hero__logo {
  width: 200px;
  height: auto;
  border-radius: 8px;
}
.hero__eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 24px;
}
.hero__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 0 0 28px;
}
.hero__sub {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0 auto 40px;
  max-width: 720px;
}
.hero__cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 80px;
}
.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}
.hero__stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hero__stat-num {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 36px;
  font-weight: 500;
  color: var(--gold);
  line-height: 1;
}
.hero__stat-lbl {
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}
@media (max-width: 700px) {
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .hero__logo { width: 160px; }
}

/* ----- Cards (opportunity, why-now) -------------------------------------- */

.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 36px 32px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.card__num {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 44px;
  font-weight: 500;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 20px;
}
.card__index {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 16px;
}
.card__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-size: 24px;
  line-height: 1.25;
  color: var(--text);
  margin: 0 0 14px;
}
.card__body {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
}

/* ----- Product cards ----------------------------------------------------- */

.product-grid { margin-bottom: 56px; }

.product-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 36px 32px;
  position: relative;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.product-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.product-card__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--gold);
  background: rgba(201, 169, 97, 0.1);
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 18px;
}
.product-card__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-size: 32px;
  color: var(--text);
  margin: 0 0 12px;
}
.product-card__sub {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 28px;
  min-height: 72px;
}
.product-card__price {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 36px;
  font-weight: 500;
  color: var(--gold);
}

.product-total {
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 8px 0;
  background: var(--bg-elev);
}
.product-total__row {
  display: grid;
  grid-template-columns: 2fr 1fr 2fr;
  gap: 24px;
  align-items: baseline;
  padding: 24px 32px;
  border-bottom: 1px solid var(--border);
}
.product-total__row:last-child { border-bottom: none; }
.product-total__label {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
}
.product-total__value {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 32px;
  font-weight: 500;
  color: var(--gold);
}
.product-total__note {
  font-size: 14px;
  color: var(--text-dim);
  text-align: right;
}
@media (max-width: 700px) {
  .product-total__row { grid-template-columns: 1fr; gap: 6px; }
  .product-total__note { text-align: left; }
}

/* ----- Tiers ------------------------------------------------------------- */

.tiers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1100px) {
  .tiers { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .tiers { grid-template-columns: 1fr; }
}

.tier {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.tier:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.tier--featured {
  border-color: var(--gold);
  box-shadow: var(--shadow);
}
.tier__badge {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--gold);
  color: #0a0e1a;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  padding: 5px 12px;
  border-radius: 3px;
  text-transform: uppercase;
}
.tier__head { padding-bottom: 4px; }
.tier__name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 28px;
  font-weight: 500;
  color: var(--text);
  margin: 0 0 4px;
}
.tier__gpu {
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  margin: 0;
}
.tier__price {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 44px;
  font-weight: 500;
  color: var(--gold);
  line-height: 1;
}
.tier__metrics {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.tier__metrics > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.tier__lbl {
  font-size: 13px;
  color: var(--text-dim);
}
.tier__val {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}
.tier__best {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
}

/* ----- Hero Arabic mark -------------------------------------------------- */

.hero__eyebrow-ar {
  font-family: 'Cormorant Garamond', 'Noto Naskh Arabic', serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  margin-right: 6px;
  vertical-align: -2px;
  color: var(--gold);
}

/* ----- 3 steps section --------------------------------------------------- */

.steps-section { background: var(--bg-alt); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

.step {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.step:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.step__num {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 4px;
}
.step__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-size: 28px;
  color: var(--text);
  margin: 0 0 4px;
}
.step__body {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
  flex: 1;
}
.step__meta {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}
.step__cta {
  display: inline-block;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s ease;
}
.step__cta:hover { color: var(--gold-bright); }

/* ----- Built for section ------------------------------------------------- */

.builtfor {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.builtfor__row {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  padding: 40px 36px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elev);
  transition: background 0.2s ease;
}
.builtfor__row:last-child { border-bottom: 0; }
.builtfor__row:hover { background: var(--bg-alt); }
.builtfor__head { }
.builtfor__name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
  color: var(--text);
  margin: 0 0 8px;
}
.builtfor__region {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}
.builtfor__body {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
}
@media (max-width: 800px) {
  .builtfor__row { grid-template-columns: 1fr; gap: 16px; padding: 32px 24px; }
}

/* ----- Tiers CTA --------------------------------------------------------- */

.tiers-cta {
  margin-top: 56px;
  text-align: center;
  padding: 32px;
  border: 1px dashed var(--border-strong);
  border-radius: 6px;
  background: rgba(201, 169, 97, 0.04);
}
.tiers-cta__hint {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--text-muted);
}

/* ----- Markets ----------------------------------------------------------- */

.markets {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.market {
  padding: 36px 32px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s ease;
}
.market:hover { background: var(--bg-elev); }
.market:nth-child(2n) { border-right: none; }
.market:nth-last-child(-n+2) { border-bottom: none; }
.market:last-child:nth-child(odd) {
  grid-column: span 2;
  border-right: none;
}
.market__name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-size: 26px;
  color: var(--gold);
  margin: 0 0 12px;
}
.market__why {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}
@media (max-width: 700px) {
  .markets { grid-template-columns: 1fr; }
  .market { border-right: none; }
  .market:last-child:nth-child(odd) { grid-column: span 1; }
}

/* ----- Team -------------------------------------------------------------- */

.person {
  padding: 36px 32px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-elev);
}
.person__name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-size: 26px;
  color: var(--text);
  margin: 0 0 6px;
}
.person__role {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--gold);
  text-transform: uppercase;
  margin: 0 0 16px;
}
.person__bio {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 16px;
}
.person__loc {
  font-size: 13px;
  color: var(--text-dim);
  margin: 0;
  letter-spacing: 0.04em;
}
.partners {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.partners__label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.partners__list {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 22px;
  color: var(--text);
  letter-spacing: 0.04em;
}

/* ----- CTA section centering -------------------------------------------- */

.section--cta .section__title,
.section--cta .section__lead {
  margin-left: auto;
  margin-right: auto;
}
.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}

/* ----- Footer ------------------------------------------------------------ */

.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 48px 0;
}
.footer__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 48px;
  align-items: center;
}
.footer__logo {
  width: 56px;
  height: auto;
  border-radius: 4px;
}
.footer__meta p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
}
.footer__meta a {
  color: var(--gold);
  text-decoration: none;
}
.footer__meta a:hover { color: var(--gold-bright); }
.footer__legal p {
  margin: 0;
  font-size: 13px;
  color: var(--text-dim);
}
.footer__ar {
  font-family: 'Cormorant Garamond', 'Noto Naskh Arabic', serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--gold);
  margin-right: 6px;
}
@media (max-width: 700px) {
  .footer__inner { grid-template-columns: 1fr; gap: 24px; text-align: left; }
}
