/* Member AI — base styles */

@font-face {
  font-family: "PP Neue Montreal";
  src: url("fonts/PPNeueMontreal-Thin.otf") format("opentype");
  font-weight: 100 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PP Neue Montreal";
  src: url("fonts/PPNeueMontreal-Book.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PP Neue Montreal";
  src: url("fonts/PPNeueMontreal-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PP Neue Montreal";
  src: url("fonts/PPNeueMontreal-Bold.otf") format("opentype");
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* dark base — graphite */
  --bg:           #0A0A0A;
  --bg-1:         #0E0E0E;
  --surface:      #141414;
  --surface-2:    #1A1A1A;
  --surface-3:    #242424;
  --border:       rgba(255,255,255,0.08);
  --border-strong:rgba(255,255,255,0.16);

  --fg:           #F5F5F4;
  --fg-2:         rgba(245,245,244,0.72);
  --fg-3:         rgba(245,245,244,0.52);
  --fg-muted:     rgba(245,245,244,0.36);

  /* single accent — blue (default) · lime disponível via Tweaks */
  --accent:       #1C80FA;
  --accent-fg:    #FFFFFF;
  --accent-soft:  color-mix(in oklch, var(--accent) 18%, transparent);
  --accent-glow:  color-mix(in oklch, var(--accent) 35%, transparent);

  /* density */
  --section-pad-y: 140px;
  --container: 1280px;
  --gutter: 88px;

  --font-display: "PP Neue Montreal", "Inter", system-ui, sans-serif;
  --font-mono:    ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-density="compact"] {
  --section-pad-y: 96px;
  --gutter: 64px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--fg); }
body {
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
@media (max-width: 900px) {
  :root { --gutter: 24px; --section-pad-y: 80px; }
}

/* Typography */
.t-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.t-eyebrow::before {
  content: "";
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.02em; line-height: 1.05; }
h1 { font-size: clamp(48px, 7vw, 104px); font-weight: 500; }
h2 { font-size: clamp(36px, 4.5vw, 64px); }
h3 { font-size: clamp(24px, 2.2vw, 32px); }
p { margin: 0; color: var(--fg-2); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: transform 200ms var(--ease), background 200ms var(--ease), box-shadow 200ms var(--ease);
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-fg);
  box-shadow: 0 0 0 1px color-mix(in oklch, var(--accent) 60%, black), 0 10px 30px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px var(--accent), 0 16px 42px var(--accent-glow); }
.btn-ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { background: var(--surface); }

/* Section shell */
section {
  padding: var(--section-pad-y) 0;
  position: relative;
}

/* Divider line */
.hairline {
  height: 1px;
  background: var(--border);
  width: 100%;
}

/* Grid background utility */
.bg-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
