/* ============================================
   MIRAGE WORKS — Soft rounded floating cards
   Fonts: Poppins (headings) + Inter (body)
   ============================================ */

:root {
  --ink: #0b1c26;
  --ink-soft: #123040;
  --mist: #eef3f6;
  --paper: #f5f8fa;
  --brass: #c49a45;
  --brass-light: #d9b66a;
  --text: #1a2b34;
  --muted: #5f7180;
  --line: rgba(11, 28, 38, 0.08);
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(11, 28, 38, 0.1);
  --shadow-hover: 0 26px 60px rgba(11, 28, 38, 0.16);
  --shadow-soft: 0 10px 30px rgba(11, 28, 38, 0.08);

  --font-display: "Poppins", sans-serif;
  --font-body: "Inter", sans-serif;

  --max: 1140px;
  --section: clamp(4.5rem, 10vw, 7.5rem);
  --radius: 22px;
  --radius-sm: 14px;
  --radius-pill: 999px;
  /* Fixed floating nav (~66px) + comfortable gap so the hero card never tucks under it */
  --nav-clearance: 8.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 45% at 90% -10%, rgba(196, 154, 69, 0.1), transparent 55%),
    radial-gradient(ellipse 60% 40% at 0% 30%, rgba(18, 90, 110, 0.06), transparent 50%),
    var(--paper);
  line-height: 1.65;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.85rem, 3.8vw, 2.75rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.55rem;
}

h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: var(--brass-light);
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.section {
  padding: var(--section) 0;
}

.section-intro {
  max-width: 38rem;
  margin-bottom: 2.75rem;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.75rem;
}

.section-lead {
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 0;
}

/* ---------- Shared floating card ---------- */
.float-card {
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.float-card-media {
  height: 180px;
  background-color: var(--ink-soft);
  background-size: cover;
  background-position: center;
  transition: transform 0.45s ease;
}

.float-card:hover .float-card-media {
  transform: scale(1.04);
}

.float-card-body {
  padding: 1.5rem 1.45rem 1.7rem;
}

.float-card-body p {
  color: var(--muted);
  font-size: 0.95rem;
}

.feature-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  height: 1.7rem;
  padding: 0 0.65rem;
  margin-bottom: 0.75rem;
  border-radius: var(--radius-pill);
  background: rgba(196, 154, 69, 0.14);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--brass);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.7rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--brass);
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(196, 154, 69, 0.35);
}

.btn-primary:hover {
  background: var(--brass-light);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.18);
}

.btn-nav {
  background: var(--brass);
  color: var(--ink);
  padding: 0.65rem 1.25rem;
  font-size: 0.875rem;
  box-shadow: 0 8px 18px rgba(196, 154, 69, 0.3);
}

.text-link {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brass);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.text-link:hover {
  border-color: var(--brass);
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding-top: 0.85rem;
  transition: padding 0.3s ease;
}

.site-header.scrolled {
  padding-top: 0.55rem;
}

.site-header.scrolled .nav {
  background: rgba(11, 28, 38, 0.88);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-soft);
}

.nav {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-pill);
  background: rgba(11, 28, 38, 0.45);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--white);
}

.logo span {
  color: var(--brass);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.open span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle.open span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0 0 clamp(3rem, 7vw, 5.5rem);
  color: var(--white);
  overflow: visible;
}

/* Hard spacer under the fixed nav — card always starts after this */
.hero::before {
  content: "";
  flex: 0 0 var(--nav-clearance);
  width: 100%;
  pointer-events: none;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 0;
}

