/* ── MakerYard — Design System ───────────────────────────────────────────── */

:root {
  /* Type scale */
  --text-xs:   clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl:  clamp(2.5rem, 1rem + 5vw, 6rem);

  /* Spacing */
  --space-1: 0.25rem; --space-2: 0.5rem;  --space-3: 0.75rem;
  --space-4: 1rem;    --space-5: 1.25rem; --space-6: 1.5rem;
  --space-8: 2rem;    --space-10: 2.5rem; --space-12: 3rem;
  --space-16: 4rem;   --space-20: 5rem;   --space-24: 6rem;

  /* MakerYard Palette — dark industrial, amber accent */
  --bg:        #0e0d0b;
  --bg-card:   #151412;
  --bg-card-2: #1a1916;
  --border:    #2a2826;
  --border-hi: #3d3a35;
  --text:      #e8e4dc;
  --text-muted:#918c84;
  --text-faint:#55524d;

  /* Amber — the yard sign colour */
  --amber:        #f5a623;
  --amber-dark:   #c47d0e;
  --amber-glow:   rgba(245,166,35,0.15);
  --amber-border: rgba(245,166,35,0.25);

  /* Street colours */
  --maker-blue:   #3b82f6;
  --cnc-slate:    #64748b;
  --laser-purple: #8b5cf6;
  --print-rose:   #f43f5e;
  --stitch-emerald: #10b981;
  --foundry-orange: #f97316;

  /* Radius */
  --r-sm: 0.5rem;
  --r-md: 0.75rem;
  --r-lg: 1rem;
  --r-xl: 1.5rem;

  /* Fonts */
  --font-display: 'Barlow Condensed', 'Impact', sans-serif;
  --font-body:    'Inter', 'Helvetica Neue', sans-serif;

  --transition: 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-font-smoothing: antialiased; }
body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}
img, svg { display: block; max-width: 100%; }
h1,h2,h3,h4 { line-height: 1.1; text-wrap: balance; }
p, li { text-wrap: pretty; max-width: 68ch; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }

/* ── Container ───────────────────────────────────────────────────────────── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: var(--space-2);
  background: var(--amber); color: #0e0d0b;
  font-family: var(--font-display); font-weight: 700; font-size: var(--text-base);
  letter-spacing: 0.02em;
  padding: 0.75rem 1.75rem; border-radius: var(--r-md);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-primary:hover { background: #fdb832; box-shadow: 0 0 24px rgba(245,166,35,0.4); transform: translateY(-1px); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: var(--space-2);
  background: transparent; color: var(--text-muted);
  border: 1px solid var(--border-hi);
  font-size: var(--text-base); padding: 0.75rem 1.5rem; border-radius: var(--r-md);
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.btn-ghost:hover { color: var(--text); border-color: var(--amber-border); background: rgba(255,255,255,0.04); }
.btn-full { width: 100%; justify-content: center; padding: 0.875rem 2rem; font-size: var(--text-lg); }
.btn-nav {
  display: inline-flex; align-items: center;
  background: var(--amber); color: #0e0d0b;
  font-family: var(--font-display); font-weight: 700; font-size: var(--text-sm);
  letter-spacing: 0.03em;
  padding: 0.5rem 1.125rem; border-radius: var(--r-sm);
  transition: background var(--transition);
}
.btn-nav:hover { background: #fdb832; }

/* ── Section typography ───────────────────────────────────────────────────── */
.section-label {
  display: inline-block;
  font-family: var(--font-display); font-weight: 700; font-size: var(--text-xs);
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--amber); background: var(--amber-glow);
  border: 1px solid var(--amber-border);
  padding: 0.3rem 0.875rem; border-radius: var(--r-sm);
  margin-bottom: var(--space-4);
}
.section-h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl); font-weight: 900;
  letter-spacing: -0.01em; line-height: 1.05;
  margin-bottom: var(--space-4);
}
.section-p {
  color: var(--text-muted); font-size: var(--text-base); line-height: 1.7;
  max-width: 60ch; margin-bottom: var(--space-8);
}
.section-header { margin-bottom: var(--space-12); }
.section-header .section-p { margin-bottom: 0; }
.section-header.centered { text-align: center; }
.section-header.centered .section-p { margin: 0 auto; }

