/* =========================================================
   The Meta Groupe Inc. — brand stylesheet
   Palette pulled from the logo: navy · charcoal · cyan glow
   ========================================================= */

:root {
  /* Brand */
  --navy:          #141a4e;
  --navy-deep:     #0e1338;
  --navy-darker:   #0a0e2a;
  --charcoal:      #322d30;
  --charcoal-deep: #221e21;
  --accent:        #38bdf8;   /* cyan-blue glow */
  --accent-bright: #6fd6ff;
  --accent-soft:   rgba(56, 189, 248, 0.14);
  --steel-1:       #a9c4d8;
  --steel-2:       #4a7595;
  --bitcoin:       #f7931a;

  /* Ink */
  --text:   #eef2f8;
  --muted:  #9aa2b4;
  --line:   rgba(255, 255, 255, 0.09);
  --glass:  rgba(255, 255, 255, 0.04);

  --maxw: 1160px;
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--navy-deep);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.grad {
  background: linear-gradient(120deg, var(--accent-bright), var(--accent) 55%, #8ea9c9);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  --pad: 0.85rem 1.6rem;
  display: inline-flex; align-items: center; justify-content: center;
  padding: var(--pad);
  border-radius: 999px;
  font-family: var(--font-head); font-weight: 600; font-size: 0.98rem;
  cursor: pointer; border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
  white-space: nowrap;
}
.btn--lg { --pad: 1.05rem 2.2rem; font-size: 1.05rem; }
.btn--primary {
  color: #04121f;
  background: linear-gradient(120deg, var(--accent-bright), var(--accent));
  box-shadow: 0 8px 30px rgba(56, 189, 248, 0.35);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(56, 189, 248, 0.5); }
.btn--ghost {
  color: var(--text);
  border-color: var(--line);
  background: var(--glass);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-bright); transform: translateY(-2px); }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.9rem; border-radius: 999px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.02em;
  font-family: var(--font-head);
}
.badge--vet {
  color: var(--text);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(111, 214, 255, 0.32);
}
.badge--vet svg { color: var(--accent-bright); }
.badge--soon {
  color: var(--accent-bright);
  background: var(--accent-soft);
  border: 1px solid rgba(56, 189, 248, 0.35);
}
.badge--soon .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent-bright);
  box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7); animation: pulse 2s infinite;
}
.badge--sm { font-size: 0.72rem; padding: 0.3rem 0.75rem; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(56,189,248,0.6); }
  70%  { box-shadow: 0 0 0 10px rgba(56,189,248,0); }
  100% { box-shadow: 0 0 0 0 rgba(56,189,248,0); }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 14, 42, 0.8);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.5rem;
}
.brand { display: inline-flex; align-items: center; }
.brand__img { height: 52px; width: auto; }
.brand__fallback { display: none; }
.brand__mark {
  font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; letter-spacing: 0.04em;
  background: linear-gradient(120deg, var(--steel-1), var(--accent) 60%, var(--steel-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand__mark--sm { font-size: 1.15rem; }

.nav__links { display: flex; align-items: center; gap: 1.9rem; }
.nav__links a { font-size: 0.95rem; color: var(--muted); font-weight: 500; transition: color 0.2s; }
.nav__links a:hover { color: var(--text); }
.nav__cta {
  color: var(--text) !important; border: 1px solid var(--line);
  padding: 0.5rem 1.1rem; border-radius: 999px; background: var(--glass);
}
.nav__cta:hover { border-color: var(--accent); color: var(--accent-bright) !important; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 7rem 1.5rem 4rem; overflow: hidden;
}
.hero__split {
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(105deg, var(--navy) 0%, var(--navy) 48%, var(--charcoal) 52%, var(--charcoal) 100%);
}
.hero__split::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 50% 30%, rgba(56,189,248,0.16), transparent 60%),
              radial-gradient(60% 50% at 50% 100%, rgba(14,19,56,0.9), transparent);
}
.hero__canvas { position: absolute; inset: 0; z-index: 1; opacity: 0.5; }
.hero__content { position: relative; z-index: 2; max-width: 820px; }

.hero__title { font-size: clamp(2.6rem, 6.5vw, 5rem); margin: 1.4rem 0 1.2rem; }
.hero__sub { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--muted); max-width: 620px; margin: 0 auto; }

