/* ============================================================
   Meloen Creations — Cyber Organic Design System
   ============================================================ */

:root {
  --deep-base: #121416;
  --workshop-slate: #1a1d20;
  --surface-elevated: #22262b;
  --cyber-melon: #2ee59d;
  --roasted-amber: #d4a373;
  --text-primary: #f8f9fa;
  --text-muted: #8b9198;
  --text-dim: #5c636a;
  --border-subtle: #2a2f35;
  --glow-melon: 0 0 20px rgba(46, 229, 157, 0.2), 0 0 40px rgba(46, 229, 157, 0.08);
  --glow-amber: 0 0 20px rgba(212, 163, 115, 0.2), 0 0 40px rgba(212, 163, 115, 0.08);
  --container: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--deep-base);
  color: var(--text-primary);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Layout ---------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section {
  padding-block: 6rem;
  position: relative;
}

.section-sm {
  padding-block: 4rem;
}

/* ---------- Background patterns ---------- */

.bg-circuit {
  background-image: url("assets/circuit-pattern.svg");
  background-repeat: repeat;
  background-size: 700px 525px;
  background-position: top left;
}

.bg-topo {
  background-image: url("assets/topo-pattern.svg");
  background-repeat: repeat;
  background-size: 700px 525px;
  background-position: center;
}

.bg-circuit-fade,
.bg-topo-fade {
  position: relative;
}

.bg-circuit-fade::before,
.bg-topo-fade::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.11;
  z-index: 0;
}

.bg-circuit-fade::before {
  background-image: url("assets/circuit-pattern.svg");
  background-repeat: repeat;
  background-size: 700px 525px;
}

.bg-topo-fade::before {
  background-image: url("assets/topo-pattern.svg");
  background-repeat: repeat;
  background-size: 800px 600px;
}

.bg-circuit-fade > *,
.bg-topo-fade > * {
  position: relative;
  z-index: 1;
}

/* ---------- Typography ---------- */

.label {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.headline {
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--text-primary);
  overflow-wrap: break-word;
  word-break: break-word;
}

.headline-xl {
  font-size: clamp(1.75rem, 4vw, 3rem);
}

