/* ==========================================================================
   RefNet — site design system
   ========================================================================== */

:root {
  --ink: #14181d;
  --ink-soft: #4b5563;
  --ink-faint: #7c8794;
  --paper: #ffffff;
  --cloud: #f5f7f9;
  --mist: #e7ebee;
  --line: #dfe4e9;

  --navy: #0d2230;
  --navy-soft: #16384b;

  --accent: #14c9c2;
  --accent-strong: #0ea39d;
  --accent-deep: #0b7a76;
  --accent-soft: #e3faf8;
  --accent-ink: #063f3d;

  --coral: #ff6b5e;
  --amber: #ffb238;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(13, 34, 48, 0.06), 0 1px 1px rgba(13, 34, 48, 0.04);
  --shadow-md: 0 12px 24px -12px rgba(13, 34, 48, 0.22);
  --shadow-lg: 0 30px 60px -24px rgba(13, 34, 48, 0.35);

  --container: 1180px;
  --container-narrow: 820px;

  --font: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

/* ---- Reset -------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

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

h1, h2, h3, h4 {
  margin: 0 0 16px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 4.4vw, 3.6rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 16px; color: var(--ink-soft); }

small, .eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

ul { padding-left: 1.2em; color: var(--ink-soft); }
li { margin-bottom: 6px; }

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

.container--narrow { max-width: var(--container-narrow); }

.text-center { text-align: center; }

.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
}

.section {
  padding: 88px 0;
}

.section--tight { padding: 56px 0; }

.section--cloud { background: var(--cloud); }

.section--navy {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: #fff;
}

.section--navy h2, .section--navy h3, .section--navy p { color: #fff; }
.section--navy p { color: rgba(255, 255, 255, 0.72); }

.section--border-top { border-top: 1px solid var(--line); }

@media (max-width: 720px) {
  .section { padding: 60px 0; }
  .section--tight { padding: 40px 0; }
}

/* ---- Buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: #000; color: #fff; box-shadow: var(--shadow-md); }

.btn-accent {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 12px 24px -10px rgba(20, 201, 194, 0.55);
}
.btn-accent:hover { background: var(--accent-strong); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }

.btn-ghost-invert {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.btn-ghost-invert:hover { border-color: #fff; color: #fff; }

.btn-lg { padding: 16px 34px; font-size: 1.05rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* ---- Header --------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(13, 34, 48, 0.03);
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
}
.brand img { height: 26px; width: auto; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  transition: background 0.15s ease, color 0.15s ease;
}

.site-nav a:hover { background: var(--cloud); color: var(--ink); }
.site-nav a.is-active { color: var(--ink); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #fff;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--ink);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

@media (max-width: 900px) {
  .site-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-actions .btn-ghost { display: none; }

  .site-header.nav-open .site-nav {
    display: flex;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: #fff;
    padding: 12px 24px 20px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
  .site-header.nav-open .site-nav a { padding: 12px 14px; }
  .site-header.nav-open .header-actions .btn-ghost {
    display: inline-flex;
  }
}

/* ---- Hero ------------------------------------------------------------------ */

.hero {
  padding: 84px 0 40px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -180px;
  right: -160px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--accent-soft), transparent 70%);
  z-index: 0;
}

.hero__inner { position: relative; z-index: 1; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 22px;
}

.hero__badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.hero h1 { max-width: 15ch; margin-bottom: 20px; }
.hero .lede { max-width: 46ch; margin-bottom: 32px; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.hero-stats .stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.hero-stats .stat-label {
  font-size: 0.88rem;
  color: var(--ink-faint);
  font-weight: 600;
}

/* ---- Showcase frame (product screenshots) ---------------------------------- */

.showcase {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--cloud);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.showcase__chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 18px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.showcase__chrome span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}

.showcase img { width: 100%; display: block; }

.showcase--pad { padding: 10px; }

/* ---- Grids / cards ---------------------------------------------------------- */

.grid {
  display: grid;
  gap: 28px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }

.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 0; }

.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  margin-bottom: 18px;
}
.icon-tile svg { width: 24px; height: 24px; }

/* checklist */

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }

.check-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: var(--ink-soft);
}

.check-list .check-ico {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.check-list .check-ico svg { width: 14px; height: 14px; }

.check-list strong { display: block; color: var(--ink); font-weight: 700; margin-bottom: 2px; }

/* ---- Split section (image + copy) ------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split.reverse .split__media { order: 2; }
.split.reverse .split__copy { order: 1; }

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse .split__media,
  .split.reverse .split__copy { order: initial; }
}

.split__eyebrow-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.split__eyebrow-icon svg { width: 28px; height: 28px; }

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  margin-bottom: 18px;
}

/* ---- Stat / logo strip ------------------------------------------------------- */

.strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}

.strip-item { flex: 1; min-width: 160px; text-align: center; }
.strip-item .stat-num { font-size: 2.4rem; font-weight: 800; color: var(--ink); }
.strip-item .stat-label { color: var(--ink-faint); font-weight: 600; font-size: 0.9rem; }

/* ---- CTA band ---------------------------------------------------------------- */

.cta-band {
  border-radius: var(--radius-lg);
  padding: 64px;
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 0%, rgba(20, 201, 194, 0.35), transparent 55%);
}

.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: rgba(255, 255, 255, 0.72); max-width: 46ch; margin-left: auto; margin-right: auto; margin-bottom: 30px; }

@media (max-width: 620px) {
  .cta-band { padding: 44px 24px; }
}

/* ---- Pills / tags ------------------------------------------------------------- */

.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }

.pill {
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  background: var(--cloud);
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* ---- Footer -------------------------------------------------------------------- */

.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.65);
  padding: 72px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand img { height: 24px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-brand p { color: rgba(255, 255, 255, 0.5); max-width: 32ch; }

.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.footer-social a:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.footer-social svg { width: 16px; height: 16px; }

.footer-col h4 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}
.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  padding: 7px 0;
  font-size: 0.95rem;
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 28px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ---- Simple content pages (legal/utility) --------------------------------------- */

.doc {
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.doc h2 { margin-top: 44px; scroll-margin-top: 100px; }
.doc h2:first-of-type { margin-top: 0; }
.doc strong { color: var(--ink); }

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 28px;
  font-size: 0.94rem;
}
.doc th, .doc td {
  text-align: left;
  padding: 12px 14px;
  border: 1px solid var(--line);
}
.doc th { background: var(--cloud); font-weight: 700; }

.callout {
  background: var(--accent-soft);
  border: 1px solid rgba(20, 201, 194, 0.25);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin: 28px 0;
}
.callout h2 { margin-top: 0; }
.callout ol { margin: 0; }

.page-hero {
  padding: 64px 0 8px;
  text-align: center;
}
.page-hero .eyebrow { margin-bottom: 14px; }
.page-hero p { max-width: 56ch; margin: 0 auto; }

/* ---- Reveal-on-scroll --------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}

/* ---- Utility spacing ------------------------------------------------------------ */

.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.stack { display: grid; gap: 18px; }
