/* ===================================================================
   AWAI Analytics GmbH – Corporate Website
   Stil: modern & techy, dark theme
   =================================================================== */

:root {
  --bg:           #0a0e17;
  --bg-soft:      #0f1623;
  --bg-card:      #131c2b;
  --bg-card-2:    #16202f;
  --border:       #233048;
  --text:         #e6edf6;
  --text-dim:     #9fb0c6;
  --text-faint:   #6b7d96;
  --accent:       #38e0c4;   /* teal */
  --accent-2:     #5b8bff;   /* electric blue */
  --accent-3:     #a06bff;   /* violet */
  --glow:         rgba(56, 224, 196, 0.35);
  --radius:       16px;
  --maxw:         1180px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", "Fira Code", ui-monospace, Menlo, Consolas, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* subtle grid / glow backdrop */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 500px at 80% -5%, rgba(91,139,255,0.12), transparent 60%),
    radial-gradient(800px 600px at 0% 10%, rgba(56,224,196,0.10), transparent 55%),
    radial-gradient(700px 700px at 100% 100%, rgba(160,107,255,0.08), transparent 60%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 0%, black, transparent 80%);
}

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

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { color: var(--text-dim); }

.gradient-text {
  background: linear-gradient(100deg, var(--accent), var(--accent-2) 55%, var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--accent);
  display: inline-block;
}

/* ---------- Navigation ---------- */
header.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(10, 14, 23, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand .logo {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center;
  font-family: var(--mono);
  font-weight: 800;
  color: #04121b;
  font-size: 1rem;
  box-shadow: 0 0 22px var(--glow);
}
.brand small { display:block; font-size: 0.68rem; letter-spacing: 0.01em; color: var(--text-faint); font-style: italic; font-weight: 500; }
.brand-mark { width: 40px; height: 40px; display: block; flex: none; }
.brand-full { height: 96px; width: auto; display: block; }
.gf-photo { width: 100%; max-width: 240px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; border: 1px solid var(--border); display: block; margin: 0 auto 20px; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 8px 14px;
  border-radius: 9px;
  font-size: 0.92rem;
  color: var(--text-dim);
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: var(--bg-card); }
.nav-links a.active { color: var(--accent); font-weight: 600; }
.nav-cta {
  background: transparent !important;
  color: var(--text-dim) !important;
}
.nav-cta:hover { color: var(--text) !important; background: var(--bg-card) !important; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); color: var(--text); border-radius: 9px; padding: 8px 11px; font-size: 1.1rem; cursor: pointer; }

