/* ===========================================================================
   ReFly landing page styles
   Static asset, no build step. Variables drive the palette so a theme swap
   touches one place. Dark hero / light sections by default; the whole
   thing is mobile-first.
   =========================================================================== */

:root {
  --brand-blue: #3fa9f5;
  --brand-blue-deep: #1d6cb3;
  --brand-green: #7ac943;
  --brand-green-deep: #4a8027;

  --ink: #0b1220;
  --ink-soft: #1e293b;
  --paper: #ffffff;
  --paper-soft: #f8fafc;
  --paper-tint: #f1f5f9;
  --rule: #e2e8f0;

  --text: #0f172a;
  --text-soft: #475569;
  --text-muted: #64748b;
  --text-on-dark: #f1f5f9;
  --text-on-dark-soft: #94a3b8;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 4px 6px rgba(15, 23, 42, 0.07), 0 10px 15px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.12), 0 8px 16px rgba(15, 23, 42, 0.08);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui,
    "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--brand-blue-deep);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
}
.skip-link:focus {
  position: static;
  display: inline-block;
  padding: 12px 16px;
  background: var(--ink);
  color: white;
}

/* ─── HEADER / NAV ───────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--rule);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text);
}
.brand:hover {
  text-decoration: none;
}
.brand-name {
  font-size: 18px;
  letter-spacing: 0.2px;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-header nav a {
  color: var(--text-soft);
  font-weight: 500;
  font-size: 15px;
}
.site-header nav a.btn {
  margin-left: 8px;
}

/* ─── BUTTONS ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  transition: transform 0.15s ease, background-color 0.15s ease,
    box-shadow 0.15s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-deep));
  color: white;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--paper);
  color: var(--text);
  border-color: var(--rule);
}
.btn-secondary:hover {
  background: var(--paper-tint);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--rule);
  padding: 8px 14px;
  font-size: 14px;
}
.btn-ghost:hover {
  background: var(--paper-tint);
}

.btn-large {
  padding: 14px 24px;
  font-size: 16px;
}

/* ─── HERO ───────────────────────────────────────────────────────────────── */
.hero {
  background: radial-gradient(
      120% 80% at 80% 0%,
      rgba(63, 169, 245, 0.18) 0%,
      transparent 60%
    ),
    radial-gradient(
      90% 70% at 0% 100%,
      rgba(122, 201, 67, 0.14) 0%,
      transparent 60%
    ),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-soft) 100%);
  padding: 88px 0 96px;
  border-bottom: 1px solid var(--rule);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

.kicker {
  display: inline-block;
  background: rgba(63, 169, 245, 0.1);
  color: var(--brand-blue-deep);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 6px 12px;
  border-radius: 999px;
  margin: 0 0 18px;
}

h1 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  font-weight: 800;
}
.accent {
  background: linear-gradient(120deg, var(--brand-blue), var(--brand-green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-soft);
  max-width: 56ch;
  margin: 0 0 28px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.hero-foot {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-muted);
}

.hero-visual {
  display: flex;
  justify-content: center;
}
.hero-visual svg {
  width: 100%;
  max-width: 520px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* ─── SECTION TYPOGRAPHY ─────────────────────────────────────────────────── */
.section-title {
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin: 0 0 40px;
  max-width: 24ch;
  font-weight: 800;
}

/* ─── FEATURES ───────────────────────────────────────────────────────────── */
.features {
  padding: 88px 0;
  background: var(--paper);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}
.feature-card h3 {
  font-size: 20px;
  margin: 20px 0 10px;
  font-weight: 700;
  letter-spacing: -0.005em;
}
.feature-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 15px;
}
.feature-illus {
  margin: -4px 0 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.feature-highlight {
  border-color: rgba(63, 169, 245, 0.4);
  background: linear-gradient(
    180deg,
    rgba(63, 169, 245, 0.04) 0%,
    rgba(255, 255, 255, 1) 60%
  );
}

/* ─── HOW IT WORKS ───────────────────────────────────────────────────────── */
.how {
  padding: 88px 0;
  background: var(--paper-soft);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.how-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}

.how-steps li {
  position: relative;
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
}
.how-steps h3 {
  margin: 12px 0 8px;
  font-size: 18px;
  font-weight: 700;
}
.how-steps p {
  margin: 0;
  font-size: 14px;
  color: var(--text-soft);
}
.step-num {
  display: inline-flex;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-deep));
  color: white;
  font-weight: 700;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 16px;
}

/* ─── SAFETY ─────────────────────────────────────────────────────────────── */
.safety {
  padding: 88px 0;
  background: var(--paper);
}
.safety-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: start;
}
.safety p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-soft);
}
.safety .muted {
  font-size: 14px;
  color: var(--text-muted);
  border-left: 3px solid var(--rule);
  padding-left: 16px;
  margin-top: 20px;
}
.safety-card {
  background: linear-gradient(
    135deg,
    rgba(122, 201, 67, 0.08),
    rgba(63, 169, 245, 0.08)
  );
  border: 1px solid rgba(122, 201, 67, 0.3);
  border-radius: var(--radius-md);
  padding: 28px;
}
.safety-card h3 {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 700;
}
.safety-card ul {
  padding-left: 18px;
  margin: 0;
}
.safety-card li {
  margin-bottom: 10px;
  color: var(--text-soft);
  font-size: 15px;
}
.safety-card li:last-child {
  margin-bottom: 0;
}

/* ─── FINAL CTA ──────────────────────────────────────────────────────────── */
.cta {
  background: linear-gradient(135deg, var(--ink) 0%, #11203a 100%);
  color: var(--text-on-dark);
  padding: 80px 0;
  text-align: center;
}
.cta h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.015em;
}
.cta p {
  margin: 0 0 28px;
  color: var(--text-on-dark-soft);
  font-size: 17px;
}
.cta .btn-primary {
  background: linear-gradient(135deg, var(--brand-green), var(--brand-green-deep));
}

/* ─── FOOTER ─────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--paper-soft);
  border-top: 1px solid var(--rule);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text);
}
.site-footer nav {
  display: flex;
  gap: 20px;
}
.site-footer nav a {
  color: var(--text-soft);
  font-size: 14px;
}
.copyright {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* ─── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .how-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .safety-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 560px) {
  .site-header nav a:not(.btn) {
    display: none;
  }
  .hero {
    padding: 56px 0 64px;
  }
  .features,
  .how,
  .safety,
  .cta {
    padding: 56px 0;
  }
  .how-steps {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
