/* ===== Meridien Labs — brand stylesheet ===== */
:root {
  --navy:     #1f2a44;
  --navy-2:   #16203a;
  --magenta:  #e5206e;
  --blue:     #2f6fd6;
  --teal:     #17b0a0;
  --purple:   #7b3fb0;

  --grad:      linear-gradient(120deg, #e5206e, #7b3fb0, #2f6fd6, #17b0a0);
  --grad-soft: linear-gradient(120deg, #fdf2f7 0%, #f4f7fd 55%, #eef8f6 100%);

  --bg:      #ffffff;
  --bg-alt:  #f5f7fb;
  --surface: #ffffff;
  --border:  #e4e8f0;
  --text:    #1b2740;
  --muted:   #5c667e;

  --radius:  16px;
  --maxw:    1120px;
  --ease:    cubic-bezier(.22,.61,.36,1);
  --shadow:  0 18px 40px -22px rgba(31,42,68,.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}

h1, h2, h3, .brand-name {
  font-family: "Sora", "Inter", system-ui, sans-serif;
  letter-spacing: -0.02em; line-height: 1.12; margin: 0;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

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

.skip-link { position: absolute; left: -999px; top: 0; z-index: 200; background: var(--magenta); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; font-weight: 600; }
.skip-link:focus { left: 0; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 27px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 26px -10px rgba(123,63,176,.6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -10px rgba(123,63,176,.75); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--border); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }

/* ===== Header ===== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { background: rgba(255,255,255,.88); backdrop-filter: saturate(160%) blur(14px); border-bottom-color: var(--border); box-shadow: 0 6px 24px -18px rgba(31,42,68,.5); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand img { border-radius: 8px; }
.brand-name { font-size: 19px; font-weight: 700; color: var(--navy); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-size: 15px; color: var(--muted); transition: color .2s var(--ease); }
.nav a:hover { color: var(--text); }
.nav .nav-cta { color: var(--navy); border: 1px solid var(--border); padding: 9px 20px; border-radius: 999px; }
.nav .nav-cta:hover { border-color: var(--blue); color: var(--blue); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero: light theme, text-left + orbiting node cluster ===== */
.hero { position: relative; padding: 150px 0 96px; overflow: hidden; background: var(--grad-soft); border-bottom: 1px solid var(--border); }
.hero-glow { position: absolute; z-index: 0; top: -160px; right: -140px; width: 640px; height: 640px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(123,63,176,.14), rgba(47,111,214,.10) 45%, rgba(23,176,160,0) 70%); }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }

.hero-copy { max-width: 560px; }
.eyebrow { display: inline-block; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--purple); margin: 0 0 20px; font-weight: 700; }
.hero h1 { font-size: clamp(2.2rem, 4.8vw, 3.7rem); font-weight: 700; color: var(--navy); }
.hero-sub { font-size: clamp(1rem, 1.6vw, 1.15rem); color: var(--muted); margin: 24px 0 0; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

/* ===== Orbiting node cluster ===== */
.hero-cluster { position: relative; width: 100%; max-width: 440px; aspect-ratio: 1 / 1; margin-left: auto; }
.orbit { position: absolute; inset: 0; animation: spin 46s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .orbit { animation: none; } }

.cluster-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.cluster-lines line { stroke: rgba(31,42,68,.16); stroke-width: 1.4; }

.core {
  position: absolute; top: 50%; left: 50%; width: 74px; height: 74px; transform: translate(-50%, -50%);
  border-radius: 50%; z-index: 3; background: var(--grad);
  box-shadow: 0 0 0 10px rgba(123,63,176,.08), 0 16px 34px -12px rgba(123,63,176,.55);
}
.core::after {
  content: ""; position: absolute; inset: 20px; border-radius: 50%;
  background: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.6);
}
.onode {
  position: absolute; width: 26px; height: 26px; border-radius: 50%; z-index: 2;
  transform: translate(-50%, -50%); border: 4px solid var(--surface);
  box-shadow: 0 6px 16px -6px rgba(31,42,68,.4);
}
.on-magenta { background: var(--magenta); box-shadow: 0 0 0 4px rgba(229,32,110,.12), 0 6px 16px -6px rgba(229,32,110,.5); }
.on-blue    { background: var(--blue);    box-shadow: 0 0 0 4px rgba(47,111,214,.12), 0 6px 16px -6px rgba(47,111,214,.5); }
.on-teal    { background: var(--teal);    box-shadow: 0 0 0 4px rgba(23,176,160,.12), 0 6px 16px -6px rgba(23,176,160,.5); }
.on-purple  { background: var(--purple);  box-shadow: 0 0 0 4px rgba(123,63,176,.12), 0 6px 16px -6px rgba(123,63,176,.5); }

/* ===== Marquee ===== */
.strip { border-bottom: 1px solid var(--border); background: var(--bg); overflow: hidden; padding: 18px 0; }
.strip-track { display: flex; align-items: center; gap: 26px; white-space: nowrap; width: max-content; animation: marquee 32s linear infinite; font-family: "Sora", sans-serif; font-size: 15px; color: var(--navy); font-weight: 500; }
.strip-track .dot { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 12px; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .strip-track { animation: none; } }

/* ===== Sections ===== */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.kicker { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--magenta); font-weight: 700; margin: 0 0 14px; }
.section-head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); color: var(--navy); }
.section-head .lead { color: var(--muted); margin-top: 16px; font-size: 1.05rem; }

