@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&family=Plus+Jakarta+Sans:wght@700;800&display=swap');

:root {
  --bg: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-tint: #f1f5f9;
  --surface: #ffffff;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --ink: #0f172a;
  --ink-secondary: #334155;
  --muted: #64748b;
  --brand: #2563eb;
  --brand-hover: #1d4ed8;
  --brand-soft: #eff6ff;
  --brand-border: #bfdbfe;
  --green: #16a34a;
  --green-soft: #dcfce7;
  --green-ink: #166534;
  --amber-soft: #fef3c7;
  --amber-ink: #92400e;
  --red-soft: #fee2e2;
  --red-ink: #991b1b;
  --purple-soft: #f3e8ff;
  --purple-ink: #6b21a8;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 30px -8px rgba(15, 23, 42, 0.08), 0 4px 10px -4px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 24px 48px -12px rgba(15, 23, 42, 0.12), 0 8px 20px -6px rgba(15, 23, 42, 0.06);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

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

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.03em;
}

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

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.93rem;
  font-weight: 500;
}

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

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

/* Docs Dropdown */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-trigger {
  background: none;
  border: none;
  padding: 6px 0;
  font-family: inherit;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--ink-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nav-dropdown-trigger:hover,
.nav-dropdown:focus-within .nav-dropdown-trigger {
  color: var(--ink);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 280px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
  z-index: 100;
}

.nav-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 12px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  padding: 0;
}

.nav-toggle:hover {
  background: var(--bg-subtle);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--ink) !important;
}

.dropdown-item:hover {
  background: var(--bg-subtle);
}

.dropdown-item img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  flex-shrink: 0;
}

.dropdown-title {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.25;
  color: var(--ink);
}

.dropdown-sub {
  display: block;
  font-size: 0.77rem;
  color: var(--muted);
  margin-top: 2px;
}

.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 8px;
}

.nav-cta {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.88rem;
}

.nav-cta:hover {
  background: #1e293b;
  transform: translateY(-1px);
}

/* Buttons */
.btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}

.btn-primary {
  background: var(--brand);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  background: var(--brand-hover);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

.btn-dark {
  background: var(--ink);
  color: #ffffff;
}

.btn-dark:hover {
  background: #1e293b;
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-secondary {
  background: #ffffff;
  color: var(--ink);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  color: var(--ink);
  border-color: #94a3b8;
  transform: translateY(-1px);
}

/* Badges & Pills */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  border: 1px solid var(--brand-border);
  margin-bottom: 18px;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--green);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.01em;
}

.pill-green {
  background: var(--green-soft);
  color: var(--green-ink);
}

.pill-blue {
  background: var(--brand-soft);
  color: var(--brand);
}

.pill-amber {
  background: var(--amber-soft);
  color: var(--amber-ink);
}

.pill-red {
  background: var(--red-soft);
  color: var(--red-ink);
}

.pill-purple {
  background: var(--purple-soft);
  color: var(--purple-ink);
}

.pill-neutral {
  background: var(--bg-tint);
  color: var(--ink-secondary);
}

/* Hero Section */
.hero {
  position: relative;
  padding: 72px 0 84px;
  background:
    radial-gradient(circle at 80% 15%, rgba(37, 99, 235, 0.09), transparent 45%),
    radial-gradient(circle at 15% 80%, rgba(22, 163, 74, 0.07), transparent 40%),
    radial-gradient(#cbd5e1 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 24px 24px;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2.25rem, 4.4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin: 0 0 18px;
}

.hero-sub {
  font-size: 1.12rem;
  color: var(--ink-secondary);
  margin: 0 0 28px;
  max-width: 520px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 24px;
  font-size: 0.86rem;
  color: var(--muted);
}

.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Mockup Preview Card (Bannerbear-style crisp product showcase) */
.preview-window {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.preview-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
}

.chrome-dots {
  display: flex;
  gap: 6px;
}

.chrome-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #cbd5e1;
  display: block;
}

.preview-body {
  padding: 20px;
}

.mock-summary {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  background: var(--bg-subtle);
  margin-bottom: 16px;
}

.mock-summary-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.mock-score {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
}

.mock-bar {
  height: 7px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.mock-bar-fill {
  width: 75%;
  height: 100%;
  background: linear-gradient(90deg, #16a34a, #22c55e);
  border-radius: 999px;
}

.mock-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #ffffff;
}

.mock-doc-title {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink);
  display: block;
}

.mock-doc-meta {
  font-size: 0.76rem;
  color: var(--muted);
}

/* Sections */
.section {
  padding: 76px 0;
}

