@import url('https://fonts.googleapis.com/css2?family=Gantari:wght@300;400;500;600;700&display=swap');

:root {
  --galaxy: #000030;
  --tiefblau: #020219;
  --dunkel: #05054A;
  --purple: #5F37F0;
  --sky: #9DC3FA;
  --flieder: #C3C3FA;
  --ice: #D7EBF0;
  --offwhite: #F0F0F5;
  --r: 10px;
}

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

button,
input,
textarea,
select {
  outline: none;
  border: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: none;
  box-shadow: none;
}

*:focus {
  outline: none !important;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Gantari', sans-serif;
  background: var(--offwhite);
  color: var(--galaxy);
  line-height: 1.65;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--purple);
  color: #fff;
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

nav {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  box-sizing: border-box;
  z-index: 200;
  background: rgba(0, 0, 48, 0.97);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6%;
  height: 66px;
  border-bottom: 1px solid rgba(157, 195, 250, 0.1);
  overflow: hidden;
}

.nav-logo {
  height: 60px;
  object-fit: contain;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.8rem;
}

nav ul a {
  color: var(--sky);
  text-decoration: none;
  font-size: 0.79rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: color 0.2s;
}

nav ul a:hover {
  color: #fff;
}

nav ul a.nav-link-active {
  color: #fff;
  border-bottom: 2px solid var(--purple);
  padding-bottom: 2px;
}

.nav-cta {
  background: var(--purple) !important;
  color: #fff !important;
  padding: 0.42rem 1rem;
  border-radius: 6px;
  border-bottom: none !important;
}

.nav-cta:hover {
  background: #4a28d4 !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 28px;
  height: 24px;
  position: relative;
  z-index: 300;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  appearance: none;
}

.nav-toggle:focus,
.nav-toggle:active {
  outline: none;
  box-shadow: none;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--sky);
  margin: 6px 0;
  transition: all 0.3s;
  border-radius: 1px;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

#hero {
  background: var(--galaxy);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 60px 6% 7rem;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -180px;
  right: -220px;
  width: 680px;
  height: 680px;
  background: radial-gradient(circle, rgba(95, 55, 240, 0.17) 0%, transparent 68%);
  pointer-events: none;
  aria-hidden: true;
}

.hero-glow2 {
  position: absolute;
  bottom: 50px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(157, 195, 250, 0.06) 0%, transparent 70%);
  pointer-events: none;
  aria-hidden: true;
}

.eyebrow {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 1.2rem;
}

h1.hero-h {
  font-size: clamp(3.2rem, 7.5vw, 6.5rem);
  font-weight: 700;
  line-height: 1.04;
  color: #fff;
  margin-bottom: 1.5rem;
  max-width: 820px;
}

.hero-sub {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--flieder);
  max-width: 560px;
  line-height: 1.9;
  margin-bottom: 2.8rem;
}

.btn {
  display: inline-block;
  padding: 0.82rem 2.1rem;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: all 0.2s;
}

.btn-p {
  background: var(--purple);
  color: #fff;
}

.btn-p:hover {
  background: #4a28d4;
  transform: translateY(-1px);
}

.btn-g {
  border: 1.5px solid rgba(157, 195, 250, 0.45);
  color: var(--sky);
  margin-left: 0.9rem;
}

.btn-g:hover {
  background: rgba(157, 195, 250, 0.08);
  border-color: var(--sky);
}

.hero-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--purple), var(--sky));
  aria-hidden: true;
}

.stats {
  background: var(--dunkel);
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  padding: 2.6rem 6%;
  gap: 0.8rem;
}

.stat {
  text-align: center;
  padding: 0.4rem 1rem;
}

.sn {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--sky);
  display: block;
  line-height: 1;
}

.sl {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--flieder);
  display: block;
  margin-top: 0.3rem;
}

.sec {
  padding: 6.5rem 6%;
}

.sec-dark {
  background: var(--galaxy);
  color: #fff;
}

.sec-mid {
  background: var(--ice);
}

.sec-light {
  background: var(--offwhite);
}

.sec-white {
  background: #fff;
}

.tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 0.55rem;
}

.tag-l {
  color: var(--sky);
}

h2.sh {
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 1rem;
  max-width: 700px;
}

