/* ============================================================
   Papilio Works — style.css
   ============================================================ */

/* --- Reset & Base ----------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #0d0d0f;
  --bg-alt:     #111215;
  --surface:    #1a1b1f;
  --surface-hi: #222429;
  --border:     #2a2c32;
  --text:       #e0e0e6;
  --text-muted: #8a8c96;
  --accent:     #00e5a0;
  --accent-dim: rgba(0, 229, 160, 0.12);
  --accent-glow:rgba(0, 229, 160, 0.25);
  --warn:       #f5a623;
  --warn-dim:   rgba(245, 166, 35, 0.12);
  --font-body:  'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono:  'Consolas', 'Cascadia Code', monospace;
  --radius:     8px;
  --radius-lg:  16px;
  --max-w:      1140px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
}

/* --- Utilities --------------------------------------------- */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.accent { color: var(--accent); }
.section-alt { background: var(--bg-alt); }

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.section-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 3rem;
  max-width: 600px;
}

.chip {
  display: inline-block;
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 100px;
}

/* --- Header / Nav ------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 15, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-logo {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.nav-logo:hover { text-decoration: none; }

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* --- Hero -------------------------------------------------- */
.hero {
  padding: 80px 0 72px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.hero-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.75rem;
  max-width: 520px;
}

.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.hero-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 24px 64px rgba(0,0,0,0.5), 0 0 40px var(--accent-glow);
}

/* --- Kit Section ------------------------------------------- */
.kit-section { padding: 80px 0; }

.kit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.kit-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: border-color 0.2s, transform 0.2s;
}
.kit-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.kit-card--highlight {
  border-color: var(--accent);
  background: var(--surface-hi);
  box-shadow: 0 0 24px var(--accent-glow);
}

.kit-num {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--border);
  margin-bottom: 12px;
  line-height: 1;
}
.kit-card--highlight .kit-num { color: var(--accent); }

.kit-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.kit-card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 16px; }

.kit-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.kit-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

/* --- Cores Section ----------------------------------------- */
.cores-section { padding: 80px 0; }

.cores-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.core-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  position: relative;
}

.core-card--ready { border-color: var(--accent); }
.core-card--progress { border-color: var(--warn); }

.core-status {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.core-card--ready .core-status { color: var(--accent); }
.core-card--progress .core-status { color: var(--warn); }
.core-card--investigating .core-status { color: var(--text-muted); }

.core-year {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.core-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.core-card p { color: var(--text-muted); font-size: 0.875rem; }

.cores-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

/* --- Features Section -------------------------------------- */
.features-section { padding: 80px 0; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: border-color 0.2s;
}
.feature:hover { border-color: var(--accent); }

.feature-icon { font-size: 1.75rem; margin-bottom: 12px; }
.feature h3 { font-size: 1rem; margin-bottom: 8px; }
.feature p { color: var(--text-muted); font-size: 0.875rem; }

/* --- Specs Section ----------------------------------------- */
.specs-section { padding: 80px 0; }

.specs-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.specs-col h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-family: var(--font-mono);
  margin-bottom: 12px;
  margin-top: 28px;
}
.specs-col h3:first-child { margin-top: 0; }

.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin-bottom: 8px;
}
.specs-table tr { border-bottom: 1px solid var(--border); }
.specs-table tr:last-child { border-bottom: none; }
.specs-table td {
  padding: 8px 0;
  vertical-align: top;
}
.specs-table td:first-child {
  color: var(--text-muted);
  width: 45%;
  padding-right: 16px;
}

.specs-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

/* --- Gallery Section --------------------------------------- */
.gallery-section { padding: 80px 0; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.gallery-grid img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s, transform 0.2s;
}
.gallery-grid img:hover { border-color: var(--accent); transform: scale(1.01); }

/* --- Footer ------------------------------------------------ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand p { color: var(--text-muted); font-size: 0.85rem; margin-top: 4px; }
.footer-links a { color: var(--text-muted); font-size: 0.875rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); text-decoration: none; }
.footer-copy { color: var(--text-muted); font-size: 0.8rem; }

/* --- Responsive -------------------------------------------- */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-image { order: -1; }
  .kit-grid { grid-template-columns: 1fr; }
  .cores-grid { grid-template-columns: repeat(2, 1fr); }
  .specs-layout { grid-template-columns: 1fr; gap: 24px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .cores-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
}