/* Sprachumschalter DE/EN */
.lang-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-dim);
  border-radius: 9px;
  padding: 7px 12px;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.lang-toggle:hover { color: var(--text); border-color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 24px;
  border-radius: 11px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #04121b;
  box-shadow: 0 0 24px var(--glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 30px var(--glow); }
.btn-ghost { border-color: var(--border); color: var(--text); background: var(--bg-card); }
.btn-ghost:hover { border-color: var(--accent); transform: translateY(-2px); }

/* ---------- Sections ---------- */
section { padding: 90px 0; }
.section-head { max-width: 720px; margin-bottom: 54px; }
.section-head h2 { margin: 16px 0 14px; }
.section-head p { font-size: 1.08rem; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Hero ---------- */
.hero { padding: 110px 0 90px; position: relative; }
.hero h1 { margin: 22px 0 22px; max-width: 14ch; }
.hero p.lead { font-size: 1.2rem; max-width: 56ch; color: var(--text-dim); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }
.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; margin-top: 60px; padding-top: 36px; border-top: 1px solid var(--border); }
.hero-stats .stat .num { font-size: 2rem; font-weight: 700; font-family: var(--mono); }
.hero-stats .stat .lbl { color: var(--text-faint); font-size: 0.9rem; }

/* code-ish floating panel in hero */
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center; }
.code-panel {
  background: linear-gradient(180deg, var(--bg-card), var(--bg-card-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.45);
}
.code-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.code-bar span { width: 11px; height: 11px; border-radius: 50%; background: #2c3a52; }
.code-bar .t { margin-left: 10px; font-family: var(--mono); font-size: 0.75rem; color: var(--text-faint); }
.code-body { padding: 20px; font-family: var(--mono); font-size: 0.83rem; line-height: 1.85; color: var(--text-dim); }
.code-body .k { color: var(--accent-3); }
.code-body .s { color: var(--accent); }
.code-body .n { color: var(--accent-2); }
.code-body .c { color: var(--text-faint); }

/* pipeline diagram */
.pipeline { display: flex; flex-direction: column; gap: 10px; }
.pipe-node {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 11px;
  font-family: var(--mono);
  font-size: 0.88rem;
}
.pipe-node .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); flex: none; }
.pipe-arrow { text-align: center; color: var(--accent-2); font-size: 1.1rem; line-height: 1; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.card {
  background: linear-gradient(180deg, var(--bg-card), var(--bg-card-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .2s, border-color .2s, box-shadow .2s;
  position: relative;
  overflow: hidden;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 16px 40px rgba(0,0,0,0.4); }
.card .ico {
  width: 48px; height: 48px;
  border-radius: 13px;
  display: grid; place-items: center;
  background: rgba(56,224,196,0.10);
  border: 1px solid rgba(56,224,196,0.22);
  margin-bottom: 18px;
  color: var(--accent);
}

/* Linien-Icons (SVG) – schlicht & modern */
.ico svg { width: 24px; height: 24px; display: block; }
.ico { color: var(--accent); }
.card:hover .ico { background: rgba(56,224,196,0.16); border-color: var(--accent); }
.card h3 { margin-bottom: 10px; overflow-wrap: break-word; word-break: break-word; hyphens: auto; }
.card p { font-size: 0.95rem; }

.tag-badge {
  position: absolute; top: 22px; right: 22px;
  font-family: var(--mono); font-size: 0.68rem;
  color: var(--accent); letter-spacing: 0.1em;
  border: 1px solid var(--border); border-radius: 30px;
  padding: 3px 10px;
}

/* feature list */
ul.ticks { list-style: none; display: grid; gap: 10px; margin-top: 8px; }
ul.ticks li { position: relative; padding-left: 28px; color: var(--text-dim); font-size: 0.95rem; }
ul.ticks li::before {
  content: "▸"; position: absolute; left: 4px; top: 0;
  color: var(--accent); font-weight: 700;
}
ul.ticks a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
ul.ticks a:hover { color: var(--text); }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.chip {
  font-family: var(--mono); font-size: 0.8rem;
  padding: 6px 13px; border-radius: 30px;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-dim);
}

/* split feature block */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.split.rev > div:first-child { order: 2; }

/* values / roadmap */
.value-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.value {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
}
.value .v-num { font-family: var(--mono); color: var(--accent); font-size: 0.8rem; }
.value h4 { margin: 6px 0; font-size: 1.05rem; }

/* roadmap timeline */
.timeline { display: grid; gap: 0; position: relative; margin-top: 20px; }
.tl-item { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--border); }
.tl-item:last-child { border-bottom: none; }
.tl-phase { font-family: var(--mono); color: var(--accent-2); font-size: 0.9rem; padding-top: 2px; }
.tl-item h4 { margin-bottom: 6px; }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, rgba(56,224,196,0.12), rgba(91,139,255,0.12));
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { margin-bottom: 14px; }
.cta-band p { max-width: 52ch; margin: 0 auto 28px; font-size: 1.08rem; }

/* ---------- Forms ---------- */
.form-card {
  background: linear-gradient(180deg, var(--bg-card), var(--bg-card-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.85rem; color: var(--text-dim); margin-bottom: 7px; font-family: var(--mono); letter-spacing: 0.04em; }
.field input, .field textarea, .field select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 15px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(56,224,196,0.15);
}
.field textarea { resize: vertical; min-height: 130px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.info-block { display: grid; gap: 22px; }
.info-item { display: flex; gap: 16px; align-items: flex-start; }
.info-item .ico { width: 46px; height: 46px; border-radius: 12px; background: rgba(91,139,255,0.10); border: 1px solid rgba(91,139,255,0.22); display: grid; place-items: center; flex: none; color: var(--accent-2); }
.info-item .lbl { font-size: 0.8rem; color: var(--text-faint); font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.08em; }
.info-item a, .info-item span { color: var(--text); }

/* legal / impressum prose */
.prose { max-width: 760px; }
.prose h3 { margin: 34px 0 10px; color: var(--text); }
.prose p { margin-bottom: 12px; }
.prose .ph { color: var(--accent); font-family: var(--mono); }

/* ---------- Footer ---------- */
footer.site {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 60px 0 30px;
  margin-top: 40px;
}
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.foot-grid p { font-size: 0.92rem; max-width: 38ch; margin-top: 14px; }
.foot-col h5 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-faint); margin-bottom: 16px; font-family: var(--mono); }
.foot-col a { display: block; color: var(--text-dim); font-size: 0.95rem; padding: 5px 0; transition: color .2s; }
.foot-col a:hover { color: var(--accent); }
.foot-bottom { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--text-faint); font-size: 0.85rem; }

/* ---------- Animations ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; }
.reveal.in { animation: fadeUp .7s ease forwards; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .split.rev > div:first-child { order: 0; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .value-row { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav-links {
    position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: var(--bg-soft); border-bottom: 1px solid var(--border);
    padding: 14px 24px; gap: 4px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4, .value-row, .foot-grid { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .cta-band { padding: 36px 24px; }
  .tl-item { grid-template-columns: 1fr; gap: 6px; }
}
