/* ============================================================
   TCEDV Fernwartung — Client Landing
   Editorial Architect. Asymmetric precision, no-line rule,
   glass+gradient, signature red accent bars.
   ============================================================ */

:root {
  /* Brand */
  --tc-navy: #191E36;
  --tc-navy-2: #232847;
  --tc-navy-3: #0d1020;
  --tc-red: #E2062A;
  --tc-red-dark: #b30520;

  /* Surface system (Material-3 layered) */
  --surface-0: #0d1020;
  --surface-1: #191E36;
  --surface-2: #232847;
  --surface-3: #2c3253;
  --surface-light: #fcfcfd;
  --surface-light-2: #f2f4f6;
  --surface-light-3: #e8ebf0;

  /* On-surface (not pure black/white) */
  --on-dark: #eef0f5;
  --on-dark-muted: #a0a6bd;
  --on-dark-subtle: #6b7290;
  --on-light: #191c1e;
  --on-light-muted: #44474e;

  /* Rules */
  --outline: rgba(255, 255, 255, 0.08);
  --outline-light: rgba(25, 30, 54, 0.08);

  /* Type */
  --font-display: 'Manrope', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --track-tight: -0.02em;
  --track-tightest: -0.035em;
  --track-wide: 0.15em;
  --track-widest: 0.22em;

  /* Grid */
  --page-max: 1280px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-y: clamp(64px, 10vh, 128px);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--surface-0);
  color: var(--on-dark);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Grain overlay for atmosphere */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.05 0'/></filter><rect width='140' height='140' filter='url(%23n)'/></svg>");
  opacity: 0.55;
  mix-blend-mode: overlay;
  z-index: 0;
}

main { position: relative; z-index: 1; }

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

/* ============================================================
   HEADER
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(13, 16, 32, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--outline);
}
.site-header__inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 16px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 96px;
}
.brand img {
  display: block;
  height: 56px;
  width: auto;
}
@media (min-width: 1024px) {
  .brand img { height: 64px; }
}
.site-nav {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 13px;
}
.site-nav__label {
  text-transform: uppercase;
  letter-spacing: var(--track-wide);
  font-size: 10px;
  color: var(--on-dark-subtle);
  font-weight: 600;
}
.site-nav__link {
  font-family: var(--font-mono);
  color: var(--on-dark);
  border-bottom: 1px solid transparent;
  transition: border-color 180ms ease, color 180ms ease;
}
.site-nav__link:hover {
  border-bottom-color: var(--tc-red);
  color: #ffffff;
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  padding: clamp(80px, 14vh, 180px) var(--gutter) clamp(100px, 16vh, 200px);
  max-width: var(--page-max);
  margin: 0 auto;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 900px;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: var(--track-widest);
  color: var(--on-dark-muted);
  font-weight: 600;
  animation: fade-up 700ms cubic-bezier(0.4, 0, 0.2, 1) both;
}
.eyebrow-bar {
  display: inline-block;
  width: 42px;
  height: 2px;
  background: var(--tc-red);
}
.eyebrow-text { white-space: nowrap; }

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 9vw, 7rem);
  line-height: 0.96;
  letter-spacing: var(--track-tightest);
  margin: 0;
  color: #ffffff;
  animation: fade-up 800ms cubic-bezier(0.4, 0, 0.2, 1) 100ms both;
}
.hero__title-line { display: block; }
.hero__title-accent {
  display: block;
  font-weight: 500;
  font-style: italic;
  font-size: 0.56em;
  color: var(--on-dark-muted);
  letter-spacing: -0.02em;
  margin-top: 12px;
}

.hero__lead {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  max-width: 600px;
  color: var(--on-dark);
  margin: 8px 0 0;
  animation: fade-up 800ms cubic-bezier(0.4, 0, 0.2, 1) 200ms both;
}
.hero__lead--muted {
  color: var(--on-dark-muted);
  font-size: 0.88em;
}

.hero__meta {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 28px 40px;
  padding-top: 32px;
  animation: fade-up 800ms cubic-bezier(0.4, 0, 0.2, 1) 320ms both;
}
.hero__meta-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.hero__meta-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: var(--track-widest);
  color: var(--on-dark-subtle);
  font-weight: 600;
}
.hero__meta-value {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--on-dark);
  background: transparent;
  padding: 0;
  border: none;
}

.hero__architecture {
  position: absolute;
  right: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  width: 260px;
  height: 260px;
  pointer-events: none;
}
.arch-line {
  position: absolute;
  background: var(--tc-red);
}
.arch-line--1 {
  top: 0;
  right: 0;
  width: 2px;
  height: 64%;
  animation: grow-y 1200ms cubic-bezier(0.4, 0, 0.2, 1) 500ms both;
}
.arch-line--2 {
  bottom: 0;
  right: 0;
  height: 2px;
  width: 80%;
  animation: grow-x 1200ms cubic-bezier(0.4, 0, 0.2, 1) 700ms both;
}
.arch-dot {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 10px;
  height: 10px;
  background: var(--tc-red);
  border-radius: 2px;
  animation: pop-in 400ms cubic-bezier(0.34, 1.56, 0.64, 1) 1400ms both;
}

@media (max-width: 1024px) {
  .hero__architecture { display: none; }
}

/* ============================================================
   SECTION MARKERS
   ============================================================ */