.headline-lg {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.headline-md {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

.body-muted {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 36rem;
}

.mono {
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

/* ---------- Navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 20, 22, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.nav-brand img {
  width: 36px;
  height: 36px;
}

.nav-brand span {
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s ease, text-shadow 0.2s ease;
  position: relative;
  padding-bottom: 0.25rem;
}

.nav-links a:hover {
  color: var(--roasted-amber);
  text-shadow: 0 0 12px rgba(212, 163, 115, 0.45);
}

.nav-links a.active-iot {
  color: var(--cyber-melon);
  text-shadow: 0 0 12px rgba(46, 229, 157, 0.45);
}

.nav-links a.active-iot::after,
.nav-links a.active-fab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 1px;
}

.nav-links a.active-iot::after {
  background: var(--cyber-melon);
  box-shadow: 0 0 8px rgba(46, 229, 157, 0.6);
}

.nav-links a.active-fab {
  color: var(--roasted-amber);
  text-shadow: 0 0 12px rgba(212, 163, 115, 0.45);
}

.nav-links a.active-fab::after {
  background: var(--roasted-amber);
  box-shadow: 0 0 8px rgba(212, 163, 115, 0.6);
}

.nav-cta {
  display: none;
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 0.5rem;
  color: var(--text-primary);
  cursor: pointer;
}

.nav-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
  background: var(--deep-base);
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-menu a:hover,
.mobile-menu a.active-iot {
  color: var(--cyber-melon);
}

.mobile-menu a.active-fab {
  color: var(--roasted-amber);
}

@media (min-width: 900px) {
  .nav-links {
    display: flex;
  }

  .nav-cta {
    display: inline-flex;
  }

  .nav-toggle {
    display: none;
  }

  .mobile-menu {
    display: none !important;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  border-radius: 0.5rem;
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-melon {
  background-color: #2ee59d !important;
  background-image: none !important;
  color: #0a0c0d !important;
  box-shadow: 0 0 16px rgba(46, 229, 157, 0.35);
}

.btn-melon:hover {
  background-color: #3aefab !important;
  box-shadow: 0 0 28px rgba(46, 229, 157, 0.5);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-ghost:hover {
  border-color: var(--cyber-melon);
  color: var(--cyber-melon);
}

/* ---------- Glow cards ---------- */

.glow-card {
  background: var(--workshop-slate);
  border-radius: 1.5rem;
  border: 1px solid var(--border-subtle);
  padding: 1.75rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.glow-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/topo-pattern.svg");
  background-size: 500px 375px;
  opacity: 0.04;
  pointer-events: none;
}

.glow-card > * {
  position: relative;
  z-index: 1;
}

.glow-card:hover {
  transform: translateY(-4px);
}

.glow-card-melon {
  border-color: rgba(46, 229, 157, 0.35);
  box-shadow: var(--glow-melon);
}

.glow-card-melon:hover {
  border-color: var(--cyber-melon);
  box-shadow: 0 0 28px rgba(46, 229, 157, 0.3), 0 0 56px rgba(46, 229, 157, 0.1);
}

.glow-card-amber {
  border-color: rgba(212, 163, 115, 0.35);
  box-shadow: var(--glow-amber);
}

.glow-card-amber:hover {
  border-color: var(--roasted-amber);
  box-shadow: 0 0 28px rgba(212, 163, 115, 0.3), 0 0 56px rgba(212, 163, 115, 0.1);
}

.glow-card-dual {
  border-color: rgba(46, 229, 157, 0.25);
  box-shadow: var(--glow-melon), inset 0 0 40px rgba(212, 163, 115, 0.03);
}

/* ---------- Icon tiles ---------- */

.icon-tile {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  background: var(--surface-elevated);
}

.icon-tile svg {
  width: 1.75rem;
  height: 1.75rem;
}

.icon-tile-melon {
  color: var(--cyber-melon);
  box-shadow: 0 0 16px rgba(46, 229, 157, 0.2);
  border: 1px solid rgba(46, 229, 157, 0.3);
}

.icon-tile-amber {
  color: var(--roasted-amber);
  box-shadow: 0 0 16px rgba(212, 163, 115, 0.2);
  border: 1px solid rgba(212, 163, 115, 0.3);
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  gap: 3rem;
  align-items: center;
  padding-block: 4rem 5rem;
}

.hero > * {
  min-width: 0;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
    padding-block: 5rem 6rem;
    gap: 1.5rem;
  }
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}

.hero-visual svg {
  width: min(100%, 360px);
  height: auto;
  filter: drop-shadow(0 0 30px rgba(46, 229, 157, 0.2));
}

.hero-float {
  animation: float-bob 5s ease-in-out infinite;
  filter: drop-shadow(0 0 28px rgba(46, 229, 157, 0.25))
    drop-shadow(0 24px 40px rgba(0, 0, 0, 0.5));
}

@keyframes float-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

@keyframes scan-line {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(400%);
  }
}

.pulse-glow {
  animation: pulse-glow 3s ease-in-out infinite;
}

/* ---------- Grids ---------- */

.grid-3 {
  display: grid;
  gap: 1.5rem;
}

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

.grid-2 {
  display: grid;
  gap: 1.5rem;
}

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

/* ---------- Process / media frames ---------- */

.media-frame {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--workshop-slate);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.media-frame img,
.media-frame .media-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.media-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: linear-gradient(145deg, #1a1d20 0%, #15181b 50%, #1e2328 100%);
  position: relative;
  overflow: hidden;
}

.media-placeholder::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyber-melon), transparent);
  opacity: 0.35;
  animation: scan-line 4s linear infinite;
}

.media-caption {
  padding: 0.875rem 1rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  background: rgba(18, 20, 22, 0.6);
}

/* Featured overlapping grid (product design) */

.featured-stack {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
}

@media (min-width: 768px) {
  .featured-stack {
    grid-template-columns: repeat(3, 1fr);
    align-items: end;
  }

  .featured-stack .featured-card:nth-child(1) {
    transform: translateY(1.5rem);
  }

  .featured-stack .featured-card:nth-child(2) {
    transform: translateY(-0.5rem);
    z-index: 2;
  }

  .featured-stack .featured-card:nth-child(3) {
    transform: translateY(1rem);
  }
}

