:root {
  --blue: #0B79CC;
  --blue-dark: #0863A8;
  --blue-soft: #EAF4FC;
  --ink: #12202F;
  --muted: #5F6B7A;
  --line: #E5EAF0;
  --bg: #FFFFFF;
  --bg-soft: #F7FAFD;
  --radius: 14px;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --surface: #FFFFFF;
  --header-bg: rgba(255,255,255,.9);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --blue: #3D9BE9;
    --blue-dark: #2B86D4;
    --blue-soft: #14283A;
    --ink: #E8EEF5;
    --muted: #9AA7B6;
    --line: #26323F;
    --bg: #0C131B;
    --bg-soft: #111B26;
    --surface: #141F2B;
    --header-bg: rgba(12,19,27,.9);
  }
  .btn-primary { color: #06121D; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3 { margin: 0; line-height: 1.15; }
p { margin: 0; }

.container { width: min(1120px, 100% - 3rem); margin-inline: auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 4.25rem; }

.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; font-size: 1.05rem; letter-spacing: -.01em; }
.brand strong { font-weight: 600; color: var(--blue); }
.brand-mark {
  width: 1.75rem; height: 1.75rem; border-radius: 8px;
  background: var(--blue) url("favicon.svg") center / cover no-repeat;
  flex: none;
}

.brand-logo { display: block; height: 32px; width: auto; }
.brand-logo-sm { height: 24px; }
@media (prefers-color-scheme: dark) {
  .brand-logo { content: url(https://media.freewave.dev/m1x3a7/images/freewave-email-logo-dark.webp); }
}

.nav-desktop { display: flex; gap: 2rem; }
.nav-desktop a, .nav-mobile nav a { color: var(--muted); text-decoration: none; font-size: .925rem; font-weight: 500; transition: color .2s; }
.nav-desktop a:hover, .nav-mobile nav a:hover { color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: .75rem; }

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  border-radius: 999px; font-weight: 600; text-decoration: none;
  transition: background-color .2s, transform .2s, box-shadow .2s;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 1px 2px rgba(11,121,204,.25); }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--blue-dark); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(11,121,204,.25); }
.btn-primary:focus-visible { outline: 3px solid rgba(11,121,204,.35); outline-offset: 3px; }
.btn-sm { padding: .55rem 1.1rem; font-size: .875rem; }
.btn-lg { padding: 1.1rem 2.25rem; font-size: 1.125rem; }
.btn span { transition: transform .2s; }
.btn:hover span { transform: translateX(3px); }

.nav-mobile { display: none; position: relative; }
.nav-mobile summary {
  list-style: none; cursor: pointer; width: 2.5rem; height: 2.5rem;
  display: grid; place-content: center; gap: 4px; border-radius: 10px; border: 1px solid var(--line);
}
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile summary span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }
.nav-mobile nav {
  position: absolute; right: 0; top: calc(100% + .5rem);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(18,32,47,.1);
  padding: .5rem; min-width: 12rem; display: grid;
}
.nav-mobile nav a { padding: .65rem .85rem; border-radius: 8px; }
.nav-mobile nav a:hover { background: var(--bg-soft); }

.hero {
  padding: clamp(4rem, 10vw, 7.5rem) 0 clamp(3rem, 6vw, 4.5rem);
  background: radial-gradient(60rem 30rem at 50% -10%, var(--blue-soft), transparent 70%);
  text-align: center;
}
.hero-inner { max-width: 50rem; }
.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 1.25rem; }
.hero h1 { font-size: clamp(2.5rem, 6.5vw, 4.5rem); font-weight: 600; letter-spacing: -.035em; }
.hero h1 em { font-family: var(--serif); font-weight: 400; font-style: italic; color: var(--blue); letter-spacing: -.01em; }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 36rem; margin: 1.5rem auto 0; }
.hero-actions { margin-top: 2.5rem; }
.hint { margin-top: 1.1rem; font-size: .875rem; color: var(--muted); }
.hint a { color: var(--ink); text-underline-offset: 3px; }

.photo-band { padding-bottom: clamp(3rem, 7vw, 5rem); }
.photo { margin: 0; border-radius: calc(var(--radius) * 1.5); overflow: hidden; aspect-ratio: 16 / 7; background: var(--bg-soft); }
.photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }

.features { padding: clamp(3rem, 7vw, 5.5rem) 0; border-top: 1px solid var(--line); }
.section-title { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 600; letter-spacing: -.025em; text-align: center; max-width: 34rem; margin: 0 auto clamp(2.5rem, 5vw, 3.5rem); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feature {
  padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.feature:hover { border-color: rgba(11,121,204,.35); box-shadow: 0 12px 32px rgba(18,32,47,.06); transform: translateY(-2px); }
.feature-icon {
  width: 2.75rem; height: 2.75rem; border-radius: 12px; display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue); font-weight: 600; font-size: 1.2rem; margin-bottom: 1.25rem;
}
.feature h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; margin-bottom: .5rem; }
.feature p { color: var(--muted); font-size: .975rem; }

.website-line { padding: 0 0 clamp(3.5rem, 8vw, 6rem); text-align: center; }
.website-link {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: 1.05rem; font-weight: 500; color: var(--ink); text-decoration: none;
  padding: .8rem 1.4rem; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line);
  transition: border-color .2s, color .2s;
}
.website-link:hover { border-color: var(--blue); color: var(--blue); }
.website-link span { color: var(--blue); }

.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding-top: 2.5rem; font-size: .9rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; flex-wrap: wrap; }
.footer-brand p { color: var(--muted); margin-top: .6rem; }
.footer-links { display: flex; gap: 1.75rem; flex-wrap: wrap; }
.footer-links a { color: var(--ink); text-decoration: none; font-weight: 500; }
.footer-links a:hover { color: var(--blue); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 2rem; padding: 1.25rem 0 1.75rem; color: var(--muted); font-size: .8rem; }
.footer-bottom a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 100%;
    }
    @keyframes reveal {
      from { opacity: 0; transform: translateY(24px); }
      to { opacity: 1; transform: none; }
    }
  }
}

@media (max-width: 860px) {
  .feature-grid { grid-template-columns: 1fr; max-width: 34rem; margin-inline: auto; }
  .photo { aspect-ratio: 16 / 9; }
}

@media (max-width: 720px) {
  .nav-desktop { display: none; }
  .nav-mobile { display: block; }
  .container { width: min(1120px, 100% - 2rem); }
  .header-inner { height: 3.75rem; }
  .brand { font-size: .975rem; }
  .brand-logo { height: 28px; }
  .brand-logo-sm { height: 24px; }
  .btn-sm { padding: .5rem .9rem; font-size: .8125rem; }
  .btn-lg { width: 100%; justify-content: center; }
  .feature { padding: 1.5rem; }
  .footer-inner { flex-direction: column; }
}


