/* ============================================================
   DATAPAT GmbH — base stylesheet
   ============================================================ */

:root {
  /* Brand */
  --plum:        #5a3c58;
  --plum-deep:   #3c2a3b;
  --plum-soft:   #7a5a78;
  --accent:      #c9b021;   /* refined take on the original yellow-green */
  --accent-soft: #e6d97a;

  /* Neutrals */
  --ink:    #1c1820;
  --body:   #4a4550;
  --muted:  #8a8490;
  --line:   #e7e3ea;
  --bg:     #ffffff;
  --bg-alt: #f7f5f9;
  --bg-deep:#211a26;

  /* System */
  --maxw: 1120px;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(28,24,32,.04), 0 12px 40px rgba(60,42,59,.07);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1.1em; }

a { color: var(--plum); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent); }

img { max-width: 100%; display: block; }

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

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .72rem;
  font-weight: 700;
  color: var(--plum-soft);
  margin: 0 0 1rem;
}

.lead { font-size: 1.18rem; color: var(--body); }

.muted { color: var(--muted); }

section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: .55rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: .02em;
}
.brand:hover { color: var(--ink); }
.brand .est {
  font-family: var(--sans);
  font-size: .62rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--plum-soft);
  font-weight: 700;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--body);
  font-size: .94rem;
  font-weight: 500;
}
.nav-links a:hover,
.nav-links a.active { color: var(--plum); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: .25s;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: .8rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  font-family: var(--sans);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary {
  background: var(--plum);
  color: #fff;
  box-shadow: 0 8px 24px rgba(90,60,88,.28);
}
.btn-primary:hover { background: var(--plum-deep); color: #fff; transform: translateY(-2px); }
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
}
.btn-ghost:hover { border-color: var(--plum-soft); color: var(--plum); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 120px 0 100px;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(90,60,88,.10), transparent 60%),
    radial-gradient(800px 400px at 0% 110%, rgba(201,176,33,.10), transparent 55%);
  overflow: hidden;
}
.hero h1 { max-width: 14ch; }
.hero .lead { max-width: 52ch; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .45rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: .82rem;
  font-weight: 600;
  color: var(--plum);
  margin-bottom: 1.6rem;
}
.badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
}

/* ---------- Heritage strip ---------- */
.heritage {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 48px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 72px;
}
.heritage .num {
  font-family: var(--serif);
  font-size: 2.6rem;
  color: var(--plum);
  line-height: 1;
}
.heritage .label {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin-top: .4rem;
}

/* ---------- Section heads ---------- */
.section-head { max-width: 56ch; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 50px rgba(60,42,59,.12); }
.card h3 { margin-bottom: .4rem; }
.card p { margin-bottom: 0; font-size: .98rem; }
.card .ico {
  width: 46px; height: 46px;
  border-radius: 11px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--plum), var(--plum-soft));
  color: #fff;
  margin-bottom: 18px;
  font-size: 1.2rem;
}

/* ---------- Split feature ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

/* ---------- Tag list ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.tags li {
  padding: .4rem .9rem;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--plum);
}

/* ---------- Customer grid ---------- */
.logos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.logos div {
  background: #fff;
  padding: 30px 18px;
  text-align: center;
  font-weight: 600;
  color: var(--plum-deep);
  font-size: .95rem;
  letter-spacing: .01em;
}

/* ---------- ConnectSphere callout ---------- */
.cs-band {
  background: var(--bg-deep);
  color: #e9e4ee;
  border-radius: 20px;
  padding: 64px;
  position: relative;
  overflow: hidden;
}
.cs-band::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 90% 0%, rgba(201,176,33,.18), transparent 60%);
  pointer-events: none;
}
.cs-band h2 { color: #fff; }
.cs-band p { color: #c9c1d2; }
.cs-band .eyebrow { color: var(--accent-soft); }

/* ---------- Contact ---------- */
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}
.contact-card dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-top: 1.2rem; }
.contact-card dd { margin: .25rem 0 0; font-size: 1.1rem; color: var(--ink); font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--plum-deep);
  color: #cdc2cc;
  padding: 64px 0 32px;
}
.site-footer a { color: #e2d9e2; }
.site-footer a:hover { color: var(--accent-soft); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-grid h4 { color: #fff; font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .6rem; font-size: .95rem; }
.footer-brand { font-family: var(--serif); font-size: 1.4rem; color: #fff; margin-bottom: .6rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .85rem;
  color: #9d8f9d;
}

/* ---------- Page header (subpages) ---------- */
.page-hero {
  padding: 84px 0 56px;
  background:
    radial-gradient(900px 360px at 85% -20%, rgba(90,60,88,.10), transparent 60%);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { max-width: 18ch; }
.page-hero .lead { max-width: 56ch; margin-bottom: 0; }

/* ---------- Prose ---------- */
.prose { max-width: 70ch; }
.prose h3 { margin-top: 2.2rem; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid-2, .grid-3, .split { grid-template-columns: 1fr; }
  .heritage { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1rem; }
  .logos { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .cs-band { padding: 40px 28px; }
  .split { gap: 36px; }

  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 70px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 12px; }
}

@media (max-width: 480px) {
  section { padding: 60px 0; }
  .hero { padding: 80px 0 64px; }
  .cs-band { padding: 32px 22px; }
}
