/* ============================================================
   Mad Panthers, Inc. — corporate design system
   Dark graphite, warm restrained gold, ivory text.
   Shared by index.html and legal/ pages.
   ============================================================ */

:root {
  --bg: #0c0c10;
  --bg-soft: #101016;
  --panel: #14141b;
  --panel-2: #181822;
  --border: rgba(255, 255, 255, 0.10);
  --border-gold: rgba(200, 169, 81, 0.38);
  --gold: #c8a951;
  --gold-soft: #e0c87e;
  --gold-dim: #8a7335;
  --ivory: #f3efe6;
  --ivory-2: #ddd8cc;
  --muted: #a39f93;

  /* Display = thin geometric caps (Billions feel); body = the distinct second face */
  --serif: "Josefin Sans", "Avenir Next", sans-serif;
  --sans: "Space Grotesk", "Helvetica Neue", sans-serif;

  --radius: 16px;
  --radius-lg: 22px;
  --container: 1140px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--gold-soft); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }

.kicker {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--gold);
}

h1, h2, .display {
  font-family: var(--serif); font-weight: 200;
  text-transform: uppercase; letter-spacing: 0.08em;
}

h2 {
  font-size: clamp(32px, 4.6vw, 50px);
  line-height: 1.2;
  margin: 18px 0 22px;
  letter-spacing: 0.08em;
}

.lede { color: var(--ivory-2); font-size: 18.5px; max-width: 720px; }

.gold-rule {
  height: 1px; border: 0; margin: 0;
  background: linear-gradient(90deg, transparent, var(--border-gold), transparent);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  text-decoration: none; text-align: center;
  border-radius: 100px;
  padding: 18px 34px 15px;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, transform .2s;
  border: 0;
}
.btn:active { transform: translateY(1px); }

.btn-gold { background: var(--gold); color: #11100a; }
.btn-gold:hover { background: var(--gold-soft); }

.btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--ivory); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-soft); }

/* Non-clickable "coming soon" marker in place of a CTA */
.btn-soon { background: transparent; border: 1px solid var(--border); color: var(--muted); cursor: default; }

.btn-line {
  background: none; border: 0; color: var(--gold-soft);
  font-family: var(--sans);
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  border-bottom: 1px solid var(--border-gold);
  padding: 0 0 6px; cursor: pointer; text-decoration: none;
}
.btn-line:hover { color: var(--ivory); border-color: var(--ivory); }

/* ---------- Header ---------- */

header.site {
  position: sticky; top: 0; z-index: 100;
  background: rgba(12, 12, 16, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: var(--container); margin: 0 auto;
  display: flex; align-items: center; gap: 34px;
  padding: 20px 28px;
}

.brand {
  font-family: var(--serif); font-weight: 400;
  font-size: 17px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--ivory); text-decoration: none; white-space: nowrap;
}
.brand span { color: var(--gold); }
.brand small {
  display: block; font-size: 9px; font-weight: 300;
  letter-spacing: 0.42em; color: var(--muted); margin-top: 3px;
}

