:root {
  --brand: #6264f4;
  --brand-dark: #4d46dc;
  --ink: #111827;
  --muted: #4b5563;
  --soft: #f8fafc;
  --line: #e5e7eb;
  --card: #ffffff;
  --green: #16a34a;
  --blue: #0ea5e9;
  --orange: #f97316;
  --shadow: 0 24px 58px rgba(17, 24, 39, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 88px;
  border-bottom: 1px solid #edf0f7;
  background: rgba(255, 255, 255, 0.9);
  padding: 0 20px;
  backdrop-filter: blur(18px);
}

.logo {
  color: var(--brand);
  font-size: 25px;
  font-weight: 900;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #504d78;
  font-size: 17px;
  font-weight: 700;
}

.main-nav a {
  border-radius: 999px;
  padding: 12px 17px;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 12px 28px rgba(98, 100, 244, 0.28);
}

.menu-button {
  display: none;
  justify-self: end;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 9px 14px;
  color: var(--brand);
  font-weight: 800;
}

.hero {
  position: relative;
  min-height: 820px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(180deg, #fbfcff 0%, #f7f8fb 100%);
  border-bottom: 1px solid #edf0f7;
  padding: 92px 24px 70px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 32%, rgba(98, 100, 244, 0.09), transparent 30%),
    radial-gradient(circle at 82% 38%, rgba(20, 184, 166, 0.08), transparent 28%);
  pointer-events: none;
}

.hero-center {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  max-width: 920px;
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-size: clamp(56px, 7.4vw, 94px);
  line-height: 0.98;
  letter-spacing: 0;
  font-weight: 950;
}

.hero h1 span {
  color: var(--brand);
}

.hero-center > p {
  max-width: 780px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 26px;
  line-height: 1.35;
}

.hero-actions,
.community-actions,
.modal-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 50px;
}

.primary-cta,
.secondary-cta,
.product-card button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 15px 29px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.primary-cta {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 16px 34px rgba(98, 100, 244, 0.33);
  font-size: 22px;
}

.primary-cta:hover,
.secondary-cta:hover,
.product-card button:hover {
  transform: translateY(-2px);
}

.primary-cta.small {
  min-height: 48px;
  padding: 12px 22px;
  font-size: 16px;
}

.secondary-cta {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
  font-size: 18px;
}

.trusted {
  display: grid;
  justify-items: center;
  margin-top: 44px;
}

.trusted p {
  margin: 10px 0 0;
  color: #64748b;
  font-size: 16px;
}

.avatar-stack {
  display: flex;
  margin-left: 24px;
}

.avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin-left: -10px;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.a1 { background: #f59e0b; }
.a2 { background: #ef4444; }
.a3 { background: #0ea5e9; }
.a4 { background: #14b8a6; }

.float-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  width: 360px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  padding: 24px 26px;
  box-shadow: var(--shadow);
}

.float-card strong {
  display: block;
  font-size: 18px;
}

.float-card p {
  margin: 8px 0 0;
  color: #374151;
  font-size: 17px;
  line-height: 1.45;
}

.icon-stroke {
  color: var(--brand);
  font-weight: 900;
}

.float-left-top { left: 5.2%; top: 24%; }
.float-right-top { right: 12.6%; top: 20%; }
.float-left-bottom { left: 12.4%; bottom: 16%; }
.float-right-bottom { right: 10%; bottom: 10%; }

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: -42px auto 0;
  padding: 0 22px;
  position: relative;
  z-index: 4;
}

.stats-band article {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: 26px 28px;
  box-shadow: 0 14px 35px rgba(17, 24, 39, 0.07);
}

.stats-band strong {
  display: block;
  font-size: 34px;
  line-height: 1;
}

.stats-band span {
  display: block;
  margin-top: 8px;
  color: #4f4b75;
  font-weight: 800;
}

.section {
  max-width: 1220px;
  margin: 0 auto;
  padding: 96px 24px;
}

.split-section,
.interface-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 42px;
  align-items: center;
}

.kicker {
  display: inline-flex;
  color: var(--brand);
  font-weight: 900;
}

.section-copy h2,
.section-heading h2,
.panel-large h2,
.community-card h2 {
  margin: 12px 0 0;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-copy p,
.section-heading p,
.panel-large p,
.community-card p {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.65;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.steps-grid article,
.panel-large,
.browser-shell,
.blog-grid article,
.community-card,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(17, 24, 39, 0.07);
}

.steps-grid article {
  padding: 28px;
}

.steps-grid span {
  color: var(--brand);
  font-weight: 950;
}

.steps-grid h3 {
  margin: 12px 0 8px;
  font-size: 22px;
}

.steps-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

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

.browser-shell {
  overflow: hidden;
}

.browser-toolbar {
  display: flex;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  background: #fafbff;
  padding: 16px;
}

.search-bar {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #dfe3f3;
  border-radius: 14px;
  background: #fff;
  padding: 0 16px;
}

.search-bar strong {
  color: var(--brand);
  font-size: 22px;
}

.search-bar input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 14px 0;
}

.filter-pills {
  display: flex;
  gap: 8px;
}

.filter-pills button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 9px 13px;
  color: #504d78;
  font-weight: 800;
}

.filter-pills .active {
  background: var(--brand);
  color: #fff;
}

.app-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 20px;
  background: linear-gradient(180deg, #fff, #f7f8ff);
}

.product-card {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  padding: 20px;
}