.section-subtle {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 640px;
  margin-bottom: 40px;
}

.section-head h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 10px;
  line-height: 1.2;
}

.section-head p {
  color: var(--muted);
  font-size: 1.04rem;
  margin: 0;
}

/* Portfolio Grid */
.apps-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 24px;
  align-items: stretch;
}

.app-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.app-card-dashed {
  background: var(--bg-subtle);
  border: 1.5px dashed var(--border-strong);
  box-shadow: none;
}

.app-card-top {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}

.app-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.app-card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  margin: 6px 0 6px;
  letter-spacing: -0.02em;
}

.feature-checks {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
  font-size: 0.92rem;
  color: var(--ink-secondary);
}

.feature-checks li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
}

.check-icon {
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
}

/* 3-Column Principles / Features Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

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

.card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-weight: 700;
  font-size: 1.1rem;
}

.card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 8px;
}

.card p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--ink-secondary);
}

/* CTA Banner */
.cta-box {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
}

.cta-box h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.65rem;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.cta-box p {
  margin: 0;
  color: #cbd5e1;
  max-width: 540px;
}

.cta-box .btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

.cta-box .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.45);
}

/* Subpages (Docs, Privacy, Terms, Support) */
.page-header {
  padding: 52px 0 40px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.9rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
  line-height: 1.2;
}

.page-header p {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0;
  max-width: 640px;
}

.prose {
  padding: 48px 0 72px;
}

.prose h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.35rem;
  margin: 36px 0 12px;
  letter-spacing: -0.015em;
}

.prose h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.05rem;
  margin: 24px 0 8px;
}

.prose p {
  margin: 0 0 16px;
  color: var(--ink-secondary);
}

.prose ul,
.prose ol {
  padding-left: 22px;
  margin: 0 0 18px;
  color: var(--ink-secondary);
}

.prose li {
  margin-bottom: 8px;
}

code {
  font-family: 'JetBrains Mono', monospace;
  background: var(--bg-tint);
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 0.87em;
  color: var(--ink);
}

/* Forms (Support & Feature Requests) */
.form-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--ink);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: #ffffff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.form-hint {
  font-size: 0.83rem;
  color: var(--muted);
  margin-top: 6px;
}

.status-note {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green-ink);
  font-size: 0.9rem;
  font-weight: 500;
  display: none;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  background: var(--bg-subtle);
  padding: 40px 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

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

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

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .apps-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

@media (max-width: 768px) {
  .nav {
    flex-wrap: wrap;
    padding: 12px 0;
  }

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

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 0 6px;
    border-top: 1px solid var(--border);
    margin-top: 8px;
  }

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

  .nav-links > a,
  .nav-dropdown-trigger {
    width: 100%;
    padding: 10px 4px;
    justify-content: space-between;
    font-size: 0.98rem;
  }

  .nav-dropdown {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .nav-dropdown::after {
    display: none;
  }

  .nav-dropdown-menu {
    position: static;
    min-width: 0;
    width: 100%;
    box-shadow: none;
    background: var(--bg-subtle);
    margin: 4px 0 8px;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }

  .nav-dropdown.is-open .nav-dropdown-menu {
    display: block;
  }

  .nav-cta {
    margin-top: 6px;
    text-align: center;
    padding: 11px 16px !important;
  }
}

@media (max-width: 640px) {
  .container,
  .container-narrow {
    padding: 0 18px;
  }

  .hero {
    padding: 40px 0 48px;
  }

  .hero h1 {
    font-size: 1.95rem;
  }

  .hero-sub {
    font-size: 1rem;
  }

  .hero-trust {
    gap: 10px 16px;
    font-size: 0.83rem;
  }

  .section {
    padding: 48px 0;
  }

  .page-header {
    padding: 36px 0 28px;
  }

  .prose {
    padding: 32px 0 48px;
  }

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

  .app-card,
  .card,
  .form-card {
    padding: 20px;
  }

  .app-card-top {
    flex-direction: column;
    gap: 12px;
  }

  .preview-chrome {
    font-size: 0.72rem;
    padding: 10px 12px;
    gap: 8px;
  }

  .preview-chrome > span:nth-child(2) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .preview-body {
    padding: 14px;
  }

  .mock-row {
    align-items: flex-start;
    padding: 10px 12px;
  }

  .mock-row .pill {
    flex-shrink: 0;
  }

  .btn-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-row .btn {
    width: 100%;
  }

  .cta-box {
    padding: 28px 20px;
    gap: 20px;
  }

  .cta-box h2 {
    font-size: 1.4rem;
  }

  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .footer-links {
    gap: 12px 18px;
  }
}
