:root {
  --bg: #ffffff;
  --fg: #111111;
  --accent: #0052ff;
  --muted: #f5f5f7;
  --bubble-client: var(--accent);
  --bubble-client-text: #ffffff;
  --bubble-server: var(--muted);
  --bubble-server-text: var(--fg);

  /* hover motion: slow start, quick middle, soft landing */
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --hover-duration: 0.25s;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  color: rgb(77, 90, 105);
  background: var(--bg);
  line-height: 1.6;
}

#logo{
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--bg);
  letter-spacing: -0.01em;
  background: var(--fg);
  text-align: center;
  width: fit-content;
  margin: 2rem auto;
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
}

header.hero {
  padding: 4rem 1rem 0;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin: 0 0 1rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  color:var(--fg);
}
.hero p {
  font-size: clamp(0.875rem, 2.5vw, 1rem);
  margin: 0 auto;
  max-width: 600px;
  color: #555;
}

.cards {
  display: grid;
  gap: 2rem;
  margin: 3rem;
}
@media (min-width: 700px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}
.card {
  padding: 0.5rem;
  transition: transform var(--hover-duration) var(--ease-in-out);
}
/* Scaled elements live permanently in their own compositing layer, so the
   browser never switches text rendering at hover start/end (no jumping). */
.card, .a {
  will-change: transform;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.card:hover, .a:hover {
  transform: scale(1.02);
}
/* icons grow a touch more than the text */
.card svg {
  transform-origin: 50% 50%;
  will-change: transform; /* own layer: scaling the icon must not repaint the card's text */
  transition: transform var(--hover-duration) var(--ease-in-out);
}
.card:hover svg {
  transform: scale(1.08);
}
.card h3 {
  margin-top: 0;
  font-size: 1.25rem;
}
.card p {
  margin: 0 0 0.5rem 0;
}

section.faq {
  padding: 4rem 1rem;
  max-width: 600px;
  margin: 0 auto;
}
.faq h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  font-weight: 600;
}
.chat {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.bubble {
  padding: 1rem 1.25rem;
  border-radius: 1.25rem;
  display: inline-block;
}
.q {
  align-self: flex-end;
  background: var(--bubble-client);
  color: var(--bubble-client-text);
  border-bottom-right-radius: 0.2rem;
  cursor: default;
}
.a {
  background: var(--bubble-server);
  color: rgb(103, 118, 135);
  border-radius: 1rem;
  font-size: 1.25rem;
  padding: 3rem;
  line-height: 1.25em;

  transition: transform var(--hover-duration) var(--ease-in-out);
}

.illustration {
  margin: 4rem 0;
  text-align: center;
}
.illustration svg {
  max-width: 320px;
  width: 60%;
  height: auto;
  opacity: 0.6;
}

.illustration svg circle {
  transition: all 1s ease-in-out;
}

h4{
  font-size: 1.875rem;
  line-height: 1.1em;
  font-weight: 600;
  letter-spacing: -0.024em;
  margin: 0 0 1rem;
  color: var(--fg);
}

footer {
  padding: 2rem 1rem;
  font-size: 0.875rem;
  color: #666;
  text-align: center;
}
footer a {
  color: #333;
  text-decoration: none;
  margin: 0 0.5rem;
}

/* ---- Additions for subpages (contact, projects) ---- */
a#logo {
  display: block;
  text-decoration: none;
}

.hero .lead {
  margin-top: 1rem;
}

a.bubble {
  display: block;
  text-decoration: none;
}
.a a {
  color: #9333ea;
  text-decoration: none;
}
.a a:hover {
  text-decoration: underline;
}
.a p:last-child {
  margin-bottom: 0;
}

.map {
  display: block;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem 2rem;
}
.map img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1rem;
  will-change: transform;
  transition: transform var(--hover-duration) var(--ease-in-out);
}
.map:hover img {
  transform: scale(1.02);
}

footer nav {
  margin: 0.25rem 0;
}

@media (prefers-reduced-motion: reduce) {
  .card, .card svg, .a, .map img {
    transition: none;
  }
}