.featured-card {
  border-radius: 1rem;
  overflow: hidden;
  background: var(--workshop-slate);
  border: 1px solid var(--border-subtle);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-card:hover {
  transform: translateY(-6px) !important;
}

.featured-card-melon {
  box-shadow: 0 0 24px rgba(46, 229, 157, 0.22);
  border-color: rgba(46, 229, 157, 0.4);
}

.featured-card-amber {
  box-shadow: 0 0 24px rgba(212, 163, 115, 0.22);
  border-color: rgba(212, 163, 115, 0.4);
}

.featured-card .media-placeholder {
  aspect-ratio: 3 / 4;
}

.featured-meta {
  padding: 0.875rem 1rem;
  border-top: 1px solid var(--border-subtle);
}

.featured-meta strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.featured-meta span {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.03em;
}

/* ---------- Testimonials ---------- */

.trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem 3rem;
  margin-bottom: 3rem;
  opacity: 0.45;
}

.client-logo {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}

.quote-card {
  max-width: 42rem;
  margin-inline: auto;
  text-align: center;
  position: relative;
  padding: 2rem 1rem;
}

.quote-card p {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-primary);
  margin: 0;
}

.quote-mark {
  font-size: 5rem;
  line-height: 1;
  color: var(--border-subtle);
  position: absolute;
  right: 0;
  top: 0;
  font-family: Georgia, serif;
  pointer-events: none;
}

/* ---------- Dashboard (IoT) ---------- */

.dashboard {
  display: grid;
  gap: 1.25rem;
  background: var(--workshop-slate);
  border: 1px solid rgba(46, 229, 157, 0.25);
  border-radius: 1.25rem;
  padding: 1.25rem;
  box-shadow: var(--glow-melon);
}

@media (min-width: 900px) {
  .dashboard {
    grid-template-columns: 1.4fr 1fr;
    padding: 1.5rem;
  }
}

.dash-panel {
  background: var(--deep-base);
  border: 1px solid var(--border-subtle);
  border-radius: 0.875rem;
  overflow: hidden;
}

.dash-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyber-melon);
}

.dash-table {
  width: 100%;
  border-collapse: collapse;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.7rem;
}

.dash-table th,
.dash-table td {
  padding: 0.7rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.dash-table th {
  color: var(--text-dim);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.65rem;
}

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

.dash-table tr:last-child td {
  border-bottom: none;
}

.status-dot {
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  margin-right: 0.4rem;
  vertical-align: middle;
}

.status-online {
  background: var(--cyber-melon);
  box-shadow: 0 0 6px var(--cyber-melon);
}

.status-warn {
  background: var(--roasted-amber);
  box-shadow: 0 0 6px var(--roasted-amber);
}

.alert-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.alert-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.alert-list li:last-child {
  border-bottom: none;
}

.alert-check {
  width: 1rem;
  height: 1rem;
  border: 1px solid rgba(46, 229, 157, 0.5);
  border-radius: 0.2rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyber-melon);
  font-size: 0.65rem;
}

.alert-check.checked {
  background: rgba(46, 229, 157, 0.15);
}

/* ---------- Project cards (IoT focus) ---------- */

