:root {
  --bg: #fbf6ef;
  --bg-2: #f4ece0;
  --surface: #ffffff;
  --ink: #1f1b2d;
  --ink-2: #5d5870;
  --line: rgba(31, 27, 45, .09);
  --accent: #6c4cf5;
  --shadow: 0 1px 2px rgba(31, 27, 45, .06), 0 8px 24px rgba(31, 27, 45, .07);
  --shadow-hover: 0 2px 4px rgba(31, 27, 45, .08), 0 16px 40px rgba(31, 27, 45, .12);

  --violet: #6c4cf5; --violet-bg: #ece7ff;
  --rose: #e2457a;   --rose-bg: #fde6ee;
  --green: #2f9e5b;  --green-bg: #e0f5e8;
  --amber: #d98a00;  --amber-bg: #fff1d6;
  --blue: #2f74e0;   --blue-bg: #e2edff;
  --teal: #0f9a94;   --teal-bg: #dcf5f3;
  --orange: #e5622a; --orange-bg: #ffe7dc;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16141f;
    --bg-2: #1d1a29;
    --surface: #221f30;
    --ink: #f3f0fa;
    --ink-2: #aaa4bd;
    --line: rgba(255, 255, 255, .08);
    --accent: #a995ff;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    --shadow-hover: 0 2px 4px rgba(0, 0, 0, .35), 0 16px 40px rgba(0, 0, 0, .4);

    --violet: #a995ff; --violet-bg: #2f2850;
    --rose: #ff86ad;   --rose-bg: #44223a;
    --green: #6fd69a;  --green-bg: #1d3a2b;
    --amber: #ffc25c;  --amber-bg: #3f3219;
    --blue: #86b2ff;   --blue-bg: #1f2e4d;
    --teal: #5fd8d1;   --teal-bg: #183a3b;
    --orange: #ff9c6e; --orange-bg: #44271d;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-rounded, "SF Pro Rounded", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.defs { position: absolute; }

/* Hero */
.hero {
  background:
    radial-gradient(1200px 400px at 85% -10%, var(--violet-bg), transparent 60%),
    radial-gradient(800px 360px at -10% 110%, var(--amber-bg), transparent 60%),
    var(--bg-2);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  gap: 32px;
  padding-top: 40px;
  padding-bottom: 56px;
  align-items: center;
}
@media (min-width: 860px) {
  .hero-inner { grid-template-columns: 1.15fr .85fr; padding-top: 72px; padding-bottom: 88px; }
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 28px;
  font-weight: 700; font-size: 20px; letter-spacing: -.01em;
}
.brand-mark { width: 28px; height: 28px; color: var(--accent); }

h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 7vw, 64px);
  line-height: 1.04;
  letter-spacing: -.035em;
  font-weight: 800;
}
.accent {
  background: linear-gradient(95deg, var(--violet), var(--rose) 55%, var(--orange));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.lead { margin: 0 0 28px; max-width: 34em; color: var(--ink-2); font-size: 18px; }

.cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--ink); color: var(--bg);
  font-weight: 650; text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }

/* Hero art: floating icon tiles */
.hero-art { position: relative; height: 220px; max-width: 420px; width: 100%; margin: 0 auto; }
@media (min-width: 860px) { .hero-art { height: 340px; } }
.tile {
  position: absolute;
  display: grid; place-items: center;
  border-radius: 28%;
  box-shadow: var(--shadow);
  animation: float 7s ease-in-out infinite;
}
.tile svg { width: 52%; height: 52%; }
.t1 { width: 120px; height: 120px; left: 8%;  top: 10%; background: var(--violet-bg); color: var(--violet); }
.t2 { width: 96px;  height: 96px;  right: 6%; top: 2%;  background: var(--rose-bg);   color: var(--rose);   animation-delay: -2s; }
.t3 { width: 84px;  height: 84px;  left: 44%; top: 42%; background: var(--teal-bg);   color: var(--teal);   animation-delay: -4s; }
.t4 { width: 100px; height: 100px; left: 4%;  bottom: 2%; background: var(--blue-bg); color: var(--blue);   animation-delay: -1s; }
.t5 { width: 92px;  height: 92px;  right: 2%; bottom: 8%; background: var(--green-bg); color: var(--green); animation-delay: -5s; }
.blob { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .7; }
.b1 { width: 18px; height: 18px; left: 38%; top: 8%; background: var(--amber); }
.b2 { width: 12px; height: 12px; right: 30%; bottom: 4%; background: var(--orange); }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}

/* Sections */
main { padding-top: 24px; padding-bottom: 24px; }
section { padding: 40px 0 8px; }
h2 { margin: 0 0 4px; font-size: 26px; letter-spacing: -.02em; font-weight: 750; }
.section-lead { margin: 0 0 22px; color: var(--ink-2); }

.grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .grid { grid-template-columns: 1fr 1fr; } }

.card {
  --c: var(--violet); --c-bg: var(--violet-bg);
  position: relative;
  display: flex; gap: 16px; align-items: flex-start;
  height: 100%;
  padding: 20px 44px 20px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  color: inherit; text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--c); }
.card:focus-visible, .cta:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.icon {
  flex: none;
  display: grid; place-items: center;
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--c-bg); color: var(--c);
  transition: transform .25s ease;
}
.icon svg { width: 30px; height: 30px; }
.card:hover .icon { transform: rotate(-6deg) scale(1.06); }

.body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.name { font-weight: 700; font-size: 19px; letter-spacing: -.01em; }
.desc { color: var(--ink-2); font-size: 15.5px; line-height: 1.5; }

.go {
  position: absolute; right: 18px; top: 20px;
  color: var(--c); font-weight: 700; font-size: 20px;
  transition: transform .2s ease;
}
.card:hover .go { transform: translateX(4px); }

.c-violet { --c: var(--violet); --c-bg: var(--violet-bg); }
.c-rose   { --c: var(--rose);   --c-bg: var(--rose-bg); }
.c-green  { --c: var(--green);  --c-bg: var(--green-bg); }
.c-amber  { --c: var(--amber);  --c-bg: var(--amber-bg); }
.c-blue   { --c: var(--blue);   --c-bg: var(--blue-bg); }
.c-teal   { --c: var(--teal);   --c-bg: var(--teal-bg); }
.c-orange { --c: var(--orange); --c-bg: var(--orange-bg); }

/* Footer */
.foot { padding-top: 40px; padding-bottom: 48px; color: var(--ink-2); font-size: 14.5px; text-align: center; }
.foot p { margin: 0; padding-top: 24px; border-top: 1px solid var(--line); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
