/* ── Park Road Designs — Main Stylesheet v2 ── */
@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Barlow+Condensed:wght@500;600;700;800&family=DM+Mono:wght@400;500&display=swap');

:root {
  --blue: #1a4f7a;
  --blue-dark: #0f3259;
  --blue-mid: #2c6fa0;
  --blue-light: #e8f2fa;
  --amber: #c8621a;
  --amber-dark: #a04e14;
  --amber-light: #fff3ea;
  --ink: #1a1a18;
  --ink2: #444440;
  --ink3: #888884;
  --border: #dddad4;
  --surface: #ffffff;
  --bg: #f6f4f0;
  --bg2: #eeece8;
  --white: #ffffff;
  --font: 'Barlow', sans-serif;
  --font-cond: 'Barlow Condensed', sans-serif;
  --mono: 'DM Mono', monospace;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--bg); }
img { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-mid); }

/* ── Typography ── */
h1,h2,h3,h4 { font-family: var(--font-cond); font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
h4 { font-size: 1.1rem; }
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

.label { font-family: var(--mono); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--amber); display: block; margin-bottom: 8px; }
.lead { font-size: 1.15rem; font-weight: 400; color: var(--ink2); line-height: 1.7; }

/* ── Layout ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 860px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }

/* ── Navigation ── */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.95); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; height: 64px; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.nav-logo img { height: 36px; width: 36px; border-radius: 6px; object-fit: cover; }
.nav-logo-text { font-family: var(--font-cond); font-weight: 800; font-size: 1.1rem; color: var(--blue); letter-spacing: 0.02em; line-height: 1; }
.nav-logo-text span { display: block; font-size: 0.6rem; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: var(--ink3); font-family: var(--mono); margin-top: 2px; }
.nav-links { display: flex; align-items: center; gap: 2px; margin-left: auto; list-style: none; }
.nav-links a { display: block; padding: 8px 12px; font-size: 14px; font-weight: 500; color: var(--ink2); border-radius: var(--radius); transition: color 0.15s, background 0.15s; }
.nav-links a:hover { color: var(--blue); background: var(--blue-light); }
.nav-links a.active { color: var(--blue); font-weight: 600; }
.nav-cta { margin-left: 12px; }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; margin-left: auto; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: all 0.2s; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; font-family: var(--font); font-size: 14px; font-weight: 600; border-radius: var(--radius); border: 2px solid transparent; cursor: pointer; transition: all 0.15s; text-decoration: none; white-space: nowrap; }
.btn-primary { background: var(--blue); color: var(--white); border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: var(--white); }
.btn-amber { background: var(--amber); color: var(--white); border-color: var(--amber); }
.btn-amber:hover { background: var(--amber-dark); border-color: var(--amber-dark); color: var(--white); }
.btn-outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: var(--white); }
.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-outline-white:hover { background: rgba(255,255,255,0.15); border-color: var(--white); color: var(--white); }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-sm { padding: 7px 14px; font-size: 13px; }

/* ── Hero ── */
.hero { background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 60%, var(--blue-mid) 100%); color: var(--white); padding: 100px 0 80px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.hero-content { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-label { color: rgba(255,255,255,0.6); margin-bottom: 16px; }
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero .lead { color: rgba(255,255,255,0.8); margin-bottom: 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 32px; }
.badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2); border-radius: 20px; padding: 5px 12px; font-size: 12px; color: rgba(255,255,255,0.85); font-weight: 500; }
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }
.hero-image-wrap { display: flex; align-items: center; justify-content: center; }
.board-preview { background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%); border: 1px solid rgba(255,255,255,0.15); border-radius: var(--radius-lg); padding: 24px; text-align: center; }
.board-preview img { border-radius: var(--radius); width: 100%; box-shadow: 0 16px 48px rgba(0,0,0,0.5); }

/* ── Stats ── */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: var(--blue-dark); border-radius: var(--radius-lg); overflow: hidden; }
.stat-item { padding: 32px 24px; text-align: center; border-right: 1px solid rgba(255,255,255,0.1); }
.stat-item:last-child { border-right: none; }
.stat-num { font-family: var(--font-cond); font-size: 2.8rem; font-weight: 800; color: var(--white); line-height: 1; margin-bottom: 4px; }
.stat-label { font-size: 12px; color: rgba(255,255,255,0.5); font-family: var(--mono); letter-spacing: 1px; }

/* ── Feature grid ── */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; transition: box-shadow 0.2s, transform 0.2s; }
.feature-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.feature-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--blue-light); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; font-size: 22px; }
.feature-icon.amber { background: var(--amber-light); }
.feature-card h4 { color: var(--ink); margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--ink2); margin: 0; line-height: 1.6; }

