/* ============================================================
   Teenage Engineering Design — DinBrudi Glasses Demo Landing
   Paper #F7F5F0 + Graph-Grid + UPPERCASE + 2px Black Borders +
   Hard Offset Shadows. Brille bleibt dunkles Hardware-Objekt.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  --paper: #F7F5F0;
  --paper-line: #e2dfd6;
  --ink: #000000;
  --ink-soft: #111418;
  --grey: #6b7280;
  --grey-soft: #9a9a9a;
  --white: #ffffff;
  --danger: #E63946;
  /* TE-Signature Accent — OP-1 Orange, plus Cream als Secondary */
  --te-orange: #FF6B00;
  --te-cream: #F5C200;
  --te-mint: #86E8B5;
  --shadow-default: 2px 2px 0px 0px #000000;
  --shadow-hover: 4px 4px 0px 0px #000000;
  --shadow-active: 0px 0px 0px 0px #000000;
  --radius: 4px;
  --font: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html, body {
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--paper-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--paper-line) 1px, transparent 1px);
  background-size: 24px 24px;
  background-attachment: fixed;
  color: var(--ink-soft);
  font-family: var(--font);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ===== Spec-Strip ganz oben — wie auf TE-Hardware ===== */
.spec-strip {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.spec-strip .strip-left,
.spec-strip .strip-right {
  display: flex;
  gap: 16px;
  align-items: center;
}
.spec-strip .strip-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--paper);
  margin-right: 4px;
  vertical-align: middle;
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* ===== Header ===== */
.page-header {
  margin-bottom: 48px;
}
.brand-row {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 12px;
  background: var(--te-orange);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 0;
  box-shadow: var(--shadow-default);
  margin-bottom: 24px;
}
.page-title {
  font-family: var(--font);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  line-height: 0.98;
  color: var(--ink);
  margin-bottom: 18px;
}
.page-tagline {
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.7;
  color: var(--grey);
  max-width: 640px;
  text-transform: none;
}
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 10px;
  background: var(--white);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 0;
}
.badge-live {
  background: var(--te-orange);
  color: var(--ink);
  box-shadow: var(--shadow-default);
}
.badge-live::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--ink);
  animation: tePulse 1s steps(2) infinite;
}
@keyframes tePulse { 50% { background: transparent; } }
.badge-spec {
  background: var(--paper);
  color: var(--grey);
}

/* ===== Lens Stage ===== */
.lens-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 64px;
  padding-top: 12px;
}

/* Spec-Label above the lens — like a hardware annotation */
.lens-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 16px;
}
.lens-label::before,
.lens-label::after {
  content: '';
  width: 60px;
  height: 2px;
  background: var(--ink);
}

