:root {
  --bg: #e7eef0;
  --ink: #122226;
  --muted: #45585c;
  --teal: #0c4452;
  --teal-deep: #07262e;
  --sand: #d9c4a5;
  --surface: #f7fbfb;
  --line: #c9d7da;
  --ok: #1b7a6e;
  --font-display: "Newsreader", "Iowan Old Style", "Palatino Linotype", serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}

img { max-width: 100%; display: block; }

a { color: var(--teal); font-weight: 600; }
a:hover { color: var(--teal-deep); }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: #fff;
  padding: 8px 12px;
  z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  background: rgba(4, 32, 38, 0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #f4fbfb;
  font-weight: 700;
  font-size: 1.02rem;
}
.brand img { border-radius: 9px; }

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav a {
  text-decoration: none;
  color: #d7e8e8;
  font-size: 0.92rem;
  font-weight: 600;
}
.nav a:hover { color: #ffffff; }
.nav-cta {
  background: rgba(244, 251, 251, 0.16);
  color: #ffffff !important;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(244, 251, 251, 0.45);
}
.nav-cta:hover {
  background: rgba(244, 251, 251, 0.22);
  color: #ffffff !important;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #06343d;
  color: #f4fbfb;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 18% 28%, rgba(58, 140, 148, 0.48), transparent 58%),
    radial-gradient(ellipse 55% 45% at 88% 18%, rgba(201, 168, 120, 0.16), transparent 55%),
    radial-gradient(ellipse 90% 60% at 50% 110%, rgba(4, 28, 34, 0.85), transparent 50%),
    linear-gradient(160deg, #042830 0%, #0a4552 48%, #0d5560 100%);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
  animation: glow-drift 14s ease-in-out infinite alternate;
}
.hero-glow-a {
  width: min(52vw, 520px);
  height: min(52vw, 520px);
  left: -8%;
  top: 8%;
  background: rgba(92, 180, 176, 0.35);
}
.hero-glow-b {
  width: min(40vw, 420px);
  height: min(40vw, 420px);
  right: 6%;
  bottom: 8%;
  background: rgba(180, 150, 100, 0.16);
  animation-delay: -4s;
}

.hero-mark {
  position: absolute;
  right: max(2%, calc(50% - 520px));
  top: 50%;
  width: min(42vw, 400px);
  height: auto;
  transform: translateY(-48%);
  opacity: 0.14;
  border-radius: 28%;
  filter: drop-shadow(0 24px 60px rgba(0, 0, 0, 0.3));
  animation: mark-float 14s ease-in-out infinite alternate;
}

@keyframes glow-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(3%, 2%, 0) scale(1.06); }
}

@keyframes mark-float {
  from { transform: translateY(-48%) rotate(-2deg); }
  to { transform: translateY(-52%) rotate(2deg); }
}

.hero-stage {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 120px 0 80px;
  display: flex;
  align-items: center;
}

.hero-inner {
  position: relative;
  max-width: 36rem;
}

.brand-hero {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.1rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.92;
  color: #ffffff;
  animation: rise 0.75s ease both;
}

.hero h1 {
  margin: 0 0 16px;
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #f2fafa;
  animation: rise 0.85s ease 0.06s both;
}

.hero-lead {
  margin: 0 0 28px;
  max-width: 38ch;
  font-size: 1.08rem;
  line-height: 1.5;
  color: #d5e8e8;
  animation: rise 0.95s ease 0.12s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
  animation: rise 1.05s ease 0.18s both;
}

.hero-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  animation: rise 1.1s ease 0.24s both;
}

.hero-points li {
  position: relative;
  padding-left: 16px;
  color: #c5d8da;
  font-size: 0.92rem;
  font-weight: 600;
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7ed0c6;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border-radius: 10px;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary {
  background: #f4fbfb;
  color: var(--teal-deep);
}
.btn.ghost {
  background: transparent;
  color: #f4fbfb;
  border-color: rgba(244, 251, 251, 0.55);
}

.section {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0;
}

.section-head {
  max-width: 620px;
  margin-bottom: 28px;
}
.section-head h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
  color: var(--teal-deep);
}
.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.feature.in {
  opacity: 1;
  transform: translateY(0);
}
.feature h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
  color: var(--teal-deep);
}
.feature p {
  margin: 0;
  color: var(--muted);
}

.support-section { padding-top: 40px; }

