/* ---------- Tokens ---------- */
:root {
  --bg: #fbfbfd;
  --surface: #ffffff;
  --ink: #12141c;
  --muted: #5b6172;
  --border: #e6e7ef;
  --accent: #1e40c4;
  --accent-tint: #eef1ff;
  --accent-ink: #ffffff;
  --shadow: 0 1px 2px rgba(18, 20, 28, 0.04), 0 8px 24px -12px rgba(18, 20, 28, 0.12);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0e14;
    --surface: #14161f;
    --ink: #eef0f5;
    --muted: #9297aa;
    --border: #262936;
    --accent: #6a8bff;
    --accent-tint: rgba(106, 139, 255, 0.14);
    --accent-ink: #0c0e14;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 28px -14px rgba(0, 0, 0, 0.55);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0c0e14;
  --surface: #14161f;
  --ink: #eef0f5;
  --muted: #9297aa;
  --border: #262936;
  --accent: #6a8bff;
  --accent-tint: rgba(106, 139, 255, 0.14);
  --accent-ink: #0c0e14;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 28px -14px rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: background 0.25s ease, color 0.25s ease;
}

h1, h2, h3 {
  font-family: "Sora", "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0;
}

a { color: inherit; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  padding: 13px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover { opacity: 0.92; }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-ghost {
  padding: 10px 18px;
  font-size: 14px;
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-light {
  background: #ffffff;
  color: var(--accent);
}
.btn-light:hover { opacity: 0.92; }

.btn-outline-light {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}
.btn-outline-light:hover { border-color: #ffffff; }

/* ---------- Topbar ---------- */
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px clamp(20px, 5vw, 56px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 17px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: "Sora", sans-serif;
  font-size: 15px;
  font-weight: 700;
}

.bar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }

.icon-moon { display: none; }
body.is-dark .icon-sun { display: none; }
body.is-dark .icon-moon { display: inline-flex; }

/* ---------- Layout shell ---------- */
main {
  flex: 1;
  width: 100%;
}

.hero,
.services {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: clamp(20px, 5vw, 56px);
  padding-right: clamp(20px, 5vw, 56px);
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(280px, 5fr);
  align-items: center;
  gap: clamp(32px, 6vw, 64px);
  padding-top: clamp(28px, 6vw, 56px);
  padding-bottom: clamp(48px, 7vw, 88px);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-tint);
  border: 1px solid var(--border);
  padding: 7px 14px;
  border-radius: 999px;
  margin: 0 0 22px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

@media (prefers-reduced-motion: no-preference) {
  .badge-dot { animation: pulse 2.4s ease-in-out infinite; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

h1 {
  font-size: clamp(34px, 4.6vw, 52px);
  line-height: 1.12;
  margin-bottom: 22px;
}

.lead {
  font-size: 17px;
  color: var(--muted);
  max-width: 46ch;
  margin: 0 0 34px;
}

.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- Hero art ---------- */
.hero-art {
  aspect-ratio: 1 / 1;
  width: 100%;
}

.art-frame {
  fill: var(--surface);
  stroke: var(--border);
}

.art-lines {
  stroke: var(--accent);
  opacity: 0.35;
}

.node {
  fill: var(--accent);
  opacity: 0.55;
}

.node-main {
  opacity: 1;
}

/* ---------- Services ---------- */
.services {
  padding-top: clamp(24px, 5vw, 48px);
  padding-bottom: clamp(56px, 8vw, 96px);
}

.section-head {
  margin-bottom: clamp(28px, 5vw, 44px);
}

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
}

.section-head h2 {
  font-size: clamp(24px, 3vw, 32px);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 22px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-tint);
  color: var(--accent);
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

/* ---------- Contact band ---------- */
.contact-band {
  background: var(--accent);
  color: #ffffff;
  text-align: center;
  padding: clamp(48px, 8vw, 80px) clamp(20px, 5vw, 56px);
  scroll-margin-top: 24px;
}

.contact-band h2 {
  color: #ffffff;
  font-size: clamp(26px, 3.4vw, 36px);
  margin-bottom: 12px;
}

.contact-band p {
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 28px;
  font-size: 16px;
}

.contact-band .cta-row {
  justify-content: center;
}

/* ---------- Footer ---------- */
.footer {
  padding: 22px clamp(20px, 5vw, 56px);
  display: flex;
  gap: 8px 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}

.footer-sep::before { content: "—"; margin-right: 20px; color: var(--border); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { max-width: 360px; margin: 0 auto; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .service-grid { grid-template-columns: 1fr; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .badge-dot { animation: none; }
  .btn, .service-card { transition: none; }
}
