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

html,
body {
  margin: 0;
  padding: 0;
}

:root {
  --bg-0: #f5f7fb;
  --bg-1: #ffffff;
  --bg-2: #eef2f7;
  --ink: #0f172a;
  --muted: #5b6474;
  --soft: #7a8699;
  --accent-1: #22c55e;
  --accent-2: #22c55e;
  --accent-3: #22c55e;
  --glass: rgba(255, 255, 255, 0.86);
  --border: rgba(148, 163, 184, 0.35);
  --shadow-1: 0 16px 40px rgba(15, 23, 42, 0.08);
  --shadow-2: 0 30px 80px rgba(15, 23, 42, 0.12);
}

body {
  font-family:
    "Nunito Sans",
    "Segoe UI",
    system-ui,
    -apple-system,
    sans-serif;
  background: var(--bg-0);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

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

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

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-text-group {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.8rem;
  box-shadow:
    0 0 0 1px rgba(37, 99, 235, 0.2),
    0 8px 20px rgba(37, 99, 235, 0.18);
}

.logo-text {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.logo-pill {
  align-self: flex-start;
  padding: 0.12rem 0.6rem;
  border-radius: 999px;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #15803d;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.nav-links a {
  padding: 0.25rem 0;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.1rem;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--accent-1), var(--accent-3));
  border-radius: 999px;
  transition: width 0.18s ease-out;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Buttons */
.btn {
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s ease-out;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  position: relative;
  overflow: hidden;
}

.btn-lg {
  padding: 0.7rem 1.25rem;
  font-size: 0.9rem;
}

.btn-primary {
  background: var(--accent-1);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(34, 197, 94, 0.18);
}

.btn-primary:hover {
  filter: brightness(1.02);
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(34, 197, 94, 0.22);
}

.btn-ghost {
  background: #ffffff;
  color: var(--ink);
  border-color: rgba(148, 163, 184, 0.6);
}

.btn-ghost:hover {
  background: #f1f5f9;
  border-color: rgba(148, 163, 184, 0.8);
}

/* Hero */
.hero {
  padding: 3.5rem 1.5rem 2.5rem;
}

.hero-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.25rem, 3vw, 2.9rem);
  line-height: 1.1;
  margin: 0 0 1rem;
  color: #0f172a;
  font-family: "Source Serif 4", "Nunito Sans", sans-serif;
  letter-spacing: -0.02em;
}

.accent {
  color: var(--accent-1);
}

.hero-sub {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 32rem;
  margin: 0 0 1.5rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-meta {
  display: flex;
  gap: 1.75rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.hero-meta-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  color: #6b7280;
}

.hero-meta-value {
  color: #1f2937;
  margin-top: 0.15rem;
}

/* Hero preview card */
.hero-preview {
  border-radius: 1.25rem;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: var(--shadow-2);
  overflow: hidden;
  transform-origin: center;
  transition:
    transform 0.25s ease-out,
    box-shadow 0.25s ease-out,
    border-color 0.25s ease-out;
}

.hero-preview:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(34, 197, 94, 0.4);
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.18);
}

.hero-preview-header {
  padding: 0.6rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 1px solid rgba(226, 232, 240, 1);
  background: #f8fafc;
  font-size: 0.75rem;
  color: var(--muted);
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #cbd5f5;
}

.dot.red {
  background: #ef4444;
}
.dot.amber {
  background: #f59e0b;
}
.dot.green {
  background: #22c55e;
}
.dot.blue {
  background: #3b82f6;
}
.dot.purple {
  background: #a855f7;
}
.dot.small {
  width: 7px;
  height: 7px;
}

.hero-preview-title {
  margin-left: auto;
}

.hero-preview-body {
  padding: 1.1rem 1.1rem 0.9rem;
}

.hero-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}

.pill {
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  font-size: 0.7rem;
  background: #f1f5f9;
  color: var(--ink);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.pill-strong {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
  border-color: rgba(34, 197, 94, 0.3);
}

.hero-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.1rem;
}

.hero-column h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6b7280;
  margin: 0 0 0.4rem;
}

.board {
  list-style: none;
  margin: 0;
  padding: 0.35rem;
  border-radius: 0.75rem;
  background: #f8fafc;
  border: 1px solid rgba(226, 232, 240, 1);
}

.board-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.5rem;
  border-radius: 0.6rem;
  font-size: 0.78rem;
  color: var(--ink);
}

.board-item + .board-item {
  margin-top: 0.25rem;
}

.board-item.best {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.board-item.muted {
  opacity: 0.65;
}

.board-provider {
  font-weight: 500;
}

.board-price {
  font-size: 0.8rem;
  color: #15803d;
}

.tag {
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-size: 0.68rem;
  background: rgba(34, 197, 94, 0.12);
  color: #166534;
}

.tag-best {
  background: rgba(34, 197, 94, 0.18);
  color: #166534;
}

.tag-issue {
  background: rgba(248, 113, 113, 0.12);
  color: #b91c1c;
}

.chat {
  border-radius: 0.75rem;
  background: #f8fafc;
  border: 1px solid rgba(226, 232, 240, 1);
  padding: 0.55rem 0.65rem 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.78rem;
}

.chat-bubble {
  padding: 0.4rem 0.55rem;
  border-radius: 0.6rem;
  line-height: 1.4;
}

.chat-bubble.user {
  align-self: flex-end;
  background: rgba(34, 197, 94, 0.16);
  color: #1e293b;
  max-width: 92%;
}

.chat-bubble.ai {
  align-self: flex-start;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 1);
  color: #1f2937;
  max-width: 100%;
}