/* ── NAV ─────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 clamp(1rem, 4vw, 2rem);
  transition: background var(--transition), border-color var(--transition);
  border-bottom: 1px solid transparent;
}
.nav-scrolled {
  background: rgba(14,13,11,0.92);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
.nav-inner {
  max-width: 1160px; margin: 0 auto;
  display: flex; align-items: center; gap: var(--space-8);
  height: 64px;
}
.logo { display: flex; align-items: center; gap: var(--space-3); flex-shrink: 0; }
.logo-text {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 900;
  letter-spacing: -0.01em; color: var(--text);
}
.logo-accent { color: var(--amber); }
.nav-links {
  display: flex; align-items: center; gap: var(--space-8);
  margin-left: auto;
}
.nav-links a {
  font-size: var(--text-sm); color: var(--text-muted); font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: var(--space-3); margin-left: var(--space-6); }
@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }
}

/* ── HERO ─────────────────────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden; padding-top: 64px;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(245,166,35,0.07) 0%, transparent 70%);
}
.grid-svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Isometric unit blocks */
.yard-grid { position: absolute; inset: 0; pointer-events: none; }

.unit-block {
  position: absolute;
  width: 120px; height: 80px;
  transform-style: preserve-3d;
  transition: opacity var(--transition);
}
.unit-block:hover, .unit-hover { z-index: 10; }

/* Isometric faces */
.unit-roof {
  position: absolute; top: 0; left: 15px;
  width: 90px; height: 30px;
  background: var(--amber); opacity: 0.18;
  transform: skewX(-30deg);
  transition: opacity var(--transition);
}
.unit-face {
  position: absolute; top: 30px; left: 0;
  width: 60px; height: 50px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(245,166,35,0.2);
}
.unit-side {
  position: absolute; top: 30px; left: 60px;
  width: 45px; height: 50px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(245,166,35,0.1);
  transform: skewY(-20deg);
}
.unit-block:hover .unit-roof { opacity: 0.5; }
.unit-block:hover .unit-face { background: rgba(245,166,35,0.12); border-color: var(--amber-border); }
.unit-name {
  position: absolute; bottom: -22px; left: 0; right: 0; text-align: center;
  font-size: 0.6rem; font-family: var(--font-display); font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--amber); opacity: 0;
  transition: opacity var(--transition);
}
.unit-block:hover .unit-name { opacity: 1; }

/* Unit positions */
.unit-1 { top: 25%; left: 12%; }
.unit-2 { top: 18%; left: 28%; transform: scale(0.8); opacity: 0.5; }
.unit-3 { top: 35%; left: 22%; transform: scale(0.7); opacity: 0.4; }
.unit-4 { top: 20%; right: 15%; transform: scale(0.75); opacity: 0.45; }
.unit-5 { top: 40%; right: 22%; transform: scale(0.65); opacity: 0.35; }
.unit-6 { bottom: 25%; left: 18%; transform: scale(0.6); opacity: 0.3; }

.hero-content {
  position: relative; z-index: 1;
  max-width: 700px;
  padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 4vw, 2rem);
  margin-left: clamp(1rem, 6vw, 8rem);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: var(--space-2);
  background: var(--amber-glow); border: 1px solid var(--amber-border);
  color: var(--amber); font-size: var(--text-xs); font-weight: 600;
  letter-spacing: 0.04em; padding: 0.35rem 0.875rem; border-radius: 999px;
  margin-bottom: var(--space-6);
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 8px var(--amber);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}
.hero-h1 {
  font-family: var(--font-display);
  font-size: var(--text-3xl); font-weight: 900;
  letter-spacing: -0.02em; line-height: 0.95;
  margin-bottom: var(--space-6);
  text-transform: uppercase;
}
.hero-accent { color: var(--amber); display: block; }
.hero-sub {
  font-size: var(--text-base); color: var(--text-muted); line-height: 1.7;
  margin-bottom: var(--space-6); max-width: 55ch;
}
.hero-pills {
  display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-8);
}
.pill {
  background: var(--bg-card-2); border: 1px solid var(--border-hi);
  font-size: var(--text-xs); padding: 0.3rem 0.75rem; border-radius: 999px;
  color: var(--text-muted);
}
.pill-more { color: var(--amber); border-color: var(--amber-border); background: var(--amber-glow); }
.hero-cta-row { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-4); }
.hero-note { font-size: var(--text-xs); color: var(--text-faint); }

