/* (root variables, layout, buttons, footer, scroll reveal) */

:root {
  color-scheme: light;

  --bg: #e6edff;
  --bg-soft: #f4f6ff;
  --card: #ffffff;

  --border-subtle: #e2e8f0;

  --text-main: #020617;
  --text-muted: #6b7280;
  --text-soft: #9ca3af;

  --primary: #2563eb;
  --primary-soft: #60a5fa;
  --primary-strong: #1d4ed8;

  --accent: #22c55e;

  --radius-lg: 24px;
  --radius-md: 18px;

  --shadow-hero: 0 18px 48px rgba(15, 23, 42, 0.18);
  --shadow-soft: 0 16px 40px rgba(15, 23, 42, 0.12);
  --shadow-sm: 0 10px 26px rgba(15, 23, 42, 0.08);
}

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

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont,
    "SF Pro Text", "Segoe UI", sans-serif;
  color: var(--text-main);
  background: #ffffff;
}

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

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Shell: mobile first ------------------------------------------- */

.shell {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 16px 56px; /* tighter on mobile */
}

main {
  position: relative;
  z-index: 1;
}

/* Sections ------------------------------------------------------ */

.section {
  margin-bottom: 56px; /* slightly tighter on mobile */
}

/* mobile: stack header text, left aligned */
.section-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 20px;
}

.section-title {
  font-size: 18px;
  font-weight: 560;
}

.section-sub {
  font-size: 13px;
  color: var(--text-soft);
  max-width: 360px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.btn-primary {
  background: radial-gradient(
    circle at 0% 0%,
    #60a5fa 0,
    #2563eb 40%,
    #1d4ed8 100%
  );
  color: #eff6ff;
  box-shadow: var(--shadow-hero);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 26px 80px rgba(37, 99, 235, 0.5);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.96);
  color: var(--primary-strong);
  border-color: #cbd5f5;
}

.btn-ghost:hover {
  background: #ffffff;
  border-color: #60a5fa;
}

/* Scroll-reveal ------------------------------------------------- */

.reveal {
  opacity: 0;
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.reveal[data-reveal="up"] {
  transform: translateY(24px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* Privacy blurb ------------------------------------------------- */

.privacy-copy {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 640px;
}

.privacy-copy a {
  color: var(--primary-strong);
  text-decoration: none;
}

.privacy-copy a:hover {
  text-decoration: underline;
}

/* Small scroll-to-top pill -------------------------------------- */

.scroll-top {
  position: fixed;
  right: 16px;
  bottom: 18px;
  z-index: 50;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(248, 250, 252, 0.94);
  font-size: 11px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  cursor: pointer;
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* DESKTOP / LARGER SCREENS ------------------------------------- */

@media (min-width: 880px) {
  .shell {
    padding: 28px 24px 72px;
  }

  .section {
    margin-bottom: 80px;
  }

  .section-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 22px;
  }

  .section-title {
    font-size: 20px;
  }

  .section-sub {
    font-size: 13px;
    max-width: 420px;
  }
}
