/* ==========================================================================
   Creatica — self-hosted static site
   Dark theme matching the original creatica.de (DM Sans, centered hero,
   green pill eyebrows, monochrome client logos).
   ========================================================================== */

/* ---------- Self-hosted DM Sans (variable font, two unicode-range subsets) ---
   Source: Google Fonts DM Sans v17 (OFL-1.1). Served from creatica.de directly
   so no IP-disclosing CDN call. */
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("assets/fonts/dmsans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("assets/fonts/dmsans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Design tokens ---------- */
:root {
  --bg: #0f0f0f;
  --bg-soft: #131313;
  --bg-band: #0a0a0a;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-hover: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.68);
  --text-subtle: rgba(255, 255, 255, 0.48);

  --accent-green: #5fc97e;
  --accent-green-bg: rgba(72, 175, 104, 0.14);
  --accent-green-border: rgba(72, 175, 104, 0.32);
  --accent-pink: #ff2a6e;

  --radius: 14px;
  --radius-pill: 999px;
  --radius-card: 18px;

  --content: 1200px;
  --content-narrow: 920px;

  --font: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  font-feature-settings: "ss01", "cv11";
}
img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
h1 {
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  letter-spacing: -0.03em;
  line-height: 1.04;
}
h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}
h3 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
}
h4 {
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
p {
  margin: 0 0 1em;
  color: var(--text-muted);
}
.lead {
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 56ch;
}

/* Pink Munich-style emphasis used in hero subtext */
.accent-pink {
  color: var(--accent-pink);
  font-weight: 600;
}

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  max-width: var(--content-narrow);
}
.section {
  padding: 96px 0;
}
.section-tight {
  padding: 64px 0;
}
.center {
  text-align: center;
}
.center .lead {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Eyebrow badge (green pill) ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--accent-green-border);
  background: var(--accent-green-bg);
  color: var(--accent-green);
  border-radius: var(--radius-pill);
  font-size: 0.825rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-bottom: 24px;
}
.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 0 3px rgba(72, 175, 104, 0.18);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: -0.005em;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn-primary {
  background: #ffffff;
  color: #0f0f0f;
}
.btn-primary:hover {
  background: #f0f0f0;
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  background: var(--surface-hover);
}

/* ---------- Header / nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 15, 15, 0.78);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 0.95rem;
  text-transform: uppercase;
}
.brand img {
  height: 22px;
  width: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav-links a:hover {
  color: var(--text);
}
.nav-links a.is-active {
  color: var(--text);
}
.nav-cta {
  margin-left: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: #ffffff;
  color: #0f0f0f !important;
  font-weight: 500;
}
.nav-cta:hover {
  background: #f0f0f0;
}
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  position: relative;
  border-radius: 8px;
}
.nav-toggle span {
  display: block;
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span:nth-child(1) {
  top: 14px;
}
.nav-toggle span:nth-child(2) {
  top: 19px;
}
.nav-toggle span:nth-child(3) {
  top: 24px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 120px 0 96px;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("assets/hero-grid-bg.svg?v=2");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.85;
  z-index: -1;
  pointer-events: none;
  mask-image: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 1) 50%,
    rgba(0, 0, 0, 0.4) 100%
  );
}
.hero-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.hero-inner h1 {
  max-width: 18ch;
}
.hero-inner .lead {
  max-width: 58ch;
}

/* ---------- Trusted-by row ---------- */
.trusted {
  padding: 56px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-band);
}
.trusted h5 {
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-subtle);
  letter-spacing: 0.04em;
  margin-bottom: 32px;
}
.logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 56px;
}
.logo-row img {
  height: 36px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  opacity: 0.55;
  filter: grayscale(1) brightness(1.05) contrast(0.95);
  transition: opacity 0.2s ease, filter 0.2s ease;
}
.logo-row img:hover {
  opacity: 0.95;
  filter: grayscale(0.2);
}
/* Tame the boxed logos so heights look balanced visually */
.logo-row img.logo-yara,
.logo-row img.logo-reev {
  height: 44px;
  border-radius: 8px;
}
.logo-row img.logo-tum {
  height: 32px;
}
.logo-row img.logo-rabot,
.logo-row img.logo-reverion {
  height: 26px;
}

