/* ===================================================
   ARVO KELVIN PAGE -- Preview v1
   Design: Kreativ-Team Konzept "Die Einladung"
   Code: Jonas (Web-Team)
   =================================================== */

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/space-grotesk-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-latin.woff2') format('woff2');
}

:root {
  --midnight: #0A1628;
  --midnight-light: #0F1D32;
  --surface: #131E33;
  --surface-raised: #182640;
  --border: #243352;
  --ice-blue: #4FC3F7;
  --ice-blue-dim: #3A9FD4;
  --ice-blue-glow: rgba(79, 195, 247, 0.12);
  --ice-blue-glow-strong: rgba(79, 195, 247, 0.25);
  --muted: #8BA4B8;
  --text-primary: #E8EDF2;
  --text-secondary: #8BA4B8;
  --text-dim: #5A7089;
  --white: #FFFFFF;
  --success: #66BB6A;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--midnight);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* -- UTILITIES -------------------------------- */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

.accent { color: var(--ice-blue); }
.muted { color: var(--muted); }

h1, h2, h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* -- FADE-IN ANIMATIONS ----------------------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* -- SECTION SPACING -------------------------- */
section {
  padding: 120px 0;
  position: relative;
}

section + section {
  border-top: 1px solid var(--border);
}

/* -- TOPBAR ----------------------------------- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(36, 51, 82, 0.5);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}
.topbar-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.topbar-brand .kelvin-label {
  color: var(--ice-blue);
  font-weight: 400;
  font-size: 14px;
}
.topbar-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: transparent;
  border: 1px solid var(--ice-blue);
  color: var(--ice-blue);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.25s ease;
}
.topbar-cta:hover {
  background: var(--ice-blue);
  color: var(--midnight);
}

/* ===================================================
   SECTION 1 -- HERO
   =================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  border-top: none;
}

/* Animierte Temperaturkurve im Hintergrund */
.hero-curve {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  z-index: 0;
}
.hero-curve canvas {
  width: 100%;
  height: 100%;
  opacity: 0.12;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 3.6rem);
  font-weight: 300;
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--muted);
  font-weight: 300;
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 1.8;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--ice-blue);
  color: var(--midnight);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  background: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(79, 195, 247, 0.25);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: transparent;
  color: var(--ice-blue);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.25s ease;
  border: 1px solid rgba(79, 195, 247, 0.3);
}
.btn-ghost:hover {
  border-color: var(--ice-blue);
  background: var(--ice-blue-glow);
}

/* Scroll-Indikator */
.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-dim);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: float 3s ease-in-out infinite;
}
.scroll-hint svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-dim);
}
@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}
@media (max-width: 768px) {
  .scroll-hint { display: none; }
}

/* ===================================================
   SECTION 2 -- DAS GEFUEHL
   =================================================== */
.feeling {
  max-width: 640px;
  margin: 0 auto;
  padding: 120px 24px;
}
.feeling h2 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 400;
  margin-bottom: 32px;
  color: var(--white);
}
.feeling p {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 2;
  font-weight: 300;
}

/* ===================================================
   SECTION 3 -- DIE ZAHL
   =================================================== */
.precision {
  text-align: center;
  padding: 160px 24px;
}
.precision-number {
  font-family: 'Space Grotesk', monospace;
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 700;
  color: var(--ice-blue);
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}
/* Flicker-Effekt via JS */
.precision-number.flickering {
  animation: textFlicker 0.08s steps(1) infinite;
}
@keyframes textFlicker {
  0% { opacity: 0.9; }
  50% { opacity: 1; }
}
.precision-sub {
  font-size: 15px;
  color: var(--text-dim);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ===================================================
   SECTION 4 -- DIE STILLE
   =================================================== */
.silence {
  padding: 160px 0;
}
.silence h2 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 300;
  margin-bottom: 16px;
  color: var(--white);
}
.silence-body {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--muted);
  font-weight: 300;
  margin-bottom: 48px;
  line-height: 1.8;
}
.silence-detail {
  font-size: 16px;
  color: var(--text-dim);
  max-width: 520px;
  line-height: 1.9;
}

/* dB-Balken */
.db-bar-wrap {
  max-width: 600px;
  margin: 0 auto;
  padding: 32px;
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid var(--border);
}
.db-bar-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.db-bar {
  position: relative;
  height: 32px;
  background: var(--midnight-light);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
}
.db-bar-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.3s ease;
  background: linear-gradient(90deg, var(--ice-blue) 0%, var(--ice-blue) 50%, #FFB74D 75%, #EF5350 100%);
}
.db-bar-comfort {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  border-right: 2px dashed rgba(79, 195, 247, 0.4);
}
.db-bar-tooltip {
  margin-top: 16px;
  text-align: center;
  font-family: 'Space Grotesk', sans-serif;
}
.db-bar-tooltip .db-value {
  font-size: 28px;
  font-weight: 600;
  color: var(--ice-blue);
}
.db-bar-tooltip .db-compare {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 4px;
}

