/* Reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* NERDS Color Palette - extracted from screenshot */
:root {
  --nerds-yellow: #ffc107;
  --nerds-yellow-hover: #e5ac00;
  --nerds-black: #1a1a1a;
  --nerds-white: #ffffff;
  --nerds-bg: #f6f6f6;
  --nerds-gray: #666666;
  --nerds-gray-light: #999999;
  --nerds-border: #e5e5e5;
  --nerds-shadow: rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --radius-sm: 8px;
}

/* Global */
body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--nerds-bg);
  color: var(--nerds-black);
  min-height: 100vh;
  line-height: 1.5;
}

/* Header */
.top-bar {
  background: var(--nerds-yellow);
  padding: 16px 24px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: 50px;
  background: var(--nerds-white);
  border: 2px solid var(--nerds-black);
}

.brand-pill img {
  height: 28px;
  width: auto;
  object-fit: contain;
  display: block;
}

.badge-demo {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 50px;
  background: var(--nerds-black);
  color: var(--nerds-white);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Hero Section */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 0;
  text-align: center;
}

.hero-title {
  font-family: "Nunito", sans-serif;
  font-size: 40px;
  font-weight: 800;
  color: var(--nerds-black);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.hero-title .highlight {
  background: linear-gradient(
    135deg,
    var(--nerds-yellow) 0%,
    #ffd54f 50%,
    #ffa000 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 16px;
  color: var(--nerds-gray);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
  font-family: "Inter", sans-serif;
}

/* Main Layout */
.main-layout {
  max-width: 1100px;
  margin: 48px auto 64px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  align-items: stretch;
}

/* Card Base */
.card {
  background: var(--nerds-white);
  border: 2px solid var(--nerds-border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 4px 20px rgba(255, 193, 7, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 193, 7, 0.2);
}

/* Viewer Card */
.viewer-card {
  display: flex;
  flex-direction: column;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.chip {
  font-size: 11px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 50px;
  background: var(--nerds-yellow);
  border: none;
  color: var(--nerds-black);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.status {
  font-size: 12px;
  color: var(--nerds-gray);
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Model Viewer */
model-viewer {
  width: 100%;
  height: 420px;
  border-radius: var(--radius-sm);
  background: #f5f5f5;
  border: 1px solid var(--nerds-border);
}

.ar-button {
  background: var(--nerds-black);
  color: var(--nerds-white);
  border: none;
  padding: 10px 22px;
  border-radius: 50px;
  font-family: "Nunito", sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ar-button:hover {
  background: var(--nerds-yellow);
  color: var(--nerds-black);
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 193, 7, 0.4);
}

.viewer-hint {
  margin-top: 12px;
  font-size: 13px;
  color: var(--nerds-gray-light);
  text-align: center;
}

.model-error {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #991b1b;
  font-size: 13px;
}

/* QR Card */
.qr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.qr-title {
  font-family: "Nunito", sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--nerds-black);
  margin-bottom: 12px;
}

.qr-desc {
  font-size: 14px;
  color: var(--nerds-gray);
  margin-bottom: 24px;
  max-width: 280px;
}

.qr-box {
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--nerds-white);
  border: 2px solid var(--nerds-border);
}

.qr-box canvas,
.qr-box img {
  display: block;
}

.qr-note {
  margin-top: 20px;
  font-size: 12px;
  color: var(--nerds-gray-light);
  max-width: 240px;
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    padding: 36px 24px 0;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 15px;
  }

  .main-layout {
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 24px auto 40px;
  }

  model-viewer {
    height: 340px;
  }

  .top-bar {
    justify-content: center;
    padding: 14px 16px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 28px 16px 0;
  }

  .hero-title {
    font-size: 24px;
  }

  .hero-subtitle {
    font-size: 14px;
  }

  .main-layout {
    padding: 0 16px;
  }

  .brand-pill {
    padding: 8px 16px;
  }

  .brand-pill img {
    height: 24px;
    width: auto;
  }

  .card {
    padding: 16px;
  }

  model-viewer {
    height: 300px;
  }

  .qr-title {
    font-size: 16px;
  }
}

/* LANGUAGE SWITCH */
.lang-switch {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}

.lang-btn {
  padding: 6px 14px;
  border-radius: 50px;
  border: 2px solid var(--nerds-black);
  background: var(--nerds-white);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn:hover {
  background: var(--nerds-yellow);
}

.lang-btn.active {
  background: var(--nerds-black);
  color: var(--nerds-white);
}
