/* Marketplace Guardian — marketing site */

:root {
  --brand: #0b5fff;
  --brand-deep: #0638a8;
  --brand-soft: #e8f0ff;
  --ink: #0c1222;
  --ink-muted: #4b5568;
  --paper: #f4f7fc;
  --white: #ffffff;
  --line: rgba(12, 18, 34, 0.1);
  --shadow: 0 18px 50px rgba(6, 56, 168, 0.12);
  --max: 1120px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Sora", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--brand);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 0.75rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(244, 247, 252, 0.84);
  border-bottom: 1px solid var(--line);
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.7rem;
  background:
    radial-gradient(circle at 30% 30%, #7db0ff, transparent 55%),
    linear-gradient(145deg, var(--brand), var(--brand-deep));
  box-shadow: 0 8px 18px rgba(11, 95, 255, 0.28);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 28% 30% auto;
  height: 42%;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px 999px 40% 40%;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 650;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: var(--brand);
  color: var(--white) !important;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.88rem;
  box-shadow: 0 10px 24px rgba(11, 95, 255, 0.28);
}

.nav-cta:hover {
  background: var(--brand-deep);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  font: inherit;
  color: var(--ink);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: min(92vh, 820px);
  display: flex;
  align-items: flex-end;
  color: var(--white);
  background:
    radial-gradient(ellipse 80% 60% at 75% 20%, rgba(125, 176, 255, 0.45), transparent 55%),
    radial-gradient(ellipse 50% 40% at 15% 80%, rgba(15, 159, 110, 0.22), transparent 50%),
    linear-gradient(155deg, #041433 0%, #0a2f7a 42%, #0b5fff 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 85%);
  animation: grid-drift 28s linear infinite;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  width: 46vw;
  height: 46vw;
  max-width: 560px;
  max-height: 560px;
  right: -8%;
  top: 8%;
  border-radius: 40% 60% 55% 45%;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.02) 70%);
  animation: orb-float 9s ease-in-out infinite;
  pointer-events: none;
}

@keyframes grid-drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-56px, -56px, 0); }
}

@keyframes orb-float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(-18px, 22px, 0) rotate(8deg); }
}

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

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 7rem 0 4.5rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  animation: rise 0.8s ease both;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.2vw, 2.2rem);
  font-weight: 550;
  line-height: 1.25;
  margin: 0 0 1rem;
  max-width: 18ch;
  animation: rise 0.9s ease 0.08s both;
}

.hero-body {
  font-size: 1.02rem;
  max-width: 42rem;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 2rem;
  animation: rise 1s ease 0.16s both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  animation: rise 1.1s ease 0.24s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

.btn-primary {
  background: var(--white);
  color: var(--brand-deep);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.btn-primary:hover {
  color: var(--brand);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
}

.section {
  padding: 5rem 1.25rem;
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.7rem;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.85rem;
}

.section-lead {
  color: var(--ink-muted);
  max-width: 40rem;
  margin: 0 0 2.5rem;
  font-size: 1.05rem;
}

.features {
  background: var(--white);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.feature {
  padding: 1.5rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #f8faff);
  box-shadow: 0 10px 30px rgba(6, 56, 168, 0.04);
  animation: rise 0.8s ease both;
}

.feature:nth-child(1) { animation-delay: 0.05s; }
.feature:nth-child(2) { animation-delay: 0.1s; }
.feature:nth-child(3) { animation-delay: 0.15s; }
.feature:nth-child(4) { animation-delay: 0.2s; }

.feature-icon {
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 0.9rem;
  color: var(--brand-deep);
}

.feature h3 {
  margin: 0 0 0.45rem;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
}

.feature p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.96rem;
}

.how {
  background:
    linear-gradient(180deg, rgba(232, 240, 255, 0.7), rgba(244, 247, 252, 0.2)),
    var(--paper);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 1.5rem 1.25rem 1.35rem;
  border-top: 2px solid var(--brand);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 0 0 16px 16px;
  animation: rise 0.85s ease both;
}

.steps li:nth-child(1) { animation-delay: 0.05s; }
.steps li:nth-child(2) { animation-delay: 0.12s; }
.steps li:nth-child(3) { animation-delay: 0.18s; }

.steps .step-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.55rem;
}

.steps h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.4;
  font-weight: 600;
}

.page-hero {
  padding: 4.5rem 1.25rem 2rem;
  background:
    radial-gradient(ellipse 70% 80% at 100% 0%, rgba(11, 95, 255, 0.14), transparent 55%),
    var(--paper);
}

.page-hero-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.page-hero p {
  margin: 0;
  max-width: 42rem;
  color: var(--ink-muted);
  font-size: 1.05rem;
}

.prose {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.25rem 5rem;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 2.4rem 0 0.7rem;
  letter-spacing: -0.01em;
}

.prose p,
.prose li {
  color: var(--ink-muted);
}

.prose ul {
  padding-left: 1.2rem;
}

.prose li + li {
  margin-top: 0.35rem;
}

.contact-panel {
  max-width: 760px;
  margin: 0 auto 5rem;
  padding: 0 1.25rem;
}

.contact-block {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.contact-block h2 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

.contact-block p {
  margin: 0;
  color: var(--ink-muted);
}

.contact-block a {
  font-weight: 600;
  text-decoration: none;
}

.site-footer {
  background: #07122b;
  color: rgba(255, 255, 255, 0.78);
  padding: 2.75rem 1.25rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  align-items: center;
}

.footer-brand {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1.15rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-copy {
  width: 100%;
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 900px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.4rem);
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 0.85rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
  }

  .nav-cta {
    justify-content: center;
  }

  .hero-inner {
    padding: 5.5rem 0 3.5rem;
  }

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

  .section {
    padding: 3.75rem 1.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