/* ── TRUST BAR ────────────────────────────────────────────────────────────── */
.trust-bar {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--space-4) clamp(1rem, 4vw, 2rem);
  overflow-x: auto;
}
.trust-inner {
  max-width: 1160px; margin: 0 auto;
  display: flex; align-items: center; gap: var(--space-8);
  justify-content: center; flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-sm); color: var(--text-muted); white-space: nowrap;
}
.trust-item svg { color: var(--amber); flex-shrink: 0; }

/* ── STREETS ─────────────────────────────────────────────────────────────── */
.streets-section {
  padding: clamp(5rem, 10vw, 8rem) 0;
}
.streets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-4);
}
.street-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-6);
  display: flex; flex-direction: column; gap: var(--space-3);
  position: relative; overflow: hidden;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}
.street-card:hover {
  border-color: var(--border-hi);
  background: var(--bg-card-2);
  transform: translateY(-2px);
}
.street-featured {
  border-color: var(--amber-border);
  background: linear-gradient(135deg, rgba(245,166,35,0.06) 0%, var(--bg-card) 60%);
  grid-column: span 1;
}
.street-featured::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--amber), transparent);
}
.street-icon { font-size: 2rem; line-height: 1; }
.street-name {
  font-family: var(--font-display); font-size: var(--text-lg);
  font-weight: 800; letter-spacing: 0.01em; color: var(--text);
}
.street-trade {
  font-size: var(--text-xs); color: var(--amber);
  font-weight: 600; letter-spacing: 0.05em;
  text-transform: uppercase;
}
.street-desc {
  font-size: var(--text-sm); color: var(--text-muted); line-height: 1.6;
  flex: 1;
}
.street-badge {
  align-self: flex-start;
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; padding: 0.25rem 0.625rem; border-radius: var(--r-sm);
}
.street-open { background: rgba(245,166,35,0.15); color: var(--amber); border: 1px solid var(--amber-border); }
.street-soon { background: rgba(255,255,255,0.05); color: var(--text-faint); border: 1px solid var(--border); }