.hero-media {
  background-color: #0a1a24;
  background-image:
    url("https://images.unsplash.com/photo-1497366811353-6870744d04b2?auto=format&fit=crop&w=2000&q=80"),
    radial-gradient(ellipse 80% 60% at 70% 30%, #1a3a4a 0%, transparent 55%),
    linear-gradient(160deg, #0c1e28 0%, #06131a 55%, #0a1820 100%);
  background-size: cover, auto, auto;
  background-position: center 40%, center, center;
  background-repeat: no-repeat;
  transform: scale(1.05);
  animation: heroZoom 18s ease-out forwards;
  z-index: 0;
}

.hero-shade {
  background:
    linear-gradient(180deg, rgba(6, 19, 26, 0.28) 0%, rgba(6, 19, 26, 0.42) 40%, rgba(6, 19, 26, 0.92) 100%),
    linear-gradient(95deg, rgba(6, 19, 26, 0.75) 0%, rgba(6, 19, 26, 0.18) 70%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, var(--max));
  /* Default: sit directly under the nav spacer — never climb under the bar */
  margin-top: 0;
  margin-inline: auto;
  margin-left: max(1.25rem, calc((100% - var(--max)) / 2));
  flex: 0 0 auto;
  padding: clamp(1.35rem, 3vw, 2rem) clamp(1.25rem, 3vw, 2.1rem);
  border-radius: calc(var(--radius) + 4px);
  background: rgba(11, 28, 38, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  max-width: 42rem;
}

.brand-mark {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-light);
  margin-bottom: 0.85rem;
}

.hero-lead {
  max-width: 32rem;
  font-size: clamp(1rem, 2vw, 1.12rem);
  color: rgba(255, 255, 255, 0.84);
  margin: 1.1rem 0 1.75rem;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Only pin the card to the bottom when the viewport is tall enough */
@media (min-height: 920px) {
  .hero-content {
    margin-top: auto;
  }
}

/* Short screens: shrink the card so it fits under the nav instead of growing into it */
@media (max-height: 919px) {
  .hero {
    min-height: auto;
    min-height: unset;
    padding-bottom: 2rem;
  }

  .hero-content {
    margin-top: 0;
    padding: 1.15rem 1.3rem 1.35rem;
  }

  .hero h1 {
    font-size: clamp(1.75rem, 6.5vh, 2.75rem);
  }

  .brand-mark {
    font-size: 0.85rem;
    margin-bottom: 0.45rem;
  }

  .hero-lead {
    margin: 0.55rem 0 1.05rem;
    font-size: 0.95rem;
  }

  .hero .btn {
    padding: 0.75rem 1.35rem;
  }
}

@keyframes heroZoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

/* ---------- Expertise ---------- */
.expertise {
  background: transparent;
}

/* ---------- Stats ---------- */
.stats {
  background: transparent;
  padding: 0 0 var(--section);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
}

.stat {
  text-align: center;
  padding: 1.75rem 1.1rem;
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--white);
}

.stat:hover {
  transform: translateY(-6px);
}

.stat-number,
.stat-suffix {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--brass-light);
  line-height: 1;
}

.stat p {
  margin-top: 0.55rem;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  font-weight: 500;
}

/* ---------- Why ---------- */
.why {
  background: transparent;
  padding-top: 0;
}

.why-card {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0;
  align-items: stretch;
  padding: 0;
}

.why-card:hover {
  transform: translateY(-4px);
}

.why-copy {
  padding: clamp(1.75rem, 4vw, 2.75rem);
}

.why .section-lead {
  margin-bottom: 1.4rem;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.check-list li {
  position: relative;
  padding: 0.75rem 1rem 0.75rem 2.35rem;
  color: var(--text);
  background: var(--mist);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--brass);
}

.why-visual {
  margin: 0;
  overflow: hidden;
  min-height: 320px;
}

.why-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: imageDrift 14s ease-in-out infinite alternate;
}

@keyframes imageDrift {
  from { transform: scale(1); }
  to { transform: scale(1.05); }
}

/* ---------- Solutions ---------- */
.solutions {
  background: transparent;
}

.service-card .float-card-body ul {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 1rem;
}

.service-card .float-card-body li {
  position: relative;
  padding: 0.45rem 0.75rem 0.45rem 1rem;
  color: var(--text);
  font-size: 0.92rem;
  background: var(--mist);
  border-radius: 10px;
}

.service-card .float-card-body li::before {
  content: none;
}

.service-card .float-card-body p {
  margin-bottom: 0.25rem;
}