.section-marker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--on-dark-subtle);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  margin-bottom: 12px;
}
.section-marker--dark { color: var(--on-light-muted); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: var(--track-tight);
  line-height: 1.05;
  margin: 0 0 8px;
  color: #ffffff;
}

/* ============================================================
   VARIANTS (Downloads)
   ============================================================ */

.variants {
  padding: var(--section-y) var(--gutter);
  max-width: var(--page-max);
  margin: 0 auto;
  background: linear-gradient(180deg, var(--surface-0) 0%, var(--surface-1) 100%);
  border-radius: 0;
}
.variants__header {
  margin-bottom: 48px;
}
.variants__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.variant {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--outline);
  border-radius: 16px;
  padding: 32px 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
  transition: background-color 240ms cubic-bezier(0.4, 0, 0.2, 1),
              border-color 240ms ease,
              transform 240ms cubic-bezier(0.4, 0, 0.2, 1);
}
.variant:hover {
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(226, 6, 42, 0.4);
  transform: translateY(-2px);
}
.variant__accent {
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 3px;
  background: var(--tc-red);
  border-radius: 0 2px 2px 0;
  opacity: 0;
  transition: opacity 240ms ease, top 240ms ease, bottom 240ms ease;
}
.variant:hover .variant__accent,
.variant--primary .variant__accent {
  opacity: 1;
  top: 12%;
  bottom: 12%;
}

.variant--primary {
  background: linear-gradient(135deg, rgba(226, 6, 42, 0.06) 0%, rgba(255, 255, 255, 0.02) 60%);
  border-color: rgba(226, 6, 42, 0.18);
}

.variant__head {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.variant__tag {
  display: inline-block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: var(--track-widest);
  font-weight: 700;
  color: var(--tc-red);
  padding: 4px 10px;
  background: rgba(226, 6, 42, 0.1);
  border-radius: 2px;
  align-self: flex-start;
}
.variant--quick .variant__tag {
  color: var(--on-dark-muted);
  background: rgba(255, 255, 255, 0.06);
}
.variant__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: var(--track-tightest);
  line-height: 1;
  margin: 0;
  color: #ffffff;
}
.variant__copy {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--on-dark-muted);
  margin: 0;
}
.variant__copy strong {
  color: #ffffff;
  font-weight: 600;
}

.variant__features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  color: var(--on-dark-muted);
}
.variant__features li {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.feature-dot {
  flex-shrink: 0;
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--tc-red);
  border-radius: 0;
  margin-top: 6px;
}

