/* PiD Genius — site design system */
:root {
  --indigo: #2c3e50;
  --indigo-deep: #1a2733;
  --blue: #0e5a8a;
  --mint: #1abc9c;
  --mint-dark: #148f77;
  --mint-soft: #e3f6f1;
  --silver: #bdc3c7;
  --mist: #f4f7f8;
  --ink: #16212b;
  --muted: #5b6b78;
  --white: #fff;
  --radius: 18px;
  --font-head: 'Montserrat', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-math: 'Cambria Math', 'STIX Two Text', 'Times New Roman', serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--white);
  line-height: 1.6; -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
.container { width: min(1160px, 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--white); padding: 8px 14px; z-index: 100; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 .5em; color: var(--indigo); }
h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; }
h3 { font-size: 1.35rem; font-weight: 700; }
p { margin: 0 0 1em; }
.pi { font-family: var(--font-math); font-style: italic; font-weight: 400; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em; font-family: var(--font-head);
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mint-dark);
  margin-bottom: 1.2rem;
}
.eyebrow::before { content: ''; width: 28px; height: 2px; background: currentColor; }
.lead { font-size: clamp(1.1rem, 1.8vw, 1.35rem); color: var(--muted); max-width: 40em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .6em; padding: .95em 1.7em; border-radius: 999px;
  font: 700 .95rem var(--font-head); text-decoration: none; border: 2px solid transparent;
  background: var(--mint); color: var(--indigo-deep); cursor: pointer; transition: transform .2s, background .2s, box-shadow .2s;
}
.btn:hover { background: #3fd2b5; transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(26,188,156,.8); }
.btn.ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn.ghost:hover { background: rgba(255,255,255,.1); box-shadow: none; }
.btn.dark { background: var(--indigo); color: var(--white); }
.btn.dark:hover { background: var(--indigo-deep); box-shadow: 0 10px 24px -10px rgba(44,62,80,.8); }
.arrow-link { font: 700 .95rem var(--font-head); color: var(--blue); text-decoration: none; display: inline-flex; gap: .5em; }
.arrow-link span { transition: transform .2s; }
.arrow-link:hover span { transform: translateX(5px); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.86);
  backdrop-filter: blur(14px); border-bottom: 1px solid rgba(44,62,80,.08);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand img { height: 62px; width: auto; }
.footer-logo img { height: 84px; border-radius: 12px; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a:not(.btn) { text-decoration: none; font-weight: 500; color: var(--indigo); position: relative; padding: 4px 0; }
.nav-links a:not(.btn)::after { content: ''; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0; background: var(--mint); transition: width .25s; }
.nav-links a:not(.btn):hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }
.nav-links .btn { padding: .65em 1.3em; font-size: .88rem; }
.menu-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  content: ''; display: block; width: 24px; height: 2px; background: var(--indigo); position: relative; margin: auto; transition: .25s;
}
.menu-toggle span::before { top: -7px; position: absolute; left: 0; }
.menu-toggle span::after { top: 7px; position: absolute; left: 0; }

/* Hero */
.hero { position: relative; background: var(--indigo-deep); color: var(--white); overflow: hidden; isolation: isolate; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 20% 40%, rgba(26,36,48,.75), transparent 70%); }
.hero-inner { padding: clamp(5rem, 12vw, 9.5rem) 0 clamp(4.5rem, 10vw, 8rem); }
.hero h1 { color: var(--white); max-width: 14em; }
.hero h1 em { font-style: normal; color: var(--mint); }
.hero .lead { color: rgba(255,255,255,.78); margin-bottom: 2.2rem; }
.hero .eyebrow { color: var(--mint); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; }
.page-hero .hero-inner { padding: clamp(4rem, 8vw, 6.5rem) 0 clamp(3.5rem, 7vw, 5.5rem); }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 4rem); }

/* Sections */
section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.mist { background: var(--mist); }
.dark { background: var(--indigo); color: var(--white); }
.dark h2, .dark h3 { color: var(--white); }
.dark .lead { color: rgba(255,255,255,.75); }
.section-head { max-width: 46rem; margin-bottom: 3.2rem; }

/* Manifesto */
.manifesto { background: var(--mint); color: var(--indigo-deep); padding: clamp(3.5rem, 8vw, 6rem) 0; }
.manifesto p { font: 800 clamp(1.7rem, 4.2vw, 3.2rem)/1.15 var(--font-head); letter-spacing: -.02em; max-width: 24em; margin: 0; }
.manifesto p s { text-decoration-thickness: 4px; opacity: .55; }
.manifesto small { display: block; font: 500 1.05rem var(--font-body); margin-top: 1.6rem; max-width: 36em; opacity: .85; }