/* ---------- CTA band ---------- */
.cta-band {
  padding: 0 0 var(--section);
  color: var(--white);
}

.cta-card {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) + 6px);
  min-height: 280px;
  display: flex;
  align-items: center;
  box-shadow: var(--shadow);
}

.cta-media {
  position: absolute;
  inset: 0;
  background:
    url("https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&w=1800&q=80")
    center / cover no-repeat;
}

.cta-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(6, 19, 26, 0.9) 0%, rgba(6, 19, 26, 0.7) 100%);
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 38rem;
  padding: clamp(2rem, 5vw, 3.25rem);
}

.cta-content p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0.75rem 0 1.75rem;
  font-size: 1.05rem;
}

/* ---------- Platforms ---------- */
.platforms {
  background: transparent;
  padding-top: 0;
}

.platform-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.platform-strip li {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  padding: 0.85rem 1.25rem;
  background: var(--white);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line);
  transition: transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.platform-strip li:hover {
  color: var(--brass);
  border-color: rgba(196, 154, 69, 0.4);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

/* ---------- Looking ahead ---------- */
.looking-ahead {
  background: transparent;
  padding-top: 0;
  color: var(--white);
}

.ahead-card {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  background: var(--ink-soft);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--white);
}

.ahead-card:hover {
  transform: translateY(-4px);
}

.looking-ahead .eyebrow {
  color: var(--brass-light);
}

.looking-ahead .section-lead {
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 0.25rem;
}

.looking-ahead .text-link {
  color: var(--brass-light);
}

.looking-ahead .text-link:hover {
  border-color: var(--brass-light);
}

.ahead-copy {
  padding: clamp(1.75rem, 4vw, 2.75rem);
}

.ahead-visual {
  margin: 0;
  overflow: hidden;
  min-height: 260px;
}

.ahead-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  padding: 4.5rem 0 2rem;
  margin-top: 1rem;
  border-radius: var(--radius) var(--radius) 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
  display: inline-block;
  margin-bottom: 0.75rem;
}

.footer-tagline {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.social {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.social svg {
  width: 0.85rem;
  height: 0.85rem;
  fill: currentColor;
}

.social:hover {
  background: var(--brass);
  color: var(--ink);
  transform: translateY(-2px);
}

.footer-grid a:hover {
  color: var(--brass-light);
}

.footer-grid ul {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-contact li {
  line-height: 1.5;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  font-size: 0.875rem;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

.hero .reveal {
  animation: fadeUp 0.9s ease forwards;
}

.hero .reveal-delay-1 { animation-delay: 0.15s; }
.hero .reveal-delay-2 { animation-delay: 0.3s; }
.hero .reveal-delay-3 { animation-delay: 0.45s; }

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .btn-nav {
    display: none;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: min(82vw, 320px);
    height: 100vh;
    height: 100dvh;
    background: var(--ink);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 1.25rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 99;
    border-radius: var(--radius) 0 0 var(--radius);
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-card,
  .ahead-card,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .why-visual,
  .ahead-visual {
    min-height: 220px;
    aspect-ratio: 16 / 10;
  }

  .hero-content {
    margin-left: auto;
    margin-right: auto;
    max-width: none;
    width: min(100% - 2.5rem, var(--max));
  }
}

@media (min-width: 601px) and (max-width: 900px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-grid .float-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .stats-row {
    grid-template-columns: 1fr;
  }

  .hero {
    --nav-clearance: 7.5rem;
    padding-bottom: 2.25rem;
  }

  .hero-content {
    margin-left: auto;
    margin-right: auto;
    max-width: none;
  }

  .hero h1 {
    font-size: clamp(2rem, 10vw, 2.6rem);
  }

  .brand-mark {
    margin-bottom: 0.55rem;
  }

  .hero-lead {
    margin: 0.7rem 0 1.15rem;
    font-size: 0.98rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .nav {
    border-radius: 18px;
    padding: 0.7rem 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal,
  .hero .reveal,
  .hero-media,
  .why-visual img {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
