:root {
  --bg: #fffcf4;
  --surface: #ffffff;
  --text: #1f1d1a;
  --muted: #6b665d;
  --line: #efe7d4;
  --accent: #f2a516;
  --accent-strong: #c27400;
  --accent-soft: #fff1cc;
  --mango: #ff8a3d;
  --leaf: #3fa34d;
  --ink: #1f1d1a;
  --hero-from: #fff6dc;
  --hero-to: #ffe4c4;
  --hex: #e9a21a;
  --shadow: 0 1px 2px rgba(60, 40, 0, .04), 0 8px 24px rgba(60, 40, 0, .06);
  --shadow-lift: 0 2px 4px rgba(60, 40, 0, .05), 0 16px 36px rgba(60, 40, 0, .10);
  --radius: 18px;
  --max: 1040px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15130e;
    --surface: #1f1c15;
    --text: #f4efe4;
    --muted: #b5ac9a;
    --line: #342e22;
    --accent: #f5b335;
    --accent-strong: #f7bf52;
    --accent-soft: #2d2415;
    --mango: #ff9a55;
    --hero-from: #221c10;
    --hero-to: #2a1d12;
    --hex: #f5b335;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    --shadow-lift: 0 2px 4px rgba(0, 0, 0, .35), 0 16px 36px rgba(0, 0, 0, .35);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

a { color: var(--accent-strong); }
a:hover { text-decoration: none; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.brand img { width: 36px; height: 36px; }
.nav {
  display: flex;
  gap: 6px;
  font-size: 15px;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
  transition: background .15s, color .15s;
}
.nav a:hover { color: var(--text); background: var(--accent-soft); }
.nav a[aria-current="page"] { color: var(--text); background: var(--accent-soft); font-weight: 600; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 16px;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 6px 18px rgba(31, 29, 26, .18);
}
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
}
@media (prefers-color-scheme: dark) {
  .btn-primary { background: var(--accent); color: #1f1d1a; box-shadow: none; }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--hero-from) 0%, var(--hero-to) 100%);
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--hex);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100' fill='none' stroke='%23000' stroke-width='1.4'/%3E%3Cpath d='M28 0L28 34L0 50L0 84L28 100L56 84L56 50L28 34' fill='none' stroke='%23000' stroke-width='1.4'/%3E%3C/svg%3E"), linear-gradient(to left, #000 0%, transparent 70%);
  -webkit-mask-composite: source-in;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100' fill='none' stroke='%23000' stroke-width='1.4'/%3E%3Cpath d='M28 0L28 34L0 50L0 84L28 100L56 84L56 50L28 34' fill='none' stroke='%23000' stroke-width='1.4'/%3E%3C/svg%3E"), linear-gradient(to left, #000 0%, transparent 70%);
  mask-composite: intersect;
  opacity: .22;
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 32px;
  padding-top: 72px;
  padding-bottom: 72px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 650;
  color: var(--accent-strong);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 14px 5px 10px;
  margin: 0 0 20px;
}
.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--leaf);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--leaf) 22%, transparent);
}
.hero h1 {
  font-size: clamp(34px, 5.6vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 18px;
}
.hero h1 .hl {
  background: linear-gradient(90deg, var(--accent) 0%, var(--mango) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  color: var(--muted);
  font-size: 19px;
  max-width: 30em;
  margin: 0 0 28px;
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-art {
  display: flex;
  justify-content: center;
}
.hero-art svg {
  width: 100%;
  max-width: 400px;
  height: auto;
  overflow: visible;
}
.hero-art .bee { animation: float 4s ease-in-out infinite; transform-origin: center; }
.hero-art .wing { animation: flap .25s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: bottom center; }
@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(4px, -8px); }
}
@keyframes flap {
  from { transform: scaleY(1); }
  to { transform: scaleY(.75); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-art .bee, .hero-art .wing { animation: none; }
  html { scroll-behavior: auto; }
}

/* Sections */
.section { padding: 72px 0; }
.section-head { margin: 0 0 32px; max-width: 36em; }
.kicker {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-strong);
}
.section h2 {
  font-size: clamp(26px, 3.6vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.card .icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  margin-bottom: 18px;
  color: #fff;
}
.card .icon svg { width: 24px; height: 24px; }
.icon-1 { background: linear-gradient(135deg, #ffc23d, #f2a516); }
.icon-2 { background: linear-gradient(135deg, #ffa766, #ff7a3d); }
.icon-3 { background: linear-gradient(135deg, #63c46f, #3fa34d); }
.card h3 { margin: 0 0 6px; font-size: 19px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

/* Apps teaser */
.apps { padding-top: 0; }
.teaser {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 28px;
  background: linear-gradient(135deg, var(--accent-soft), color-mix(in srgb, var(--mango) 14%, var(--accent-soft)));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 36px;
}
.teaser .hexes { display: flex; gap: 8px; }
.teaser .hexes span {
  width: 52px;
  height: 58px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--surface);
  opacity: .9;
}
.teaser .hexes span:nth-child(2) { background: var(--accent); transform: translateY(14px); }
.teaser .hexes span:nth-child(3) { background: var(--mango); opacity: .85; }
.teaser h2 { margin: 0 0 6px; }
.teaser p { margin: 0; color: var(--muted); }

/* Contact */
.contact-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--shadow);
}
.contact-card h2 { margin: 0 0 10px; }
.contact-card .intro p { color: var(--muted); margin: 0 0 22px; }
.contact-card .details { margin: 0; display: grid; gap: 18px; }
.contact-card .row { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.contact-card .row .ic {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-strong);
}
.contact-card .row .ic svg { width: 20px; height: 20px; }
.contact-card .dt { color: var(--muted); font-size: 14px; }
.contact-card .dd { margin: 0; overflow-wrap: anywhere; font-weight: 500; }

/* Legal pages */
.doc {
  max-width: 760px;
  padding: 56px 0 72px;
}
.doc h1 {
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 10px;
}
.doc .updated {
  display: inline-block;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 3px 12px;
  margin: 0 0 32px;
  font-size: 14px;
  font-weight: 600;
}
.doc h2 {
  font-size: 21px;
  margin: 40px 0 10px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.doc h3 { font-size: 18px; margin: 24px 0 8px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 4px 0; }
.doc li::marker { color: var(--accent); }
.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 12px 0;
  display: block;
  overflow-x: auto;
}
.doc th, .doc td {
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  padding: 10px 12px 10px 0;
}
.doc th { color: var(--muted); font-weight: 600; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  padding: 28px 0 40px;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.site-footer nav { display: flex; gap: 18px; }

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 48px; }
  .hero-art { order: -1; }
  .hero-art svg { max-width: 260px; }
  .contact-card { grid-template-columns: 1fr; padding: 28px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding: 52px 0; }
  .apps { padding-top: 0; }
  .teaser { grid-template-columns: 1fr; padding: 28px; gap: 22px; }
  .nav a { padding: 6px 8px; }
}

@media (prefers-color-scheme: dark) {
  .hero-art .glow { opacity: .12; }
}
