/* =========================================================================
   Pagani Enterprises LLC — Shared Stylesheet
   Light theme. System fonts. No external deps.
   ========================================================================= */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  --bg: #FAFAF7;
  --bg-elevated: #FFFFFF;
  --text: #0F0F11;
  --text-muted: #6B6B70;
  --accent: #3D5AFE;
  --accent-hover: #2A3FCC;
  --border: #E5E5E0;
  --border-strong: #D4D4CE;
  --focus-ring: #3D5AFE;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: Georgia, "Times New Roman", serif;

  --max-width: 960px;
  --max-width-narrow: 720px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  --radius-sm: 4px;
  --radius-md: 8px;
}

/* --------------------------------------------------------------------------
   2. Reset / Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--space-4);
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 600;
}

h1 {
  font-size: 44px;
  letter-spacing: -0.03em;
  font-weight: 700;
}

h2 {
  font-size: 30px;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 20px;
}

p {
  margin: 0 0 var(--space-4);
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 120ms ease;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

img {
  max-width: 100%;
  height: auto;
}

ul, ol {
  padding-left: var(--space-5);
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: var(--space-7) 0;
}

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.container-narrow {
  max-width: var(--max-width-narrow);
}

main {
  padding: var(--space-8) 0 var(--space-10);
}

section {
  margin-bottom: var(--space-9);
}

section:last-child {
  margin-bottom: 0;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

.lead {
  font-size: 20px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 60ch;
}

.text-muted {
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   4. Skip-to-content
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -40px;
  left: var(--space-4);
  background: var(--text);
  color: var(--bg);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  z-index: 1000;
  transition: top 120ms ease;
}

.skip-link:focus {
  top: var(--space-4);
  color: var(--bg);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   5. Header / Nav
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.brand:hover {
  color: var(--text);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 6px 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
}

.nav-toggle:hover {
  background: var(--bg-elevated);
}

.site-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: var(--space-6);
}

.site-nav a {
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
  padding: var(--space-2) 0;
  position: relative;
}

.site-nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: var(--text);
}

.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  padding: var(--space-9) 0 var(--space-8);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-9);
}

.hero h1 {
  font-size: 56px;
  max-width: 16ch;
}

.hero .lead {
  margin-top: var(--space-5);
  font-size: 22px;
}

.hero__cta {
  margin-top: var(--space-6);
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   7. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
}

.btn-primary:hover {
  background: #2A2A2D;
  color: var(--bg);
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: var(--bg-elevated);
  color: var(--text);
  border-color: var(--text);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   8. Cards / Product list
   -------------------------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  margin-top: var(--space-6);
}

@media (min-width: 768px) {
  .card-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.card-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin-top: var(--space-6);
}

.card__links {
  margin-top: var(--space-4);
  font-size: 15px;
}

.card__links a + a {
  margin-left: var(--space-3);
}

.card__links a + a::before {
  content: "·";
  color: var(--text-muted);
  margin-right: var(--space-3);
}

.platform-disclaimer {
  margin-top: var(--space-6);
  font-size: 14px;
  color: var(--text-muted);
  max-width: 60ch;
}

.legal-doc h2 {
  font-size: 22px;
  margin-top: var(--space-7);
  margin-bottom: var(--space-3);
}

.legal-doc p {
  max-width: 70ch;
}

.legal-meta {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: var(--space-6);
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
}

.card h3 {
  margin-bottom: var(--space-2);
}

.card__meta {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}

.card__meta--status-building {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   9. Definition / detail rows (About, Contact)
   -------------------------------------------------------------------------- */
.detail-list {
  list-style: none;
  padding: 0;
  margin: var(--space-5) 0 0;
  border-top: 1px solid var(--border);
}

.detail-list li {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 768px) {
  .detail-list li {
    flex-direction: row;
    align-items: baseline;
    gap: var(--space-6);
  }
}

.detail-list .detail-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

.detail-list .detail-value {
  color: var(--text);
}

@media (min-width: 768px) {
  .detail-list .detail-label {
    flex: 0 0 180px;
  }
  .detail-list .detail-value {
    flex: 1;
  }
}

/* --------------------------------------------------------------------------
   10. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: var(--space-7) 0;
  margin-top: var(--space-7);
  color: var(--text-muted);
  font-size: 14px;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .site-footer__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: var(--space-5);
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--text-muted);
}

.site-footer a:hover {
  color: var(--text);
}

/* --------------------------------------------------------------------------
   11. Mobile nav
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  h1 { font-size: 36px; }
  h2 { font-size: 26px; }
  .hero h1 { font-size: 40px; }
  .hero .lead { font-size: 18px; }

  main { padding: var(--space-7) 0 var(--space-7); }
  section { margin-bottom: var(--space-7); }
  .hero { padding: var(--space-7) 0 var(--space-6); margin-bottom: var(--space-7); }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-strong);
    box-shadow: 0 12px 24px rgba(15, 15, 17, 0.10);
    padding: var(--space-3) 0;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .site-nav li {
    border-top: 1px solid var(--border);
  }

  .site-nav li:first-child {
    border-top: none;
  }

  .site-nav a {
    display: block;
    padding: var(--space-4) var(--space-5);
    font-size: 16px;
  }

  .site-nav a[aria-current="page"]::after {
    display: none;
  }

  .site-nav a[aria-current="page"] {
    color: var(--accent);
    font-weight: 600;
  }
}

/* --------------------------------------------------------------------------
   12. Misc
   -------------------------------------------------------------------------- */
::selection {
  background: var(--text);
  color: var(--bg);
}