.sensor-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 8px 28px;
  margin-bottom: -2px;
  background: var(--ink);
  border: 2px solid var(--ink);
  border-bottom: none;
  border-radius: 0;
  position: relative;
  z-index: 2;
}
.sensor {
  width: 18px;
  height: 4px;
  background: #2a2a2a;
}
.sensor-cam {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2a2a2a;
  box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.9);
}
.sensor-led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--te-orange);
  box-shadow: 0 0 8px var(--te-orange);
  animation: ledFlash 1.6s steps(2) infinite;
}
@keyframes ledFlash { 50% { background: #4a3010; box-shadow: 0 0 2px #4a3010; } }

.lens-frame {
  position: relative;
  padding: 20px;
  /* Slightly lighter than the inner glass — sonst verschmilzt der Frame mit der App.
     Auf der echten Brille ist der Frame schwarzes Hardware-Plastic, hier deuten wir
     das mit einem subtilen Charcoal-Gradient an. */
  background: linear-gradient(180deg, #2a2a2a 0%, #181818 100%);
  border: 2px solid var(--ink);
  border-radius: 0;
  box-shadow: var(--shadow-default);
}
.lens-glass {
  width: 600px;
  height: 600px;
  max-width: calc(100vw - 80px);
  aspect-ratio: 1 / 1;
  border-radius: 0;
  overflow: hidden;
  background: #000;
  position: relative;
  /* Klar abgesetzte Glass-Kante zur Frame */
  border: 2px solid var(--ink);
  box-shadow: inset 0 0 0 1px #2a2a2a;
}
.display-iframe {
  width: 600px;
  height: 600px;
  border: 0;
  display: block;
  transform-origin: top left;
  transform: scale(var(--display-scale, 1));
}

/* Bridge + Temple stubs als TE-Hardware-Details — deutlich sichtbar auf paper-bg */
.bridge-stub {
  position: absolute;
  left: -50px;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 22px;
  background: linear-gradient(90deg, #181818 0%, #2a2a2a 100%);
  border: 2px solid var(--ink);
  border-right: none;
  box-shadow: 2px 2px 0 0 var(--ink);
}
.temple-stub {
  position: absolute;
  right: -110px;
  top: 50%;
  transform: translateY(-50%);
  width: 110px;
  height: 26px;
  background: linear-gradient(270deg, #181818 0%, #2a2a2a 100%);
  border: 2px solid var(--ink);
  border-left: none;
  box-shadow: 2px 2px 0 0 var(--ink);
}

.hint {
  margin-top: 28px;
  font-size: 11px;
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
  text-align: center;
}
.hint kbd {
  display: inline-block;
  background: var(--white);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 0;
  box-shadow: 1px 1px 0px 0px var(--ink);
  padding: 1px 6px;
  font-family: var(--mono);
  font-size: 10px;
  margin: 0 3px;
}

/* ===== Info Grid ===== */
.section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 24px;
}
.section-title::before,
.section-title::after {
  content: '';
  flex: 1;
  height: 2px;
  background: var(--ink);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 56px;
}
.info-card {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-default);
  padding: 24px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.info-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.info-icon {
  font-size: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--te-orange);
  border: 2px solid var(--ink);
  border-radius: 50%;
  margin-bottom: 16px;
  box-shadow: var(--shadow-default);
}
/* Sekundäre Akzent-Variationen für die 3 Cards — wie TE-Produkte mit verschiedenen Knopffarben */
.info-card:nth-child(2) .info-icon { background: var(--te-cream); }
.info-card:nth-child(3) .info-icon { background: var(--te-mint); }
.info-card h2 {
  font-family: var(--font);
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
  color: var(--ink);
}
.info-card p {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--grey);
}
.info-card code {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  padding: 1px 5px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 0;
}

/* ===== Footer ===== */
.page-footer {
  padding-top: 32px;
  border-top: 2px solid var(--ink);
}
.page-footer p {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 6px;
}
.page-footer .link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  font-weight: 700;
}
.page-footer .link:hover { background: var(--ink); color: var(--paper); text-decoration: none; }

/* ===== 4 Mode-Tiles ===== */
.mode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-bottom: 56px;
}
.mode-tile {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-default);
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.mode-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.mode-tile-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 12px;
}
.mode-tile-num {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--grey);
}
.mode-tile-name {
  font-family: var(--font);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-transform: uppercase;
}
.mode-tile-visual {
  background: #000;
  border: 2px solid var(--ink);
  border-radius: 2px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 8px 12px;
}
.pump-mini {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  justify-content: center;
}
.arrow-mini {
  font-size: 32px;
  font-weight: 700;
  color: rgba(255,255,255,0.25);
  font-family: var(--font);
  line-height: 1;
}
.arrow-mini.active { color: var(--te-orange); animation: arrowBlink 1.2s steps(2) infinite; }
@keyframes arrowBlink { 50% { color: rgba(255,255,255,0.25); } }
.bpm-mini {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}
.slalom-mini {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
}
.slalom-mario-mini {
  position: relative;
  width: 100%;
  height: 100%;
}
.cone-mini {
  width: 14px;
  height: 14px;
  background: transparent;
  border: 2px solid #fff;
  transform: rotate(45deg);
  opacity: 0.45;
}
.cone-mini.active { background: var(--te-orange); border-color: var(--te-orange); opacity: 1; animation: conePulse 1.2s steps(2) infinite; }
@keyframes conePulse { 50% { opacity: 0.4; transform: rotate(45deg) scale(0.85); } }
.phase-mini {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}
.phase-word-mini {
  font-family: var(--font);
  font-size: 22px;
  font-weight: 700;
  color: var(--te-orange);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  line-height: 1;
}
.phase-bar-mini {
  width: 80%;
  height: 4px;
  border: 1px solid #fff;
  position: relative;
}
.phase-bar-mini span {
  display: block;
  height: 100%;
  width: 30%;
  background: var(--te-orange);
  animation: barFill 1.6s linear infinite;
}
@keyframes barFill { 0%{width:5%} 50%{width:85%} 100%{width:5%} }
.mode-tile-desc {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--grey);
  flex: 1;
}
.mode-tile-desc strong { color: var(--ink); font-weight: 700; }
.mode-tile-meta {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--grey);
  border-top: 2px solid var(--ink);
  padding-top: 10px;
}
.mode-tile-meta li {
  display: flex;
  justify-content: space-between;
  text-transform: uppercase;
}
.mode-tile-meta li span:last-child { color: var(--ink); font-weight: 700; }

