:root {
  --ink: #1d2733;
  --ink-soft: #4a5868;
  --line: #e3e8ee;
  --paper: #ffffff;
  --paper-alt: #f5f7fa;
  --accent: #2f6fa8;
  --accent-soft: #e8f0f8;
  --max: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

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

/* Header */
.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 2;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  color: #fff;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.2px;
  text-decoration: none;
}
.nav { display: flex; gap: 24px; }
.nav a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 15px;
}
.nav a:hover { color: #fff; text-decoration: underline; }

/* Hero: drawn sky */
.hero {
  position: relative;
  min-height: min(88vh, 720px);
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  background: #183a5e;
}
.hero-sky {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero .wrap { width: 100%; position: relative; z-index: 1; padding-top: 72px; padding-bottom: 72px; }
.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5.4vw, 58px);
  line-height: 1.12;
  font-weight: 650;
  max-width: 14em;
  text-shadow: 0 1px 24px rgba(10, 30, 60, 0.25);
}
.hero p {
  margin: 0 0 32px;
  font-size: clamp(18px, 2.2vw, 21px);
  max-width: 34em;
  color: rgba(255, 255, 255, 0.92);
}
.button {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.button:hover { background: var(--accent-soft); }

/* Sections */
section { padding: 88px 0; }
section.alt { background: var(--paper-alt); }
.eyebrow {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--accent);
}
h2 {
  margin: 0 0 16px;
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.2;
  font-weight: 650;
}
.lead { max-width: 40em; color: var(--ink-soft); margin: 0 0 40px; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
}
.card h3 { margin: 12px 0 8px; font-size: 19px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 16px; }
.card svg { width: 32px; height: 32px; color: var(--accent); }

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.app-card {
  border-radius: 16px;
  padding: 32px;
  background: linear-gradient(160deg, #24527f 0%, #4b86b8 55%, #f2c9a0 100%);
  color: #fff;
}
.app-card .tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 4px 10px;
}
.app-card h3 { margin: 16px 0 8px; font-size: 26px; }
.app-card p { margin: 0; color: rgba(255, 255, 255, 0.92); }

.contact {
  text-align: center;
}
.contact .lead { margin-left: auto; margin-right: auto; }
.contact .email {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 600;
}
.contact .place { margin-top: 12px; color: var(--ink-soft); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  font-size: 14px;
  color: var(--ink-soft);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}
.site-footer a { color: var(--ink-soft); }

/* Plain pages (privacy) */
.page-header { background: #1f4870; color: #fff; padding: 120px 0 48px; position: relative; }
.page-header .brand { position: absolute; top: 24px; }
.page-header h1 { margin: 0; font-size: clamp(30px, 4vw, 42px); }
.prose { max-width: 44em; padding: 56px 24px 88px; }
.prose h2 { font-size: 22px; margin-top: 36px; }

@media (max-width: 760px) {
  .nav { display: none; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  section { padding: 64px 0; }
}

@media (prefers-reduced-motion: no-preference) {
  .cloud { animation: drift 60s linear infinite alternate; }
  .cloud.slow { animation-duration: 90s; }
  @keyframes drift { from { transform: translateX(-30px); } to { transform: translateX(30px); } }
}
