/* SCA Landingpage — eigenes Stylesheet.
   Farb-/Font-Tokens uebernommen aus einem bestehenden Projekt (siehe CLAUDE.md, Abschnitt 2),
   Struktur und Klassen sind unabhaengig neu gebaut. */

:root {
  --bg-0: #07161e;
  --bg-1: #102b3a;
  --bg-2: #1f4e67;
  --line: #3f7995;
  --card: rgba(10, 33, 45, 0.76);
  --card-border: #4b7f9a;
  --card-border-hover: #64d8ff;
  --text: #e9fbff;
  --muted: #aacad8;
  --accent: #53b3ff;
  --accent-teal: #2cd4b1;
  --accent-blue: #60d6ff;
  --on-accent: #04131d;

  --font-body: "Nunito Sans", "Segoe UI", sans-serif;
  --font-head: "Chakra Petch", "Segoe UI", sans-serif;

  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: linear-gradient(160deg, var(--bg-0), var(--bg-1) 45%, var(--bg-2));
  overflow-x: hidden;
  line-height: 1.5;
}

h1,
h2,
h3,
.fea-stat-number,
.impact-number {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.12;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- background decor ---------- */

.bg-decor {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.bg-grid {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image: linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 26px 26px;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
}

.blob-a {
  width: 460px;
  height: 460px;
  left: -10%;
  top: 10%;
  background: rgba(44, 212, 177, 0.22);
}

.blob-b {
  width: 500px;
  height: 500px;
  right: -12%;
  top: 40%;
  background: rgba(83, 179, 255, 0.2);
}

/* ---------- logo-themed peak animation ---------- */
/* Echoes the chevron/summit glyph above the "C" in the SCA wordmark:
   a few faint peaks drift slowly, with small gradient "signal" dots
   climbing toward each apex — automation carrying work uphill. */

.bg-peaks {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.peak-group {
  position: absolute;
  animation: sca-peak-float 16s ease-in-out infinite;
}

.peak-group--1 {
  width: 620px;
  height: 380px;
  left: -6%;
  top: 8%;
  opacity: 0.5;
  animation-duration: 15s;
}

.peak-group--2 {
  width: 420px;
  height: 260px;
  right: -4%;
  top: 44%;
  opacity: 0.4;
  animation-duration: 19s;
  animation-delay: -5s;
}

.peak-group--3 {
  width: 760px;
  height: 460px;
  left: 22%;
  top: 76%;
  opacity: 0.32;
  animation-duration: 23s;
  animation-delay: -11s;
}

.peak-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.peak-svg path {
  fill: none;
  stroke: url(#sca-peak-gradient);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.signal-dot {
  position: absolute;
  left: 50%;
  bottom: 10%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-teal));
  opacity: 0;
  animation: sca-signal-rise 7s ease-in infinite;
}

.signal-dot--b {
  width: 4px;
  height: 4px;
  margin-left: -2px;
  animation-delay: -3.5s;
  animation-duration: 8.5s;
}

@keyframes sca-peak-float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(0, -18px) scale(1.02);
  }
}

@keyframes sca-signal-rise {
  0% {
    bottom: 10%;
    opacity: 0;
  }
  12% {
    opacity: 0.85;
  }
  78% {
    opacity: 0.4;
  }
  100% {
    bottom: 86%;
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .peak-group,
  .signal-dot {
    animation: none !important;
  }

  .signal-dot {
    display: none;
  }
}

@media (max-width: 700px) {
  .peak-group--3 {
    display: none;
  }
}

/* ---------- layout helpers ---------- */

.section-inner {
  width: min(var(--container), calc(100% - 2.4rem));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

section {
  padding: clamp(3rem, 6vw, 5.5rem) 0;
}

.eyebrow {
  margin: 0 0 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent);
}

.section-head {
  max-width: 60ch;
  margin-bottom: 2.4rem;
}

.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.lead {
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  max-width: 68ch;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.75rem 1.4rem;
  font-weight: 800;
  text-decoration: none;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.btn-primary {
  color: var(--on-accent);
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-teal));
  border-color: var(--accent-blue);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(44, 212, 177, 0.25);
}

.btn-ghost {
  color: var(--text);
  background: transparent;
  border-color: var(--card-border);
}