.sh-light {
  color: #fff;
}

.rule {
  width: 44px;
  height: 3px;
  background: var(--purple);
  margin: 0.7rem 0 2rem;
  border-radius: 2px;
}

.rule-l {
  background: var(--sky);
}

.intro {
  font-size: 0.98rem;
  font-weight: 300;
  max-width: 640px;
  line-height: 1.88;
  margin-bottom: 2.8rem;
  color: #556;
}

.intro-l {
  color: var(--flieder);
}

.placeholder {
  background: rgba(95, 55, 240, 0.06);
  border: 1.5px dashed rgba(95, 55, 240, 0.4);
  border-radius: 6px;
  padding: 0.4rem 0.8rem;
  font-size: 0.82rem;
  font-style: italic;
  color: #8a7fd4;
  display: inline-block;
}

.placeholder-block {
  display: block;
  margin-top: 0.5rem;
}

.contact-intro {
  font-size: 0.98rem;
  font-weight: 300;
  color: var(--flieder);
  max-width: 520px;
  line-height: 1.88;
  margin-bottom: 2.8rem;
}

.intro-dark {
  font-size: 0.98rem;
  font-weight: 300;
  color: var(--flieder);
  max-width: 560px;
  line-height: 1.88;
  margin-bottom: 2.5rem;
}

.tech-description {
  font-size: 0.87rem;
  font-weight: 300;
  line-height: 1.88;
  color: #556;
  margin-bottom: 1.2rem;
}

.note-box-warning {
  margin-top: 2.2rem;
  background: #fff8f2;
  border-radius: var(--r);
  border-left: 4px solid #e05c00;
  padding: 1.1rem 1.4rem;
  font-size: 0.85rem;
  line-height: 1.82;
  color: #445;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.note-box-warning strong {
  color: #b34400;
}

.note-box-dark strong {
  color: var(--sky);
}

.section-divider {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(157, 195, 250, 0.15);
}

.tag-margin {
  margin-bottom: 1rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

@media (max-width: 860px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.th {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 0.9rem;
}

.spec-t {
  width: 100%;
  border-collapse: collapse;
}

.spec-t tr {
  border-bottom: 1px solid #e4e4ef;
}

.spec-t td {
  padding: 0.62rem 0;
  font-size: 0.87rem;
}

.spec-t td:first-child {
  font-weight: 500;
  color: #222;
  width: 50%;
}

.spec-t td:last-child {
  font-weight: 300;
  color: #556;
}

.char-list {
  list-style: none;
}

.char-list li {
  padding: 0.58rem 0;
  border-bottom: 1px solid #e4e4ef;
  font-size: 0.87rem;
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
}

.char-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple);
  flex-shrink: 0;
  margin-top: 0.47rem;
}

.cn {
  font-weight: 500;
  color: #222;
  min-width: 210px;
}

.cd {
  font-weight: 300;
  color: #667;
  font-size: 0.82rem;
}

.note-box {
  margin-top: 2.2rem;
  background: #fff;
  border-radius: var(--r);
  border-left: 4px solid var(--purple);
  padding: 1.1rem 1.4rem;
  font-size: 0.85rem;
  line-height: 1.82;
  color: #445;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.note-box-first {
  margin-top: 0;
}

.note-box strong {
  color: var(--galaxy);
}

.note-box-dark {
  margin-top: 2rem;
  border-radius: var(--r);
  border-left: 4px solid var(--sky);
  padding: 1.2rem 1.5rem;
  background: rgba(157, 195, 250, 0.06);
  font-size: 0.86rem;
  line-height: 1.85;
  color: var(--flieder);
}

.note-box-dark strong {
  color: #fff;
}

.pitch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
  gap: 1.4rem;
  margin-top: 0.5rem;
}

.pitch-card {
  background: rgba(95, 55, 240, 0.07);
  border: 1px solid rgba(95, 55, 240, 0.2);
  border-radius: var(--r);
  padding: 1.7rem;
  transition: border-color 0.2s;
}

.pitch-card:hover {
  border-color: var(--sky);
}

.pc-label {
  font-size: 0.67rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky);
  font-weight: 600;
  margin-bottom: 0.38rem;
}

