/* ============================================================
   XRAlliance — style.css
   Colors: black, grey, white, green, blue, purple
   ============================================================ */

:root {
  --black: #0b0b10;
  --black-soft: #12121a;
  --grey-900: #181820;
  --grey-800: #20202b;
  --grey-700: #2d2d3a;
  --grey-500: #73738a;
  --grey-300: #c4c4d1;
  --grey-100: #f4f4f8;
  --white: #ffffff;

  --green: #00c896;
  --blue: #2f7cf6;
  --purple: #8b5cf6;

  --grad: linear-gradient(90deg, var(--green) 0%, var(--blue) 50%, var(--purple) 100%);

  --header-h: 76px;
  --radius: 16px;
  --shadow: 0 18px 50px rgba(11, 11, 16, 0.12);
  --shadow-hover: 0 26px 60px rgba(11, 11, 16, 0.18);
}

/* ---------- Reset & Base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--grey-900);
  background: var(--white);
  line-height: 1.65;
  padding-top: var(--header-h);
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { width: min(1200px, 92%); margin-inline: auto; }
.center { text-align: center; margin-top: 32px; }

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

code {
  background: var(--grey-100);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.9em;
}

/* ---------- Header / Top Menu (fixed on scroll) ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 1000;
  background: rgba(11, 11, 16, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--grey-800);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.logo {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--white);
  white-space: nowrap;
}

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

.nav-toggle { display: none; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: 0.3s;
}

.main-nav { display: flex; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  position: relative;
  display: block;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--grey-300);
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: var(--white);
  background: var(--grey-800);
}

.nav-links a.active { color: var(--white); }

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 3px;
  border-radius: 99px;
  background: var(--grad);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 99px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: 0.25s;
}

.btn-primary {
  background: var(--grad);
  color: var(--white);
  box-shadow: 0 10px 30px rgba(47, 124, 246, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(139, 92, 246, 0.45);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--black);
}

.btn-outline-dark {
  border-color: var(--grey-900);
  color: var(--grey-900);
}

.btn-outline-dark:hover {
  background: var(--grey-900);
  color: var(--white);
}

/* ---------- Hero (Home) ---------- */
.hero {
  background: var(--black);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at 15% 20%, rgba(0, 200, 150, 0.25), transparent 60%),
    radial-gradient(700px 350px at 85% 30%, rgba(47, 124, 246, 0.28), transparent 60%),
    radial-gradient(600px 350px at 50% 90%, rgba(139, 92, 246, 0.25), transparent 60%);
}

.hero-inner {
  position: relative;
  padding: 110px 0 90px;
  max-width: 820px;
}

.hero-badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-300);
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.4rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--grey-300);
  max-width: 720px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 50px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 30px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-num { font-size: 1.5rem; font-weight: 800; }

.stat-label {
  font-size: 0.85rem;
  color: var(--grey-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-light { background: var(--white); }
.section-grey { background: var(--grey-100); }
.section-dark { background: var(--black); color: var(--white); }

.section-head {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.section-head p { color: var(--grey-500); }
.section-dark .section-head h2 { color: var(--white); }
.section-dark .section-head p { color: var(--grey-300); }

/* ---------- Grids & Cards ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.card {
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: 0.25s;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}

.icon-green { background: rgba(0, 200, 150, 0.14); border: 1px solid rgba(0, 200, 150, 0.3); }
.icon-blue { background: rgba(47, 124, 246, 0.14); border: 1px solid rgba(47, 124, 246, 0.3); }
.icon-purple { background: rgba(139, 92, 246, 0.14); border: 1px solid rgba(139, 92, 246, 0.3); }

.card h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 10px; }
.card p { color: var(--grey-500); font-size: 0.95rem; }

/* ---------- Members Logos ---------- */
.logos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-bottom: 40px;
}

.logo-slot {
  display: grid;
  place-items: center;
  min-height: 130px;
  padding: 18px;
  border: 1px dashed var(--grey-300);
  border-radius: var(--radius);
  background: var(--white);
  text-align: center;
}

.logo-placeholder {
  color: var(--grey-500);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ---------- Image Placeholders ---------- */
.image-placeholder {
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--grad);
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.04em;
  min-height: 260px;
  text-align: center;
  padding: 30px;
  box-shadow: var(--shadow);
}

.image-placeholder.tall { min-height: 420px; }

.case-img {
  display: grid;
  place-items: center;
  height: 160px;
  border-radius: 12px;
  margin-bottom: 18px;
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: linear-gradient(120deg, var(--green), var(--blue));
}

.case-img.variant-2 { background: linear-gradient(120deg, var(--blue), var(--purple)); }
.case-img.variant-3 { background: linear-gradient(120deg, var(--purple), var(--green)); }

/* ---------- Two Column Layout ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.text-col h2 { font-size: 1.7rem; font-weight: 900; margin-bottom: 12px; }
.text-col p { color: var(--grey-500); margin-bottom: 22px; }

/* ---------- Page Header (inner pages) ---------- */
.page-header {
  background: var(--black);
  color: var(--white);
  padding: 88px 0 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 320px at 50% 0%, rgba(47, 124, 246, 0.3), transparent 60%),
    radial-gradient(500px 300px at 80% 100%, rgba(139, 92, 246, 0.25), transparent 60%);
}

.page-header .container { position: relative; }

.page-header h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 8px 0 16px;
}