.btn-ghost:hover {
  border-color: var(--card-border-hover);
  color: var(--accent-blue);
}

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(7, 22, 30, 0.72);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  width: min(var(--container), calc(100% - 2.4rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
}

.brand-logo {
  height: 40px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 1.4rem;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.lang-toggle {
  display: flex;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  overflow: hidden;
}

.lang-toggle button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 0.35rem 0.65rem;
  cursor: pointer;
}

.lang-toggle button.is-active {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-teal));
  color: var(--on-accent);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background: transparent;
  position: relative;
  cursor: pointer;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  height: 2px;
  background: var(--text);
}

.nav-toggle-bar {
  top: 19px;
}

.nav-toggle-bar::before {
  top: -6px;
}

.nav-toggle-bar::after {
  top: 6px;
}

/* ---------- hero ---------- */

.hero-inner {
  padding-top: clamp(2rem, 5vw, 3rem);
  max-width: 78ch;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin: 0 0 1.1rem;
  max-width: 22ch;
}

.hero .lead {
  margin-bottom: 1.8rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2.6rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.2rem;
  margin: 0;
  padding: 1.4rem 0 0;
  border-top: 1px solid var(--line);
}

.hero-stats dt {
  font-family: var(--font-head);
  font-size: 1.6rem;
  color: var(--accent-blue);
}

.hero-stats dd {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---------- cards (shared glass style) ---------- */

.pain-card,
.portfolio-card,
.impact-card,
.fea-stat {
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, rgba(15, 43, 58, 0.88), rgba(9, 28, 40, 0.72));
  backdrop-filter: blur(8px);
  padding: 1.4rem;
}

/* ---------- pain points ---------- */

.pain-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.pain-card {
  display: grid;
  gap: 0.5rem;
  transition: transform 180ms ease, border-color 180ms ease;
}

.pain-card:hover {
  transform: translateY(-4px);
  border-color: var(--card-border-hover);
}

.pain-index {
  font-family: var(--font-head);
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.pain-card h3 {
  font-size: 1.1rem;
}

.pain-card p {
  color: var(--muted);
  font-size: 0.94rem;
}

/* ---------- FEA highlight ---------- */

.fea {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 15% 20%, rgba(44, 212, 177, 0.14), transparent 40%),
    radial-gradient(circle at 85% 60%, rgba(83, 179, 255, 0.14), transparent 45%),
    rgba(6, 18, 26, 0.4);
}

.fea-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2.4rem;
  align-items: start;
}

.fea-copy h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  max-width: 22ch;
  margin-bottom: 1rem;
}

.fea-copy .lead {
  margin-bottom: 1rem;
}

.fea-copy > p:not(.lead) {
  color: var(--muted);
  margin-bottom: 1.4rem;
}

.solver-tags {
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.solver-tags li {
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-weight: 700;
  font-size: 0.88rem;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.solver-tags li span {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.78rem;
}

.fea-stat {
  border-color: var(--accent);
  text-align: left;
}

.fea-stat-number {
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  color: var(--accent-blue);
  margin-bottom: 0.4rem;
}

.fea-stat-label {
  color: var(--muted);
  margin-bottom: 1.2rem;
  max-width: 30ch;
}

.fea-stat-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.9rem;
  display: grid;
  gap: 0.5rem;
}

/* ---------- portfolio ---------- */

.portfolio-group {
  margin: 0 0 1.2rem;
}

.portfolio-group--chain {
  margin-top: 2.6rem;
}

.portfolio-subhead {
  font-size: 1.2rem;
  margin: 0 0 0.4rem;
}

.portfolio-subtext {
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 60ch;
  margin: 0;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.portfolio-card {
  position: relative;
  display: grid;
  gap: 0.65rem;
  align-content: start;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.portfolio-card:hover {
  transform: translateY(-5px);
  border-color: var(--card-border-hover);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.portfolio-card--flagship {
  border-color: var(--accent);
  background: linear-gradient(160deg, rgba(20, 55, 74, 0.92), rgba(9, 28, 40, 0.78));
}

.flagship-badge {
  position: absolute;
  top: -11px;
  right: 1.1rem;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-teal));
  color: var(--on-accent);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

.tag {
  justify-self: start;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem;
  color: var(--muted);
}

.portfolio-card h3 {
  font-size: 1.15rem;
}

.portfolio-card p {
  color: var(--muted);
  font-size: 0.92rem;
}

.cta {
  color: var(--accent-blue);
  font-weight: 800;
  font-size: 0.88rem;
  text-decoration: none;
}

.cta:hover {
  text-decoration: underline;
}

/* ---------- agentic PEP ---------- */

.agentic {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 85% 15%, rgba(44, 212, 177, 0.14), transparent 42%),
    radial-gradient(circle at 10% 70%, rgba(83, 179, 255, 0.12), transparent 45%),
    rgba(6, 18, 26, 0.4);
}

.agentic-head {
  max-width: 70ch;
  margin-bottom: 2rem;
}

.agentic-head h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin: 0.4rem 0 0.8rem;
}

.agentic-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.agentic-step {
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, rgba(15, 43, 58, 0.88), rgba(9, 28, 40, 0.72));
  backdrop-filter: blur(8px);
  padding: 1.2rem;
  display: grid;
  gap: 0.5rem;
  align-content: start;
}

