/* ==========================================================================
   Rise and Acquire brand system: charcoal + crimson/gold, cinematic.
   Owns tokens, type, layout, components, blob shapes, and motion base classes.
   ========================================================================== */

:root {
  --crimson: #FF4D5E;
  --gold: #F5C560;
  --ember: #FF7A4D;
  --char: #121013;      /* base */
  --char-2: #17151A;    /* surface */
  --char-3: #0C0A0D;    /* deepest */
  --white: #FBF4EE;
  --muted: #A79AA0;     /* warm grey */
  --grad: linear-gradient(120deg, #FF4D5E 0%, #FF7A4D 45%, #F5C560 100%);
  --grad-soft: linear-gradient(120deg, rgba(255,77,94,0.16), rgba(245,197,96,0.16));
  --line: rgba(255,255,255,0.09);
  --card: rgba(255,255,255,0.035);
  --blob-a: 62% 38% 46% 54% / 60% 51% 49% 40%;
  --blob-b: 42% 58% 63% 37% / 50% 44% 56% 50%;
  --blob-c: 58% 42% 38% 62% / 46% 58% 42% 54%;
}

*, *::before, *::after { box-sizing: border-box; }
* { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
html, body { margin: 0; max-width: 100%; overflow-x: clip; }
html { scroll-behavior: smooth; }

body {
  background: var(--char);
  color: var(--white);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 17px; line-height: 1.65;
}
h1,h2,h3,h4 { font-family: 'Sora','Inter',system-ui,sans-serif; line-height: 1.08; font-weight: 700; letter-spacing: -0.02em; }
::selection { background: rgba(255,77,94,0.35); color: #fff; }
a { color: var(--gold); text-decoration: none; }
img { max-width: 100%; }

/* --- Layout --------------------------------------------------------------- */
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; position: relative; }
@media (max-width: 640px) { .section { padding: 66px 0; } }
.bg-char { background: var(--char); }
.bg-char2 { background: var(--char-2); }
.bg-deep { background: var(--char-3); }

/* ambient mesh glow used on several sections */
.mesh { position: relative; overflow: hidden; }
.mesh::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none; inset: -20% -10% auto -10%;
  height: 520px;
  background: radial-gradient(600px 320px at 20% 10%, rgba(255,77,94,0.16), transparent 60%),
             radial-gradient(560px 320px at 85% 0%, rgba(245,197,96,0.14), transparent 60%);
  filter: blur(6px);
}
.mesh > .wrap { position: relative; z-index: 1; }

/* --- Type ----------------------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  text-transform: uppercase; letter-spacing: 0.24em; font-size: 12.5px; font-weight: 600;
  color: var(--gold); font-family: 'Sora',sans-serif;
}
.eyebrow::before { content: ""; width: 20px; height: 2px; border-radius: 2px; background: var(--grad); }
.display { font-size: clamp(40px, 7vw, 82px); font-weight: 800; letter-spacing: -0.03em; text-wrap: balance; line-height: 1.02; }
.h1 { font-size: clamp(30px, 4.6vw, 46px); font-weight: 700; text-wrap: balance; }
.h2 { font-size: clamp(24px, 3vw, 30px); font-weight: 700; text-wrap: balance; }
.lead { font-size: clamp(17px, 2vw, 20px); color: rgba(251,244,238,0.78); line-height: 1.6; }
.muted { color: var(--muted); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* --- Buttons -------------------------------------------------------------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  font-weight: 600; font-size: 16px; border-radius: 999px; padding: 15px 30px; cursor: pointer;
  border: 1px solid transparent; font-family: 'Sora',sans-serif; letter-spacing: -0.01em;
  transition: transform .18s cubic-bezier(.2,.7,.2,1), box-shadow .25s ease, filter .2s ease, background .2s ease;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--grad); color: #1a0d10; box-shadow: 0 10px 34px rgba(255,77,94,0.32); }
.btn-primary:hover { filter: brightness(1.06); box-shadow: 0 16px 50px rgba(255,77,94,0.45); transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,0.03); color: var(--white); border-color: rgba(245,197,96,0.4); }
.btn-ghost:hover { background: rgba(245,197,96,0.10); transform: translateY(-2px); }
.btn-lg { padding: 17px 36px; font-size: 17px; }

/* --- Chips + cards + brand motifs ----------------------------------------- */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.04); color: var(--white);
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 13.5px; font-weight: 500;
}
.chip .spark { width: 8px; height: 8px; border-radius: 999px; background: var(--grad); box-shadow: 0 0 0 4px rgba(255,77,94,0.16); }
.card {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: 22px; padding: 28px; overflow: hidden;
  transition: border-color .25s ease, transform .25s cubic-bezier(.2,.7,.2,1), background .25s ease;
}
/* motif corner accent on cards */
.card::after {
  content: ""; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px;
  background: var(--grad-soft); border-radius: 999px; filter: blur(14px); opacity: .5; pointer-events: none;
}
a.card, .card-link { cursor: pointer; text-decoration: none; color: inherit; display: block; }
a.card:hover, .card-link:hover { border-color: rgba(245,197,96,0.4); transform: translateY(-4px); }
.card-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; color: var(--gold); font-weight: 600; font-size: 14px; font-family: 'Sora',sans-serif; }
.card-icon {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  background: var(--grad-soft); color: var(--gold); margin-bottom: 18px; border: 1px solid rgba(245,197,96,0.25);
}
.card-icon svg { width: 24px; height: 24px; }

