/* NOVELDO AI — shared styles
   Tokens from the brief, light theme only.
*/

:root {
  --ink: #1A202C;
  --accent: #2563EB;
  --accent-deep: #1D4ED8;
  --paper: #FFFFFF;
  --paper-soft: #F8FAFC;
  --muted: #64748B;
  --muted-strong: #475569;
  --border: #E2E8F0;
  --border-strong: #CBD5E1;

  --max: 1200px;
  --prose: 760px;

  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-deep); }

p { margin: 0 0 1em; text-wrap: pretty; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-weight: 800; font-size: clamp(36px, 5.6vw, 64px); line-height: 1.05; letter-spacing: -0.03em; }
h2 { font-weight: 700; font-size: clamp(28px, 3.8vw, 44px); line-height: 1.1; }
h3 { font-weight: 600; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.25; letter-spacing: -0.01em; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.prose { max-width: var(--prose); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); }
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.brand img { height: 28px; width: auto; }
.brand-text { font-weight: 800; letter-spacing: -0.01em; font-size: 18px; }
.brand-text em { font-style: normal; color: var(--accent); }
.nav { display: flex; align-items: center; gap: 36px; }
.nav a {
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  position: relative;
  padding: 6px 0;
}
.nav a:hover { color: var(--accent); }
.nav-cta {
  background: var(--ink);
  color: var(--paper) !important;
  padding: 9px 18px !important;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.15s ease;
}
.nav-cta:hover { background: #0b1018; color: var(--paper) !important; }

.menu-toggle { display: none; background: none; border: none; padding: 6px; color: var(--ink); cursor: pointer; }

@media (max-width: 760px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .site-header .container { height: 64px; padding: 0 20px; }
  .nav.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--border);
    padding: 8px 20px 20px;
  }
  .nav.open a { padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 16px; }
  .nav.open a:last-child { border-bottom: none; }
  .nav.open .nav-cta { margin-top: 12px; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.05s ease;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: #0b1018; color: var(--paper); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); padding-left: 0; padding-right: 0; }
.btn-ghost .arrow { transition: transform 0.15s ease; }
.btn-ghost:hover .arrow { transform: translateX(3px); }

/* ---------- Section scaffolding ---------- */
section { padding: 112px 0; position: relative; }
@media (max-width: 760px) { section { padding: 80px 0; } }
.section-alt { background: var(--paper-soft); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}
.eyebrow::before {
  content: ""; display: inline-block;
  width: 24px; height: 1px; background: currentColor; opacity: 0.5;
}
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head .sub {
  font-size: clamp(20px, 1.8vw, 22px);
  color: var(--muted-strong);
  margin-top: 16px;
  line-height: 1.45;
  font-weight: 400;
}

/* ---------- Fade-in motion ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s cubic-bezier(.22,.61,.36,1), transform 0.7s cubic-bezier(.22,.61,.36,1);
}
.fade-in.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 64px;
  background: var(--paper);
}
.site-footer .container {
  display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap;
  align-items: flex-start;
}
.footer-brand { display: flex; flex-direction: column; gap: 10px; max-width: 360px; }
.footer-brand img { height: 26px; width: auto; }
.footer-brand .small {
  color: var(--muted); font-size: 14px; line-height: 1.55;
}
.footer-links { display: flex; gap: 32px; }
.footer-links a {
  color: var(--muted); font-size: 14px; font-weight: 500;
}
.footer-links a:hover { color: var(--ink); }
.footer-bottom {
  margin-top: 40px; padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px; color: var(--muted);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}

/* ---------- Legal pages (imprint/privacy) ---------- */
.legal {
  padding: 80px 0 120px;
}
.legal h1 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 32px; }
.legal h2 { font-size: clamp(20px, 1.8vw, 24px); margin: 48px 0 12px; font-weight: 700; }
.legal h3 { font-size: 17px; font-weight: 600; margin: 24px 0 6px; }
.legal p, .legal li { color: var(--muted-strong); font-size: 16px; line-height: 1.7; }
.legal a { word-break: break-word; }
.legal .back {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--muted); font-size: 14px; margin-bottom: 28px;
}
.legal .back:hover { color: var(--ink); }
.legal .meta {
  font-size: 14px; color: var(--muted); margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--border);
}

/* ---------- Contact page ---------- */
.contact-page { padding: 88px 0 120px; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  background: var(--paper);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.contact-card:hover { border-color: var(--ink); }
.contact-card .label {
  font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.contact-card .label svg { width: 16px; height: 16px; }
.contact-card .primary {
  font-size: 18px; font-weight: 600; color: var(--ink); margin-bottom: 8px;
  letter-spacing: -0.01em;
  display: block;
  word-break: break-word;
}
.contact-card a.primary:hover { color: var(--accent); }
.contact-card .meta { font-size: 14px; color: var(--muted); line-height: 1.5; }
.contact-card address { font-style: normal; font-size: 15px; color: var(--muted-strong); line-height: 1.55; }