.pitch-card h3 {
  font-size: 0.96rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.55rem;
  line-height: 1.35;
}

.pitch-card p {
  font-size: 0.84rem;
  font-weight: 300;
  color: var(--flieder);
  line-height: 1.78;
}

.biz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
  gap: 1.5rem;
}

.biz-card {
  background: #fff;
  border-radius: var(--r);
  border-top: 3px solid var(--purple);
  padding: 1.9rem 1.7rem;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
}

.biz-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: var(--galaxy);
}

.biz-card p {
  font-size: 0.86rem;
  font-weight: 300;
  line-height: 1.82;
  color: #556;
}

.mat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
  gap: 1.5rem;
}

.mat-card {
  background: #fff;
  border-radius: var(--r);
  border-top: 3px solid var(--purple);
  padding: 1.9rem 1.7rem;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
}

.mat-card h3 {
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: var(--galaxy);
}

.mat-card p {
  font-size: 0.87rem;
  font-weight: 300;
  line-height: 1.82;
  color: #556;
}

.pt-wrap {
  margin-top: 3.5rem;
}

.pt-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 1rem;
}

.pt-grid {
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.pt-row {
  display: grid;
  grid-template-columns: repeat(18, 1fr);
  gap: 3px;
  min-width: 560px;
}

.el {
  border-radius: 4px;
  font-size: 0.62rem;
  font-weight: 600;
  text-align: center;
  padding: 0.34rem 0.1rem;
  user-select: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.el-on {
  background: var(--purple);
  color: #fff;
}

.el-on:hover {
  transform: scale(1.25);
  box-shadow: 0 2px 8px rgba(95, 55, 240, 0.5);
  z-index: 10;
  position: relative;
}

.el-off {
  background: #ecf0f5;
  color: #bbb;
  border: 1px solid #e0e4ec;
}

.el-gap {
  background: transparent;
  border: none;
}

.pt-legend {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.9rem;
  flex-wrap: wrap;
}

.pt-legend-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  color: #666;
}

.pt-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.pt-dot-active {
  background: var(--purple);
}

.pt-dot-inactive {
  background: #ecf0f5;
  border: 1px solid #dde;
}

.pt-note {
  font-size: 0.74rem;
  color: #999;
  font-weight: 300;
  margin-top: 0.55rem;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
  gap: 1.3rem;
}

.app-card {
  background: rgba(95, 55, 240, 0.07);
  border: 1px solid rgba(95, 55, 240, 0.2);
  border-radius: var(--r);
  padding: 1.7rem;
  transition: border-color 0.2s, transform 0.15s;
}

.app-card:hover {
  border-color: var(--sky);
  transform: translateY(-2px);
}

.app-d {
  font-size: 0.67rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky);
  font-weight: 600;
  margin-bottom: 0.38rem;
}

.app-card h3 {
  font-size: 0.96rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.55rem;
  line-height: 1.35;
}

.app-card p {
  font-size: 0.84rem;
  font-weight: 300;
  color: var(--flieder);
  line-height: 1.78;
}

.tech-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  margin-top: 1rem;
}

@media (max-width: 860px) {
  .tech-cols {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 0;
  margin-top: 2.5rem;
}

.flow-step {
  padding: 1.8rem 1.4rem;
  border-right: 1px solid rgba(157, 195, 250, 0.12);
}

.flow-step:last-child {
  border-right: none;
}

.fn {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--purple);
  opacity: 0.28;
  line-height: 1;
  margin-bottom: 0.45rem;
}

.ft {
  font-size: 0.93rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.45rem;
}

.fd {
  font-size: 0.83rem;
  font-weight: 300;
  color: var(--flieder);
  line-height: 1.78;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.team-card {
  background: #fff;
  border-radius: var(--r);
  padding: 1.9rem;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
}

.t-role {
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 0.22rem;
}

.t-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--galaxy);
}

.t-affil {
  font-size: 0.77rem;
  color: #aaa;
  font-weight: 300;
  margin-bottom: 0.75rem;
  margin-top: 0.1rem;
  line-height: 1.5;
}

.tdiv {
  width: 28px;
  height: 2px;
  background: var(--purple);
  margin: 0.65rem 0 0.85rem;
  border-radius: 2px;
}

