/* ============================================================
   DinBrudi Glasses · App-Suite Landing
   TE-Lab-Style — Paper-Background mit Graph-Grid, 2px Borders,
   harte Offset-Shadows. Visuell konsistent mit glasses-app-demo.
   ============================================================ */

@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-orange: #FF6B00;
  --te-cream: #F5C200;
  --te-mint: #86E8B5;
  --te-violet: #B591F7;
  --shadow-default: 2px 2px 0px 0px #000000;
  --shadow-hover: 4px 4px 0px 0px #000000;
  --shadow-active: 0px 0px 0px 0px #000000;
  --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;
}

a { color: inherit; }
code {
  font-family: var(--mono);
  font-size: 0.92em;
  background: var(--white);
  border: 1px solid var(--ink);
  padding: 1px 5px;
  border-radius: 2px;
}

/* ===== Spec-Strip oben ===== */
.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;
  animation: tePulse 1.4s steps(2) infinite;
}

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

/* ===== Hero ===== */
.page-header { margin-bottom: 56px; }
.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);
  box-shadow: var(--shadow-default);
  margin-bottom: 24px;
}
.page-title {
  font-family: var(--font);
  font-size: clamp(40px, 6.5vw, 72px);
  font-weight: 700;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  line-height: 0.96;
  color: var(--ink);
  margin-bottom: 20px;
}
.page-tagline {
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.7;
  color: var(--grey);
  max-width: 680px;
}
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

/* ===== Badges ===== */
.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);
}
.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;
}
.badge-spec { background: var(--paper); color: var(--grey); }
.badge-beta { background: var(--te-cream); color: var(--ink); box-shadow: var(--shadow-default); }
.badge-soon { background: var(--white); color: var(--grey); }
@keyframes tePulse { 50% { background: transparent; } }

/* ===== App-Grid ===== */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 64px;
}
@media (max-width: 760px) {
  .apps-grid { grid-template-columns: 1fr; }
  .page { padding: 36px 16px 56px; }
}

.app-card {
  background: var(--white);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-default);
  padding: 22px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.app-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-hover);
}
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card-num {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--grey);
}
.card-title {
  font-family: var(--font);
  font-size: clamp(28px, 3.6vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 0.96;
  color: var(--ink);
  margin: 4px 0 6px;
}
.card-tagline {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.65;
  color: var(--grey);
}
.card-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}
.card-features li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.bullet {
  display: inline-block;
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  background: var(--te-orange);
  border: 1.5px solid var(--ink);
  transform: rotate(45deg);
  margin-top: 4px;
}
.card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px dashed var(--paper-line);
}
.spec-chip {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 7px;
  background: var(--paper);
  color: var(--grey);
  border: 1px solid var(--paper-line);
}
.card-cta {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-default);
  transition: transform 100ms ease, box-shadow 100ms ease;
}
.card-cta:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-hover);
  background: var(--te-orange);
  color: var(--ink);
}
.card-cta:active {
  transform: translate(0, 0);
  box-shadow: var(--shadow-active);
}
.card-cta-muted {
  background: var(--paper);
  color: var(--ink);
}
.card-cta-muted:hover {
  background: var(--te-cream);
}
.cta-arrow { font-size: 14px; }
.card-detail-link {
  margin-top: 4px;
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--grey);
  text-decoration: none;
  letter-spacing: 0.04em;
}
.card-detail-link:hover { color: var(--te-orange); }

/* ===== Hardware-Block ===== */
.hw-block {
  border: 2px solid var(--ink);
  background: var(--white);
  margin-bottom: 56px;
  box-shadow: var(--shadow-default);
}
.hw-head {
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
}
.hw-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.hw-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
@media (max-width: 760px) {
  .hw-grid { grid-template-columns: repeat(2, 1fr); }
}
.hw-cell {
  padding: 18px 16px;
  border-right: 1px solid var(--paper-line);
  border-bottom: 1px solid var(--paper-line);
}
.hw-cell:nth-child(4n) { border-right: none; }
.hw-cell:nth-last-child(-n+4):not(:nth-child(4n+1):nth-last-child(-n+1)) {
  /* last row bottom-border off — best-effort, ok at 4 cells */
}
.hw-grid > .hw-cell:nth-last-child(-n+4) { border-bottom: none; }
@media (max-width: 760px) {
  .hw-cell:nth-child(2n) { border-right: none; }
  .hw-cell:nth-child(2n+1) { border-right: 1px solid var(--paper-line); }
  .hw-grid > .hw-cell:nth-last-child(-n+2) { border-bottom: none; }
}
.hw-cell-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 6px;
}
.hw-cell-value {
  font-family: var(--font);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 4px;
}
.hw-cell-note {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--grey);
  line-height: 1.5;
}

/* ===== Footer ===== */
.page-footer {
  padding-top: 24px;
  border-top: 2px solid var(--ink);
}
.footer-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}
@media (max-width: 760px) {
  .footer-row { grid-template-columns: 1fr; gap: 16px; }
}
.footer-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 6px;
}
.footer-text {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.65;
  color: var(--ink-soft);
}
.footer-text a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--te-orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.footer-text a:hover { color: var(--te-orange); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
  padding-top: 16px;
  border-top: 1px dashed var(--paper-line);
}
.footer-spacer { color: var(--paper-line); }