.nav-links { display: flex; gap: 20px; margin-left: auto; align-items: center; }
.nav-links a {
  font-size: 11.5px; font-weight: 400; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ivory-2); text-decoration: none; transition: color .2s;
}
.nav-links a:hover { color: var(--gold-soft); }
/* Keep the gold CTA's label dark on hover (the rule above would tint it gold-on-gold) */
.nav-links a.btn-gold,
.nav-links a.btn-gold:hover { color: #11100a; }

.nav .btn { padding: 13px 22px 11px; font-size: 10.5px; }

.burger {
  display: none; margin-left: auto;
  background: none; border: 1px solid var(--border); border-radius: 10px;
  color: var(--ivory); font-size: 18px; line-height: 1;
  padding: 10px 12px; cursor: pointer;
}

@media (max-width: 1180px) {
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    padding: 10px 0 18px;
    /* Landscape / short viewports: let the menu scroll instead of clipping */
    max-height: calc(100dvh - 62px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 28px; width: 100%; }
  /* CTA keeps its own width instead of stretching the full row */
  .nav-links .btn { width: auto; align-self: flex-start; margin: 12px 28px 4px; }
  .burger { display: block; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative; overflow: hidden;
  padding: 130px 0 110px;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 72% 0%, rgba(200, 169, 81, 0.06), transparent 66%),
    radial-gradient(48% 42% at 18% 12%, rgba(200, 169, 81, 0.03), transparent 62%);
  pointer-events: none;
}

.hero .kicker { position: relative; }

.hero h1 {
  position: relative;
  font-size: clamp(31px, 5.1vw, 58px);
  line-height: 1.2;
  letter-spacing: 0.03em;
  max-width: 1120px; margin: 8px auto 0;
}

.hero .sub {
  position: relative;
  color: var(--ivory-2); font-size: 19px;
  max-width: 760px; margin: 28px auto 0;
}

.hero .cta-row {
  position: relative;
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  margin-top: 46px;
}

.hero .assurance {
  position: relative;
  margin-top: 34px;
  color: var(--muted); font-size: 14.5px; letter-spacing: 0.04em;
}

.hero .arc {
  position: absolute; left: 50%; bottom: -2px; transform: translateX(-50%);
  width: min(1180px, 96vw); height: auto; opacity: 0.5; pointer-events: none;
}

/* ---------- Sections ---------- */

section.block { padding: 108px 0; }
section.block.tight { padding: 88px 0; }
section.panel { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { max-width: 780px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Headings that must stay on a single line, scaling to fit. */
#what-we-build .section-head, #infrastructure .section-head, #partners .section-head { max-width: none; }
#what-we-build h2, #infrastructure h2, #partners h2 { white-space: nowrap; font-size: clamp(14px, 3.8vw, 46px); }

/* ---------- Capability cards ---------- */

.cap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.cap {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 30px 30px;
  transition: transform .3s ease, border-color .3s ease;
}
.cap:hover { transform: translateY(-5px); border-color: var(--border-gold); }

.cap .icon {
  width: 44px; height: 44px; margin-bottom: 20px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-gold); border-radius: 12px;
  color: var(--gold);
}
.cap .icon svg { width: 22px; height: 22px; }

.cap h3 { font-size: 19px; font-weight: 600; letter-spacing: 0.04em; margin-bottom: 10px; }
.cap p { color: var(--muted); font-size: 15.5px; }

/* ---------- Product highlight ---------- */

.product-card {
  position: relative;
  background: linear-gradient(160deg, #15151d 0%, #101016 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 64px 58px;
  overflow: hidden;
}
.product-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(48% 70% at 88% 10%, rgba(200, 169, 81, 0.12), transparent 65%);
  pointer-events: none;
}
.product-card > * { position: relative; }

.product-card .p-name {
  font-family: var(--sans); font-weight: 600;
  font-size: 15px; letter-spacing: 0.34em; text-transform: uppercase;
}
.product-card .p-name span { color: var(--gold); }

.product-card .p-tagline {
  font-family: var(--serif);
  color: var(--gold-soft); font-size: clamp(20px, 2.6vw, 26px);
  margin: 16px 0 22px;
}

.product-card p.copy { color: var(--ivory-2); max-width: 740px; font-size: 16.5px; margin-bottom: 14px; }
.product-card p.fine { color: var(--muted); font-size: 14px; max-width: 740px; }

.product-card .cta-row { margin-top: 34px; display: flex; gap: 16px; flex-wrap: wrap; }

.products-aside { color: var(--muted); font-size: 14.5px; margin-top: 26px; text-align: center; }

/* ---------- Pillars ---------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
  border-top: 1px solid var(--border);
}

.pillar { padding: 36px 26px 8px; border-left: 1px solid var(--border); position: relative; }
.pillar:first-child { border-left: 0; }

.pillar .num {
  font-family: var(--serif);
  color: var(--gold); font-size: 15px; letter-spacing: 0.2em;
  display: block; margin-bottom: 14px;
}
.pillar .num::after {
  content: ""; display: block; width: 26px; height: 1px;
  background: var(--border-gold); margin-top: 12px;
}

.pillar h3 { font-size: 18px; font-weight: 600; letter-spacing: 0.05em; margin-bottom: 10px; }
.pillar p { color: var(--muted); font-size: 15px; }

@media (max-width: 980px) {
  .pillars { grid-template-columns: 1fr 1fr; }
  .pillar { border-left: 0; border-top: 1px solid var(--border); }
  .pillars { border-top: 0; }
}
@media (max-width: 560px) {
  .pillars { grid-template-columns: 1fr; }
}

/* ---------- Partners ---------- */

.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 16px;
}

.partner {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
  padding: 22px 22px 18px;
}
.partner h4 { font-size: 15.5px; font-weight: 600; letter-spacing: 0.05em; margin-bottom: 6px; }
.partner p { color: var(--muted); font-size: 13.5px; line-height: 1.55; }

/* ---------- Company ---------- */

.thesis p { color: var(--ivory-2); font-size: 18px; max-width: 800px; margin-bottom: 20px; }
.thesis p strong { font-weight: 600; color: var(--ivory); }

.mission {
  font-family: var(--serif);
  font-size: clamp(20px, 2.6vw, 25px);
  color: var(--gold-soft);
  border-left: 2px solid var(--border-gold);
  padding-left: 26px;
  margin: 38px 0;
  max-width: 720px;
}

.values { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.value {
  font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ivory-2);
  border: 1px solid var(--border); border-radius: 100px;
  padding: 11px 20px 9px;
}

/* ---------- Investors / Careers split ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: 56px; } }

.split h2 { font-size: clamp(26px, 3vw, 34px); }
.split p { color: var(--ivory-2); font-size: 16.5px; margin-bottom: 16px; max-width: 520px; }
.split p.fine { color: var(--muted); font-size: 13.5px; }

.roles { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 26px; }
.role {
  font-size: 13px; color: var(--ivory-2);
  border: 1px solid var(--border); border-radius: 100px;
  padding: 9px 17px 7px;
}

/* ---------- Contact ---------- */

/* Email-only contact — no form: we don't chase, the move is theirs. */
.contact-centered { max-width: 660px; margin: 0 auto; text-align: center; }
.contact-lead { color: var(--ivory-2); font-size: 17.5px; margin: 0 auto 34px; }
.contact-email {
  display: inline-block;
  font-family: var(--serif); font-weight: 200;
  font-size: clamp(24px, 4vw, 40px); letter-spacing: 0.03em;
  color: var(--gold-soft); text-decoration: none;
  border-bottom: 1px solid var(--border-gold); padding-bottom: 10px;
  transition: color .2s, border-color .2s;
}
.contact-email:hover { color: var(--ivory); border-color: var(--ivory); }
.contact-cats {
  margin-top: 32px; color: var(--muted);
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
}
.contact-co { margin-top: 20px; color: var(--muted); font-size: 14px; }

.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 70px; align-items: start; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; gap: 48px; } }

