:root {
  --rg-ink: #10172a;
  --rg-muted: #66758b;
  --rg-soft: #f6f8fc;
  --rg-line: #e3e9f3;
  --rg-purple: #584cf4;
  --rg-purple-2: #8d79ff;
  --rg-teal: #0fa59a;
  --rg-blue: #2f6df6;
  --rg-orange: #ff9d00;
  --rg-pink: #ec2b6c;
  --rg-green: #18a861;
  --rg-white: #ffffff;
  --rg-shadow: 0 22px 60px rgba(36, 45, 73, 0.10);
  --rg-radius: 24px;
  --rg-radius-sm: 16px;
  --rg-shell: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.roamigoo-site {
  margin: 0;
  background: var(--rg-soft);
  color: var(--rg-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

a {
  color: var(--rg-purple);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 16px;
  z-index: 1000;
  background: var(--rg-ink);
  color: var(--rg-white);
  padding: 10px 14px;
  border-radius: 10px;
}

.skip-link:focus {
  left: 16px;
}

.site-shell {
  width: min(var(--rg-shell), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(227, 233, 243, 0.85);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--rg-ink);
  font-weight: 900;
  letter-spacing: 0;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: var(--rg-white);
  background: linear-gradient(145deg, var(--rg-purple), var(--rg-teal));
  box-shadow: 0 16px 35px rgba(88, 76, 244, 0.28);
}

.brand-text {
  font-size: 1.18rem;
}

.primary-nav .menu,
.footer-menu {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav a,
.footer-menu a {
  color: var(--rg-muted);
  font-weight: 760;
}

.primary-nav a:hover,
.footer-menu a:hover {
  color: var(--rg-purple);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--rg-line);
  border-radius: 999px;
  background: var(--rg-white);
  color: var(--rg-ink);
  padding: 10px 14px;
  font-weight: 800;
}

.hero-section {
  overflow: hidden;
  padding: 86px 0 70px;
  background:
    radial-gradient(circle at 84% 10%, rgba(141, 121, 255, 0.25), transparent 30%),
    radial-gradient(circle at 4% 90%, rgba(15, 165, 154, 0.18), transparent 28%),
    linear-gradient(180deg, #f7f5ff 0%, #f6f8fc 100%);
}

.hero-grid,
.split-grid,
.safety-grid,
.footer-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 58px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--rg-purple);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--rg-ink);
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(3rem, 8vw, 5.8rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

h3 {
  font-size: 1.38rem;
}

.hero-lead,
.section-heading p,
.split-grid p,
.legal-hero p,
.final-cta p {
  color: var(--rg-muted);
  font-size: 1.18rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 34px 0 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 999px;
  padding: 0 24px;
  font-weight: 900;
  text-decoration: none;
}

.button:hover {
  text-decoration: none;
}

.button.primary {
  background: linear-gradient(135deg, var(--rg-purple), #7444f2);
  color: var(--rg-white);
  box-shadow: 0 18px 35px rgba(88, 76, 244, 0.28);
}

.button.secondary {
  border: 1px solid var(--rg-line);
  background: var(--rg-white);
  color: var(--rg-ink);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--rg-muted);
  font-size: 0.95rem;
  font-weight: 800;
}

.trust-row span {
  padding: 9px 13px;
  border: 1px solid rgba(15, 165, 154, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
}

.app-preview {
  position: relative;
  display: grid;
  gap: 16px;
  max-width: 430px;
  margin-left: auto;
}

.phone-card,
.feature-card,
.mini-grid,
.info-card,
.mock-panel,
.contact-card {
  border: 1px solid var(--rg-line);
  border-radius: var(--rg-radius);
  background: rgba(255, 255, 255, 0.93);
  box-shadow: var(--rg-shadow);
}

.phone-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 18px;
}

.profile-ring,
.avatar {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rg-purple), var(--rg-teal));
  color: var(--rg-white);
  font-weight: 950;
}

.phone-card span:not(.profile-ring):not(.verified-dot) {
  display: block;
  color: var(--rg-muted);
  font-size: 0.92rem;
}

.verified-dot {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--rg-white);
  background: var(--rg-blue);
  font-weight: 900;
}

.feature-card.large {
  padding: 20px;
}

.feature-image {
  height: 230px;
  border-radius: 20px;
  background:
    linear-gradient(rgba(16, 23, 42, 0.15), rgba(16, 23, 42, 0.52)),
    radial-gradient(circle at 80% 12%, #ff9d00, transparent 18%),
    linear-gradient(135deg, #18214d, #584cf4 48%, #10c8b3);
  position: relative;
  overflow: hidden;
}

.feature-image::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -10px;
  height: 70px;
  background: linear-gradient(135deg, rgba(10, 18, 44, 0.9), rgba(15, 165, 154, 0.6));
  clip-path: polygon(0 65%, 10% 35%, 22% 52%, 35% 18%, 52% 48%, 70% 8%, 85% 42%, 100% 22%, 100% 100%, 0 100%);
}

.feature-card h2 {
  margin-top: 18px;
  font-size: 2.2rem;
}

.feature-card p {
  margin: 6px 0 0;
  color: var(--rg-muted);
  font-weight: 760;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  overflow: hidden;
}

.mini-grid div {
  display: grid;
  gap: 8px;
  padding: 18px;
  background: var(--rg-white);
}

.mini-grid span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #f0edff;
  color: var(--rg-purple);
  font-weight: 900;
}

