/* data-claw.de: coming-soon page
   Brand values: data-claw_logo-pack/README.md and website/01-brand-and-positioning.md
   Fonts are self-hosted (no Google Fonts CDN). Eudoxus Sans, SIL OFL 1.1, see fonts/LICENSE.md */

@font-face {
  font-family: "Eudoxus Sans";
  src: url("fonts/EudoxusSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Eudoxus Sans";
  src: url("fonts/EudoxusSans-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Eudoxus Sans";
  src: url("fonts/EudoxusSans-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;

  --bg: #0C0B14;            /* brand black */
  --bg-deep: #110F1D;
  --violet: #7758F9;        /* primary violet (logo) */
  --violet-deep: #5B3FD1;   /* hover */
  --violet-text: #A08BFF;   /* violet lightened for small text on dark, 7:1 contrast */
  --text: #F9F9F9;          /* brand white */
  --text-muted: #B8B8C7;
  --text-subtle: #8C8B99;
  --line: rgba(249, 249, 249, 0.08);
  --line-violet: rgba(119, 88, 249, 0.45);

  --font: "Eudoxus Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  --maxw: 1200px;
  --gutter: clamp(16px, 5vw, 56px);
  --radius: 16px;

  --spark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0C8.6 4.6 11.4 7.4 16 8 11.4 8.6 8.6 11.4 8 16 7.4 11.4 4.6 8.6 0 8 4.6 7.4 7.4 4.6 8 0Z'/%3E%3C/svg%3E");
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Background: violet glow + faint dot grid */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}
body::before {
  z-index: -2;
  background:
    radial-gradient(60rem 40rem at 82% 22%, rgba(119, 88, 249, 0.17), transparent 65%),
    radial-gradient(48rem 34rem at 0% 100%, rgba(119, 88, 249, 0.09), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
}
body::after {
  z-index: -1;
  background-image: radial-gradient(rgba(249, 249, 249, 0.09) 1px, transparent 1.2px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 72% 32%, #000 15%, transparent 75%);
  mask-image: radial-gradient(ellipse 75% 65% at 72% 32%, #000 15%, transparent 75%);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--violet-text);
}

:focus-visible {
  outline: 2px solid var(--violet-text);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  padding: 0.6em 1em;
  border-radius: 8px;
  background: var(--violet);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}

/* Sparkle marker (the "." in the logo) */
.spark {
  flex: none;
  display: inline-block;
  width: 0.75em;
  height: 0.75em;
  background: currentColor;
  -webkit-mask: var(--spark) center / contain no-repeat;
  mask: var(--spark) center / contain no-repeat;
}

/* ---------- Header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: clamp(18px, 3vw, 28px);
}

.brand {
  display: block;
  border-radius: 6px;
}
.brand img {
  width: auto;
  height: clamp(26px, 2.4vw, 32px);
}

.lang {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(249, 249, 249, 0.02);
}
.lang a {
  min-width: 2.75em;
  padding: 0.4em 0.8em;
  border-radius: 999px;
  color: var(--text-subtle);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}
.lang a:hover {
  color: var(--text);
}
.lang a[aria-current="page"] {
  background: rgba(119, 88, 249, 0.2);
  color: var(--text);
}

/* ---------- Main ---------- */

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding-block: clamp(24px, 5vh, 64px) clamp(32px, 5vh, 56px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65em;
  margin: 0 0 clamp(20px, 3vh, 28px);
  padding: 0.45em 1em 0.45em 0.85em;
  border: 1px solid var(--line-violet);
  border-radius: 999px;
  background: rgba(119, 88, 249, 0.1);
  color: var(--violet-text);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}
.eyebrow .spark {
  animation: twinkle 2.8s ease-in-out infinite;
}

h1 {
  margin: 0;
  max-width: 17ch;
  font-size: clamp(2.25rem, 1.15rem + 4vw, 4.25rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
h1 .hl {
  background: linear-gradient(180deg, var(--violet-text) 10%, var(--violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  margin: clamp(20px, 3vh, 28px) 0 0;
  max-width: 34em;
  color: var(--text-muted);
  font-size: clamp(1.0625rem, 0.98rem + 0.35vw, 1.25rem);
  line-height: 1.55;
  text-wrap: pretty;
}
.lead strong {
  color: var(--text);
  font-weight: 700;
}

.note {
  margin: 16px 0 0;
  max-width: 38em;
  color: var(--text-subtle);
  font-size: 0.9375rem;
  text-wrap: pretty;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: clamp(24px, 4vh, 36px);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.9em 1.4em;
  border-radius: 12px;
  background: var(--violet);
  color: #fff;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 10px 32px -10px rgba(119, 88, 249, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn:hover {
  background: var(--violet-deep);
  transform: translateY(-1px);
  box-shadow: 0 14px 36px -10px rgba(119, 88, 249, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn svg {
  width: 1.1em;
  height: 1.1em;
  transition: transform 0.2s;
}
.btn:hover svg {
  transform: translateX(3px);
}

.mail {
  margin: 0;
  color: var(--text-subtle);
  font-size: 0.9375rem;
}
.mail a {
  color: var(--text);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(160, 139, 255, 0.5);
  text-underline-offset: 4px;
  transition: text-decoration-color 0.2s, color 0.2s;
}
.mail a:hover {
  color: var(--violet-text);
  text-decoration-color: currentColor;
}
.mail a,
.card-link {
  white-space: nowrap; /* never break the address at its hyphen */
}

/* Contact panel: "Request a team" / "Write to us" open a small panel with the address,
   a Copy button and Email app / Gmail / Outlook links (works even when mailto: does nothing) */
.contact {
  position: relative;
}
.contact > summary {
  list-style: none;
  cursor: pointer;
}
.contact > summary::-webkit-details-marker {
  display: none;
}
.contact > summary .chev {
  width: 1.1em;
  height: 1.1em;
  transition: transform 0.2s;
}
.contact[open] > summary .chev {
  transform: rotate(180deg);
}
.btn:hover .chev,
.card-link:hover .chev {
  transform: none;
}
.contact[open] > .btn:hover .chev {
  transform: rotate(180deg);
}

.contact-panel {
  position: absolute;
  z-index: 20;
  top: calc(100% + 10px);
  left: 0;
  width: max-content;
  max-width: calc(100vw - 2 * var(--gutter));
  padding: 18px 20px;
  border: 1px solid var(--line-violet);
  border-radius: 14px;
  background: #16132A;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.85);
  animation: pop 0.18s ease-out;
}
.card .contact-panel {
  position: static;
  width: auto;
  max-width: none;
  margin-top: 12px;
  padding: 14px 16px;
  box-shadow: none;
}
@keyframes pop {
  from { opacity: 0; transform: translateY(-4px); }
}

.contact-panel p {
  margin: 0;
}
.contact-title {
  color: var(--text-subtle);
  font-size: 0.875rem;
}
.contact-address {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-block: 6px 14px !important;
}
.contact-email {
  color: var(--text);
  font-size: 1.125rem;
  font-weight: 700;
  white-space: nowrap;
}
.card .contact-email {
  font-size: 1rem;
}
.contact-open {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--text-subtle);
  font-size: 0.875rem;
}
.contact-open span:first-child {
  margin-right: 2px;
}
.contact-open a {
  padding: 0.4em 0.85em;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  transition: border-color 0.2s, background-color 0.2s;
}
.contact-open a:hover {
  border-color: var(--line-violet);
  background: rgba(119, 88, 249, 0.14);
}

/* "Copy" button (shown by contact.js) */
.copy {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  min-height: 28px;
  padding: 0.3em 0.75em;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(249, 249, 249, 0.04);
  color: var(--text-muted);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.2;
  vertical-align: middle;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}
.copy[hidden] {
  display: none;
}
.copy:hover {
  border-color: rgba(249, 249, 249, 0.2);
  color: var(--text);
}
.copy.is-done {
  border-color: var(--line-violet);
  background: rgba(119, 88, 249, 0.12);
  color: var(--violet-text);
}
.copy svg {
  width: 1em;
  height: 1em;
}

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

/* ---------- Hero visual: data lines pulled into the claw ---------- */

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1 / 1;
  justify-self: end;
}

.flow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.flow .base {
  stroke-width: 1.25;
}

.flow .packet {
  stroke: #C9BDFF;
  stroke-width: 2.6;
  stroke-dasharray: 0.4 11.6;
  animation: flow 3.4s linear infinite;
}
.flow .packet:nth-of-type(2n) { animation-duration: 4.2s; }
.flow .packet:nth-of-type(3n) { animation-duration: 2.9s; }
.flow .packet:nth-of-type(5n) { animation-duration: 4.8s; }

.flow .orbit {
  transform-box: view-box;
  transform-origin: 280px 300px;
  animation: spin 48s linear infinite;
}
.flow .orbit--reverse {
  animation-duration: 70s;
  animation-direction: reverse;
}

.flow .twinkle {
  transform-box: fill-box;
  transform-origin: center;
  animation: twinkle 3.6s ease-in-out infinite;
}
.flow .twinkle.d2 { animation-delay: -1.2s; }
.flow .twinkle.d3 { animation-delay: -2.4s; }

.symbol {
  position: absolute;
  left: 50%;
  top: 53.6%;
  width: 44%;
  height: auto;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 12px 48px rgba(119, 88, 249, 0.4));
  animation: float 7s ease-in-out infinite alternate;
}

@keyframes flow {
  to { stroke-dashoffset: -24; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes twinkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.7); }
}
@keyframes float {
  from { transform: translate(-50%, -50%); }
  to { transform: translate(-50%, calc(-50% - 10px)); }
}

/* ---------- Services ---------- */

.services {
  padding-block: clamp(8px, 2vh, 16px) clamp(28px, 5vh, 48px);
}

.section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 16px;
  color: var(--text-subtle);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-transform: uppercase;
}
.section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  padding: 20px 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(249, 249, 249, 0.04), rgba(249, 249, 249, 0.012));
  transition: border-color 0.2s;
}
.card:hover {
  border-color: rgba(249, 249, 249, 0.16);
}
.card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-bottom: 8px;
}
.card h3 {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.card--core {
  border-color: var(--line-violet);
  background: linear-gradient(180deg, rgba(119, 88, 249, 0.18), rgba(119, 88, 249, 0.04));
}
.card--core:hover {
  border-color: rgba(119, 88, 249, 0.7);
}

.tag {
  padding: 0.3em 0.65em;
  border: 1px solid var(--line-violet);
  border-radius: 999px;
  color: var(--violet-text);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

/* ---------- Received a document (CV / job description) ---------- */

.docs {
  padding-block: 0 clamp(24px, 4vh, 40px);
}

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

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  margin-top: 12px;
  color: var(--violet-text);
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  text-underline-offset: 4px;
}
.card-link:hover {
  text-decoration: underline;
}
.card-link svg {
  width: 1em;
  height: 1em;
  transition: transform 0.2s;
}
.card-link:hover svg {
  transform: translateX(3px);
}

/* ---------- Trust strip ---------- */

.trust ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 28px;
  margin: 0;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
.trust li {
  display: flex;
  align-items: center;
  gap: 0.6em;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.4;
}
.trust .spark {
  color: var(--violet);
}

/* ---------- Footer ---------- */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 18px 28px;
  /* hairline aligned with the content, not the padded box */
  background: linear-gradient(var(--line), var(--line)) var(--gutter) 0 / calc(100% - 2 * var(--gutter)) 1px no-repeat;
  color: var(--text-subtle);
  font-size: 0.8125rem;
}
.site-footer p {
  margin: 0;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}
.site-footer a {
  color: var(--text-subtle);
  text-decoration: none;
  transition: color 0.2s;
}
.site-footer a:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Legal page ---------- */

.legal {
  max-width: 72ch;
  margin-inline: 0;
  padding-block: clamp(16px, 4vh, 40px) clamp(40px, 8vh, 80px);
}
.legal h1 {
  max-width: none;
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem);
}
.legal .toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 20px 0 8px;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
}
.legal .toc a {
  color: var(--violet-text);
  text-underline-offset: 3px;
}
.legal section {
  padding-top: 40px;
  scroll-margin-top: 16px;
}
.legal section + section {
  margin-top: 16px;
  border-top: 1px solid var(--line);
}
.legal h2 {
  margin: 0 0 8px;
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.legal .lang-label {
  margin: 0 0 4px;
  color: var(--violet-text);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.legal h3 {
  margin: 28px 0 6px;
  font-size: 1.0625rem;
  font-weight: 700;
}
.legal p,
.legal li,
.legal address {
  color: var(--text-muted);
  font-style: normal;
}
.legal p,
.legal address {
  margin: 0 0 10px;
}
.legal ul {
  margin: 0 0 10px;
  padding-left: 1.2em;
}
.legal strong {
  color: var(--text);
}

/* Placeholders that must be filled in before going live */
.todo {
  padding: 0 0.3em;
  border: 1px dashed #F5B74E;
  border-radius: 4px;
  background: rgba(245, 183, 78, 0.12);
  color: #FFD48A;
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding-top: 8px;
  }
  .hero-visual {
    order: -1;
    max-width: 300px;
    justify-self: center;
    margin-bottom: -12px;
  }
  .trust ul {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .cards {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-visual {
    max-width: 240px;
  }
  .cta .contact,
  .btn {
    width: 100%;
    justify-content: center;
  }
  .trust ul {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Document references (DC-C-… / DC-J-…) never break at their hyphens */
.ref {
  white-space: nowrap;
}