.contact-info p { color: var(--ivory-2); font-size: 16.5px; margin-bottom: 18px; max-width: 420px; }
.contact-info .line { color: var(--muted); font-size: 14.5px; margin-bottom: 6px; }
.contact-info a.mail {
  font-family: var(--serif); font-size: 21px; color: var(--gold-soft);
  text-decoration: none; border-bottom: 1px solid var(--border-gold);
}
.contact-info a.mail:hover { color: var(--ivory); }

form.contact { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 38px 36px; }

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

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--sans); font-weight: 300; font-size: 16.5px;
  color: var(--ivory); background: var(--bg);
  border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 16px 12px;
  outline: none;
  transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); }
.field textarea { min-height: 110px; resize: vertical; }
.field select { appearance: none; }

.form-success { text-align: center; padding: 28px 6px 12px; }
.form-success .seal {
  width: 60px; height: 60px; margin: 0 auto 18px;
  border: 1px solid var(--gold); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-soft); font-size: 24px;
}
.form-success h4 { font-family: var(--serif); font-size: 22px; font-weight: 500; margin-bottom: 10px; }
.form-success p { color: var(--muted); font-size: 15px; max-width: 380px; margin: 0 auto; }

/* ---------- Compliance ---------- */

.compliance { padding: 54px 0; }
.compliance ul {
  list-style: none;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 44px;
  max-width: 1000px; margin: 0 auto;
}
@media (max-width: 760px) { .compliance ul { grid-template-columns: 1fr; } }
.compliance li {
  color: var(--muted); font-size: 13px; line-height: 1.6;
  padding-left: 18px; position: relative;
}
.compliance li::before { content: "—"; position: absolute; left: 0; color: var(--gold-dim); }

/* ---------- Footer ---------- */

footer.site {
  border-top: 1px solid var(--border);
  padding: 56px 0 64px;
}
.foot {
  display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap;
  align-items: flex-start;
}
.foot .tag { color: var(--muted); font-size: 14px; margin-top: 10px; }
.foot-links { display: flex; gap: 56px; flex-wrap: wrap; }
.foot-links h5 {
  font-size: 11px; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}
.foot-links a {
  display: block; color: var(--ivory-2); text-decoration: none;
  font-size: 14.5px; margin-bottom: 9px;
}
.foot-links a:hover { color: var(--gold-soft); }
.copyright { color: var(--muted); font-size: 13px; margin-top: 44px; }

/* ---------- Legal pages ---------- */

.legal-wrap { max-width: 820px; margin: 0 auto; padding: 80px 28px 110px; }
.legal-wrap h1 { font-size: clamp(32px, 4.6vw, 44px); margin: 14px 0 10px; }
.legal-wrap .updated { color: var(--muted); font-size: 14px; margin-bottom: 36px; }
.legal-wrap .notice {
  border: 1px solid var(--border-gold); border-radius: 14px;
  background: var(--panel);
  color: var(--ivory-2); font-size: 15px;
  padding: 20px 24px; margin-bottom: 44px;
}
.legal-wrap h2 { font-size: 24px; margin: 40px 0 12px; }
.legal-wrap p, .legal-wrap li { color: var(--ivory-2); font-size: 16px; margin-bottom: 12px; }
.legal-wrap ul { padding-left: 22px; margin-bottom: 14px; }

/* ---------- Reveal animation ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .cap, .phone { transition: none; }
}