/* --- Brand watermark accent ----------------------------------------------- */
.brand-accent { position: relative; overflow: hidden; }
.brand-accent > .wrap { position: relative; z-index: 1; }
.brand-accent::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  width: 520px; height: 520px; right: -140px; top: -150px;
  background: url("../assets/riseandacquire-arrow-watermark.svg") no-repeat center / contain;
  opacity: 0.05;
}
.brand-accent.ba-left::after { right: auto; left: -150px; top: auto; bottom: -160px; transform: scaleX(-1); }
@media (max-width: 700px) { .brand-accent::after { width: 320px; height: 320px; } }

/* --- Blob image containers ------------------------------------------------ */
.blob { position: relative; overflow: hidden; border-radius: var(--blob-a); border: 1px solid var(--line); }
.blob.b { border-radius: var(--blob-b); }
.blob.c { border-radius: var(--blob-c); }
.blob img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (prefers-reduced-motion: no-preference) {
  .blob-morph { animation: blobMorph 16s ease-in-out infinite; }
  @keyframes blobMorph {
    0%,100% { border-radius: var(--blob-a); }
    33% { border-radius: var(--blob-b); }
    66% { border-radius: var(--blob-c); }
  }
}

/* --- Header --------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12,10,13,0.72); backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand-lockup { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-lockup .mark { display: inline-flex; }
.brand-lockup .mark svg { height: 40px; width: 40px; display: block; }
.brand-lockup .word { font-family: 'Sora',sans-serif; font-weight: 700; font-size: 22px; color: var(--white); letter-spacing: -0.02em; white-space: nowrap; }
.brand-logo { height: 32px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a.navlink { color: rgba(251,244,238,0.76); font-size: 15px; font-weight: 500; transition: color .2s; }
.nav-links a.navlink:hover { color: #fff; }
.menu-btn { display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }
@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
    position: absolute; top: 84px; left: 0; right: 0; background: var(--char-2);
    border-bottom: 1px solid var(--line); padding: 22px 24px; }
  .menu-btn { display: inline-flex; }
  .nav-links.open .btn { width: 100%; }
  .brand-lockup .mark svg { height: 34px; width: 34px; }
  .brand-lockup .word { font-size: 20px; }
}

/* --- Hero ----------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 90px; }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.9; }
.hero::before { /* mesh glow */
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(700px 420px at 22% 30%, rgba(255,77,94,0.20), transparent 60%),
             radial-gradient(620px 420px at 88% 20%, rgba(245,197,96,0.16), transparent 60%);
}
.hero .wrap { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero-cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-trust { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: 13.5px; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust span::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--gold); }
.hero-object { position: relative; }
.hero-object .blob { aspect-ratio: 4 / 4.7; box-shadow: 0 40px 120px rgba(0,0,0,0.6); }
.hero-badge {
  position: absolute; left: -10px; bottom: 24px; z-index: 3;
  background: rgba(12,10,13,0.7); backdrop-filter: blur(8px); border: 1px solid var(--line);
  border-radius: 16px; padding: 12px 16px; display: flex; align-items: center; gap: 12px;
}
.hero-badge .n { font-family: 'Sora',sans-serif; font-weight: 800; font-size: 22px; }
.hero-badge small { display: block; color: var(--muted); font-size: 12px; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-object { order: -1; max-width: 460px; }
}

/* kinetic headline words */
.kin { display: inline-block; }
.anim .kin { opacity: 0; transform: translateY(28px); }
.anim .hero-in { opacity: 0; transform: translateY(24px); }
.anim .hero-object { opacity: 0; transform: translateY(26px) scale(.96); }
.anim .hero-badge { opacity: 0; transform: translateY(10px); }