/* Cards */
.grid { display: grid; gap: 1.5rem; }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card {
  background: var(--white); border: 1px solid rgba(44,62,80,.1); border-radius: var(--radius); padding: 2rem;
  display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s, border-color .25s; text-decoration: none;
}
a.card:hover, .card.lift:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -28px rgba(26,39,51,.45); border-color: var(--mint); }
.card .icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--mint-soft); color: var(--mint-dark);
  display: grid; place-items: center; margin-bottom: 1.4rem;
}
.card .icon svg { width: 26px; height: 26px; }
.card p { color: var(--muted); }
.card .arrow-link { margin-top: auto; padding-top: .6rem; }
.tag { display: inline-block; font: 700 .72rem var(--font-head); letter-spacing: .1em; text-transform: uppercase; padding: .35em .8em; border-radius: 999px; background: var(--mint-soft); color: var(--mint-dark); margin-bottom: 1rem; align-self: flex-start; }

/* Stat strip */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 2rem; margin-top: 3rem; }
.stat b { display: block; font: 800 clamp(2.6rem, 5vw, 4rem)/1 var(--font-head); color: var(--mint); }
.stat span { color: rgba(255,255,255,.75); }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split.top { align-items: start; }
.checks { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: .8rem; }
.checks li { padding-left: 2rem; position: relative; }
.checks li::before { content: ''; position: absolute; left: 0; top: .35em; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%231a2733' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat; }

/* π + d visual */
.pid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.pid > div { padding: 2rem; border-radius: var(--radius); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); }
.pid .sym { font: italic 4.2rem/1 var(--font-math); color: var(--mint); display: block; margin-bottom: .6rem; }
.pid h3 { margin-bottom: .4rem; }
.pid p { color: rgba(255,255,255,.72); margin: 0; }

/* Spotlight */
.spotlight { background: linear-gradient(135deg, var(--indigo-deep), var(--indigo)); border-radius: 28px; color: var(--white); padding: clamp(2rem, 6vw, 4.5rem); position: relative; overflow: hidden; }
.spotlight h2 { color: var(--white); }
.spotlight .lead { color: rgba(255,255,255,.78); }
.spotlight::after { content: 'πd'; position: absolute; right: -2%; bottom: -14%; font: italic clamp(10rem, 28vw, 24rem)/1 var(--font-math); color: rgba(26,188,156,.1); pointer-events: none; }
.spotlight > * { position: relative; z-index: 1; }

/* Steps */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.5rem; }
.step { counter-increment: s; padding-top: 1.4rem; border-top: 3px solid var(--mint); }
.step::before { content: '0' counter(s); font: 800 .9rem var(--font-head); color: var(--mint-dark); }
.step h3 { margin-top: .5rem; }
.step p { color: var(--muted); }

/* CTA band */
.cta-band { background: var(--indigo-deep); color: var(--white); text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { color: var(--white); max-width: 16em; margin-inline: auto; }
.cta-band p { color: rgba(255,255,255,.75); margin-bottom: 2rem; }

/* Contact */
.contact-card { background: var(--mist); border-radius: var(--radius); padding: 2.2rem; }
.contact-card dl { margin: 0; display: grid; gap: 1.2rem; }
.contact-card dt { font: 700 .75rem var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--mint-dark); }
.contact-card dd { margin: .2rem 0 0; }
.contact-card a { color: var(--blue); font-weight: 600; }
form { display: grid; gap: 1.2rem; }
label { font: 600 .9rem var(--font-head); color: var(--indigo); display: block; margin-bottom: .4rem; }
input, textarea, select {
  width: 100%; padding: .95rem 1.1rem; font: inherit; border: 1.5px solid rgba(44,62,80,.2); border-radius: 12px; background: var(--white); color: var(--ink);
}
input:focus, textarea:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 4px rgba(26,188,156,.2); }
.form-note { font-size: .88rem; color: var(--muted); }

/* Footer */
.site-footer { background: var(--indigo-deep); color: rgba(255,255,255,.72); padding: 4.5rem 0 2rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 3rem; }
.site-footer h4 { color: var(--white); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.2rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--mint); }
.legal { margin-top: 3.5rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .85rem; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(26px); 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; }
  * { animation: none !important; }
}

/* Responsive */
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: absolute; top: 76px; left: 0; right: 0; background: var(--white); flex-direction: column; align-items: flex-start;
    padding: 1.5rem 24px 2rem; gap: 1.2rem; border-bottom: 1px solid rgba(44,62,80,.1); display: none;
  }
  .nav-links.open { display: flex; }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .container { width: min(1160px, 100% - 32px); }
}
