:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #16243a;
  background: #f6f8fb;
  --blue: #087fca;
  --blue-deep: #075f99;
  --navy: #132238;
  --cream: #fff9e7;
  --line: #dfe6ee;
  --muted: #617086;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: #f6f8fb; }
a { color: inherit; }
.site-header { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 22px 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header.compact { border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-size: 21px; font-weight: 800; letter-spacing: -.03em; }
.brand img { width: 46px; height: 46px; object-fit: cover; border-radius: 50%; box-shadow: 0 4px 16px rgba(19,34,56,.18); }
nav { display: flex; align-items: center; gap: 24px; }
nav a { color: #445269; font-size: 14px; font-weight: 650; text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { color: var(--blue); }

.hero { width: min(1180px, calc(100% - 40px)); min-height: 690px; margin: 0 auto; display: grid; grid-template-columns: 1fr .95fr; align-items: center; gap: 72px; padding: 70px 0 100px; }
.eyebrow { margin: 0 0 16px; color: var(--blue); font-size: 12px; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { max-width: 760px; margin: 0; font-size: clamp(52px, 7vw, 88px); line-height: .98; letter-spacing: -.065em; }
h1 span { color: var(--blue); }
.intro { max-width: 640px; margin: 30px 0 0; color: var(--muted); font-size: 20px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 0 20px; border-radius: 12px; font-weight: 750; text-decoration: none; }
.button.primary { color: #fff; background: var(--blue); box-shadow: 0 10px 26px rgba(8,127,202,.23); }
.button.primary:hover { background: var(--blue-deep); }
.button.secondary { border: 1px solid var(--line); background: #fff; }
.personal-note { margin-top: 20px; color: #77849a; font-size: 13px; }

.mail-preview { position: relative; padding: 14px; border: 1px solid #dce3eb; border-radius: 28px; background: #eef1f4; box-shadow: 0 34px 70px rgba(19,34,56,.17); transform: rotate(1.2deg); }
.mail-preview::before { content: ""; position: absolute; inset: -24px; z-index: -1; border-radius: 44px; background: linear-gradient(145deg, rgba(8,127,202,.14), rgba(255,249,231,.8)); transform: rotate(-4deg); }
.preview-bar { display: flex; align-items: center; gap: 10px; min-height: 62px; padding: 8px 14px; border-radius: 18px; background: #fff; }
.preview-bar img { width: 40px; height: 40px; object-fit: cover; border-radius: 50%; }
.preview-bar strong { flex: 1; font-size: 19px; }
.preview-bar span { color: #37465a; }
.account-pill { display: flex; justify-content: space-between; gap: 16px; margin: 13px 0 10px; padding: 14px 20px; border-radius: 999px; background: #fff; box-shadow: 0 2px 8px rgba(19,34,56,.08); }
.account-pill span { color: var(--muted); font-size: 13px; }
.message-card { display: grid; grid-template-columns: 46px 1fr auto; gap: 14px; align-items: start; margin-top: 10px; padding: 18px; border-radius: 24px; background: #fff; box-shadow: 0 2px 8px rgba(19,34,56,.06); }
.message-card.faded { opacity: .74; }
.avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #fff; background: #149a57; font-size: 19px; font-weight: 750; }
.avatar.alt { background: var(--blue); }
.message-card div { min-width: 0; display: grid; gap: 3px; }
.message-card strong, .message-card b { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.message-card p { margin: 0; color: var(--muted); line-height: 1.45; }
.message-card time { font-size: 12px; font-weight: 750; }

.section { padding: 100px max(20px, calc((100vw - 1180px) / 2)); color: #fff; background: var(--navy); }
.section h2, .privacy-callout h2 { max-width: 720px; margin: 0; font-size: clamp(36px, 5vw, 58px); line-height: 1.05; letter-spacing: -.045em; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 52px; }
.feature-grid article { min-height: 240px; padding: 26px; border: 1px solid rgba(255,255,255,.12); border-radius: 22px; background: rgba(255,255,255,.055); }
.feature-grid span { color: #62c4ff; font-size: 12px; font-weight: 800; }
.feature-grid h3 { margin: 58px 0 10px; font-size: 21px; }
.feature-grid p { margin: 0; color: #b9c6d9; line-height: 1.6; }

.privacy-callout { width: min(1180px, calc(100% - 40px)); margin: 0 auto; display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; padding: 110px 0; }
.privacy-callout > div:last-child { color: var(--muted); font-size: 18px; line-height: 1.7; }
.text-link { display: inline-block; margin-top: 10px; color: var(--blue); font-weight: 750; text-decoration: none; }

.legal-page { width: min(820px, calc(100% - 40px)); margin: 0 auto; padding: 90px 0 110px; }
.legal-page h1 { font-size: clamp(48px, 7vw, 74px); }
.legal-intro { margin: 28px 0 56px; color: var(--muted); font-size: 21px; line-height: 1.6; }
.legal-page section { padding: 26px 0; border-top: 1px solid var(--line); }
.legal-page h2 { margin: 0 0 12px; font-size: 22px; letter-spacing: -.02em; }
.legal-page section p { margin: 0; color: var(--muted); line-height: 1.75; }
.legal-page section a { color: var(--blue); }
code { padding: 2px 6px; border-radius: 5px; background: #eaf0f5; }

footer { width: min(1180px, calc(100% - 40px)); margin: 0 auto; display: flex; justify-content: space-between; gap: 32px; padding: 34px 0 46px; border-top: 1px solid var(--line); }
footer p { margin: 5px 0 0; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.footer-links a { color: var(--muted); font-size: 14px; text-decoration: none; }
.footer-links a:hover { color: var(--blue); }

@media (max-width: 1100px) {
  nav a:not(:last-child) { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; gap: 70px; padding-top: 50px; }
  .mail-preview { width: min(620px, 100%); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .privacy-callout { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 640px) {
  .site-header { width: min(100% - 28px, 1180px); }
  .brand img { width: 40px; height: 40px; }
  .hero { width: min(100% - 28px, 1180px); padding: 36px 0 76px; }
  h1 { font-size: 48px; }
  .intro { font-size: 17px; }
  .mail-preview { padding: 9px; border-radius: 22px; transform: none; }
  .message-card { grid-template-columns: 42px 1fr; }
  .message-card time { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid article { min-height: 200px; }
  .privacy-callout { width: min(100% - 28px, 1180px); }
  .legal-page { width: min(100% - 28px, 820px); padding-top: 60px; }
  footer { width: min(100% - 28px, 1180px); flex-direction: column; }
}