.hero__pills { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin: 1.8rem 0; }
.pill {
  padding: 0.45rem 1.1rem; border-radius: 999px; font-size: 0.85rem; font-weight: 600;
  font-family: var(--font-head); color: var(--accent-bright);
  background: var(--accent-soft); border: 1px solid rgba(56,189,248,0.28);
}
.hero__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero__scroll {
  position: absolute; bottom: 1.8rem; left: 50%; transform: translateX(-50%); z-index: 2;
  width: 26px; height: 42px; border: 2px solid var(--line); border-radius: 14px;
  display: flex; justify-content: center;
}
.hero__scroll span { width: 4px; height: 8px; background: var(--accent-bright); border-radius: 2px; margin-top: 7px; animation: scroll 1.8s infinite; }
@keyframes scroll { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }

/* ---------- Stats ---------- */
.stats { background: var(--navy-darker); border-block: 1px solid var(--line); }
.stats__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 2.6rem 1.5rem;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center;
}
.stat__num {
  display: block; font-family: var(--font-head); font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  background: linear-gradient(120deg, var(--steel-1), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat__label { color: var(--muted); font-size: 0.85rem; letter-spacing: 0.02em; }

/* ---------- Sections ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 6.5rem 1.5rem; }
.section__head { max-width: 640px; margin-bottom: 3rem; }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: 0.8rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.8rem;
}
.section__head h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
.section__lead { color: var(--muted); margin-top: 0.9rem; font-size: 1.1rem; }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 1.2fr 0.9fr; gap: 3rem; align-items: start; }
.about__copy p { color: var(--muted); margin-bottom: 1.1rem; font-size: 1.05rem; }
.about__copy strong { color: var(--text); }
.about__points { list-style: none; margin-top: 1.6rem; display: grid; gap: 0.8rem; }
.about__points li { display: flex; align-items: center; gap: 0.7rem; color: var(--text); font-weight: 500; }
.chk { width: 22px; height: 22px; flex-shrink: 0; color: var(--accent-bright); }

.glass {
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem; backdrop-filter: blur(10px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.glass h3 { color: var(--accent-bright); margin-bottom: 0.8rem; font-size: 1.3rem; }
.glass p { color: var(--muted); }
.about__meta { display: grid; gap: 0.7rem; margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.about__meta > div { display: flex; justify-content: space-between; font-size: 0.95rem; }
.about__meta .k { color: var(--muted); }
.about__meta .v { color: var(--text); font-weight: 600; }

/* ---------- Services ---------- */
.services__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.svc {
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.6rem; transition: transform 0.35s var(--ease), border-color 0.35s, background 0.35s;
  position: relative; overflow: hidden;
}
.svc::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 0.35s;
  background: radial-gradient(120% 80% at 50% 0%, rgba(56,189,248,0.14), transparent 70%);
}
.svc:hover { transform: translateY(-6px); border-color: rgba(56,189,248,0.4); }
.svc:hover::before { opacity: 1; }
.svc__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--accent-soft); border: 1px solid rgba(56,189,248,0.3); margin-bottom: 1.2rem;
}
.svc__icon svg { width: 26px; height: 26px; color: var(--accent-bright); }
.svc h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.svc p { color: var(--muted); font-size: 0.96rem; }

/* ---------- AudilyNow ---------- */
.audily { position: relative; }
.audily__glow {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(50% 60% at 75% 40%, rgba(56,189,248,0.16), transparent 70%);
}
.audily__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center;
  background: linear-gradient(120deg, rgba(20,26,78,0.6), rgba(50,45,48,0.5));
  border: 1px solid var(--line); border-radius: 26px; padding: 3.2rem;
  overflow: hidden;
}
.audily__title { font-size: clamp(2.4rem, 5vw, 3.6rem); margin: 1rem 0 0.4rem; }
.audily__tag { color: var(--accent-bright); font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; margin-bottom: 0.9rem; }
.audily__copy p { color: var(--muted); }
.notify { display: flex; gap: 0.6rem; margin-top: 1.6rem; max-width: 440px; }
.notify input {
  flex: 1; padding: 0.85rem 1.1rem; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(0,0,0,0.25); color: var(--text); font-size: 0.98rem; font-family: var(--font-body);
  transition: border-color 0.2s;
}
.notify input:focus { outline: none; border-color: var(--accent); }
.notify__note { color: var(--muted); font-size: 0.85rem; margin-top: 0.8rem; }
.notify__note.ok { color: var(--accent-bright); }

