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

:root {
  --brand-50: #eff6ff;
  --brand-100: #dbeafe;
  --brand-400: #60a5fa;
  --brand-500: #3b82f6;
  --brand-600: #2563eb;
  --brand-700: #1d4ed8;
  --bg: #ffffff;
  --bg-muted: #fafafa;
  --text: #18181b;
  --text-muted: #52525b;
  --border: #e4e4e7;
  --card: #ffffff;
  --glass: rgba(255, 255, 255, 0.72);
  --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
  --header-h: 72px;
}

html.dark {
  --bg: #09090b;
  --bg-muted: #18181b;
  --text: #fafafa;
  --text-muted: #a1a1aa;
  --border: #27272a;
  --card: #18181b;
  --glass: rgba(24, 24, 27, 0.78);
  --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 9999;
  background: var(--brand-600); color: #fff; padding: 0.75rem 1rem; border-radius: 0.5rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.container { width: min(100% - 2rem, 80rem); margin-inline: auto; }
.section { padding: 5rem 0; }
.section-muted { background: var(--bg-muted); }
.section-header { max-width: 48rem; margin: 0 auto 3rem; text-align: center; }
.eyebrow {
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--brand-600); margin-bottom: 0.75rem;
}
html.dark .eyebrow { color: var(--brand-400); }
.section-title {
  font-size: clamp(1.875rem, 4vw, 3rem); font-weight: 800;
  letter-spacing: -0.03em; line-height: 1.1; margin: 0;
}
.section-desc { margin: 1rem 0 0; font-size: 1.125rem; color: var(--text-muted); }

.gradient-text {
  background: linear-gradient(90deg, var(--brand-600), var(--brand-400), #06b6d4);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  height: 2.75rem; padding: 0 1.25rem; border-radius: 0.75rem;
  font-size: 0.9375rem; font-weight: 600; border: 1px solid transparent;
  cursor: pointer; transition: transform 0.15s, background 0.2s, border-color 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--brand-600); color: #fff; box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25); }
.btn-primary:hover { background: var(--brand-700); }
.btn-secondary {
  background: var(--card); color: var(--text); border-color: var(--border);
}
.btn-secondary:hover { background: var(--bg-muted); }
.btn-lg { height: 3rem; padding: 0 1.5rem; font-size: 1rem; }
.btn-block { width: 100%; }

.glass {
  background: var(--glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.15); box-shadow: var(--shadow); border-radius: 1rem;
}
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 1rem; box-shadow: var(--shadow);
}

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background 0.3s, padding 0.3s, border-color 0.3s;
  padding: 1rem 0;
}
.site-header.scrolled {
  background: var(--glass); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border); padding: 0.5rem 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { display: flex; align-items: center; gap: 0.625rem; font-weight: 800; font-size: 1.125rem; }
.logo img { width: 2.25rem; height: 2.25rem; border-radius: 0.75rem; }
.nav-desktop { display: none; gap: 0.25rem; }
.nav-desktop a {
  padding: 0.5rem 0.75rem; border-radius: 0.5rem; font-size: 0.875rem;
  font-weight: 500; color: var(--text-muted);
}
.nav-desktop a:hover { color: var(--text); }
.header-actions { display: none; align-items: center; gap: 0.5rem; }
.icon-btn {
  width: 2.5rem; height: 2.5rem; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 0.75rem; background: var(--card);
  color: var(--text-muted); cursor: pointer;
}
.menu-toggle { display: inline-flex; }
.mobile-nav {
  display: none; border-top: 1px solid var(--border);
  background: var(--bg); padding: 1rem;
}
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 0.625rem 0.75rem; border-radius: 0.5rem; font-weight: 500; }
.mobile-nav .btn { margin-top: 0.75rem; width: 100%; }