/* ── How it works ── */
.how-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: steps; }
.how-step { padding: 32px 24px; position: relative; counter-increment: steps; }
.how-step::before { content: counter(steps); font-family: var(--font-cond); font-size: 4rem; font-weight: 800; color: var(--border); line-height: 1; display: block; margin-bottom: 12px; }
.how-step h4 { margin-bottom: 8px; color: var(--ink); }
.how-step p { font-size: 14px; color: var(--ink2); margin: 0; }
.how-step + .how-step::after { content: '→'; position: absolute; left: -12px; top: 36px; font-size: 1.2rem; color: var(--border); }

/* ── Product ecosystem grid ── */
.ecosystem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.eco-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; position: relative; }
.eco-card.highlight { border-color: var(--blue); background: var(--blue-light); }
.eco-tag { font-family: var(--mono); font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--amber); margin-bottom: 6px; }
.eco-name { font-weight: 700; font-size: 15px; margin-bottom: 4px; color: var(--ink); }
.eco-desc { font-size: 13px; color: var(--ink2); line-height: 1.5; }
.eco-status { position: absolute; top: 14px; right: 14px; font-family: var(--mono); font-size: 10px; padding: 2px 7px; border-radius: 3px; }
.eco-status.ready { background: #e8f5ee; color: #1a6a3a; border: 1px solid #a8d8b8; }
.eco-status.design { background: var(--amber-light); color: var(--amber-dark); border: 1px solid #f0c090; }
.eco-status.soon { background: var(--bg2); color: var(--ink3); border: 1px solid var(--border); }

/* ── Spec table ── */
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table tr { border-bottom: 1px solid var(--border); }
.spec-table tr:last-child { border-bottom: none; }
.spec-table td { padding: 10px 12px; font-size: 14px; vertical-align: top; }
.spec-table td:first-child { font-weight: 500; color: var(--ink3); width: 180px; font-family: var(--mono); font-size: 12px; }
.spec-table td:last-child { color: var(--ink); }

/* ── Cards ── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.card-body { padding: 24px; }
.card-header { padding: 20px 24px; border-bottom: 1px solid var(--border); }
.card-footer { padding: 16px 24px; border-top: 1px solid var(--border); background: var(--bg); }

/* ── Shop / product cards ── */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.product-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow 0.2s, transform 0.2s; display: flex; flex-direction: column; }
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.product-img { background: var(--bg2); height: 200px; display: flex; align-items: center; justify-content: center; font-size: 48px; border-bottom: 1px solid var(--border); }
.product-img img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.product-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.product-tag { font-family: var(--mono); font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--amber); margin-bottom: 6px; }
.product-name { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.product-desc { font-size: 13px; color: var(--ink2); margin-bottom: 16px; flex: 1; }
.product-price { font-size: 1.4rem; font-weight: 700; color: var(--blue); margin-bottom: 14px; }
.product-price small { font-size: 0.75rem; color: var(--ink3); font-weight: 400; }
.product-actions { display: flex; gap: 8px; }

/* ── Download items ── */
.download-list { display: flex; flex-direction: column; gap: 12px; }
.download-item { display: flex; align-items: center; gap: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; transition: border-color 0.15s, box-shadow 0.15s; }
.download-item:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.dl-icon { width: 44px; height: 44px; flex-shrink: 0; background: var(--blue-light); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.dl-icon.amber { background: var(--amber-light); }
.dl-icon.green { background: #e8f5ee; }
.dl-info { flex: 1; min-width: 0; }
.dl-name { font-weight: 600; color: var(--ink); font-size: 15px; }
.dl-desc { font-size: 13px; color: var(--ink2); }
.dl-meta { font-family: var(--mono); font-size: 11px; color: var(--ink3); margin-top: 2px; }
.dl-badge { display: inline-block; background: var(--amber-light); color: var(--amber-dark); border: 1px solid #f0c090; font-size: 10px; font-family: var(--mono); letter-spacing: 1px; padding: 2px 7px; border-radius: 3px; text-transform: uppercase; white-space: nowrap; }
.dl-badge.coming { background: var(--bg2); color: var(--ink3); border-color: var(--border); }
.dl-badge.stable { background: #e8f5ee; color: #1a6a3a; border-color: #a8d8b8; }

/* ── Tabs ── */
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 32px; }
.tab { padding: 10px 18px; font-size: 14px; font-weight: 500; color: var(--ink3); cursor: pointer; border: none; background: none; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: color 0.15s, border-color 0.15s; }
.tab.active { color: var(--blue); border-bottom-color: var(--blue); font-weight: 600; }
.tab:hover:not(.active) { color: var(--ink); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Page hero ── */
.page-hero { background: var(--blue-dark); color: var(--white); padding: 56px 0 48px; }
.page-hero .label { color: rgba(255,255,255,0.5); }
.page-hero h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); color: var(--white); margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,0.7); max-width: 560px; }

/* ── Callouts ── */
.callout { background: var(--blue-light); border-left: 4px solid var(--blue); border-radius: 0 var(--radius) var(--radius) 0; padding: 16px 20px; margin: 20px 0; }
.callout.amber { background: var(--amber-light); border-left-color: var(--amber); }
.callout.warning { background: #fff8e8; border-left-color: #d4a020; }
.callout.green { background: #e8f5ee; border-left-color: #2a7a50; }
.callout-title { font-weight: 600; color: var(--blue); margin-bottom: 4px; font-size: 14px; }
.callout.amber .callout-title { color: var(--amber-dark); }
.callout.warning .callout-title { color: #8a6010; }
.callout.green .callout-title { color: #1a6a3a; }
.callout p { font-size: 14px; color: var(--ink2); margin: 0; }

/* ── Pin tables ── */
.pin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pin-table th { background: var(--blue); color: var(--white); padding: 8px 10px; text-align: left; font-weight: 500; font-size: 11px; letter-spacing: 0.5px; }
.pin-table td { padding: 7px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.pin-table tr:nth-child(even) td { background: var(--bg); }
.pin-table tr:hover td { background: var(--blue-light); }
.pin-num { font-family: var(--mono); font-weight: 500; color: var(--blue); }
.pin-label { font-family: var(--mono); font-size: 12px; font-weight: 500; }
.pin-gpio { color: var(--ink3); font-family: var(--mono); font-size: 11px; }
.pin-pwr { background: var(--amber-light) !important; }
.pin-pwr .pin-label { color: var(--amber-dark); }
.pin-gnd { background: var(--bg2) !important; }

/* ── Footer ── */
.footer { background: var(--ink); color: rgba(255,255,255,0.7); padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-logo img { height: 32px; width: 32px; border-radius: 5px; object-fit: cover; }
.footer-logo-text { font-family: var(--font-cond); font-weight: 800; font-size: 1rem; color: var(--white); letter-spacing: 0.02em; }
.footer-tagline { font-size: 13px; line-height: 1.6; color: rgba(255,255,255,0.5); max-width: 240px; }
.footer-heading { font-family: var(--mono); font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 14px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,0.6); transition: color 0.15s; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: rgba(255,255,255,0.35); font-family: var(--mono); }

/* ── Utilities ── */
.divider { border: none; border-top: 1px solid var(--border); margin: 0; }
.text-center { text-align: center; }
.text-muted { color: var(--ink3); }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.flex { display: flex; }
.items-center { align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.highlight { color: var(--amber); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-image-wrap { display: none; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .how-grid { grid-template-columns: 1fr 1fr; }
  .how-step::after { display: none; }
  .ecosystem-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); padding: 12px; gap: 4px; z-index: 99; }
  .nav-hamburger { display: flex; }
  .nav-cta { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .hero { padding: 64px 0 56px; }
  .stat-row { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; }
  .ecosystem-grid { grid-template-columns: 1fr; }
}

/* ── Animate on scroll ── */
.animate { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.animate.visible { opacity: 1; transform: translateY(0); }
.animate:nth-child(2) { transition-delay: 0.1s; }
.animate:nth-child(3) { transition-delay: 0.2s; }
.animate:nth-child(4) { transition-delay: 0.3s; }

/* ── Coming soon overlay ── */
.coming-overlay { position: absolute; inset: 0; background: rgba(248,246,242,0.85); border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; z-index: 2; }
.coming-badge { background: var(--blue); color: var(--white); font-family: var(--font-cond); font-size: 1.1rem; font-weight: 700; padding: 10px 20px; border-radius: 20px; letter-spacing: 1px; }

/* ── Forms ── */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-weight: 500; font-size: 14px; margin-bottom: 6px; color: var(--ink); }
.form-input, .form-textarea, .form-select { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius); font-family: var(--font); font-size: 14px; color: var(--ink); background: var(--bg); outline: none; transition: border-color 0.15s; }
.form-input:focus, .form-textarea:focus, .form-select:focus { border-color: var(--blue); }
.form-textarea { min-height: 120px; resize: vertical; }

/* ── Section anchors ── */
.section-anchor { scroll-margin-top: 80px; }
