/* ===== Design tokens ===== */
:root {
  --bg: #0b0c10;
  --bg-elevated: #131520;
  --text: #f5f6fa;
  --text-muted: #a6abc0;
  --border: rgba(255, 255, 255, 0.1);
  --accent: #7367f0;   /* violet */
  --paint-1: #7367f0;  /* violet */
  --paint-2: #ff8a65;  /* coral  */
  --paint-3: #2bc4d9;  /* teal   */
  --paint-4: #ffbf5c;  /* amber  */
  --radius: 16px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #fbfaf8;
    --bg-elevated: #ffffff;
    --text: #16171d;
    --text-muted: #5b5f73;
    --border: rgba(15, 15, 20, 0.1);
    --shadow: 0 20px 60px -25px rgba(20, 20, 30, 0.25);
  }
}

:root[data-theme="light"] {
  --bg: #fbfaf8;
  --bg-elevated: #ffffff;
  --text: #16171d;
  --text-muted: #5b5f73;
  --border: rgba(15, 15, 20, 0.1);
  --shadow: 0 20px 60px -25px rgba(20, 20, 30, 0.25);
}

/* ===== Reset ===== */
* {
  box-sizing: border-box;
}

html {
  color-scheme: light dark;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

h1, h2, .brand-name {
  font-family: "Space Grotesk", "Inter", sans-serif;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: 100%;
  max-width: 960px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* ===== Background decoration ===== */
.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  will-change: transform;
}

.blob-1 {
  width: 480px;
  height: 480px;
  top: -180px;
  left: -120px;
  background: var(--accent);
  animation: float-1 18s ease-in-out infinite;
}

.blob-2 {
  width: 420px;
  height: 420px;
  bottom: -160px;
  right: -100px;
  background: var(--accent);
  opacity: 0.25;
  animation: float-2 22s ease-in-out infinite;
}

.blob-3 {
  width: 320px;
  height: 320px;
  top: 40%;
  left: 55%;
  background: var(--accent);
  opacity: 0.18;
  animation: float-3 26s ease-in-out infinite;
}

@keyframes float-1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(40px, 60px); }
}

@keyframes float-2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-50px, -40px); }
}

@keyframes float-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 30px) scale(1.1); }
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ===== Paint drips ===== */
.paint-drips {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 260px;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.drip {
  position: absolute;
  top: 0;
  border-radius: 0 0 50% 50% / 0 0 45% 45%;
  opacity: 0.8;
  transform-origin: top center;
  animation: drip-sway 7s ease-in-out infinite;
}

.drop {
  position: absolute;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  opacity: 0;
  animation: drop-fall 3.2s ease-in infinite;
}

@keyframes drip-sway {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(1.04); }
}

@keyframes drop-fall {
  0% { transform: translateY(0); opacity: 0; }
  15% { opacity: 0.8; }
  80% { opacity: 0.4; }
  100% { transform: translateY(120px); opacity: 0; }
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .drip {
    opacity: 0.55;
  }
}

:root[data-theme="light"] .drip {
  opacity: 0.55;
}

@media (prefers-reduced-motion: reduce) {
  .blob,
  .drip,
  .drop {
    animation: none;
  }
}

/* ===== Layout ===== */
.site-header,
.hero,
.site-footer {
  position: relative;
  z-index: 2;
}

.site-header {
  padding-top: max(24px, env(safe-area-inset-top, 0px));
  padding-bottom: 16px;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.brand-name {
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
}

/* ===== Hero ===== */
.hero {
  display: flex;
  align-items: flex-start;
  padding-block: 24px 48px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(115, 103, 240, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(115, 103, 240, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(115, 103, 240, 0); }
  100% { box-shadow: 0 0 0 0 rgba(115, 103, 240, 0); }
}

h1 {
  margin: 0 0 20px;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

.lede {
  max-width: 560px;
  margin: 0 0 36px;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.6;
  color: var(--text-muted);
}

/* ===== Services list ===== */
.services {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 44px 0 0;
}

.services li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

.service-icon {
  font-size: 18px;
}

/* ===== Footer ===== */
.site-footer {
  padding-block: 28px max(28px, env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border);
}

.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.socials {
  display: flex;
  gap: 14px;
}

.socials a {
  color: var(--text-muted);
  display: inline-flex;
  transition: color 0.2s;
}

.socials a:hover,
.socials a:focus-visible {
  color: var(--text);
}

.copyright {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
  .site-header .wrap {
    justify-content: center;
    text-align: center;
  }

  .hero {
    text-align: left;
  }

  .site-footer .wrap {
    flex-direction: column;
    text-align: center;
  }
}