/* --- Reveal base (only active when .anim on <html>) ----------------------- */
.anim .reveal { opacity: 0; transform: translateY(34px); }
.anim .reveal-l { opacity: 0; transform: translateX(-40px); }
.anim .reveal-r { opacity: 0; transform: translateX(40px); }
.anim .reveal-s { opacity: 0; transform: scale(.92); }

/* --- Marquee -------------------------------------------------------------- */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--char-3); overflow: hidden; padding: 18px 0; }
.marquee-track { display: flex; gap: 40px; width: max-content; will-change: transform; }
@media (prefers-reduced-motion: no-preference) { .marquee-track { animation: marq 34s linear infinite; } }
@keyframes marq { to { transform: translateX(-50%); } }
.marquee-item { display: inline-flex; align-items: center; gap: 14px; color: rgba(251,244,238,0.66); font-family: 'Sora',sans-serif; font-weight: 600; font-size: 18px; white-space: nowrap; }
.marquee-item svg { width: 18px; height: 18px; color: var(--crimson); }

/* --- Two-column media ----------------------------------------------------- */
.media-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.media-2 .blob { aspect-ratio: 3/2.4; box-shadow: 0 30px 80px rgba(0,0,0,0.5); }
@media (max-width: 820px) { .media-2 { grid-template-columns: 1fr; gap: 30px; } }

/* --- Pinned how-it-works -------------------------------------------------- */
.how-steps { display: grid; gap: 22px; grid-template-columns: repeat(3,1fr); }
@media (max-width: 820px) { .how-steps { grid-template-columns: 1fr; } }
.step-num {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--grad); color: #1a0d10; font-family: 'Sora',sans-serif; font-weight: 800; font-size: 18px; flex: none;
}

/* --- Bento (why us) ------------------------------------------------------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.bento .card { grid-column: span 2; }
.bento .card.wide { grid-column: span 4; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
@media (max-width: 820px) { .bento { grid-template-columns: 1fr; } .bento .card, .bento .card.wide { grid-column: auto; } }

/* --- Band ----------------------------------------------------------------- */
.band { position: relative; overflow: hidden; }
.band .band-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.band::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(12,10,13,0.95) 0%, rgba(12,10,13,0.85) 45%, rgba(18,16,19,0.6) 100%); }
.band .wrap { position: relative; z-index: 2; }