.project-row {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .project-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

.project-card {
  background: var(--workshop-slate);
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.project-card:hover {
  border-color: rgba(46, 229, 157, 0.45);
  box-shadow: var(--glow-melon);
  transform: translateY(-3px);
}

.project-card .media-placeholder {
  aspect-ratio: 16 / 10;
}

.project-body {
  padding: 1.25rem;
}

.project-body h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 650;
}

.project-body p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ---------- Services numbered cards ---------- */

.service-card {
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.service-card:hover {
  border-color: rgba(212, 163, 115, 0.45);
  background: rgba(26, 29, 32, 0.6);
}

.service-num {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  color: var(--roasted-amber);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  display: block;
}

.service-card h3 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.service-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding-block: 4rem 3rem;
  background: #0e1012;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-brand img {
  width: 32px;
  height: 32px;
}

.footer-brand span {
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-bio {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
  max-width: 18rem;
  line-height: 1.55;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-links a {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.social-links a:hover {
  color: var(--cyber-melon);
  border-color: rgba(46, 229, 157, 0.45);
}

.social-links svg {
  width: 1rem;
  height: 1rem;
}

.footer-col h4 {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 1.25rem;
  font-weight: 500;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-col a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

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

.availability {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 1rem;
  letter-spacing: 0.02em;
}

.availability .live-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--cyber-melon);
  box-shadow: 0 0 8px var(--cyber-melon);
  animation: pulse-glow 2s ease-in-out infinite;
  flex-shrink: 0;
}

.status-panel {
  background: var(--workshop-slate);
  border: 1px solid var(--border-subtle);
  border-radius: 0.75rem;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
}

.status-panel .status-label {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 0.6rem;
  display: block;
}

.status-panel .status-value {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--cyber-melon);
  font-weight: 500;
}

.gpg-link {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.gpg-link:hover {
  color: var(--cyber-melon);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

/* ---------- Utility ---------- */

.text-melon {
  color: var(--cyber-melon);
}

.text-amber {
  color: var(--roasted-amber);
}

.mt-2 {
  margin-top: 0.5rem;
}
.mt-3 {
  margin-top: 0.75rem;
}
.mt-4 {
  margin-top: 1rem;
}
.mt-6 {
  margin-top: 1.5rem;
}
.mt-8 {
  margin-top: 2rem;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-3 {
  margin-bottom: 0.75rem;
}
.mb-4 {
  margin-bottom: 1rem;
}
.mb-6 {
  margin-bottom: 1.5rem;
}
.mb-8 {
  margin-bottom: 2rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Code editor mock visual */
.code-mock {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.65rem;
  line-height: 1.65;
  padding: 1.25rem;
  text-align: left;
  width: 100%;
  height: 100%;
  color: var(--text-muted);
}

.code-mock .kw {
  color: #c792ea;
}
.code-mock .str {
  color: var(--cyber-melon);
}
.code-mock .num {
  color: var(--roasted-amber);
}
.code-mock .cm {
  color: var(--text-dim);
}
.code-mock .fn {
  color: #82aaff;
}

/* Subtle page entrance */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fade-up 0.7s ease both;
}

.animate-in-delay-1 {
  animation-delay: 0.1s;
}
.animate-in-delay-2 {
  animation-delay: 0.2s;
}
.animate-in-delay-3 {
  animation-delay: 0.3s;
}

/* ---------- Woodworking page ---------- */

.ww-hero-split {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
}

@media (min-width: 900px) {
  .ww-hero-split {
    grid-template-columns: 1.65fr 1fr;
    gap: 1.25rem;
    align-items: stretch;
  }
}

.ww-hero-main {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(212, 163, 115, 0.35);
  box-shadow: var(--glow-amber);
  background: var(--workshop-slate);
  min-height: 280px;
}

.ww-hero-main .media-placeholder {
  aspect-ratio: 16 / 10;
  height: 100%;
}

.ww-tech-stack {
  display: grid;
  gap: 1rem;
}

.ww-tech-panel {
  background: var(--workshop-slate);
  border: 1px solid rgba(212, 163, 115, 0.3);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 0 18px rgba(212, 163, 115, 0.12);
  display: flex;
  flex-direction: column;
}

.ww-tech-panel .media-placeholder {
  aspect-ratio: 16 / 9;
  flex: 1;
}

.ww-tech-panel .media-caption {
  color: var(--roasted-amber);
}

.ww-feature-card {
  background: var(--workshop-slate);
  border: 1px solid rgba(212, 163, 115, 0.35);
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: var(--glow-amber);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.ww-feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--roasted-amber);
  box-shadow: 0 0 28px rgba(212, 163, 115, 0.28);
}

.ww-feature-card .media-placeholder {
  aspect-ratio: 4 / 3;
}

.ww-feature-num {
  position: absolute;
  top: 0.85rem;
  right: 1rem;
  z-index: 2;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  color: var(--roasted-amber);
  letter-spacing: 0.06em;
}

.ww-feature-body {
  padding: 1.1rem 1.25rem 1.35rem;
  border-top: 1px solid var(--border-subtle);
}

.ww-feature-body h3 {
  margin: 0 0 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ww-feature-body p {
  margin: 0;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.showcase-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .showcase-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.showcase-grid .media-frame {
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.showcase-grid .media-frame:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 163, 115, 0.45);
  box-shadow: 0 0 20px rgba(212, 163, 115, 0.15);
}

.showcase-grid .media-placeholder {
  aspect-ratio: 4 / 3;
}

.showcase-captions {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .showcase-captions {
    grid-template-columns: repeat(3, 1fr);
  }
}

.showcase-captions span {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.workshop-pill {
  max-width: 52rem;
  margin-inline: auto;
  text-align: center;
  padding: 1.25rem 2rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 163, 115, 0.35);
  background: rgba(26, 29, 32, 0.85);
  box-shadow: 0 0 24px rgba(212, 163, 115, 0.1);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: clamp(0.65rem, 1.6vw, 0.8rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.workshop-pill .eq-label {
  color: var(--roasted-amber);
}

.section-center {
  text-align: center;
}

.section-center .headline {
  margin-bottom: 2rem;
}

/* ---------- Contact page ---------- */

.contact-section {
  padding-block: 3.5rem 5rem;
}

.contact-layout {
  display: grid;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .contact-layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 2.5rem;
  }
}

.contact-form-col > .headline {
  max-width: 36rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-block {
  margin: 0;
  padding: 1.35rem 1.35rem 1.5rem;
  border-radius: 1.15rem;
  background: var(--workshop-slate);
  border: 1px solid var(--border-subtle);
  min-width: 0;
}

.form-block-melon {
  border-color: rgba(46, 229, 157, 0.4);
  box-shadow: var(--glow-melon);
}

.form-block-amber,
.form-block-focus-amber {
  border-color: rgba(212, 163, 115, 0.45);
  box-shadow: var(--glow-amber);
}

.form-block-focus-melon {
  border-color: rgba(46, 229, 157, 0.45);
  box-shadow: var(--glow-melon);
}

.form-step-label {
  padding: 0 0.35rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyber-melon);
  float: none;
  width: auto;
}

.form-step-label-amber,
.form-block-amber > .form-step-label,
.form-block-focus-amber > .form-step-label {
  color: var(--roasted-amber);
}

.form-step-label .step-num {
  opacity: 0.85;
  margin-right: 0.25rem;
}

.form-fields {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.75rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.field-label {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  background: var(--deep-base);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 0.65rem;
  padding: 0.8rem 0.95rem;
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1.4;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
  resize: vertical;
  min-height: 6rem;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238B9198' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.95rem center;
  padding-right: 2.25rem;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-dim);
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: rgba(46, 229, 157, 0.35);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--cyber-melon);
  box-shadow: 0 0 0 1px rgba(46, 229, 157, 0.35), 0 0 16px rgba(46, 229, 157, 0.15);
}

.form-block-amber .field input:focus,
.form-block-amber .field select:focus,
.form-block-amber .field textarea:focus,
.form-block-focus-amber .field input:focus,
.form-block-focus-amber .field select:focus,
.form-block-focus-amber .field textarea:focus {
  border-color: var(--roasted-amber);
  box-shadow: 0 0 0 1px rgba(212, 163, 115, 0.4), 0 0 16px rgba(212, 163, 115, 0.15);
}

/* Radio cards */
.radio-cards {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.radio-card {
  cursor: pointer;
  display: block;
}

.radio-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-card-ui {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1.1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border-subtle);
  background: var(--deep-base);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.radio-dot {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 1.5px solid var(--text-dim);
  flex-shrink: 0;
  position: relative;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.radio-dot::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: transparent;
  transition: background 0.2s ease;
}

.radio-card-text {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.35;
}

.radio-card:hover .radio-card-ui {
  border-color: rgba(46, 229, 157, 0.35);
}

.radio-card input:focus-visible + .radio-card-ui {
  outline: 2px solid var(--cyber-melon);
  outline-offset: 2px;
}

.radio-card input:checked + .radio-card-ui {
  border-color: var(--cyber-melon);
  box-shadow: 0 0 16px rgba(46, 229, 157, 0.2);
  background: rgba(46, 229, 157, 0.04);
}

.radio-card input:checked + .radio-card-ui .radio-dot {
  border-color: var(--cyber-melon);
  box-shadow: 0 0 8px rgba(46, 229, 157, 0.55);
}

.radio-card input:checked + .radio-card-ui .radio-dot::after {
  background: var(--cyber-melon);
}

.radio-card input:checked + .radio-card-ui .radio-card-text {
  color: var(--text-primary);
}

/* Amber checked state for fabrication radios via sibling context */
#type-product:checked + .radio-card-ui,
#type-woodworking:checked + .radio-card-ui {
  border-color: var(--roasted-amber);
  box-shadow: 0 0 16px rgba(212, 163, 115, 0.22);
  background: rgba(212, 163, 115, 0.04);
}

#type-product:checked + .radio-card-ui .radio-dot,
#type-woodworking:checked + .radio-card-ui .radio-dot {
  border-color: var(--roasted-amber);
  box-shadow: 0 0 8px rgba(212, 163, 115, 0.55);
}

#type-product:checked + .radio-card-ui .radio-dot::after,
#type-woodworking:checked + .radio-card-ui .radio-dot::after {
  background: var(--roasted-amber);
}

/* Upload zone */
.upload-zone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 8.5rem;
  padding: 1.25rem;
  border-radius: 0.75rem;
  border: 1.5px dashed rgba(212, 163, 115, 0.45);
  background: var(--deep-base);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-zone:hover,
.upload-zone.is-dragover,
.upload-zone:focus-within {
  border-color: var(--roasted-amber);
  box-shadow: 0 0 18px rgba(212, 163, 115, 0.18);
  background: rgba(212, 163, 115, 0.04);
}

.upload-zone.has-file {
  border-style: solid;
  border-color: var(--cyber-melon);
}

.upload-icon {
  width: 2rem;
  height: 2rem;
  color: var(--roasted-amber);
}

.upload-icon svg {
  width: 100%;
  height: 100%;
}

.upload-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.upload-hint {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}

.upload-filename {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  color: var(--cyber-melon);
  margin-top: 0.35rem;
  word-break: break-all;
}

/* Checks */
.robot-check,
.privacy-check {
  display: block;
  cursor: pointer;
}

.robot-check input,
.privacy-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.robot-check-ui,
.privacy-check-ui {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.robot-check-ui {
  padding: 0.95rem 1.1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border-subtle);
  background: var(--workshop-slate);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.robot-box,
.privacy-box {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 0.3rem;
  border: 1.5px solid var(--text-dim);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.robot-box::after,
.privacy-box::after {
  content: "";
  width: 0.45rem;
  height: 0.7rem;
  border: solid transparent;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

.robot-check input:checked + .robot-check-ui {
  border-color: var(--cyber-melon);
  box-shadow: 0 0 14px rgba(46, 229, 157, 0.18);
}

.robot-check input:checked + .robot-check-ui .robot-box,
.privacy-check input:checked + .privacy-check-ui .privacy-box {
  border-color: var(--cyber-melon);
  background: rgba(46, 229, 157, 0.15);
  box-shadow: 0 0 8px rgba(46, 229, 157, 0.35);
}

.robot-check input:checked + .robot-check-ui .robot-box::after,
.privacy-check input:checked + .privacy-check-ui .privacy-box::after {
  border-color: var(--cyber-melon);
}

.robot-check input:focus-visible + .robot-check-ui,
.privacy-check input:focus-visible + .privacy-check-ui {
  outline: 2px solid var(--cyber-melon);
  outline-offset: 2px;
}

.btn-submit {
  width: 100%;
  padding: 1rem 1.25rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin-top: 0.25rem;
}

.form-note {
  font-size: 0.68rem;
  color: var(--text-dim);
  letter-spacing: 0.03em;
  margin: 0;
  text-align: center;
}

.form-note a {
  color: var(--cyber-melon);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-alert {
  border-radius: 1.15rem;
  padding: 1.75rem 1.5rem;
  margin-bottom: 1.5rem;
}

.form-alert-success {
  background: var(--workshop-slate);
  border: 1px solid rgba(46, 229, 157, 0.45);
  box-shadow: var(--glow-melon);
}

.form-alert-error {
  background: var(--workshop-slate);
  border: 1px solid rgba(212, 163, 115, 0.5);
  box-shadow: var(--glow-amber);
}

/* Contact illustration */
.contact-visual {
  display: none;
  position: sticky;
  top: 5.5rem;
  border-radius: 1.5rem;
  min-height: 420px;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .contact-visual {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.contact-illustration {
  width: 100%;
  padding: 1.5rem;
  filter: drop-shadow(0 0 28px rgba(46, 229, 157, 0.18));
}

.contact-svg {
  width: 100%;
  height: auto;
  max-height: 520px;
}