.product-card.elevated {
  border-color: #cfd4ff;
  box-shadow: 0 18px 40px rgba(98, 100, 244, 0.16);
}

.product-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
}

.product-logo {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  font-weight: 950;
}

.blue { background: linear-gradient(135deg, #2563eb, #06b6d4); }
.orange { background: linear-gradient(135deg, #ef4444, #f59e0b); }
.green { background: linear-gradient(135deg, #16a34a, #14b8a6); }

.product-head h3 {
  margin: 0;
  font-size: 20px;
}

.product-head p,
.product-card > p {
  margin: 0;
  color: var(--muted);
}

.product-head b {
  color: var(--brand);
  white-space: nowrap;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags span {
  border-radius: 999px;
  background: #f1f5f9;
  padding: 7px 10px;
  color: #475569;
  font-size: 13px;
  font-weight: 800;
}

.product-card button {
  width: 100%;
  min-height: 46px;
  background: var(--brand);
  color: #fff;
}

.panel-large {
  padding: 34px;
}

.inbox-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.inbox-item {
  border-radius: 18px;
  padding: 18px;
}

.inbox-item p {
  margin: 8px 0;
  font-size: 16px;
}

.inbox-item span {
  font-weight: 900;
}

.good { background: #ecfdf5; color: #065f46; }
.wait { background: #fffbeb; color: #92400e; }
.bad { background: #fef2f2; color: #991b1b; }

.contract-panel {
  background: linear-gradient(135deg, #fff, #eef2ff);
}

.contract-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 26px 0;
}

.contract-preview div {
  border: 1px solid #dfe3f3;
  border-radius: 16px;
  background: #fff;
  padding: 16px;
}

.contract-preview span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.contract-preview strong {
  display: block;
  margin-top: 6px;
}

.leaderboard-section {
  max-width: 1000px;
}

.leaderboard-table {
  display: grid;
  gap: 12px;
}

.leader-row {
  display: grid;
  grid-template-columns: 70px 1fr 1fr auto;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  padding: 18px 22px;
}

.leader-row.top {
  border-color: #cfd4ff;
  background: linear-gradient(135deg, #fff, #eef2ff);
}

.leader-row span,
.leader-row b {
  color: var(--brand);
  font-weight: 950;
}

.leader-row p {
  margin: 0;
  color: var(--muted);
}

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

.blog-grid article {
  padding: 28px;
}

.blog-grid span {
  color: var(--brand);
  font-weight: 900;
}

.blog-grid h3 {
  min-height: 78px;
  margin: 14px 0;
  font-size: 24px;
  line-height: 1.12;
}

.blog-grid p {
  color: var(--muted);
  line-height: 1.6;
}

.blog-grid a {
  color: var(--brand);
  font-weight: 900;
}

.community-section {
  max-width: 1120px;
}

.community-card {
  padding: 60px;
  background:
    radial-gradient(circle at top left, rgba(98, 100, 244, 0.15), transparent 35%),
    linear-gradient(135deg, #fff, #f6f8ff);
  text-align: center;
}

.faq-section {
  max-width: 900px;
}

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

.faq-list details {
  padding: 20px 24px;
}

.faq-list summary {
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
}

.faq-list p {
  color: var(--muted);
  line-height: 1.6;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding: 32px 40px;
}

.footer strong {
  color: var(--brand);
  font-size: 22px;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: #504d78;
  font-weight: 800;
}

.submit-modal {
  width: min(560px, calc(100vw - 28px));
  border: 0;
  border-radius: 24px;
  padding: 0;
  background: transparent;
}

.submit-modal::backdrop {
  background: rgba(17, 24, 39, 0.42);
  backdrop-filter: blur(4px);
}

.modal-card {
  display: grid;
  gap: 16px;
  border-radius: 24px;
  background: #fff;
  padding: 26px;
  box-shadow: 0 30px 85px rgba(17, 24, 39, 0.3);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.modal-head h2 {
  margin: 6px 0 0;
}

.close-button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--muted);
  font-weight: 900;
}

label {
  display: grid;
  gap: 8px;
  color: #504d78;
  font-weight: 900;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: 0;
  padding: 13px 15px;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(98, 100, 244, 0.14);
}

@media (max-width: 1180px) {
  .float-card {
    display: none;
  }

  .hero {
    min-height: auto;
  }
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: 1fr auto;
    min-height: 72px;
  }

  .menu-button {
    display: inline-flex;
  }

  .main-nav {
    grid-column: 1 / -1;
    display: none;
    flex-wrap: wrap;
    justify-content: flex-start;
    padding: 12px 0 16px;
  }

  .main-nav.open {
    display: flex;
  }

  .hero h1 {
    font-size: 54px;
  }

  .hero-center > p {
    font-size: 20px;
  }

  .stats-band,
  .split-section,
  .interface-grid,
  .app-board,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .browser-toolbar,
  .hero-actions,
  .community-actions,
  .modal-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .leader-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 0 14px;
  }

  .logo {
    font-size: 21px;
  }

  .hero {
    padding: 62px 18px 54px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .primary-cta,
  .secondary-cta {
    width: 100%;
    font-size: 16px;
  }

  .stats-band {
    margin-top: 0;
  }

  .section {
    padding: 68px 18px;
  }

  .steps-grid,
  .contract-preview {
    grid-template-columns: 1fr;
  }

  .browser-toolbar {
    padding: 12px;
  }

  .filter-pills {
    flex-wrap: wrap;
  }

  .community-card {
    padding: 34px 22px;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 28px 20px;
  }
}
