/* ──────────────────────────────────────────────────────────
   BIMquants Lite — landing page (index.html)
   ────────────────────────────────────────────────────────── */

/* ── HERO (background image + overlaid title) ────────────── */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 78vh;
  padding: 7rem 2rem 6rem;
  background: #0f172a;
  overflow: hidden;
}

/* Background photo as a bright layer behind the title */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../hero.jpg") center / cover no-repeat;
  filter: brightness(1.15) saturate(1.05);
}

/* Frosted panel behind the hero text for contrast */
.hero-card {
  max-width: 640px;
  padding: 2.75rem 2.5rem 3rem;
  background: rgba(15, 23, 42, .78);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: calc(var(--radius) + 6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .7);
}

.hero .badge { margin-bottom: 1.25rem; }

.hero h1 {
  font-size: clamp(2.25rem, 5.5vw, 3.5rem);
  max-width: 760px;
  margin: 0 auto .9rem;
  text-shadow: 0 2px 6px rgba(0, 0, 0, .55), 0 4px 24px rgba(0, 0, 0, .65);
}

.hero p {
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 2.2rem;
  color: #e2e8f0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .55), 0 2px 16px rgba(0, 0, 0, .6);
}

.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn-primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-weight: 600;
  font-size: 1rem;
  padding: .75rem 1.75rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s, transform .1s;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-h); transform: translateY(-1px); }

.btn-outline { background: transparent; color: #cbd5e1; border: 1px solid #475569; }
.btn-outline:hover { border-color: #94a3b8; color: #fff; transform: translateY(-1px); }

/* ── SECTION WRAPPERS ────────────────────────────────────── */
section { padding: 5rem 2rem; }

.container { max-width: 1080px; margin: 0 auto; }

.section-label {
  text-align: center;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .6rem;
}

.section-title {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--dark);
  margin-bottom: .6rem;
}

.section-sub {
  text-align: center;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 3rem;
}

/* ── FEATURES GRID ───────────────────────────────────────── */
.features { background: var(--surface); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: box-shadow .2s, transform .2s;
}

.feature-card:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 34px rgba(47, 107, 255, .16);
  transform: translateY(-3px);
}

.feature-icon { font-size: 1.75rem; margin-bottom: 1rem; }

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: .4rem;
}

.feature-card p { font-size: .9rem; color: var(--muted); }

/* ── HOW IT WORKS ────────────────────────────────────────── */
.steps { display: flex; flex-direction: column; gap: 1.25rem; max-width: 680px; margin: 0 auto; }

.step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}

.step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: .875rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-body h4 { font-weight: 700; color: var(--dark); margin-bottom: .2rem; }
.step-body p  { font-size: .875rem; color: var(--muted); }

/* ── ELEMENT SUPPORT ─────────────────────────────────────── */
.elements { background: var(--surface); }

.elements-list {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  justify-content: center;
  max-width: 700px;
  margin: 0 auto;
}

.elem-tag {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: .35rem .85rem;
  font-size: .85rem;
  font-weight: 500;
  color: var(--text);
}

/* ── DOWNLOAD ────────────────────────────────────────────── */
.download { background: var(--hero-grad); color: #fff; }

.download .section-label { color: #60a5fa; }
.download .section-title { color: #fff; }
.download .section-sub   { color: #94a3b8; }

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}

.download-card {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
}

.download-card .version {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: #60a5fa;
  text-transform: uppercase;
  margin-bottom: .6rem;
}

.download-card h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: .5rem;
  letter-spacing: -0.02em;
}

.download-card ul {
  list-style: none;
  color: #94a3b8;
  font-size: .875rem;
  margin: 1rem 0 2rem;
  text-align: left;
  display: inline-block;
}

.download-card ul li { padding: .2rem 0; }
.download-card ul li::before { content: "✓ "; color: #34d399; font-weight: 700; }

.download-note { font-size: .775rem; color: #64748b; margin-top: 1rem; }

.download-actions {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  margin-top: 1.5rem;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  font-weight: 600;
  font-size: .9rem;
  padding: .65rem 1.25rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background .15s, transform .1s;
}

.btn-download.primary { background: var(--accent); color: #fff; }
.btn-download.primary:hover { background: var(--accent-h); transform: translateY(-1px); }

.btn-download.secondary {
  background: rgba(255, 255, 255, .08);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, .15);
}

.btn-download.secondary:hover { background: rgba(255, 255, 255, .14); color: #fff; transform: translateY(-1px); }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 600px) {
  .nav-links { display: none; }
  section { padding: 3.5rem 1.25rem; }
}