.partner-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.partner {
  display: flex;
  gap: 14px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.partner:hover {
  border-color: #9bb8be;
  transform: translateY(-1px);
}
.partner img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  object-fit: contain;
  padding: 6px;
  flex-shrink: 0;
}
.partner strong {
  display: block;
  color: var(--teal-deep);
  font-size: 0.98rem;
}
.partner span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 500;
  margin-top: 2px;
}

.fineprint {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.install-section { padding-top: 24px; }
.install-panel {
  background:
    linear-gradient(145deg, rgba(15, 76, 92, 0.06), transparent 40%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
}
.install-panel h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  color: var(--teal-deep);
  font-size: 1.8rem;
}
.install-panel > p {
  margin: 0 0 16px;
  color: var(--muted);
  max-width: 58ch;
}
.install-steps {
  margin: 0 0 20px;
  padding-left: 1.2rem;
  color: var(--ink);
}
.install-steps li { margin-bottom: 8px; }
.install-panel .btn.ghost {
  color: var(--teal);
  border-color: var(--line);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.post-card {
  display: grid;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.post-card:hover {
  transform: translateY(-2px);
  border-color: #9bb8be;
}
.post-meta {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.post-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--teal-deep);
  line-height: 1.25;
}
.post-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.center-link {
  margin: 22px 0 0;
  text-align: center;
}
.center-link a { text-decoration: none; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 22px 48px;
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--teal-deep);
  margin-bottom: 8px;
}
.footer-brand img { border-radius: 7px; }
.footer-uxc {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.88rem;
}
.footer-uxc > a {
  display: inline-flex;
  text-decoration: none;
}
.footer-uxc img {
  width: auto;
  height: 36px;
  border-radius: 8px;
  flex-shrink: 0;
  background: #000;
}
.footer-uxc span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.3;
}
.footer-uxc strong {
  color: var(--teal-deep);
  font-weight: 700;
  font-size: 0.92rem;
}
.footer-uxc .footer-mail {
  color: var(--teal);
  font-weight: 600;
  text-decoration: none;
}
.footer-uxc .footer-mail:hover { color: var(--teal-deep); }
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
}
.site-footer a { text-decoration: none; }

/* Blog */
.blog-wrap {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 72px;
}
.blog-wrap h1 {
  font-family: var(--font-display);
  color: var(--teal-deep);
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}
.blog-lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 28px;
}
.blog-list {
  display: grid;
  gap: 12px;
}
.blog-list a {
  text-decoration: none;
  color: inherit;
  display: block;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.blog-list a:hover { border-color: #9bb8be; }
.blog-list h2 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--teal-deep);
}
.article {
  width: min(720px, calc(100% - 40px));
  margin: 0 auto;
  padding: 40px 0 72px;
}
.article .eyebrow {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.article h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  letter-spacing: -0.03em;
  color: var(--teal-deep);
  margin: 0 0 14px;
  line-height: 1.15;
}
.article .dek {
  color: var(--muted);
  font-size: 1.08rem;
  margin: 0 0 28px;
}
.article h2 {
  font-family: var(--font-display);
  color: var(--teal-deep);
  margin: 28px 0 10px;
  font-size: 1.35rem;
}
.article p, .article li {
  color: #24353a;
  font-size: 1.02rem;
}
.article ul { padding-left: 1.2rem; }
.article .cta-box {
  margin-top: 32px;
  padding: 18px;
  border-radius: 14px;
  background: #e4eef0;
  border: 1px solid var(--line);
}

/* Light pages (blog, privacy) keep a solid header */
body:not(:has(.hero)) .site-header {
  position: sticky;
  background: rgba(231, 238, 240, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201, 215, 218, 0.7);
}
body:not(:has(.hero)) .brand { color: var(--teal-deep); }
body:not(:has(.hero)) .nav a { color: var(--muted); }
body:not(:has(.hero)) .nav a:hover { color: var(--teal-deep); }
body:not(:has(.hero)) .nav-cta {
  background: var(--teal);
  color: #f4fbfb !important;
  border-color: transparent;
}

@media (max-width: 860px) {
  .feature-grid,
  .partner-grid,
  .post-grid {
    grid-template-columns: 1fr;
  }
  .nav a:not(.nav-cta) { display: none; }
  .hero {
    min-height: auto;
  }
  .hero-stage {
    width: min(720px, calc(100% - 40px));
    padding: 108px 0 64px;
  }
  .hero-mark {
    right: -12%;
    width: min(68vw, 300px);
    opacity: 0.1;
  }
  .hero-points {
    flex-direction: column;
    gap: 8px;
  }
}