@media (min-width: 1024px) {
  .nav-desktop, .header-actions { display: flex; }
  .menu-toggle { display: none; }
}

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + 3rem) 0 4rem;
}
.hero-glow {
  pointer-events: none; position: absolute; inset: 0;
  background: radial-gradient(ellipse at top, rgba(37,99,235,0.12), transparent 55%);
}
.hero-grid {
  display: grid; gap: 3rem; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.25rem 0.75rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600;
  background: var(--brand-50); color: var(--brand-700); border: 1px solid var(--brand-100);
  margin-bottom: 1.25rem;
}
html.dark .hero-badge { background: rgba(37,99,235,0.15); color: var(--brand-400); border-color: rgba(59,130,246,0.25); }
.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 800;
  letter-spacing: -0.04em; line-height: 1.05; margin: 0;
}
.hero-desc { margin: 1.5rem 0 0; max-width: 36rem; font-size: 1.125rem; color: var(--text-muted); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--border);
}
.hero-stats dt { font-size: 0.75rem; color: var(--text-muted); }
.hero-stats dd { margin: 0.25rem 0 0; font-size: 1.25rem; font-weight: 800; }

@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .hero { padding-bottom: 6rem; }
}

/* App preview */
.app-preview {
  border: 1px solid var(--border); border-radius: 1rem; overflow: hidden;
  background: var(--bg-muted); box-shadow: var(--shadow);
}
.app-preview--hero {
  position: relative;
  box-shadow:
    0 0 0 1px rgba(24, 24, 27, 0.04),
    0 18px 40px -18px rgba(24, 24, 27, 0.28),
    0 40px 80px -32px rgba(37, 99, 235, 0.28);
  animation: preview-float 7s ease-in-out infinite;
}
.app-preview--hero::after {
  content: "";
  position: absolute;
  inset: auto 8% -18% 8%;
  height: 28%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(37, 99, 235, 0.18), transparent 70%);
  filter: blur(18px);
  z-index: -1;
  pointer-events: none;
}
@keyframes preview-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@media (prefers-reduced-motion: reduce) {
  .app-preview--hero { animation: none; }
}
.app-bar {
  display: flex; align-items: center; gap: 0.5rem; padding: 0.625rem 1rem;
  border-bottom: 1px solid var(--border); background: var(--card);
}
.app-bar-title {
  flex: 1;
  min-width: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-live {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #059669;
  background: rgba(16, 185, 129, 0.12);
}
.app-live::before {
  content: "";
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 999px;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}
.app-dots { display: flex; gap: 0.375rem; }
.app-dots span { width: 0.625rem; height: 0.625rem; border-radius: 999px; }
.app-preview-stage {
  background: #f4f4f5;
  line-height: 0;
}
.app-preview-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 1246 / 870;
  object-fit: cover;
  object-position: top left;
  background: #f4f4f5;
}
html.dark .app-preview-stage { background: #09090b; }

/* Screenshot photos */
.shot-frame { margin: 0; }
.shot-window {
  border: 1px solid var(--border); border-radius: 1rem; overflow: hidden;
  background: var(--bg-muted); box-shadow: var(--shadow);
}
.shot-photo {
  display: block; width: 100%; height: auto;
  aspect-ratio: 16 / 10; object-fit: cover; object-position: top center;
  background: var(--bg-muted);
}
.shot-photo[data-missing="true"] {
  object-fit: contain; padding: 2rem;
  color: var(--text-muted);
}
.shot-panels { position: relative; min-height: 360px; }
.shot-panels [data-shot-panel][hidden] { display: none !important; }

/* Grids */
.grid-3 { display: grid; gap: 1rem; }
.grid-pillars { grid-template-columns: 1fr; }
.grid-hardware { grid-template-columns: repeat(2, 1fr); }
.grid-pricing { grid-template-columns: 1fr; }
.grid-testimonials { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid-pillars { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-pillars { grid-template-columns: repeat(3, 1fr); }
  .grid-hardware { grid-template-columns: repeat(4, 1fr); }
  .grid-pricing, .grid-testimonials { grid-template-columns: repeat(3, 1fr); }
}

.features-bento {
  display: grid;
  gap: 1rem;
}
@media (min-width: 768px) {
  .features-bento {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}
.feature-group {
  padding: 1.35rem 1.35rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(37, 99, 235, 0.04), transparent 42%),
    var(--card);
}
.feature-group-head {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
}
.feature-group-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37,99,235,0.12);
  color: var(--brand-600);
  flex-shrink: 0;
}
.feature-group h3 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.feature-group-head p {
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--text-muted);
}
.feature-group-list {
  list-style: none;
  margin: 0;
  padding: 0.75rem 0 0;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 0.55rem;
}
.feature-group-list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.875rem;
  color: var(--text);
}
.feature-group-list .check-icon {
  width: 1.25rem;
  height: 1.25rem;
  font-size: 0.65rem;
}