/* ── HOW IT WORKS ─────────────────────────────────────────────────────────── */
.how-section {
  padding: clamp(5rem, 10vw, 8rem) 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.steps-row {
  display: flex; align-items: flex-start; gap: var(--space-4); flex-wrap: wrap;
}
.step {
  flex: 1; min-width: 180px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: var(--space-6);
  transition: border-color var(--transition), transform var(--transition);
}
.step:hover { border-color: var(--amber-border); transform: translateY(-2px); }
.step-num {
  font-family: var(--font-display); font-size: 3rem; font-weight: 900;
  color: var(--amber); opacity: 0.25; line-height: 1;
  margin-bottom: var(--space-2);
}
.step-icon { font-size: 1.75rem; margin-bottom: var(--space-3); }
.step h3 {
  font-family: var(--font-display); font-size: var(--text-lg); font-weight: 800;
  margin-bottom: var(--space-2);
}
.step p { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.65; }
.step-arrow {
  font-size: 1.5rem; color: var(--text-faint);
  align-self: center; padding-top: var(--space-8); flex-shrink: 0;
}
@media (max-width: 768px) { .step-arrow { display: none; } }

/* ── FOR MAKERS ─────────────────────────────────────────────────────────────── */
.makers-section { padding: clamp(5rem, 10vw, 8rem) 0; }
.makers-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
@media (max-width: 900px) { .makers-grid { grid-template-columns: 1fr; } }
.makers-text .section-p { color: var(--text-muted); line-height: 1.7; margin-bottom: var(--space-8); }
.makers-list { list-style: none; display: flex; flex-direction: column; gap: var(--space-4); margin-bottom: var(--space-8); }
.makers-list li {
  display: flex; align-items: center; gap: var(--space-3);
  font-size: var(--text-base); color: var(--text-muted);
}
.makers-list li svg { color: var(--amber); flex-shrink: 0; }

/* Unit showcase card */
.unit-showcase {
  background: var(--bg-card); border: 1px solid var(--amber-border);
  border-radius: var(--r-xl); padding: var(--space-6);
  box-shadow: 0 0 40px rgba(245,166,35,0.08);
}
.unit-header {
  display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-6);
}
.unit-showcase-name {
  font-family: var(--font-display); font-size: var(--text-lg); font-weight: 800;
}
.unit-showcase-trade { font-size: var(--text-xs); color: var(--amber); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.unit-status-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #22c55e; margin-left: auto;
  box-shadow: 0 0 8px rgba(34,197,94,0.6);
  animation: pulse-dot 2s ease-in-out infinite;
}
.unit-stats {
  display: flex; gap: var(--space-4); margin-bottom: var(--space-5);
  padding: var(--space-4); background: var(--bg); border-radius: var(--r-md);
}
.stat { flex: 1; text-align: center; }
.stat-val { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 800; color: var(--text); }
.stat-label { font-size: var(--text-xs); color: var(--text-faint); margin-top: 2px; }
.unit-services { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-6); }
.service-tag {
  background: var(--bg-card-2); border: 1px solid var(--border);
  font-size: var(--text-xs); padding: 0.25rem 0.625rem; border-radius: 999px;
  color: var(--text-muted);
}
.unit-cta {
  display: block; width: 100%; text-align: center;
  background: var(--amber); color: #0e0d0b;
  font-family: var(--font-display); font-weight: 800; font-size: var(--text-base);
  padding: 0.75rem; border-radius: var(--r-md);
  transition: background var(--transition);
}
.unit-cta:hover { background: #fdb832; }

/* ── JOIN SECTION ──────────────────────────────────────────────────────────── */
.join-section {
  padding: clamp(5rem, 10vw, 8rem) 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}
.join-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
@media (max-width: 900px) { .join-inner { grid-template-columns: 1fr; } }
.join-text .section-p { color: var(--text-muted); margin-bottom: 0; }

.join-form { display: flex; flex-direction: column; gap: var(--space-4); }
.form-row { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.form-row .form-input { flex: 1; min-width: 180px; }
.form-input {
  width: 100%;
  background: var(--bg); border: 1px solid var(--border);
  color: var(--text); font-size: var(--text-sm);
  padding: 0.75rem 1rem; border-radius: var(--r-md);
  transition: border-color var(--transition);
}
.form-input:focus { outline: none; border-color: var(--amber); }
.form-input::placeholder { color: var(--text-faint); }
.radio-label {
  flex: 1; min-width: 200px;
  display: flex; align-items: center; gap: var(--space-3);
  cursor: pointer; font-size: var(--text-sm); color: var(--text-muted);
  background: var(--bg); border: 1px solid var(--border);
  padding: 0.75rem 1rem; border-radius: var(--r-md);
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.radio-label:has(input:checked) {
  border-color: var(--amber-border); background: var(--amber-glow); color: var(--text);
}
.radio-label input[type=radio] { display: none; }
.radio-custom {
  width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid var(--border-hi);
  background: transparent;
  transition: border-color var(--transition), background var(--transition);
}
.radio-label:has(input:checked) .radio-custom {
  border-color: var(--amber);
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(245,166,35,0.25);
}
.form-note { font-size: var(--text-xs); color: var(--text-faint); text-align: center; }
.form-success {
  display: flex; align-items: center; justify-content: center; gap: var(--space-2);
  color: #22c55e; font-weight: 600; font-size: var(--text-base);
  padding: var(--space-4);
  background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.2);
  border-radius: var(--r-md);
}

/* ── FOOTER ───────────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 4vw, 2rem) clamp(1.5rem, 3vw, 2.5rem);
}
.footer-inner {
  max-width: 1160px; margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr 2fr; gap: clamp(2rem, 5vw, 4rem);
  margin-bottom: var(--space-12);
}
@media (max-width: 700px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-brand .logo { margin-bottom: var(--space-4); }
.footer-brand p { font-size: var(--text-sm); color: var(--text-faint); max-width: 30ch; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-8); }
@media (max-width: 500px) { .footer-links { grid-template-columns: 1fr 1fr; } }
.footer-col { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-col-title {
  font-family: var(--font-display); font-size: var(--text-xs); font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint);
  margin-bottom: var(--space-1);
}
.footer-col a { font-size: var(--text-sm); color: var(--text-faint); transition: color var(--transition); }
.footer-col a:hover { color: var(--amber); }
.footer-bottom {
  max-width: 1160px; margin: 0 auto;
  padding-top: var(--space-6); border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-3);
  font-size: var(--text-xs); color: var(--text-faint);
}