/* ===================================================
   SECTION 5 -- DAS DENKEN (PID)
   =================================================== */
.pid h2 {
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 500;
  margin-bottom: 16px;
}
.pid-body {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 48px;
  line-height: 1.8;
}
.pid-viz {
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 32px;
  max-width: 700px;
  margin: 0 auto;
}
.pid-canvas-wrap {
  position: relative;
  width: 100%;
  height: 200px;
}
.pid-canvas-wrap canvas {
  width: 100%;
  height: 100%;
}
.pid-legend {
  display: flex;
  gap: 24px;
  margin-top: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.pid-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.pid-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* ===================================================
   SECTION 6 -- DIE EINLADUNG (PIVOT)
   =================================================== */
.invitation {
  background: var(--midnight-light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.invitation h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--white);
}
.invitation-body {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 2;
  margin-bottom: 48px;
}
.component-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}
.component-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  transition: border-color 0.25s ease;
}
.component-card:hover {
  border-color: var(--ice-blue-dim);
}
.component-card-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--white);
  margin-bottom: 4px;
}
.component-card-desc {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
}
.cost-line {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 40px;
  font-style: italic;
}
.cost-line strong {
  color: var(--ice-blue);
  font-style: normal;
}

/* ===================================================
   SECTION 7 -- WAS MEMBERS BEKOMMEN
   =================================================== */
.members h2 {
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 500;
  margin-bottom: 24px;
}
.members-body {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 2;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.feature-item {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.25s ease;
}
.feature-item:hover {
  border-color: rgba(79, 195, 247, 0.3);
}
.feature-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ice-blue-glow);
  border-radius: 8px;
  font-size: 18px;
}
.feature-text h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--white);
}
.feature-text p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ===================================================
   SECTION 8 -- OPEN SOURCE
   =================================================== */
.opensource h2 {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 500;
  margin-bottom: 16px;
  max-width: 640px;
}
.opensource-body {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 40px;
  line-height: 1.8;
}
.code-preview {
  background: #0D1117;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  max-width: 640px;
  position: relative;
}
.code-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid var(--border);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-dim);
}
.code-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.code-body {
  padding: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
  overflow-x: auto;
  position: relative;
}
.code-body::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(transparent, #0D1117);
  pointer-events: none;
}
.code-body .kw { color: #FF7B72; }
.code-body .str { color: #A5D6FF; }
.code-body .cmt { color: #5A7089; font-style: italic; }
.code-body .val { color: #79C0FF; }
.code-body .key { color: #FFA657; }

/* ===================================================
   SECTION 9 -- COMMUNITY TEASER
   =================================================== */
.community {
  text-align: center;
}
.community h2 {
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 500;
  margin-bottom: 24px;
}
.pioneer-counter {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 16px;
}
.pioneer-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 56px;
  font-weight: 700;
  color: var(--ice-blue);
}
.pioneer-label {
  font-size: 16px;
  color: var(--text-dim);
}

/* ===================================================
   SECTION 10 -- CLOSER
   =================================================== */
.closer {
  text-align: center;
  padding: 160px 24px;
  border-top: 1px solid var(--border);
}
.closer h2 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 300;
  color: var(--white);
  margin-bottom: 12px;
}
.closer-sub {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 48px;
}
.closer-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* -- FOOTER ----------------------------------- */
.footer {
  padding: 48px 24px;
  text-align: center;
  border-top: 1px solid var(--border);
}
.footer-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--white);
  margin-bottom: 8px;
}
.footer-claim {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 24px;
  font-style: italic;
}
.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 12px;
  color: var(--text-dim);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color 0.2s ease;
}
.footer-links a:hover {
  color: var(--ice-blue);
}

/* -- RESPONSIVE ------------------------------- */
@media (max-width: 768px) {
  section { padding: 80px 0; }
  .hero { padding: 100px 20px 60px; }
  .precision { padding: 100px 20px; }
  .closer { padding: 100px 20px; }
  .component-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .hero-ctas, .closer-ctas { flex-direction: column; align-items: center; }
  .btn-primary, .btn-ghost { width: 100%; max-width: 300px; justify-content: center; }
  .db-bar-wrap { padding: 20px; }
  .pid-viz { padding: 20px; }
}

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