/* ============================================================
   AI Solutions Boutique — styles.css
   Design: Boutique-Minimal · Hell · Modern-technisch
   ============================================================ */

:root {
  --bg: #F7F7F5;
  --surface: #FFFFFF;
  --text: #0A0F1F;
  --text-muted: #5A6478;
  --border: #E5E5E0;
  --border-strong: #C9C9C2;
  --accent: #6E56CF;
  --accent-soft: #EFEAFB;

  --fs-xs: 12px;
  --fs-sm: 14px;
  --fs-base: 16px;
  --fs-lg: 20px;
  --fs-xl: 28px;
  --fs-2xl: 40px;
  --fs-3xl: 64px;

  --container: 1160px;
  --pad-x: 24px;
  --pad-y: 120px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; margin: 0; }

/* Layout */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

section { padding-top: var(--pad-y); padding-bottom: var(--pad-y); }
.section-divider { border: 0; border-top: 1px solid var(--border); margin: 0; }

/* Typography */
h1, h2, h3, h4 {
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}
h1 { font-size: clamp(40px, 7vw, var(--fs-3xl)); font-weight: 600; letter-spacing: -0.025em; }
h2 { font-size: clamp(28px, 4vw, var(--fs-2xl)); letter-spacing: -0.02em; }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
p { margin: 0 0 1em; color: var(--text); }
.muted { color: var(--text-muted); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.section-header { margin-bottom: 64px; max-width: 720px; }
.section-header h2 { margin-bottom: 16px; }
.section-header p { color: var(--text-muted); font-size: var(--fs-lg); line-height: 1.5; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border: 1px solid var(--text);
  border-radius: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  transition: background 150ms ease-out, color 150ms ease-out, border-color 150ms ease-out;
}
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 247, 245, 0.85);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.brand .slash { color: var(--accent); margin-right: 4px; }

.nav { display: flex; align-items: center; gap: 32px; }

/* Language switch */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 24px;
}
.lang-switch button {
  background: transparent;
  border: 0;
  padding: 4px 6px;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 150ms ease-out, border-color 150ms ease-out;
  border-bottom: 1px solid transparent;
}
.lang-switch button:hover { color: var(--text); }
.lang-switch button.active { color: var(--text); border-bottom-color: var(--accent); }
.lang-switch .sep {
  color: var(--border-strong);
  user-select: none;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
}
.nav a {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--text-muted);
  transition: color 150ms ease-out;
}
.nav a:hover { color: var(--text); }
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-strong);
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--text);
  position: relative;
}
.nav-toggle span::before { content: ''; position: absolute; top: -6px; left: 0; width: 100%; height: 100%; background: var(--text); }
.nav-toggle span::after { content: ''; position: absolute; top: 6px; left: 0; width: 100%; height: 100%; background: var(--text); }