.t-bio {
  font-size: 0.84rem;
  font-weight: 300;
  line-height: 1.82;
  color: #445;
}

.pub-list {
  margin-top: 1.8rem;
}

.pub {
  padding: 1.7rem 0;
  border-bottom: 1px solid rgba(157, 195, 250, 0.11);
}

.pub:last-child {
  border-bottom: none;
}

.pj {
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 0.32rem;
}

.pt-pub {
  font-size: 0.95rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 0.32rem;
  line-height: 1.5;
}

.pa {
  font-size: 0.81rem;
  font-weight: 300;
  color: var(--flieder);
  margin-bottom: 0.28rem;
}

.pr {
  font-size: 0.79rem;
  font-weight: 300;
  color: rgba(157, 195, 250, 0.55);
}

.pdoi {
  display: inline-block;
  margin-top: 0.38rem;
  font-size: 0.77rem;
  color: var(--sky);
  text-decoration: none;
  font-weight: 500;
}

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

#contact {
  background: var(--dunkel);
  padding: 5.5rem 6%;
  color: #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  margin-top: 2.5rem;
}

@media (max-width: 700px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.cl {
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 0.35rem;
}

.cn2 {
  font-weight: 600;
  font-size: 0.98rem;
  margin-bottom: 0.15rem;
}

.contact-block {
  margin-bottom: 1.6rem;
}

.contact-block a {
  color: var(--sky);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 300;
  display: block;
}

.contact-block a:hover {
  text-decoration: underline;
}

footer {
  background: var(--tiefblau);
  color: var(--flieder);
  padding: 2.8rem 6%;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.8rem;
  font-size: 0.79rem;
  font-weight: 300;
}

.flogo {
  height: 50px;
  margin-bottom: 0.7rem;
  display: block;
}

footer a {
  color: var(--sky);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

.flinks {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
}

.fleg {
  color: rgba(157, 195, 250, 0.3);
  font-size: 0.7rem;
  margin-top: 0.5rem;
}

#header {
  background: var(--galaxy);
  padding: 60px 6% 5rem;
  position: relative;
  overflow: hidden;
}

.header-inner {
  position: relative;
  z-index: 1;
}

.header-meta {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-top: 2.2rem;
  padding-top: 2.2rem;
  border-top: 1px solid rgba(157, 195, 250, 0.12);
}

.meta-item .ml {
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 0.2rem;
}

.meta-item .mv {
  font-size: 0.92rem;
  font-weight: 400;
  color: #fff;
}

@media (max-width: 768px) {
  nav {
    padding: 0 5%;
    height: 60px;
  }

  nav ul {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    width: 100%;
    box-sizing: border-box;
    flex-direction: column;
    background: rgba(0, 0, 48, 0.98);
    padding: 1rem 5%;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    border-bottom: 1px solid rgba(157, 195, 250, 0.1);
    z-index: 199;
  }

  nav ul.active {
    max-height: calc(100vh - 60px);
    visibility: visible;
    opacity: 1;
  }

  nav ul li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(157, 195, 250, 0.08);
  }

  nav ul a {
    font-size: 0.88rem;
    display: block;
  }

  nav ul a.nav-link-active {
    border-bottom: none;
    padding-bottom: 0;
    color: #fff;
  }

  .nav-toggle {
    display: block;
  }

  .nav-logo {
    height: 50px;
  }

  #hero {
    min-height: auto !important;
    padding: 100px 5% 2rem !important;
    margin-top: 0;
  }

  #header {
    min-height: auto !important;
    padding: 100px 5% 2rem !important;
    margin-top: 0;
  }

  .sec {
    padding: 4rem 5%;
  }

  footer {
    padding: 2rem 5%;
  }

  .flow-step {
    border-right: none;
    border-bottom: 1px solid rgba(157, 195, 250, 0.12);
  }

  .btn-g {
    margin-left: 0;
    display: block;
    margin-top: 0.8rem;
  }
}

/* Emergency mobile override - catch all phones */
@media (max-width: 1024px) and (orientation: portrait) {
  #hero {
    min-height: auto !important;
    padding: 100px 5% 2rem !important;
  }

  #header {
    min-height: auto !important;
    padding: 100px 5% 2rem !important;
  }
}