.chat-meta {
  font-size: 0.65rem;
  color: var(--muted);
  margin-top: 0.1rem;
}

.hero-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.65rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(226, 232, 240, 1);
  font-size: 0.7rem;
  color: var(--muted);
}

.hero-footer-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Sections */
.section {
  padding: 0.75rem 1.5rem 2.75rem;
}

.section-header {
  max-width: 1120px;
  margin: 0 auto 1.75rem;
}

.section-header h2 {
  font-size: 1.6rem;
  margin: 0 0 0.4rem;
  color: var(--ink);
  font-family: "Source Serif 4", "Nunito Sans", sans-serif;
}

.section-header p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 32rem;
}

.feature-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.feature {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.1rem 1.1rem 1rem;
  border: 1px solid rgba(226, 232, 240, 1);
  box-shadow: var(--shadow-1);
  font-size: 0.85rem;
  transition:
    transform 0.2s ease-out,
    border-color 0.2s ease-out;
}

.feature h3 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  color: var(--ink);
  font-family: "Source Serif 4", "Nunito Sans", sans-serif;
}

.feature p {
  margin: 0 0 0.45rem;
  color: var(--muted);
}

.feature ul {
  margin: 0;
  padding-left: 1rem;
  color: var(--muted);
}

.feature li {
  margin-bottom: 0.25rem;
}

.section-split {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1.75rem;
  align-items: flex-start;
}

.section-split h2 {
  font-size: 1.5rem;
  margin: 0 0 0.4rem;
  font-family: "Source Serif 4", "Nunito Sans", sans-serif;
}

.section-split p {
  margin: 0 0 0.9rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.team-card {
  background: #ffffff;
  border-radius: 0.75rem;
  border: 1px solid rgba(226, 232, 240, 1);
  padding: 0.9rem;
  font-size: 0.85rem;
  box-shadow: var(--shadow-1);
}

.team-card h3 {
  margin: 0 0 0.3rem;
  font-size: 0.95rem;
  font-family: "Source Serif 4", "Nunito Sans", sans-serif;
}

.team-card p {
  margin: 0;
  color: var(--muted);
}

.tech-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.tech-card {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1rem 1.1rem 0.9rem;
  border: 1px solid rgba(226, 232, 240, 1);
  font-size: 0.84rem;
  box-shadow: var(--shadow-1);
}

.tech-card h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-family: "Source Serif 4", "Nunito Sans", sans-serif;
}

.tech-card ul {
  margin: 0;
  padding-left: 1rem;
  color: var(--muted);
}

.tech-card li {
  margin-bottom: 0.2rem;
}

.section-cta {
  padding-bottom: 3.25rem;
}

.section-cta-inner {
  max-width: 1120px;
  margin: 0 auto;
  border-radius: 1.25rem;
  background: linear-gradient(120deg, #ecfdf3, #f8fafc 65%);
  border: 1px solid rgba(34, 197, 94, 0.25);
  padding: 1.6rem 1.6rem 1.5rem;
  text-align: left;
  box-shadow: var(--shadow-2);
}

.section-cta-inner h2 {
  margin: 0 0 0.4rem;
  font-size: 1.4rem;
  color: #0f172a;
  font-family: "Source Serif 4", "Nunito Sans", sans-serif;
}

.section-cta-inner p {
  margin: 0 0 0.9rem;
  font-size: 0.95rem;
  color: #334155;
  max-width: 34rem;
}

/* Footer */
.footer {
  margin-top: auto;
  border-top: 1px solid rgba(226, 232, 240, 1);
  background: #ffffff;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  font-size: 0.8rem;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.feature:hover,
.tech-card:hover,
.team-card:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 197, 94, 0.4);
}

.hero-copy h1,
.hero-sub,
.hero-ctas,
.hero-meta,
.hero-preview {
  animation: fade-up 0.7s ease both;
}

.hero-sub {
  animation-delay: 0.06s;
}

.hero-ctas {
  animation-delay: 0.12s;
}

.hero-meta {
  animation-delay: 0.18s;
}

.hero-preview {
  animation-delay: 0.14s;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy h1,
  .hero-sub,
  .hero-ctas,
  .hero-meta,
  .hero-preview {
    animation: none;
  }
}

.footer-dot {
  opacity: 0.7;
}

/* Responsive */
@media (max-width: 960px) {
  .nav-inner {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .nav-links {
    display: none;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-preview {
    order: -1;
  }

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

  .tech-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-split {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .nav-inner {
    padding-inline: 1rem;
  }

  .hero,
  .section,
  .footer-inner {
    padding-inline: 1rem;
  }

  .hero-preview-body {
    padding-inline: 0.8rem;
  }

  .hero-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature-grid,
  .tech-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-cta-inner {
    padding-inline: 1.15rem;
  }
}
