/* ===== Wireframe CSS — MCUBEUSA Rebuild ===== */

:root {
  --wf-bg: #1a1a1a;
  --wf-surface: #2d2d2d;
  --wf-border: #444;
  --wf-text: #e0e0e0;
  --wf-text-muted: #999;
  --wf-primary: #00E5FF;
  --wf-primary-dim: rgba(0,229,255,0.15);
  --wf-bg-alt: #151515;
  --wf-radius: 8px;
  --wf-max-w: 1100px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Space Grotesk', 'Zen Kaku Gothic New', system-ui, sans-serif;
  background: var(--wf-bg);
  color: var(--wf-text);
  line-height: 1.6;
  min-height: 100vh;
}

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

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

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--wf-max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Header / Nav ---------- */
.wf-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26,26,26,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--wf-border);
}

.wf-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}

.wf-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--wf-text);
}

.wf-logo img { height: 40px; width: auto; }

.wf-nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.wf-nav-links a {
  color: var(--wf-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.wf-nav-links a:hover,
.wf-nav-links a.active {
  color: var(--wf-primary);
  text-decoration: none;
}

.wf-lang-toggle {
  display: inline-flex;
  border: 1px solid var(--wf-border);
  border-radius: 4px;
  overflow: hidden;
  font-size: 0.8rem;
}

.wf-lang-toggle span {
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  color: var(--wf-text-muted);
  transition: all 0.2s;
}

.wf-lang-toggle span.active {
  background: var(--wf-primary);
  color: #000;
  font-weight: 600;
}

/* Mobile nav toggle */
.wf-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--wf-border);
  color: var(--wf-text);
  padding: 0.35rem;
  border-radius: 4px;
  cursor: pointer;
  line-height: 0;
}

.wf-menu-btn svg {
  width: 22px;
  height: 22px;
}

/* ---------- Skip Link ---------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 200;
  padding: 0.5rem 1rem;
  background: var(--wf-primary);
  color: #000;
  font-weight: 600;
  border-radius: var(--wf-radius);
  text-decoration: none;
}

.skip-link:focus {
  top: 0.5rem;
}

/* ---------- Background Utility Classes ---------- */
.bg-overlay {
  background-attachment: fixed;
}

.bg-future-highway { background: linear-gradient(rgba(26,26,26,0.82), rgba(26,26,26,0.92)), url('../img/future_highway-bg.jpg') center/cover no-repeat; background-attachment: fixed; }
.bg-vaults { background: linear-gradient(rgba(26,26,26,0.82), rgba(26,26,26,0.92)), url('../img/vaults-bg.jpg') center/cover no-repeat; background-attachment: fixed; }
.bg-office { background: linear-gradient(rgba(26,26,26,0.82), rgba(26,26,26,0.92)), url('../img/office-bg.jpg') center/cover no-repeat; background-attachment: fixed; }
.bg-orchestrate { background: linear-gradient(rgba(26,26,26,0.82), rgba(26,26,26,0.92)), url('../img/orchestrate-bg.jpg') center/cover no-repeat; background-attachment: fixed; }
.bg-pictgrams { background: linear-gradient(rgba(26,26,26,0.82), rgba(26,26,26,0.92)), url('../img/pictgrams-bg.jpg') center/cover no-repeat; background-attachment: fixed; }
.bg-path { background: linear-gradient(rgba(26,26,26,0.82), rgba(26,26,26,0.92)), url('../img/path-bg.jpg') center/cover no-repeat; background-attachment: fixed; }
.bg-world { background: linear-gradient(rgba(26,26,26,0.82), rgba(26,26,26,0.92)), url('../img/world-bg.jpg') center/cover no-repeat; background-attachment: fixed; }
.bg-building { background: linear-gradient(rgba(26,26,26,0.82), rgba(26,26,26,0.92)), url('../img/building-bg.jpg') center/cover no-repeat; background-attachment: fixed; }
.bg-silverglass { background: linear-gradient(rgba(26,26,26,0.82), rgba(26,26,26,0.92)), url('../img/japanesesilverglass-bg.jpg') center/cover no-repeat; background-attachment: fixed; }
.bg-sky-birds { background: linear-gradient(rgba(26,26,26,0.82), rgba(26,26,26,0.92)), url('../img/sky-birds.jpg') center/cover no-repeat; background-attachment: fixed; }
.bg-school { background: linear-gradient(rgba(26,26,26,0.82), rgba(26,26,26,0.92)), url('../img/school-bg.png') center/cover no-repeat; background-attachment: fixed; }
.bg-infinite-room { background: linear-gradient(rgba(26,26,26,0.82), rgba(26,26,26,0.92)), url('../img/infinite_room-bg.jpg') center/cover no-repeat; background-attachment: fixed; }
.bg-manufacturing { background: linear-gradient(rgba(26,26,26,0.82), rgba(26,26,26,0.92)), url('../img/manufacturing-bg.jpg') center/cover no-repeat; background-attachment: fixed; }
.bg-machines { background: linear-gradient(rgba(26,26,26,0.82), rgba(26,26,26,0.92)), url('../img/machines-bg.jpg') center/cover no-repeat; background-attachment: fixed; }
.bg-space { background: linear-gradient(rgba(26,26,26,0.82), rgba(26,26,26,0.92)), url('../img/space-bg.jpg') center/cover no-repeat; background-attachment: fixed; }