/* Hero */
.hero { padding-top: 96px; padding-bottom: 120px; }
.hero .eyebrow { margin-bottom: 32px; }
.hero h1 { max-width: 14ch; margin-bottom: 32px; }
.hero .subline { font-size: var(--fs-lg); color: var(--text-muted); max-width: 56ch; margin-bottom: 16px; }
.hero .meta {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: 48px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Manifest */
.manifest { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.manifest-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.manifest-item {
  padding: 32px 24px 32px 0;
  border-right: 1px solid var(--border);
}
.manifest-item:last-child { border-right: 0; padding-right: 0; }
.manifest-item .num {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: 12px;
}
.manifest-item h3 { font-size: var(--fs-lg); margin-bottom: 8px; }
.manifest-item p { font-size: var(--fs-sm); color: var(--text-muted); margin: 0; }

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.service-card {
  display: flex;
  flex-direction: column;
  padding: 36px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 200ms ease-out;
  min-height: 280px;
  position: relative;
}
.service-card:hover { background: var(--accent-soft); }
.service-card .icon {
  width: 64px; height: 64px;
  margin-bottom: 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.service-card .icon img {
  width: 200%;
  height: 200%;
  object-fit: contain;
  transform: scale(0.8);
}
.service-card .num {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.service-card h3 { font-size: var(--fs-lg); margin-bottom: 12px; }
.service-card p {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  margin: 0 0 24px 0;
  flex: 1;
}
.service-card .arrow {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--text);
}
.service-card:hover .arrow { color: var(--accent); }

/* Approach */
.approach-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.approach-step {
  border-top: 1px solid var(--text);
  padding-top: 24px;
}
.approach-step .num {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: 12px;
}
.approach-step h3 { font-size: var(--fs-xl); margin-bottom: 16px; }
.approach-step p { color: var(--text-muted); font-size: var(--fs-sm); }
.approach-step .outcome {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.02em;
  color: var(--text);
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 16px;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.about p { font-size: var(--fs-lg); line-height: 1.5; color: var(--text); }
.about .negative {
  border-left: 2px solid var(--accent);
  padding-left: 20px;
  margin-top: 32px;
}
.about .negative h4 { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.about .negative p { font-size: var(--fs-base); color: var(--text-muted); }

/* Locations */
.locations { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.locations-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.locations-list {
  font-family: var(--font-mono);
  font-size: var(--fs-base);
  line-height: 2;
  white-space: pre;
}
.locations-list .country { color: var(--accent); margin-right: 12px; }

/* Contact */
.contact .mail-link {
  font-family: var(--font-mono);
  font-size: var(--fs-xl);
  border-bottom: 1px solid var(--text);
  padding-bottom: 4px;
  display: inline-block;
  margin: 16px 0 32px;
  transition: color 150ms ease-out, border-color 150ms ease-out;
}
.contact .mail-link:hover { color: var(--accent); border-color: var(--accent); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.contact-list { font-size: var(--fs-sm); color: var(--text-muted); }
.contact-list li { padding: 8px 0; border-bottom: 1px dashed var(--border); }
.contact-list li:last-child { border-bottom: 0; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}
.site-footer .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.site-footer a { transition: color 150ms; }
.site-footer a:hover { color: var(--accent); }
.site-footer .legal { display: flex; gap: 24px; }

/* Service Detail Page */
.detail-hero {
  padding-top: 96px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--border);
}
.detail-hero .back {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: 32px;
  display: inline-block;
}
.detail-hero .back:hover { color: var(--accent); }
.detail-hero h1 { font-size: clamp(32px, 5vw, 56px); max-width: 18ch; margin-bottom: 24px; }
.detail-hero .lead { font-size: var(--fs-lg); color: var(--text-muted); max-width: 56ch; }

.detail-block {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}
.detail-block:last-of-type { border-bottom: 0; }
.detail-block .grid { display: grid; grid-template-columns: 240px 1fr; gap: 64px; align-items: start; }
.detail-block .label { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); }
.detail-block .body p { font-size: var(--fs-lg); line-height: 1.6; color: var(--text); }
.detail-block .body p:last-child { margin-bottom: 0; }
.detail-block .body ul { margin: 0; padding: 0; }
.detail-block .body li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: var(--fs-base);
  color: var(--text);
}
.detail-block .body li:last-child { border-bottom: 0; }
.detail-block .body li strong { font-family: var(--font-mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); display: block; margin-bottom: 4px; }

.detail-cta {
  padding: 80px 0 120px;
  text-align: center;
}
.detail-cta h2 { margin-bottom: 24px; }
.detail-cta p { color: var(--text-muted); margin-bottom: 32px; }

/* Legal pages */
.legal-page { padding: 96px 0 120px; max-width: 760px; margin: 0 auto; }
.legal-page h1 { font-size: 40px; margin-bottom: 24px; }
.legal-page h2 { font-size: var(--fs-xl); margin-top: 48px; margin-bottom: 16px; }
.legal-page h3 { font-size: var(--fs-lg); margin-top: 24px; margin-bottom: 8px; }
.legal-page p, .legal-page li { font-size: var(--fs-base); color: var(--text); }
.legal-page ul { margin-bottom: 16px; padding-left: 20px; list-style: disc; }
.legal-page ul li { padding: 4px 0; }
.legal-page .note {
  border: 1px solid var(--border-strong);
  background: var(--accent-soft);
  padding: 16px 20px;
  font-size: var(--fs-sm);
  font-family: var(--font-mono);
  margin-bottom: 32px;
}

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 600ms ease-out, transform 600ms ease-out; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 960px) {
  :root { --pad-y: 80px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .manifest-grid { grid-template-columns: repeat(2, 1fr); }
  .manifest-item { border-right: 0; border-bottom: 1px solid var(--border); padding: 24px 0; }
  .manifest-item:nth-child(2) { border-right: 0; }
  .approach-steps { grid-template-columns: 1fr; gap: 48px; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .locations-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .detail-block .grid { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 640px) {
  :root { --pad-y: 64px; --pad-x: 20px; }
  .services-grid { grid-template-columns: 1fr; }
  .manifest-grid { grid-template-columns: 1fr; }
  .nav { display: none; }
  .nav.is-open {
    display: flex;
    position: fixed;
    inset: 64px 0 0 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px;
    gap: 24px;
    border-top: 1px solid var(--border);
  }
  .nav-toggle { display: flex; }
  .lang-switch { margin-left: auto; margin-right: 8px; }
  .hero { padding-top: 64px; padding-bottom: 80px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