/* ===== What we do (cards) ===== */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { padding: 36px 30px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow); transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease); position: relative; overflow: hidden; }
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.card:hover { transform: translateY(-5px); border-color: transparent; box-shadow: 0 26px 50px -26px rgba(31,42,68,.34); }
.card:hover::before { transform: scaleX(1); }
.card-icon { width: 56px; height: 56px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 20px; border: 1px solid var(--border); }
.card-icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.3rem; margin-bottom: 10px; color: var(--navy); }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }

.card-magenta::before { background: var(--magenta); }
.card-magenta .card-icon { color: var(--magenta); background: rgba(229,32,110,.08); }
.card-blue::before { background: var(--blue); }
.card-blue .card-icon { color: var(--blue); background: rgba(47,111,214,.08); }
.card-teal::before { background: var(--teal); }
.card-teal .card-icon { color: var(--teal); background: rgba(23,176,160,.08); }

/* ===== Process flow ===== */
.flow { display: flex; align-items: stretch; justify-content: center; gap: 8px; max-width: 1000px; margin: 0 auto; }
.flow-step { flex: 1; text-align: center; padding: 8px 18px; max-width: 300px; }
.flow-node { width: 62px; height: 62px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; font-family: "Sora", sans-serif; font-weight: 700; font-size: 1.4rem; color: #fff; box-shadow: 0 14px 30px -12px rgba(31,42,68,.4); }
.fn-magenta { background: var(--magenta); box-shadow: 0 14px 30px -12px rgba(229,32,110,.6); }
.fn-purple  { background: var(--purple);  box-shadow: 0 14px 30px -12px rgba(123,63,176,.6); }
.fn-teal    { background: var(--teal);    box-shadow: 0 14px 30px -12px rgba(23,176,160,.6); }
.flow-step h3 { font-size: 1.35rem; margin-bottom: 10px; color: var(--navy); }
.flow-step p { color: var(--muted); margin: 0; font-size: .96rem; }
.flow-line { flex: none; align-self: flex-start; width: 64px; height: 2px; margin-top: 31px; background: linear-gradient(90deg, var(--magenta), var(--purple), var(--teal)); border-radius: 2px; position: relative; opacity: .55; }
.flow-line::after { content: ""; position: absolute; right: -1px; top: 50%; transform: translateY(-50%); width: 7px; height: 7px; border-top: 2px solid var(--teal); border-right: 2px solid var(--teal); rotate: 45deg; }

/* ===== Stats band ===== */
.stats-band { background: var(--navy); color: #fff; padding: 66px 0; position: relative; overflow: hidden; }
.stats-band::before { content: ""; position: absolute; inset: 0; height: 3px; background: var(--grad); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.stat { display: flex; flex-direction: column; gap: 8px; padding: 6px 24px 6px 0; }
.stat + .stat { border-left: 1px solid rgba(255,255,255,.14); padding-left: 28px; }
.stat-key { font-family: "Sora", sans-serif; font-size: 1.15rem; font-weight: 700; line-height: 1.2; background: linear-gradient(120deg, #ff6aa4, #9d6be0, #6fa9f2, #56d4c6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat strong { font-family: "Sora", sans-serif; font-size: 1.12rem; color: #fff; }
.stat span:last-child { color: rgba(255,255,255,.72); font-size: .94rem; }

/* ===== Statement ===== */
.statement-section { text-align: center; }
.statement { margin: 0 auto; max-width: 880px; }
.statement blockquote { font-family: "Sora", sans-serif; font-weight: 600; font-size: clamp(1.5rem, 3.4vw, 2.4rem); line-height: 1.32; letter-spacing: -.02em; color: var(--navy); margin: 6px 0 22px; }
.statement figcaption { font-size: .95rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

/* ===== Contact ===== */
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-copy h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin-bottom: 16px; color: var(--navy); }
.contact-copy p { color: var(--muted); margin-bottom: 22px; }
.contact-email { display: inline-block; font-family: "Sora", sans-serif; font-size: 1.2rem; color: var(--blue); border-bottom: 1px solid transparent; transition: border-color .2s; }
.contact-email:hover { border-bottom-color: var(--blue); }
.contact-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; display: grid; gap: 18px; box-shadow: var(--shadow); }
.field { display: grid; gap: 7px; }
.field label { font-size: 13px; color: var(--muted); font-weight: 500; }
.field input, .field textarea { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; color: var(--text); padding: 12px 14px; font: inherit; font-size: 15px; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); width: 100%; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,111,214,.15); }
.contact-form .btn { margin-top: 4px; }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--border); background: var(--navy-2); color: #fff; padding: 0 0 30px; }
.footer-cta { text-align: center; padding: 70px 24px 60px; display: flex; flex-direction: column; align-items: center; gap: 28px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-cta h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); color: #fff; max-width: 720px; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-name .accent { color: #ff6aa4; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; flex-wrap: wrap; padding: 44px 0 34px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-tag { color: rgba(255,255,255,.7); margin: 14px 0 0; font-size: .95rem; }
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-nav a { color: rgba(255,255,255,.75); font-size: 15px; transition: color .2s; }
.footer-nav a:hover { color: #6fa9f2; }
.footer-bottom { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; color: rgba(255,255,255,.6); font-size: 14px; padding-top: 22px; }

/* ===== Reveal ===== */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero { padding: 132px 0 80px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { max-width: 620px; }
  .hero-cluster { max-width: 380px; margin: 0 auto; }
  .cards-grid { grid-template-columns: 1fr; }
  .flow { flex-direction: column; align-items: center; gap: 4px; }
  .flow-step { max-width: 460px; }
  .flow-line { width: 2px; height: 40px; margin: 4px 0; background: linear-gradient(180deg, var(--magenta), var(--purple), var(--teal)); }
  .flow-line::after { right: 50%; top: auto; bottom: -1px; transform: translateX(50%); rotate: 135deg; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat, .stat + .stat { border-left: 0; padding-left: 0; }
  .stat + .stat { border-top: 1px solid rgba(255,255,255,.14); padding-top: 20px; }
  .contact-inner { grid-template-columns: 1fr; gap: 38px; }
}
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav { position: fixed; inset: 74px 0 auto 0; flex-direction: column; gap: 4px; align-items: stretch; background: rgba(255,255,255,.98); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); padding: 16px 24px 24px; transform: translateY(-120%); transition: transform .35s var(--ease); z-index: 90; box-shadow: 0 12px 30px -18px rgba(31,42,68,.5); }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 12px 4px; font-size: 17px; border-bottom: 1px solid var(--border); }
  .nav .nav-cta { text-align: center; margin-top: 10px; border: 1px solid var(--blue) !important; color: var(--blue) !important; }
  .section { padding: 68px 0; }
  .stats-band { padding: 52px 0; }
}
@media (max-width: 480px) {
  .hero-cluster { max-width: 300px; }
  .core { width: 62px; height: 62px; }
  .onode { width: 22px; height: 22px; }
  .footer-inner { flex-direction: column; }
}
