/* Meta Pro is the design font (commercial). If a licensed webfont is added to
   /fonts, register it here; until then Fira Sans (a Meta descendant) is used. */
@font-face {
  font-family: "Fira Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/fira-sans-400.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: "Fira Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/fira-sans-400-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;
}

/* ---------- Tokens (from Figma variables) ---------- */
:root {
  --surface-primary: #f2f2f2;
  --surface-highlight: #076aff;
  --type-primary: #000000;
  --type-secondary: #666666;
  --type-invisible: #d9d9d9;
  --type-highlight: #076aff;
  --type-invert: #ffffff;
  --border-light: #e5e5e5;
  --border-strong: #d9d9d9;
  --icon-alpha-1: rgba(255, 255, 255, 0.5);
  --icon-alpha-2: rgba(0, 0, 0, 0.4);
  --logo-filter: none;

  --font: "Meta Pro", "Fira Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 32px;

  color-scheme: light;
}

:root[data-theme="dark"] {
  --surface-primary: #2c2c2c;
  --surface-highlight: #4891ff;
  --type-primary: #ffffff;
  --type-secondary: #a6a6a6;
  --type-invisible: #404040;
  --type-highlight: #4891ff;
  --border-light: #3a3a3a;
  --border-strong: #4a4a4a;
  --icon-alpha-2: rgba(255, 255, 255, 0.5);
  --logo-filter: invert(1);
  color-scheme: dark;
}

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

html, body { margin: 0; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--surface-primary);
  color: var(--type-secondary);
  font-family: var(--font);
  font-size: 16px;
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--type-primary); }
:focus-visible { outline: 2px solid var(--type-highlight); outline-offset: 3px; border-radius: 4px; }

p, h1, h2 { margin: 0; font-weight: 400; }

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

/* Icons are Font Awesome SVGs used as masks so they follow color tokens */
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex: none;
}
.icon::before {
  content: "";
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}
.icon--external { --icon: url("/assets/icon-up-right-from-square.svg"); }
.icon--linkedin { --icon: url("/assets/icon-linkedin.svg"); }
.icon--instagram { --icon: url("/assets/icon-instagram.svg"); }
.icon--theme { --icon: url("/assets/icon-circle-half-stroke.svg"); }

/* ---------- Header ---------- */
.header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  padding: 16px var(--gutter);
}
.header::after,
.footer::before {
  content: "";
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background: var(--border-light);
}
.header::after { bottom: 0; }

.logo { display: block; line-height: 0; }
.logo img { width: 88.5655px; height: 12px; filter: var(--logo-filter); }

.tab {
  position: absolute;
  left: 50%;
  bottom: 0;
  height: 52px;
  transform: translateX(-50%);
  letter-spacing: -0.02em;
  color: var(--type-secondary);
}
.tab[aria-current="page"] { color: var(--type-primary); }

.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.header__hire { letter-spacing: -0.03em; }
.header__hire[aria-current="page"] { color: var(--type-primary); }
.header__mail { color: var(--type-primary); }
.header__mail:hover { color: var(--type-highlight); }

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 12px 5px;
  border: 0;
  border-radius: 8px;
  background: var(--surface-highlight);
  color: var(--type-invert);
  font: inherit;
  font-size: 16px;
  line-height: normal;
  letter-spacing: -0.03em;
  font-feature-settings: "salt" 1;
  cursor: pointer;
  transition: filter 0.15s ease;
}
.button:hover { color: var(--type-invert); filter: brightness(1.08); }
.button .icon { color: var(--icon-alpha-1); }
.button[disabled] { opacity: 0.6; cursor: progress; }

/* ---------- Main ---------- */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 80px;
  padding: 96px var(--gutter) 20px;
}

.headline {
  max-width: 968px;
  font-size: 64px;
  line-height: 80px;
  letter-spacing: -0.02em;
}
.headline__intro { display: block; color: var(--type-invisible); }
.headline__claim { display: block; color: var(--type-secondary); }
.headline__accent { color: var(--type-highlight); }

.features {
  display: flex;
  gap: 64px;
}
.feature {
  flex: 1 0 0;
  min-width: 0;
  padding: 40px 0;
  font-size: 22px;
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: var(--type-secondary);
}
.feature strong { font-weight: 400; color: var(--type-primary); }
.feature__title { display: block; color: var(--type-primary); }

/* ---------- Contact form ---------- */
.contact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 64px;
}
.contact__intro {
  font-size: 22px;
  line-height: 1.5;
  color: var(--type-secondary);
}
.contact__intro a { color: var(--type-primary); }
.contact__intro a:hover { color: var(--type-highlight); }

.form {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.form__row { display: flex; gap: 32px; }
.field { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 12px; letter-spacing: -0.02em; color: var(--type-secondary); }
.field input,
.field textarea {
  width: 100%;
  padding: 8px 0 12px;
  border: 0;
  border-bottom: 1px solid var(--border-strong);
  border-radius: 0;
  background: transparent;
  color: var(--type-primary);
  font: inherit;
  font-size: 22px;
  line-height: 1.5;
  letter-spacing: -0.02em;
  transition: border-color 0.15s ease;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: var(--type-invisible); }
.field input:focus,
.field textarea:focus { outline: none; border-bottom-color: var(--type-highlight); }

.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form__footer { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form__status { font-size: 16px; color: var(--type-secondary); }
.form__status[data-state="success"] { color: var(--type-primary); }
.form__status[data-state="error"] { color: #d93025; }

/* ---------- Legal pages (Impressum) ---------- */
.main--legal { padding-bottom: 80px; }

.legal {
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 12px;
  letter-spacing: -0.02em;
  color: var(--type-primary);
}
.legal__title {
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--type-secondary);
}
.legal__group { margin: 0; font-style: normal; }
.legal__label { display: block; color: var(--type-secondary); }
.legal a:hover { color: var(--type-highlight); }

/* ---------- Footer ---------- */
.footer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--gutter);
}
.footer::before { top: 0; }

.footer__links {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  letter-spacing: -0.02em;
  color: var(--type-secondary);
}
.footer__sep { width: 1px; height: 19px; background: var(--border-strong); }
.footer__social { display: inline-flex; color: var(--icon-alpha-2); }
.footer__social:hover { color: var(--type-primary); }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 6px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--icon-alpha-2);
  cursor: pointer;
}
.theme-toggle:hover { color: var(--type-primary); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .headline { font-size: 48px; line-height: 60px; }
  .features { gap: 32px; }
  .feature { font-size: 18px; }
  .contact { grid-template-columns: 1fr; gap: 40px; }
  .form { grid-column: auto; }
}

@media (max-width: 760px) {
  :root { --gutter: 16px; }
  .header { height: 64px; }
  .tab, .header__mail, .header__hire { display: none; }
  .main { padding-top: 56px; gap: 40px; }
  .headline { font-size: 36px; line-height: 44px; }
  .features { flex-direction: column; gap: 0; }
  .feature { padding: 20px 0; font-size: 18px; }
  .feature br { display: none; }
  .form__row { flex-direction: column; }
  .field input, .field textarea { font-size: 18px; }
  .footer { padding: 24px var(--gutter); }
}
