/* ============================================================
   piede — styles.css
   Dark-first premium system. Black canvas, mint signal accent,
   dual type system (Space Grotesk display / Inter body).
   ============================================================ */

:root {
  --bg: #0a0a0a;
  --bg-2: #0c0c0c;
  --surface: #121212;
  --line: rgba(255, 255, 255, 0.09);
  --text: #ffffff;
  --muted: #95959f;
  --accent: #7dffbe;
  --accent-deep: #165f49;
  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-body: "Inter", "Space Grotesk", sans-serif;
  --ease: cubic-bezier(0.190, 1.000, 0.220, 1.000);
  --wrap: 1200px;
  --pad: clamp(20px, 4vw, 48px);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #000; }

img { display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.02em;
}
.main-nav { display: flex; gap: 34px; }
.main-nav a {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  transition: color 0.2s ease;
  position: relative;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.main-nav a:hover { color: var(--text); }
.main-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.header-right { display: flex; align-items: center; gap: 18px; }

.lang-switch {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.lang-btn {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s ease, background 0.25s ease;
}
.lang-btn:hover { color: var(--text); }
.lang-btn.is-active { background: var(--accent); color: #000; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 14px 28px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  will-change: transform;
}
.btn:active { transform: scale(0.97); }
.btn-fill { background: var(--accent); color: #000; border: 1px solid var(--accent); }
.btn-fill:hover { background: #a4ffd0; border-color: #a4ffd0; transform: translateY(-2px); }
.btn-line { background: transparent; color: var(--text); border: 1px solid rgba(255,255,255,0.28); }
.btn-line:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-header { padding: 10px 20px; font-size: 12px; }
.btn-big { padding: 18px 40px; font-size: 14px; margin-top: 36px; }

/* ---------- Menu toggle / overlay ---------- */
.menu-toggle {
  display: none;
  appearance: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  width: 44px; height: 44px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.menu-toggle span {
  display: block;
  width: 16px; height: 1.6px;
  background: var(--text);
  transition: transform 0.4s var(--ease), opacity 0.3s ease;
}
.menu-toggle.is-open span:first-child { transform: translateY(3.8px) rotate(45deg); }
.menu-toggle.is-open span:last-child { transform: translateY(-3.8px) rotate(-45deg); }

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(8, 8, 8, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 48px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0.45s;
}
.menu-overlay.is-open { opacity: 1; visibility: visible; }
.overlay-nav { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.overlay-nav a {
  font-family: var(--font-display);
  font-size: clamp(34px, 8vw, 56px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), color 0.25s ease;
}
.menu-overlay.is-open .overlay-nav a { opacity: 1; transform: translateY(0); }
.menu-overlay.is-open .overlay-nav a:nth-child(1) { transition-delay: 0.08s; }
.menu-overlay.is-open .overlay-nav a:nth-child(2) { transition-delay: 0.16s; }
.menu-overlay.is-open .overlay-nav a:nth-child(3) { transition-delay: 0.24s; }
.menu-overlay.is-open .overlay-nav a:nth-child(4) { transition-delay: 0.32s; }
.overlay-nav a:hover { color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
#glcanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.15) 40%, rgba(10,10,10,0.82) 100%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; padding-top: 120px; padding-bottom: 120px; }

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
  margin-bottom: 28px;
}
.led {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: led-pulse 2.4s ease-in-out infinite;
}
@keyframes led-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 8.5vw, 112px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 14ch;
  margin-bottom: 32px;
}
.hero-title .ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.55em) rotate(2deg);
  transition: transform 1.1s var(--ease), opacity 0.7s ease;
  will-change: transform, opacity;
}
.hero-title.is-in .ch { opacity: 1; transform: translateY(0) rotate(0); }

.hero-sub {
  max-width: 52ch;
  font-size: clamp(16px, 1.6vw, 19px);
  color: rgba(255,255,255,0.78);
  margin-bottom: 44px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; }

.hero-foot {
  position: absolute;
  z-index: 2;
  left: 0; right: 0; bottom: 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 22px;
  padding-bottom: 26px;
  border-top: 1px solid var(--line);
}
.hero-foot-item {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  white-space: nowrap;
}

/* ---------- Sections ---------- */
.section { padding: clamp(90px, 12vw, 160px) 0; border-top: 1px solid var(--line); }
.section-alt { background: var(--bg-2); }

.section-grid {
  display: grid;
  grid-template-columns: minmax(280px, 5fr) 7fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.section-side { position: sticky; top: 120px; }

.section-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 22px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.2vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 22px;
}
.section-text { color: var(--muted); max-width: 44ch; margin-bottom: 32px; }

/* ---------- Services ---------- */
.service {
  display: grid;
  grid-template-columns: 64px 1fr 40px;
  gap: 24px;
  align-items: start;
  padding: 38px 0;
  border-top: 1px solid var(--line);
  transition: background 0.35s ease, padding-left 0.45s var(--ease);
}
.service:last-child { border-bottom: 1px solid var(--line); }
.service:hover { background: linear-gradient(90deg, rgba(125,255,190,0.045), transparent 65%); padding-left: 16px; }
.service-index {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  padding-top: 12px;
  letter-spacing: 0.1em;
}
.service-body h3 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 14px;
}
.service-body p { color: var(--muted); max-width: 58ch; margin-bottom: 18px; }
.service-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.service-tags li {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.service:hover .service-tags li { border-color: rgba(125,255,190,0.35); }
.service-arrow {
  font-size: 26px;
  color: var(--muted);
  padding-top: 10px;
  transition: transform 0.4s var(--ease), color 0.3s ease;
}
.service:hover .service-arrow { transform: translate(4px, -4px); color: var(--accent); }

/* ---------- About ---------- */
.about-statement {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  max-width: 22ch;
  margin-bottom: 56px;
}
.about-grid {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.about-col p { color: var(--muted); margin-bottom: 18px; max-width: 54ch; }
.about-facts { border-top: 1px solid var(--line); }
.about-facts li {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.fact-key {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  padding-top: 3px;
}
.fact-val { font-family: var(--font-display); font-weight: 500; font-size: 17px; }

/* ---------- Process steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 56px;
}
.step {
  background: var(--bg);
  padding: 34px 28px 40px;
  transition: background 0.35s ease;
}
.step:hover { background: var(--surface); }
.step-num {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: 40px;
}
.step h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.step p { font-size: 14.5px; color: var(--muted); }

/* ---------- Contact ---------- */
.section-contact { text-align: left; }
.contact-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 88px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin-bottom: 26px;
}
.contact-text { margin-bottom: 8px; }
.contact-links { margin: 28px 0 8px; }
.contact-link {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  border-bottom: 2px solid rgba(255,255,255,0.2);
  padding-bottom: 6px;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.contact-link:hover { color: var(--accent); border-color: var(--accent); }
.contact-arrow { font-size: 0.6em; vertical-align: super; margin-left: 10px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 0; background: var(--bg-2); }
.footer-grid {
  display: grid;
  grid-template-columns: 5fr 4fr 3fr;
  gap: 40px;
  padding-bottom: 56px;
}
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer-brand-row { display: flex; align-items: center; gap: 10px; }
.footer-brand .brand-word { font-size: 19px; }
.footer-claim { color: var(--muted); font-size: 14px; max-width: 30ch; }
.footer-nav { display: flex; flex-direction: column; gap: 12px; }
.footer-nav a, .footer-legal a {
  color: var(--muted);
  font-size: 14px;
  transition: color 0.2s ease;
}
.footer-nav a:hover, .footer-legal a:hover { color: var(--accent); }
.footer-legal { display: flex; flex-direction: column; gap: 12px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  padding-bottom: 26px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

/* ---------- Reveal system ---------- */
.js-appear {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s ease, transform 0.9s var(--ease);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
.js-appear.is-in { opacity: 1; transform: translateY(0); }
.delay-1 { --d: 120ms; }
.delay-2 { --d: 240ms; }
.delay-3 { --d: 360ms; }
.delay-5 { --d: 560ms; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .section-grid { grid-template-columns: 1fr; }
  .section-side { position: static; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .main-nav, .btn-header { display: none; }
  .menu-toggle { display: flex; }
  .service { grid-template-columns: 44px 1fr 28px; gap: 14px; }
  .hero-foot { flex-wrap: wrap; row-gap: 8px; }
  .hero-foot-item { font-size: 10px; }
}

@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-inner { padding-top: 140px; }
  .header-right .lang-switch { display: none; }
}

/* ---------- Legal pages (Impressum / Privacy) ---------- */
.legal-main { padding: 150px 0 110px; min-height: 70vh; }
.legal-content { max-width: 720px; }
.legal-content .section-label { margin-bottom: 18px; }
.legal-content h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 40px;
}
.legal-content h2 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 42px 0 12px;
}
.legal-content p, .legal-content li { color: var(--muted); margin-bottom: 14px; }
.legal-content strong { color: var(--text); font-weight: 600; }
.legal-content a { color: var(--accent); border-bottom: 1px solid rgba(125,255,190,0.35); transition: border-color .2s ease; }
.legal-content a:hover { border-color: var(--accent); }
.legal-table { width: 100%; border-top: 1px solid var(--line); margin: 10px 0 20px; }
.legal-table tr { border-bottom: 1px solid var(--line); }
.legal-table td { padding: 14px 0; vertical-align: top; }
.legal-table td:first-child {
  width: 42%;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  padding-top: 18px;
}
.legal-table td:last-child { color: var(--text); }
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 44px;
  transition: color .2s ease;
}
.legal-back:hover { color: var(--accent); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-appear, .hero-title .ch { opacity: 1 !important; transform: none !important; transition: none !important; }
  .led { animation: none; }
  .service, .service-arrow, .btn { transition: none !important; }
}