/* ===== Pair Card ===== */
.pair-card {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-default);
  margin-bottom: 56px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0;
  overflow: hidden;
}
.pair-card-left {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  border-right: 2px solid var(--ink);
}
.pair-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.pair-step-num {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--te-orange);
  border: 2px solid var(--ink);
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 700;
  box-shadow: 2px 2px 0 0 var(--ink);
}
.pair-step-body h3 {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: var(--ink);
}
.pair-step-body p {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--grey);
}
.pair-step-body code {
  font-family: var(--mono);
  font-size: 11px;
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 0 4px;
  color: var(--ink);
  font-weight: 600;
}
.pair-card-right {
  padding: 24px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.qr-box {
  background: var(--white);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-default);
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.qr-image {
  width: 240px;
  height: 240px;
  display: block;
  background: var(--paper);
}
.qr-caption {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
}
.qr-meta {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.qr-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.qr-row span { color: var(--grey); }
.qr-row strong { color: var(--ink); font-weight: 700; }
.qr-fallback {
  width: 100%;
  font-family: var(--mono);
  font-size: 11px;
}
.qr-fallback summary {
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 6px 0;
  border-top: 2px solid var(--ink);
  margin-top: 4px;
}
.qr-url-block {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 8px;
}
.qr-url-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
}
.qr-url-block code {
  font-family: var(--mono);
  font-size: 10px;
  word-break: break-all;
  background: var(--white);
  border: 1px solid var(--ink);
  padding: 4px 6px;
  color: var(--ink);
}

/* ===== Why-Grid ===== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-bottom: 56px;
}
.why-card {
  background: var(--ink);
  color: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-default);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.why-num {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--te-orange);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 700;
  border: 2px solid var(--paper);
}
.why-card h2 {
  font-family: var(--font);
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.why-card p {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255,255,255,0.78);
}

/* ===== Mobile ===== */
@media (max-width: 720px) {
  .page { padding: 32px 16px 56px; }
  .meta-row { gap: 6px; }
  .meta-item, .badge { font-size: 9px; padding: 4px 8px; }
  .lens-frame { padding: 14px; }
  .bridge-stub, .temple-stub { display: none; }
  .spec-strip { font-size: 9px; padding: 8px 14px; }
  .spec-strip .strip-right { display: none; }
  .pair-card { grid-template-columns: 1fr; }
  .pair-card-left { border-right: none; border-bottom: 2px solid var(--ink); }
  .qr-image { width: 200px; height: 200px; }
}