.agentic-step-num {
  font-family: var(--font-head);
  color: var(--accent-teal);
  font-size: 1.3rem;
}

.agentic-step h3 {
  font-size: 1.02rem;
}

.agentic-step p {
  color: var(--muted);
  font-size: 0.88rem;
}

.agentic-grounding {
  max-width: 72ch;
  color: var(--muted);
  margin-bottom: 1.6rem;
}

.agentic-actions {
  display: flex;
}

/* ---------- impact ---------- */

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.impact-card {
  text-align: left;
}

.impact-number {
  font-size: clamp(2rem, 4vw, 2.6rem);
  color: var(--accent-teal);
  margin-bottom: 0.5rem;
}

.impact-label {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- about ---------- */

.about-inner {
  max-width: 70ch;
}

.about h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin-bottom: 1rem;
}

.founders-head {
  font-size: 1.1rem;
  margin: 2.2rem 0 1rem;
}

.founders-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.founder-card {
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, rgba(15, 43, 58, 0.88), rgba(9, 28, 40, 0.72));
  padding: 1.1rem;
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.founder-avatar-link {
  flex-shrink: 0;
  display: block;
  border-radius: 50%;
}

.founder-avatar {
  width: 52px;
  height: 52px;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--card-border);
}

.founder-avatar-link:hover .founder-avatar {
  border-color: var(--card-border-hover);
}

.founder-name {
  font-family: var(--font-head);
  font-size: 1rem;
  margin: 0;
}

.founder-role {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  margin: 0.15rem 0 0;
}

.founder-bio {
  color: var(--muted);
  font-size: 0.86rem;
  margin: 0.4rem 0 0;
}

.founder-link {
  display: inline-block;
  color: var(--accent-blue);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  margin-top: 0.5rem;
}

.founder-link:hover {
  text-decoration: underline;
}

/* ---------- final CTA / audit ---------- */

.audit {
  border-top: 1px solid var(--line);
}

.audit-inner {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  backdrop-filter: blur(8px);
  padding: clamp(1.6rem, 4vw, 2.6rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.2rem;
  align-items: center;
}

.audit-copy h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.9rem;
}

.audit-form {
  display: grid;
  gap: 0.8rem;
}

.audit-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.audit-form input,
.audit-form textarea {
  background: rgba(4, 17, 25, 0.9);
  border: 1px solid var(--card-border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.75rem;
  font: inherit;
  resize: vertical;
}

.audit-form input:focus,
.audit-form textarea:focus {
  outline: 2px solid rgba(83, 179, 255, 0.45);
  outline-offset: 1px;
}

.audit-form button {
  margin-top: 0.3rem;
  width: fit-content;
}

/* ---------- footer ---------- */

.site-footer {
  padding: 2rem 0 2.6rem;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  text-align: center;
}

.footer-logo {
  height: 32px;
  width: auto;
  opacity: 0.85;
}

.site-footer p {
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---------- reveal-on-scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: transform 420ms ease, opacity 420ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .fea-inner {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .agentic-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .impact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .founders-grid {
    grid-template-columns: 1fr;
  }

  .audit-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(7, 22, 30, 0.96);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 1rem 1.2rem;
    gap: 0.9rem;
    display: none;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .pain-grid,
  .portfolio-grid,
  .agentic-steps,
  .impact-grid {
    grid-template-columns: 1fr;
  }
}