/* ---------- Inline Style Utilities ---------- */
.text-center { text-align: center; }
.text-muted { color: var(--wf-text-muted); }
.text-sm { font-size: 0.85rem; }
.text-body { font-size: 0.9rem; }
.mb-md { margin-bottom: 1.5rem; }
.mr-sm { margin-right: 0.5rem; }
.grid-1col { grid-template-columns: 1fr; }

/* ---------- Hero ---------- */
.wf-hero {
  text-align: center;
  padding: 4rem 0 3rem;
  background: linear-gradient(rgba(26,26,26,0.82), rgba(26,26,26,0.92)), url('../img/home-bg.jpg') center/cover no-repeat;
  background-attachment: fixed;
}

.wf-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.wf-hero h1 .highlight { color: var(--wf-primary); }

.wf-hero .subtitle {
  font-size: 1.15rem;
  color: var(--wf-text-muted);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.wf-threed-container {
  width: 100%;
  max-width: 420px;
  height: 320px;
  margin: 0 auto 2rem;
  border-radius: var(--wf-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.wf-threed-container wt2-threed {
  width: 100%;
  height: 100%;
}

/* ---------- Sections ---------- */
.wf-section {
  padding: 3.5rem 0;
  border-top: 1px solid var(--wf-border);
}

.wf-section:nth-of-type(even) {
  background: var(--wf-bg-alt);
}

.wf-section-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.wf-section-subtitle {
  color: var(--wf-text-muted);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.wf-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--wf-primary);
  margin-bottom: 0.5rem;
}

/* ---------- Cards Grid ---------- */
.wf-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.wf-card {
  background: var(--wf-surface);
  border: 1px solid var(--wf-border);
  border-radius: var(--wf-radius);
  padding: 2rem 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}

.wf-cards-5 {
  grid-template-columns: repeat(3, 1fr);
}

.wf-cards-1-2 {
  grid-template-columns: 1fr 2fr;
}

.wf-card:hover {
  border-color: var(--wf-primary);
  transform: translateY(-2px);
}

.wf-card-icon {
  width: 48px;
  height: 48px;
  background: var(--wf-primary-dim);
  border-radius: var(--wf-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wf-primary);
  margin-bottom: 1rem;
}

.wf-card-icon svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.wf-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.wf-card p {
  color: var(--wf-text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.wf-card .wf-btn {
  font-size: 0.85rem;
}

/* ---------- Feature List ---------- */
.wf-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.wf-feature {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.wf-feature-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--wf-primary-dim);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wf-primary);
}

.wf-feature-icon svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.wf-feature h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.wf-feature p {
  font-size: 0.85rem;
  color: var(--wf-text-muted);
}

/* ---------- Placeholder Box ---------- */
.wf-placeholder {
  border: 2px dashed var(--wf-border);
  border-radius: var(--wf-radius);
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--wf-text-muted);
  font-size: 0.9rem;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(68,68,68,0.15) 10px,
    rgba(68,68,68,0.15) 20px
  );
}

/* ---------- Buttons ---------- */
.wf-btn {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  border-radius: var(--wf-radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-decoration: none;
}

.wf-btn:hover { text-decoration: none; }

.wf-btn-primary {
  background: var(--wf-primary);
  color: #000;
}

.wf-btn-primary:hover {
  background: #33ebff;
  color: #000;
}

.wf-btn-outline {
  background: transparent;
  border: 1px solid var(--wf-primary);
  color: var(--wf-primary);
}

.wf-btn-outline:hover {
  background: var(--wf-primary-dim);
}

/* ---------- CTA Banner ---------- */
.wf-section-cta {
  position: relative;
  overflow: hidden;
  z-index: 0;
}

.wf-section-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 50% at 20% 30%, rgba(0,229,255,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 80% 70%, rgba(0,229,255,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 70% 40% at 60% 10%, rgba(0,150,200,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 30% 80%, rgba(0,180,230,0.06) 0%, transparent 70%);
  animation: ctaMesh 12s ease-in-out infinite alternate;
}

@keyframes ctaMesh {
  0% {
    background-position: 0% 0%, 100% 100%, 50% 0%, 0% 100%;
    opacity: 0.7;
  }
  33% {
    background-position: 30% 20%, 70% 80%, 20% 40%, 80% 20%;
    opacity: 1;
  }
  66% {
    background-position: 60% 50%, 40% 30%, 80% 70%, 50% 60%;
    opacity: 0.8;
  }
  100% {
    background-position: 100% 100%, 0% 0%, 40% 90%, 70% 10%;
    opacity: 1;
  }
}

.wf-cta {
  background: var(--wf-surface);
  border: 1px solid var(--wf-border);
  border-radius: var(--wf-radius);
  padding: 3rem 2rem;
  text-align: center;
  margin: 2rem 0;
}

.wf-cta h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.wf-cta p {
  color: var(--wf-text-muted);
  margin-bottom: 1.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Pricing ---------- */
.wf-pricing {
  background: var(--wf-surface);
  border: 1px solid var(--wf-border);
  border-radius: var(--wf-radius);
  padding: 1.25rem 1.5rem;
  text-align: center;
  max-width: 320px;
  margin: 0 auto;
}

.wf-pricing .price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--wf-primary);
  margin: 0.5rem 0;
}

.wf-pricing .price span {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--wf-text-muted);
}