.page-header p {
  color: var(--grey-300);
  max-width: 720px;
  margin: 0 auto;
}

/* ---------- Use Case Cards ---------- */
.use-case {
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: 0.25s;
}

.use-case:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.use-case-body { padding: 26px; }

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 99px;
  margin-bottom: 14px;
}

.tag-green { background: rgba(0, 200, 150, 0.15); color: #008b68; }
.tag-blue { background: rgba(47, 124, 246, 0.15); color: var(--blue); }
.tag-purple { background: rgba(139, 92, 246, 0.15); color: var(--purple); }

.use-case h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 10px; }
.use-case p { color: var(--grey-500); font-size: 0.95rem; }

/* ---------- Success Story Cards ---------- */
.story-card {
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: 0.25s;
}

.story-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.story-quote {
  font-size: 1.05rem;
  color: var(--grey-900);
  font-weight: 500;
}

.story-quote::before {
  content: "\201C";
  display: block;
  font-size: 3rem;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 900;
}

.story-meta {
  border-top: 1px solid var(--grey-100);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.story-author strong { display: block; font-weight: 800; }
.story-author span { font-size: 0.85rem; color: var(--grey-500); }

.result {
  font-weight: 800;
  font-size: 0.9rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- CTA ---------- */
.cta {
  background: var(--black);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 260px at 20% 50%, rgba(0, 200, 150, 0.22), transparent 60%),
    radial-gradient(600px 260px at 80% 50%, rgba(139, 92, 246, 0.22), transparent 60%);
}

.cta-inner {
  position: relative;
  text-align: center;
  padding: 30px 0;
}

.cta h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.cta p { color: var(--grey-300); margin-bottom: 28px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--black);
  color: var(--grey-300);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding: 70px 0 50px;
}

.footer-brand p {
  margin-top: 16px;
  font-size: 0.92rem;
  color: var(--grey-500);
  max-width: 260px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-col a {
  color: var(--grey-500);
  font-size: 0.92rem;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--white); }

.contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--grey-500);
  font-size: 0.92rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
}

.dot-green { background: var(--green); }
.dot-blue { background: var(--blue); }
.dot-purple { background: var(--purple); }

.footer-logo { font-size: 1.3rem; }

.footer-bottom {
  border-top: 1px solid var(--grey-800);
  padding: 20px 0;
  font-size: 0.85rem;
  color: var(--grey-500);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .logos-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .hamburger { display: flex; }

  .main-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--black);
    border-bottom: 1px solid var(--grey-800);
    display: none;
  }

  .nav-toggle:checked ~ .main-nav { display: block; }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 0;
    gap: 4px;
  }

  .nav-links a {
    padding: 13px 22px;
    border-radius: 0;
  }

  .nav-links a.active::after {
    left: 22px;
    right: auto;
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 22px;
  }

  .grid-3 { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .hero-inner { padding: 80px 0 70px; }
  .section { padding: 64px 0; }
}

@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
  .logos-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 22px; }
}