/* ---------- Section heads ---------- */
.section-head {
  text-align: center;
  margin-bottom: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.section-head h2 {
  max-width: 22ch;
}
.section-head .lead {
  max-width: 56ch;
}

/* ---------- Service cards ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px;
  transition: background 0.2s ease, border-color 0.2s ease,
    transform 0.2s ease;
}
.service-card:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.service-card .icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--accent-green-bg);
  color: var(--accent-green);
  margin-bottom: 18px;
}
.service-card h4 {
  margin-bottom: 8px;
}
.service-card p {
  font-size: 0.95rem;
  margin: 0;
}
.services-cta {
  margin-top: 56px;
  display: flex;
  justify-content: center;
}

/* ---------- Two-column content ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.two-col .col h3 {
  margin-bottom: 14px;
}
.two-col .col p {
  margin-bottom: 14px;
}

/* ---------- Centered narrative blocks (story, careers sections) ---------- */
.prose {
  max-width: var(--content-narrow);
  margin: 0 auto;
}
.prose p {
  font-size: 1.0625rem;
  margin-bottom: 1.1em;
}
.prose .badge {
  margin-bottom: 18px;
}
.prose-center {
  text-align: center;
}
.prose-center .lead {
  margin: 0 auto 8px;
}

/* ---------- Founders card ---------- */
.founders {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}
.founder {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px;
}
.founder h4 {
  margin-bottom: 4px;
}
.founder .role {
  font-size: 0.875rem;
  color: var(--accent-green);
  font-weight: 500;
  margin-bottom: 14px;
  letter-spacing: 0.01em;
}
.founder p {
  font-size: 0.975rem;
  line-height: 1.6;
  margin: 0;
}

/* ---------- Munich map banner ---------- */
.munich-banner {
  margin: 0 auto;
  max-width: var(--content);
  padding: 0 24px;
}
.munich-banner .frame {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #2a0d2e 0%, #0f0f0f 100%);
}
.munich-banner img {
  width: 100%;
  display: block;
}

/* ---------- Team photo block ---------- */
.team-photo {
  margin: 0 auto;
  max-width: var(--content);
  padding: 0 24px;
}
.team-photo .frame {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16 / 9;
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.3) brightness(0.92);
}

/* ---------- Core values grid (careers) ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.value-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
}
.value-card h4 {
  font-size: 1.0625rem;
  margin-bottom: 8px;
}
.value-card p {
  font-size: 0.9rem;
  margin: 0;
  color: var(--text-muted);
}

/* ---------- Flexbid section ---------- */
.flexbid {
  position: relative;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  padding: 64px 56px;
  overflow: hidden;
  background: radial-gradient(
      circle at 100% 0%,
      rgba(64, 32, 96, 0.5) 0%,
      transparent 55%
    ),
    radial-gradient(
      circle at 0% 100%,
      rgba(255, 42, 110, 0.18) 0%,
      transparent 50%
    ),
    #0a0a0a;
}
.flexbid h2 {
  margin-bottom: 8px;
}
.flexbid h3 {
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--text-muted);
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.flexbid p {
  margin: 0;
}
.flexbid a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(255, 255, 255, 0.3);
  transition: text-decoration-color 0.2s ease;
}
.flexbid a:hover {
  text-decoration-color: var(--text);
}

/* ---------- "Coming soon" / minimal page (news) ---------- */
.minimal-section {
  padding: 160px 0;
  text-align: center;
}
.minimal-section h1 {
  margin-bottom: 16px;
}
.minimal-section .lead {
  margin: 0 auto 28px;
}

/* ---------- CTA strip ---------- */
.cta-strip {
  text-align: center;
  padding: 88px 0;
}
.cta-strip h2 {
  margin-bottom: 24px;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-band);
  padding: 64px 0 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-brand .brand img {
  height: 24px;
}
.footer-brand p {
  margin: 16px 0 18px;
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 28ch;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--accent-green-bg);
  border: 1px solid var(--accent-green-border);
  color: var(--accent-green);
  font-size: 0.825rem;
  font-weight: 500;
}
.status-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 0 3px rgba(72, 175, 104, 0.18);
}
.site-footer h6 {
  margin: 0 0 14px;
  font-size: 0.95rem;
  letter-spacing: -0.005em;
}
.site-footer ul li + li {
  margin-top: 8px;
}
.site-footer ul a {
  color: var(--text-muted);
  font-size: 0.925rem;
  transition: color 0.15s ease;
}
.site-footer ul a:hover {
  color: var(--text);
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-subtle);
}
.footer-bottom a {
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer-bottom a:hover {
  color: var(--text);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .two-col,
  .founders {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .flexbid {
    padding: 48px 32px;
  }
}
@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }
  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(10, 10, 10, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 16px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a {
    padding: 12px 8px;
    border-bottom: 1px solid var(--border);
  }
  .nav-cta {
    margin: 8px 0 0;
    text-align: center;
  }
  .section {
    padding: 64px 0;
  }
  .hero {
    padding: 80px 0 64px;
  }
  .services-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .logo-row {
    gap: 36px;
  }
  .logo-row img {
    height: 30px;
  }
}

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

/* ---------- Focus / accessibility ---------- */
:focus-visible {
  outline: 2px solid var(--accent-green);
  outline-offset: 3px;
  border-radius: 4px;
}
