:root {
  --bg: #EEF5FF;
  --surface: #FFFFFF;
  --ink: #0B2A5B;
  --muted: #47639A;
  --line: #CADBF5;
  --accent: #1F5BFF;
  --accent-ink: #FFFFFF;
  --sky: #5CC8FF;
  --cyan: #0FA3D9;
  --violet: #6B7CFF;
  --dark-panel: #0B2A5B;
  --dark-panel-ink: #EEF5FF;
  --shadow: rgba(11, 42, 91, .18);
  --radius: 22px;
  --font: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #071229;
    --surface: #0E1F45;
    --ink: #E4EEFF;
    --muted: #93AAD6;
    --line: #1C3364;
    --accent: #4C86FF;
    --accent-ink: #061229;
    --dark-panel: #1F5BFF;
    --dark-panel-ink: #FFFFFF;
    --shadow: rgba(0, 0, 0, .45);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

img { max-width: 100%; }
a { color: inherit; }

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--ink); color: var(--bg);
  padding: 8px 14px; border-radius: 10px; z-index: 20;
}
.skip:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 8px; }

/* ---------- Layout ---------- */
.nav, .hero, .section, .footer {
  width: min(1120px, 100% - 40px);
  margin-inline: auto;
}

.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 22px;
}
.nav nav { display: flex; align-items: center; gap: 26px; font-weight: 600; }
.nav nav a { text-decoration: none; color: var(--muted); transition: color .15s; }
.nav nav a:hover { color: var(--ink); }
.nav nav a.btn { color: var(--accent-ink); }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--accent); color: var(--accent-ink);
  padding: 14px 26px; border-radius: 999px;
  font-weight: 700; text-decoration: none;
  box-shadow: 0 3px 0 rgba(0,0,0,.18);
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 5px 0 rgba(0,0,0,.18); }
.btn:active { transform: translateY(1px); box-shadow: 0 1px 0 rgba(0,0,0,.18); }
.btn-small { padding: 9px 18px; font-size: .95rem; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.btn-light { background: var(--dark-panel-ink); color: var(--dark-panel); }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px;
  align-items: center;
  padding-block: 64px 96px;
}
.eyebrow {
  margin: 0 0 14px;
  font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
}
h1 {
  margin: 0 0 22px;
  font-size: clamp(2.7rem, 7vw, 5rem);
  line-height: 1.02; letter-spacing: -0.035em; font-weight: 800;
}
h1 em { font-style: normal; color: var(--accent); }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 34ch; margin: 0 0 32px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* Floating app-icon tiles */
.hero-art { position: relative; aspect-ratio: 1; max-width: 460px; width: 100%; justify-self: center; }
.tile {
  position: absolute; border-radius: 26%;
  display: grid; place-items: center;
  box-shadow: 0 14px 0 rgba(0,0,0,.10), 0 22px 40px var(--shadow);
  animation: bob 6s ease-in-out infinite;
}
.tile span { display: block; border-radius: 50%; background: rgba(255,255,255,.92); }
.t1 { width: 46%; height: 46%; left: 4%;  top: 6%;  background: var(--accent); transform: rotate(-8deg); }
.t1 span { width: 46%; height: 46%; }
.t2 { width: 34%; height: 34%; right: 4%; top: 2%;  background: var(--sky);  transform: rotate(9deg);  animation-delay: -1.5s; }
.t2 span { width: 30%; height: 30%; border-radius: 30%; background: rgba(11,42,91,.85); }
.t3 { width: 38%; height: 38%; right: 8%; top: 40%; background: var(--cyan);   transform: rotate(-5deg); animation-delay: -3s; }
.t3 span { width: 48%; height: 12%; border-radius: 999px; }
.t4 { width: 30%; height: 30%; left: 8%;  bottom: 6%; background: var(--violet);      transform: rotate(7deg);  animation-delay: -4.2s; }
.t4 span { width: 34%; height: 34%; border-radius: 12%; transform: rotate(45deg); }
.t5 { width: 26%; height: 26%; left: 46%; bottom: 0;  background: #8FD9FF;      transform: rotate(-12deg); animation-delay: -2.4s; }
.t5 span { width: 40%; height: 40%; }

@keyframes bob {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -12px; }
}
@media (prefers-reduced-motion: reduce) { .tile { animation: none; } }

/* ---------- Sections ---------- */
.section { padding-block: 72px; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2, .contact h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.1; letter-spacing: -0.03em; font-weight: 800;
}
.section-head p:not(.eyebrow) { color: var(--muted); margin: 0; font-size: 1.1rem; }

/* Cards */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.card {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px) rotate(-.4deg); border-color: var(--ink); }
.card .icon { width: 64px; height: 64px; border-radius: 26%; margin-bottom: 20px; box-shadow: 0 5px 0 rgba(0,0,0,.12); }
.c-1 .icon   { background: var(--accent); }
.c-2 .icon { background: var(--sky); }
.c-3 .icon  { background: var(--cyan); }
.card h3 { margin: 0 0 6px; font-size: 1.3rem; letter-spacing: -0.02em; }
.card p { margin: 0 0 18px; color: var(--muted); }
.tag {
  display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px; background: var(--bg); color: var(--muted); border: 2px solid var(--line);
}

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px; }
.pillars article { border-top: 3px solid var(--ink); padding-top: 20px; }
.num { font-size: .9rem; font-weight: 800; color: var(--accent); letter-spacing: .1em; }
.pillars h3 { margin: 6px 0 10px; font-size: 1.6rem; letter-spacing: -0.025em; }
.pillars p { margin: 0; color: var(--muted); }

/* Contact */
.contact-box {
  background: var(--dark-panel); color: var(--dark-panel-ink);
  border-radius: 32px;
  padding: clamp(36px, 7vw, 80px);
  text-align: center;
  position: relative; overflow: hidden;
}
.contact-box::before, .contact-box::after {
  content: ""; position: absolute; border-radius: 50%; opacity: .18; background: var(--sky);
}
.contact-box::before { width: 260px; height: 260px; left: -80px; top: -90px; }
.contact-box::after  { width: 180px; height: 180px; right: -50px; bottom: -70px; background: var(--accent); opacity: .5; }
.contact-box > * { position: relative; z-index: 1; }
.contact-box p { margin: 0 auto 28px; max-width: 42ch; opacity: .85; font-size: 1.15rem; }
.contact-box .btn { font-size: 1.05rem; }

/* Footer */
.footer {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  padding-block: 36px 48px; color: var(--muted); font-size: .95rem;
}
.footer .brand { font-size: 1.05rem; color: var(--ink); }
.footer p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-block: 32px 64px; gap: 48px; }
  .hero-art { max-width: 340px; }
  .nav nav { gap: 16px; }
  .nav nav a:not(.btn) { display: none; }
}