.variant__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}
.btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  font-family: var(--font-body);
  font-weight: 600;
  text-align: left;
  border-radius: 10px;
  transition: background-color 200ms ease, border-color 200ms ease,
              transform 200ms ease, box-shadow 200ms ease;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
}
.btn__label { font-size: 14px; }
.btn__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  opacity: 0.7;
}
.btn--primary {
  background: linear-gradient(135deg, var(--tc-red) 0%, var(--tc-red-dark) 100%);
  color: #ffffff;
  border: 1px solid transparent;
  box-shadow: 0 6px 20px rgba(226, 6, 42, 0.22);
}
.btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 200ms ease;
}
.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(226, 6, 42, 0.35);
}
.btn--primary:hover::before { opacity: 1; }
.btn--ghost {
  background: transparent;
  color: var(--on-dark);
  border: 1px solid var(--outline);
}
.btn--ghost:hover {
  border-color: var(--tc-red);
  color: #ffffff;
}

/* ============================================================
   HOWTO
   ============================================================ */

.howto {
  padding: var(--section-y) var(--gutter);
  max-width: var(--page-max);
  margin: 0 auto;
  background: var(--surface-1);
}
.howto__header { margin-bottom: 56px; }
.howto__steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px 32px;
}
.step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--outline);
  position: relative;
}
.step::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 42px;
  height: 2px;
  background: var(--tc-red);
}
.step__num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--tc-red);
  letter-spacing: 0.08em;
  font-weight: 600;
}
.step__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: var(--track-tight);
  margin: 0;
  color: #ffffff;
}
.step__copy {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--on-dark-muted);
  margin: 0;
}

/* ============================================================
   ASSURANCE (Light section, inverted)
   ============================================================ */

.assurance {
  position: relative;
  background: var(--surface-light);
  color: var(--on-light);
  padding: var(--section-y) var(--gutter);
}
.assurance__rail {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--gutter);
  width: 3px;
  background: var(--tc-red);
}
.assurance__content {
  max-width: var(--page-max);
  margin: 0 auto;
  padding-left: clamp(20px, 4vw, 40px);
}
.assurance__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: var(--track-tight);
  color: var(--on-light);
  margin: 0 0 48px;
}
.assurance__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
}
.assurance__item h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: var(--track-tight);
  color: var(--on-light);
  margin: 0 0 10px;
}
.assurance__item p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--on-light-muted);
  margin: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: var(--surface-0);
  border-top: 1px solid var(--outline);
  padding: 64px var(--gutter) 40px;
}
.site-footer__inner {
  max-width: var(--page-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 768px) {
  .site-footer__inner { grid-template-columns: 1fr 2fr; }
}
.site-footer__brand img {
  display: block;
  height: 40px;
  width: auto;
  margin-bottom: 12px;
}
.site-footer__tagline {
  font-size: 12px;
  color: var(--on-dark-subtle);
  margin: 0;
  letter-spacing: 0.02em;
}
.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
}
.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--on-dark-muted);
}
.site-footer__col a {
  color: var(--on-dark-muted);
  transition: color 180ms ease;
}
.site-footer__col a:hover { color: #ffffff; }
.site-footer__label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: var(--track-wide);
  color: var(--on-dark-subtle);
  font-weight: 600;
  margin-bottom: 6px;
}
.site-footer__address {
  font-size: 13px;
  line-height: 1.7;
  color: var(--on-dark-muted);
  margin: 0;
}
.site-footer__meta {
  grid-column: 1 / -1;
  padding-top: 32px;
  margin-top: 16px;
  border-top: 1px solid var(--outline);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--on-dark-subtle);
}
.site-footer__build { opacity: 0.7; }

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes grow-y {
  from { height: 0; }
}
@keyframes grow-x {
  from { width: 0; }
}
@keyframes pop-in {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 640px) {
  .site-nav__label { display: none; }
  .hero__meta { gap: 20px 24px; }
  .variants__grid { grid-template-columns: 1fr; }
  .variant { padding: 28px 24px 24px; }
}