.pillar, .hardware-item {
  padding: 1.5rem; height: 100%;
}
.pillar-icon, .hardware-icon {
  width: 2.75rem; height: 2.75rem; border-radius: 0.75rem;
  display: flex; align-items: center; justify-content: center;
  background: rgba(37,99,235,0.1); color: var(--brand-600); margin-bottom: 1rem;
}
.ui-icon { width: 1.375rem; height: 1.375rem; display: block; }
.icon-btn .ui-icon { width: 1.125rem; height: 1.125rem; }
.pillar h3, .hardware-item h3 { margin: 0; font-size: 1.125rem; }
.pillar p, .hardware-item p { margin: 0.5rem 0 0; font-size: 0.875rem; color: var(--text-muted); }
.check-icon {
  flex-shrink: 0; width: 1.5rem; height: 1.5rem; border-radius: 999px;
  background: rgba(16,185,129,0.15); color: #059669;
  display: flex; align-items: center; justify-content: center; font-size: 0.75rem;
}
.badge-soon {
  font-size: 0.625rem; font-weight: 700; padding: 0.125rem 0.5rem;
  border-radius: 999px; background: rgba(37,99,235,0.12); color: var(--brand-600);
}

/* Comparison table */
.table-wrap { overflow-x: auto; }
.compare-table { width: 100%; min-width: 640px; border-collapse: collapse; }
.compare-table th, .compare-table td { padding: 1rem 1.5rem; text-align: left; border-bottom: 1px solid var(--border); }
.compare-table thead th { font-size: 0.875rem; color: var(--text-muted); }
.compare-table thead th:nth-child(2) { color: var(--brand-600); }
.compare-yes { color: #059669; font-weight: 700; }
.compare-no { color: var(--text-muted); }
.compare-partial { color: #d97706; font-weight: 600; }

/* Screenshots */
.screenshots-layout { display: grid; gap: 2rem; }
.shot-tabs { display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.5rem; }
.shot-tab {
  flex-shrink: 0; text-align: left; padding: 0.75rem 1rem; border-radius: 0.75rem;
  border: 1px solid var(--border); background: var(--card); cursor: pointer; min-width: 200px;
}
.shot-tab[aria-selected="true"] {
  border-color: var(--brand-500); background: var(--brand-50);
}
html.dark .shot-tab[aria-selected="true"] { background: rgba(37,99,235,0.12); }
.shot-tab strong { display: block; font-size: 0.875rem; }
.shot-tab span { display: block; font-size: 0.75rem; color: var(--text-muted); margin-top: 0.25rem; }
@media (min-width: 1024px) {
  .screenshots-layout { grid-template-columns: 280px 1fr; }
  .shot-tabs { flex-direction: column; overflow: visible; }
  .shot-tab { width: 100%; }
}

/* Pricing */
.billing-toggle {
  display: flex; justify-content: center; margin-bottom: 2.5rem;
}
.billing-toggle-inner {
  display: inline-flex; padding: 0.25rem; border-radius: 0.75rem;
  border: 1px solid var(--border); background: var(--card);
}
.billing-toggle button {
  padding: 0.5rem 1rem; border: none; border-radius: 0.5rem;
  background: transparent; color: var(--text-muted); font-weight: 600;
  font-size: 0.875rem; cursor: pointer;
}
.billing-toggle button[aria-pressed="true"] {
  background: var(--brand-600); color: #fff;
}
.price-card { padding: 1.5rem; display: flex; flex-direction: column; height: 100%; }
.price-card.featured { outline: 2px solid rgba(37,99,235,0.35); }
.price-badge {
  display: inline-block; margin-bottom: 0.75rem; padding: 0.125rem 0.625rem;
  border-radius: 999px; background: var(--brand-600); color: #fff;
  font-size: 0.75rem; font-weight: 700;
}
.price-amount { font-size: 2.25rem; font-weight: 800; letter-spacing: -0.03em; }
.price-suffix { font-size: 0.875rem; color: var(--text-muted); }
.price-features { list-style: none; padding: 0; margin: 1.5rem 0 0; flex: 1; }
.price-features li {
  display: flex; gap: 0.5rem; align-items: flex-start;
  font-size: 0.875rem; margin-bottom: 0.75rem;
}
.pricing-note { text-align: center; margin-top: 2rem; font-size: 0.875rem; color: var(--text-muted); }

/* FAQ */
.faq-list { max-width: 72rem; margin: 0 auto; display: grid; gap: 0.625rem; }
@media (min-width: 900px) {
  .faq-list { grid-template-columns: 1fr 1fr; align-items: start; }
}
.faq-item { overflow: hidden; }
.faq-question {
  width: 100%; display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.875rem 1rem; border: none; background: transparent; cursor: pointer;
  text-align: left; font-weight: 600; font-size: 0.9375rem; color: var(--text);
}
.faq-answer {
  display: none; padding: 0 1rem 0.875rem; font-size: 0.8125rem; color: var(--text-muted);
  border-top: 1px solid var(--border);
}
.faq-item.open .faq-answer { display: block; padding-top: 0.875rem; }
.faq-chevron { transition: transform 0.2s; color: var(--text-muted); }
.faq-item.open .faq-chevron { transform: rotate(180deg); }

/* Testimonials */
.testimonial { padding: 1.5rem; display: flex; flex-direction: column; height: 100%; }
.testimonial blockquote { flex: 1; margin: 1rem 0 0; font-size: 0.875rem; color: var(--text-muted); }
.testimonial footer { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.testimonial cite { font-style: normal; }
.testimonial cite strong { display: block; }
.testimonial cite span { font-size: 0.75rem; color: var(--text-muted); }

/* Contact */
.contact-grid { display: grid; gap: 2rem; }
.contact-form { padding: 1.5rem; }
.form-grid { display: grid; gap: 1rem; }
.form-grid-2 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid-2 { grid-template-columns: 1fr 1fr; } }
label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.375rem; color: var(--text-muted); }
input, textarea {
  width: 100%; padding: 0.625rem 0.75rem; border-radius: 0.75rem;
  border: 1px solid var(--border); background: var(--card); color: var(--text);
}
input:focus, textarea:focus {
  outline: none; border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}
.form-status { font-size: 0.875rem; color: #059669; margin-top: 0.75rem; }
.side-card { padding: 1.5rem; margin-bottom: 1rem; }
.side-card ul { margin: 0.75rem 0 0; padding: 0; list-style: none; }
.side-card li { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 0.5rem; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 380px; } }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border); background: var(--bg-muted); padding: 4rem 0 2rem;
}
.footer-grid { display: grid; gap: 2.5rem; }
.footer-bottom {
  margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 0.5rem;
  font-size: 0.875rem; color: var(--text-muted);
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* Animations */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s, transform 0.6s; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