/* --- Metric testimonials -------------------------------------------------- */
.tgrid { display: grid; gap: 20px; grid-template-columns: repeat(3,1fr); }
@media (max-width: 900px) { .tgrid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .tgrid { grid-template-columns: 1fr; } }
.tcard { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; height: 100%; margin: 0; position: relative; overflow: hidden; }
.tcard::after { content: ""; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px; background: var(--grad-soft); border-radius: 999px; filter: blur(14px); opacity: .5; }
.tstat { font-family: 'Sora',sans-serif; font-size: 40px; font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.tstat small { display: block; font-family: 'Inter',sans-serif; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-top: 8px; letter-spacing: .02em; text-transform: uppercase; }
.tcard .stars { color: var(--gold); font-size: 13px; margin-top: 14px; letter-spacing: 2px; }
.tcard blockquote { margin: 12px 0 0; color: rgba(251,244,238,0.9); font-size: 15px; line-height: 1.6; flex: 1; }
.tcard figcaption { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.avatar { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid rgba(245,197,96,0.3); color: var(--gold); flex: none; }
.avatar svg { width: 22px; height: 22px; }

/* --- Industry blob cards -------------------------------------------------- */
.ind-grid { display: grid; gap: 26px 22px; grid-template-columns: repeat(4,1fr); }
@media (max-width: 900px) { .ind-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px) { .ind-grid { grid-template-columns: 1fr 1fr; } }
.ind { text-align: center; text-decoration: none; color: var(--white); display: block; }
.ind .blob { aspect-ratio: 1/1; margin-bottom: 16px; transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.ind:hover .blob { transform: translateY(-6px) scale(1.02); }
.ind .name { font-family: 'Sora',sans-serif; font-weight: 600; font-size: 16px; display: inline-flex; align-items: center; gap: 8px; }
.ind .name svg { width: 18px; height: 18px; color: var(--gold); }

/* --- Partner logos -------------------------------------------------------- */
.logo-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
@media (max-width: 720px) { .logo-grid { grid-template-columns: 1fr; } }
.logo-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px 22px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.logo-card img { height: 38px; width: auto; max-width: 100%; }
.logo-card p { margin: 0; color: var(--muted); font-size: 13.5px; }

/* --- Stats band ----------------------------------------------------------- */
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; text-align: center; }
@media (max-width: 700px) { .stats-grid { grid-template-columns: repeat(2,1fr); gap: 30px; } }
.stat-tile .num { font-family: 'Sora',sans-serif; font-size: clamp(30px,4.4vw,46px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.stat-tile .lbl2 { color: var(--muted); font-size: 13.5px; margin-top: 8px; }

/* --- Proof micro-line ----------------------------------------------------- */
.proof { display: flex; align-items: flex-start; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed rgba(255,255,255,0.1); font-size: 13px; }
.proof svg { width: 16px; height: 16px; flex: none; margin-top: 1px; color: var(--gold); }
.proof span { color: rgba(251,244,238,0.72); font-weight: 500; }
.proof b { color: #fff; font-weight: 700; }

/* --- FAQ ------------------------------------------------------------------ */
.faq details { border: 1px solid var(--line); border-radius: 16px; padding: 6px 22px; background: var(--card); }
.faq details + details { margin-top: 12px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 600; font-size: 17px; font-family: 'Sora',sans-serif; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 24px; font-weight: 400; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: 0 0 16px; color: rgba(251,244,238,0.76); font-size: 15.5px; }

/* --- CTA panel ------------------------------------------------------------ */
.cta-panel { position: relative; border-radius: 32px; overflow: hidden; border: 1px solid rgba(245,197,96,0.28);
  background: radial-gradient(700px 300px at 20% 0%, rgba(255,77,94,0.22), transparent 60%),
              radial-gradient(600px 320px at 90% 120%, rgba(245,197,96,0.18), transparent 60%), var(--char-2);
  padding: clamp(36px,6vw,72px); text-align: center; }

/* --- Contact + forms ------------------------------------------------------ */
.contact-grid { display: grid; gap: 40px; grid-template-columns: 1fr 1fr; align-items: start; }
.form-grid-2 { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.form-grid-3 { display: grid; gap: 16px; grid-template-columns: 1fr 1fr 1fr; }
.span-2 { grid-column: 1 / -1; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-grid-2, .form-grid-3 { grid-template-columns: 1fr; } }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 32px; }
.field-label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 7px; color: rgba(251,244,238,0.86); }
.field { width: 100%; background: rgba(255,255,255,0.05); border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; color: #fff; font-size: 15.5px; font-family: inherit; transition: border-color .15s, background .15s; }
.field::placeholder { color: rgba(251,244,238,0.4); }
.field:focus { outline: none; border-color: var(--gold); background: rgba(255,255,255,0.07); }
select.field { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23F5C560' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-msg { border-radius: 12px; font-size: 15px; padding: 0; margin-top: 4px; }
.form-msg:not(:empty) { padding: 13px 16px; margin-top: 16px; }
.form-msg.ok, .form-msg.demo { background: rgba(245,197,96,0.12); color: var(--gold); border: 1px solid rgba(245,197,96,0.3); }
.form-msg.err { background: rgba(255,99,99,0.10); color: #ffb4b4; border: 1px solid rgba(255,99,99,0.3); }

/* --- Footer + sticky CTA -------------------------------------------------- */
.site-footer { background: var(--char-3); border-top: 1px solid var(--line); }
.site-footer a { color: rgba(251,244,238,0.7); }
.site-footer a:hover { color: #fff; }
.sticky-cta { position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; display: none;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(12,10,13,0.94); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
.sticky-cta .btn { width: 100%; }
@media (max-width: 880px) { .sticky-cta { display: block; } body { padding-bottom: 80px; } }

/* --- Legal prose ---------------------------------------------------------- */
.prose { max-width: 780px; }
.prose h2 { font-size: 24px; margin: 34px 0 12px; }
.prose p, .prose li { color: rgba(251,244,238,0.82); font-size: 16px; line-height: 1.7; }
.prose ul { padding-left: 22px; margin: 10px 0; }
.prose li { margin: 6px 0; }
.prose a { color: var(--gold); text-decoration: underline; }

/* --- Reduced motion: reveal everything, kill loops ------------------------ */
@media (prefers-reduced-motion: reduce) {
  .anim .reveal, .anim .reveal-l, .anim .reveal-r, .anim .reveal-s, .anim .kin { opacity: 1 !important; transform: none !important; }
  .marquee-track { animation: none !important; }
}