/* ---------- Demo Container ---------- */
.wf-demo-container {
  border: 1px solid var(--wf-border);
  border-radius: var(--wf-radius);
  padding: 1.5rem;
  background: var(--wf-surface);
}

.wf-demo-container mqtt-receiver {
  margin-bottom: 1.5rem;
}

/* ---------- Footer ---------- */
.wf-footer {
  border-top: 1px solid var(--wf-border);
  padding: 2.5rem 0;
  margin-top: 2rem;
  background: linear-gradient(rgba(26,26,26,0.82), rgba(26,26,26,0.92)), url('../img/cyber-bg.jpg') center/cover no-repeat;
  background-attachment: fixed;
}

.wf-footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}

.wf-footer h4 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  color: var(--wf-text);
}

.wf-footer ul {
  list-style: none;
}

.wf-footer li {
  margin-bottom: 0.4rem;
}

.wf-footer a {
  color: var(--wf-text-muted);
  font-size: 0.85rem;
}

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

.wf-footer-bottom {
  border-top: 1px solid var(--wf-border);
  margin-top: 2rem;
  padding-top: 1.5rem;
  text-align: center;
  color: var(--wf-text-muted);
  font-size: 0.8rem;
}

/* ---------- About Page ---------- */
.wf-timeline {
  position: relative;
  padding-left: 2rem;
}

.wf-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--wf-border);
}

.wf-timeline-item {
  position: relative;
  margin-bottom: 2rem;
  padding-left: 1rem;
}

.wf-timeline-item::before {
  content: '';
  position: absolute;
  left: -2.35rem;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--wf-primary);
  border: 2px solid var(--wf-bg);
}

.wf-timeline-item h4 {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.wf-timeline-item p {
  color: var(--wf-text-muted);
  font-size: 0.9rem;
}

/* ---------- Two-column layout ---------- */
.wf-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .wf-cards-5 { grid-template-columns: repeat(2, 1fr); }
  .wf-two-col { grid-template-columns: 1fr; }
  .wf-footer-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .wf-nav-links { display: none; }
  .wf-menu-btn { display: block; }
  .wf-nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--wf-bg);
    border-bottom: 1px solid var(--wf-border);
    padding: 1rem 1.5rem;
    gap: 0.75rem;
  }

  .wf-hero h1 { font-size: 1.75rem; }
  .wf-cards { grid-template-columns: 1fr; }
  .wf-cards-5 { grid-template-columns: 1fr; }
  .wf-cards-1-2 { grid-template-columns: 1fr; }
  .wf-features { grid-template-columns: 1fr; }
  .wf-two-col { grid-template-columns: 1fr; }
  .wf-threed-container { height: 240px; max-width: 100%; }

  /* Disable parallax on mobile — causes jank on iOS/Android */
  .wf-hero,
  .wf-footer,
  [class*="bg-"] {
    background-attachment: scroll !important;
  }
}

@media (max-width: 480px) {
  .wf-footer-inner { grid-template-columns: 1fr; }
}

/* ===== Prose (legal/text pages) ===== */
.wf-prose {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
  color: var(--wf-text);
}
.wf-prose h2 {
  color: var(--wf-primary);
  font-size: 1.4rem;
  margin: 2.5rem 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--wf-border);
}
.wf-prose h3 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.5rem;
}
.wf-prose p {
  margin: 0 0 1rem;
  color: var(--wf-muted);
}
.wf-prose ul {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
  color: var(--wf-muted);
}
.wf-prose li {
  margin-bottom: 0.4rem;
}
.wf-prose a {
  color: var(--wf-primary);
  text-decoration: underline;
}

/* ===== Cookie Consent Banner ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--wf-surface);
  border-top: 1px solid var(--wf-border);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
  padding: 1.25rem 0;
  animation: slideUp 0.3s ease-out;
}
.cookie-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.cookie-banner-inner p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--wf-muted);
  line-height: 1.5;
}
.cookie-banner-inner a {
  color: var(--wf-primary);
  text-decoration: underline;
}
.cookie-banner-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
@media (max-width: 768px) {
  .cookie-banner-inner {
    flex-direction: column;
    text-align: center;
  }
}