.section {
  padding: 82px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.info-card {
  padding: 26px;
}

.info-card p {
  color: var(--rg-muted);
  margin-bottom: 0;
}

.icon-badge {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  border-radius: 18px;
  font-weight: 950;
}

.teal { background: #e4fbf8; color: var(--rg-teal); }
.purple { background: #efecff; color: var(--rg-purple); }
.blue { background: #eaf1ff; color: var(--rg-blue); }
.orange { background: #fff1dc; color: var(--rg-orange); }
.green { background: #e7f8ef; color: var(--rg-green); }
.pink { background: #ffe8f0; color: var(--rg-pink); }

.soft-section {
  background: linear-gradient(180deg, #ffffff 0%, #f6f8fc 100%);
}

.reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
  color: var(--rg-muted);
  font-weight: 760;
}

.check-list li {
  position: relative;
  padding-left: 32px;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--rg-teal);
  font-weight: 950;
}

.mock-panel {
  padding: 28px;
}

.mock-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mock-header small {
  display: block;
  color: var(--rg-muted);
}

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

.pill-row span {
  padding: 9px 13px;
  border: 1px solid rgba(15, 165, 154, 0.25);
  border-radius: 999px;
  background: #f1fffd;
  color: var(--rg-teal);
  font-weight: 900;
}

.stats-row {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border-radius: 20px;
  background: var(--rg-ink);
  color: var(--rg-white);
}

.stats-row span {
  color: #a9b4c7;
}

.map-panel {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(47, 109, 246, 0.11) 1px, transparent 1px),
    linear-gradient(0deg, rgba(15, 165, 154, 0.12) 1px, transparent 1px),
    #f4fff9;
  background-size: 58px 58px;
}

.map-dot {
  position: absolute;
  left: 48%;
  top: 38%;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--rg-blue);
  box-shadow: 0 0 0 120px rgba(47, 109, 246, 0.12), 0 0 0 8px rgba(255, 255, 255, 0.95);
}

.map-card {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--rg-shadow);
}

.map-card span {
  color: var(--rg-orange);
  font-weight: 900;
}

.safety-section {
  color: var(--rg-white);
  background: linear-gradient(135deg, #10172a 0%, #312a7c 55%, #0f8f87 100%);
}

.safety-section h2,
.safety-section p,
.safety-section .eyebrow {
  color: var(--rg-white);
}

.safety-grid {
  grid-template-columns: 1fr 1fr;
}

.safety-list {
  display: grid;
  gap: 12px;
}

.safety-list a {
  display: flex;
  justify-content: space-between;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  color: var(--rg-white);
  background: rgba(255, 255, 255, 0.11);
  font-weight: 900;
}

.safety-list a::after {
  content: "→";
}

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

.final-cta .site-shell {
  max-width: 850px;
}

.site-footer {
  padding: 48px 0 28px;
  border-top: 1px solid var(--rg-line);
  background: var(--rg-white);
}

.footer-grid {
  grid-template-columns: 1.4fr 1fr 1fr;
  align-items: start;
}

.footer-grid p,
.footer-bottom {
  color: var(--rg-muted);
}

.footer-menu {
  display: grid;
  gap: 8px;
}

.footer-contact {
  display: grid;
  gap: 8px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--rg-line);
  font-size: 0.92rem;
}

.legal-hero {
  padding: 70px 0 52px;
  background:
    radial-gradient(circle at 90% 12%, rgba(88, 76, 244, 0.18), transparent 25%),
    linear-gradient(180deg, #f7f5ff, #f6f8fc);
}

.legal-hero .site-shell {
  max-width: 900px;
}

.legal-content {
  max-width: 900px;
  margin-top: 46px;
  margin-bottom: 80px;
  padding: 42px;
  border: 1px solid var(--rg-line);
  border-radius: var(--rg-radius);
  background: var(--rg-white);
  box-shadow: var(--rg-shadow);
}

.legal-content h2 {
  margin-top: 34px;
  font-size: 1.55rem;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  color: #334055;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0;
}

.contact-card {
  padding: 22px;
}

.contact-card h2 {
  margin-top: 0;
  font-size: 1.2rem;
}

.page-content {
  padding: 70px 0;
}

.page-content h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 24px;
}

@media (max-width: 920px) {
  .hero-grid,
  .split-grid,
  .reverse,
  .safety-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .app-preview {
    margin-left: 0;
    max-width: none;
  }

  .cards-grid,
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  body.roamigoo-site {
    font-size: 16px;
  }

  .site-shell {
    width: min(100% - 28px, var(--rg-shell));
  }

  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    display: none;
    position: absolute;
    left: 14px;
    right: 14px;
    top: 70px;
    padding: 16px;
    border: 1px solid var(--rg-line);
    border-radius: 20px;
    background: var(--rg-white);
    box-shadow: var(--rg-shadow);
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav .menu {
    display: grid;
    gap: 12px;
  }

  .hero-section,
  .section {
    padding: 54px 0;
  }

  h1 {
    font-size: 2.8rem;
  }

  .cards-grid,
  .contact-grid,
  .mini-grid {
    grid-template-columns: 1fr;
  }

  .legal-content {
    padding: 24px;
  }

  .footer-bottom {
    display: grid;
  }
}

