/* eprintwerx.com - static site styles (light modern refresh) */
:root {
  --navy: #0e1b33;
  --navy-2: #16264a;
  --accent: #2f6df6;
  --accent-2: #19c3b2;
  --ink: #1c2538;
  --muted: #5b6678;
  --line: #e7ebf2;
  --bg: #f6f8fc;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16,28,51,.04), 0 8px 24px rgba(16,28,51,.06);
  --maxw: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.site-header img { height: 40px; width: auto; }
.btn {
  display: inline-block; font-weight: 600; border-radius: 999px;
  padding: 11px 20px; transition: transform .06s ease, box-shadow .2s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(47,109,246,.28); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost { background: #eef2fb; color: var(--navy); }
.btn-ghost:hover { background: #e3e9f8; }

/* Hero */
.hero {
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(25,195,178,.18), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #eaf0fb; padding: 84px 0 96px;
}
.hero h1 { font-size: clamp(2rem, 4.2vw, 3.3rem); line-height: 1.1; margin: 0 0 18px; letter-spacing: -.02em; color: #fff; }
.hero p.lede { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: #b9c6e2; max-width: 720px; margin: 0 0 30px; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn-ghost { background: rgba(255,255,255,.12); color: #fff; }
.hero .btn-ghost:hover { background: rgba(255,255,255,.2); }

/* Section */
.section { padding: 72px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin: 0 0 10px; letter-spacing: -.01em; }
.section-head p { color: var(--muted); margin: 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--accent); margin: 0 0 10px; }

/* Brand grid */
.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .12s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(16,28,51,.10); }
.card .logo { height: 30px; margin-bottom: 16px; }
.card .logo img { height: 30px; width: auto; }
.card h3 { font-size: 1.12rem; margin: 0 0 6px; color: var(--navy); }
.card .tagline { color: var(--muted); font-size: .96rem; margin: 0 0 18px; flex: 1; }
.card .meta { border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 6px; font-size: .92rem; }
.card .meta a { word-break: break-word; }
.card .meta .row { display: flex; gap: 8px; align-items: baseline; }
.card .meta .row .k { color: var(--muted); min-width: 16px; }
.patent { margin-top: 8px; font-size: .85rem; }

/* Community note */
.note { text-align: center; max-width: 820px; margin: 40px auto 0; color: var(--muted); }
.note .policy-link { display: inline-block; margin-top: 14px; font-weight: 600; }

/* Contact */
.contact { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #eaf0fb; }
.contact .section-head h2 { color: #fff; }
.contact .section-head p { color: #b9c6e2; }
.contact-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 34px; max-width: 640px; margin: 0 auto; text-align: center;
}
.contact-card .cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 26px; }
.contact-card .btn-ghost { background: rgba(255,255,255,.12); color: #fff; }
.contact-card address {
  font-style: normal; color: #b9c6e2; line-height: 1.7; font-size: .96rem;
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px;
}
.contact-card address strong { color: #fff; }
.contact-card address a { color: #cfe0ff; }

/* Footer */
.site-footer { background: #0a1426; color: #8696b5; text-align: center; padding: 28px 0; font-size: .9rem; }

/* Policy page */
.policy { padding: 64px 0; }
.policy .wrap { max-width: 820px; }
.policy h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 0 0 8px; letter-spacing: -.01em; }
.policy .updated { color: var(--muted); margin: 0 0 36px; }
.policy h2 { font-size: 1.25rem; margin: 36px 0 10px; color: var(--navy); }
.policy ul { padding-left: 20px; }
.policy li { margin: 6px 0; }
.policy .back { display: inline-block; margin-bottom: 30px; font-weight: 600; }

/* 404 */
.nf { min-height: 70vh; display: flex; align-items: center; justify-content: center; text-align: center; }
.nf h1 { font-size: 3rem; margin: 0 0 10px; }

@media (max-width: 600px) {
  .section { padding: 54px 0; }
  .hero { padding: 64px 0 72px; }
  .site-header .wrap { height: 62px; }
}