.audily__visual { position: relative; height: 260px; display: grid; place-items: center; }
.waves { display: flex; align-items: center; gap: 5px; height: 130px; }
.waves span {
  width: 6px; border-radius: 6px; background: linear-gradient(var(--accent-bright), var(--accent));
  animation: eq 1.2s ease-in-out infinite;
}
.waves span:nth-child(odd)  { animation-duration: 1.0s; }
.waves span:nth-child(3n)   { animation-duration: 1.5s; }
.waves span:nth-child(3n+1) { animation-duration: 0.8s; }
@keyframes eq { 0%,100% { height: 14%; opacity: 0.6; } 50% { height: 100%; opacity: 1; } }
.audily__badge {
  position: absolute; bottom: 6px; font-family: var(--font-head); font-weight: 600;
  color: var(--muted); letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.75rem;
}

/* ---------- Founders ---------- */
.founders__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
.founder {
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2.2rem; transition: transform 0.35s var(--ease), border-color 0.35s;
}
.founder:hover { transform: translateY(-4px); border-color: rgba(56,189,248,0.35); }
.founder__top { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.founder__avatar {
  width: 56px; height: 56px; border-radius: 16px; flex-shrink: 0; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: #04121f;
  background: linear-gradient(135deg, var(--steel-1), var(--accent));
}
.founder__role { color: var(--accent-bright); font-size: 0.9rem; font-weight: 500; }
.founder p { color: var(--muted); font-size: 1rem; }
.founder__tag {
  display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 1.2rem;
  font-size: 0.8rem; font-weight: 600; color: var(--muted);
  padding: 0.35rem 0.8rem; border: 1px solid var(--line); border-radius: 999px;
}
.founder__tag svg { color: var(--accent-bright); }

/* ---------- Contact ---------- */
.contact__card {
  text-align: center; background: linear-gradient(120deg, rgba(20,26,78,0.7), rgba(50,45,48,0.55));
  border: 1px solid var(--line); border-radius: 26px; padding: 4rem 2rem;
}
.contact__card h2 { font-size: clamp(2rem, 4vw, 3rem); }
.contact__card p { color: var(--muted); margin: 0.8rem 0 1.8rem; font-size: 1.1rem; }
.contact__loc { color: var(--muted); font-size: 0.9rem; margin-top: 1.4rem; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--navy-darker); }
.footer__inner { max-width: var(--maxw); margin: 0 auto; padding: 3rem 1.5rem; text-align: center; }
.footer__brand { display: flex; align-items: center; justify-content: center; gap: 0.6rem; font-family: var(--font-head); font-weight: 600; }
.footer__tag { color: var(--muted); margin: 0.6rem 0 1.2rem; letter-spacing: 0.04em; }
.footer__badges { display: flex; justify-content: center; margin-bottom: 1.4rem; }
.footer__copy { color: var(--muted); font-size: 0.85rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav__links {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; gap: 0;
    background: rgba(10,14,42,0.97); backdrop-filter: blur(14px);
    padding: 1rem 1.5rem 2rem; border-bottom: 1px solid var(--line);
    transform: translateY(-140%); transition: transform 0.4s var(--ease); align-items: stretch;
  }
  .nav__links.open { transform: none; }
  .nav__links a { padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
  .nav__cta { text-align: center; margin-top: 0.8rem; border-bottom: 0 !important; }
  .nav__toggle { display: flex; }

  .about__grid, .audily__inner, .founders__grid { grid-template-columns: 1fr; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .stats__inner { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
  .audily__inner { padding: 2.2rem; }
  .audily__visual { height: 180px; margin-top: 1rem; }
}
@media (max-width: 520px) {
  .services__grid { grid-template-columns: 1fr; }
  .section { padding: 4.5rem 1.2rem; }
  .notify { flex-direction: column; }
  .notify button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
