:root {
  --bg: #0a0b0d;
  --surface: #14161a;
  --surface-2: #0e1013;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --dim: #64748b;
  --indigo: #818cf8;
  --indigo-bright: #a5b4fc;
  --violet: #6366f1;
  --teal: #2dd4bf;
  --amber: #fbbf24;
  --max: 1120px;
  --font: 'DM Sans', system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, monospace;
}

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

html {
  scroll-behavior: smooth;
  font-size: 106.25%; /* ~17px — matches app readability */
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--indigo-bright);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 11, 13, 0.85);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.brand:hover {
  text-decoration: none;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(99, 102, 241, 0.35);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.15);
}

.site-footer .brand-logo {
  width: 32px;
  height: 32px;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

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

.nav-desktop a:hover {
  color: var(--text);
  text-decoration: none;
}

.header-ctas {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #818cf8, #6366f1);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--muted);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text);
}

.menu-toggle {
  display: flex;
  padding: 0.4rem;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  padding-bottom: 1rem;
}

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

.nav-mobile a {
  padding: 0.5rem 0;
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }
  .menu-toggle {
    display: none;
  }
  .nav-mobile {
    display: none !important;
  }
}

/* Hero */
.hero {
  padding: 4.5rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: -40% -20% auto;
  height: 70%;
  background: radial-gradient(ellipse at 50% 0%, rgba(99, 102, 241, 0.22), transparent 65%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  position: relative;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal);
  margin-bottom: 1rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(45, 212, 191, 0.35);
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.08);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  font-weight: 700;
}

.hero h1 span {
  background: linear-gradient(135deg, #e2e8f0 30%, #818cf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 34rem;
  margin: 0 0 1.75rem;
}

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

.hero-meta {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--dim);
}

.hero-visual {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

.mock-bar {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.mock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #334155;
}

.mock-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem;
  margin-bottom: 0.5rem;
}

.mock-card h3 {
  margin: 0 0 0.25rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.mock-card p {
  margin: 0;
  font-size: 0.72rem;
  color: var(--dim);
  font-family: var(--mono);
}

.mock-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.pill {
  font-size: 0.65rem;
  font-family: var(--mono);
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  background: rgba(99, 102, 241, 0.15);
  color: var(--indigo-bright);
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.pill-live {
  background: rgba(45, 212, 191, 0.12);
  color: var(--teal);
  border-color: rgba(45, 212, 191, 0.35);
}

.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  margin-right: 0.35rem;
  vertical-align: middle;
  box-shadow: 0 0 8px rgba(45, 212, 191, 0.8);
  animation: live-pulse 1.8s ease-in-out infinite;
}

@keyframes live-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

.mock-card-live {
  border-color: rgba(45, 212, 191, 0.25);
}

/* Live app screenshots */
.app-screenshot-frame {
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.screenshot-chrome {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
}

.screenshot-chrome-title {
  margin-left: 0.5rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--dim);
  letter-spacing: 0.04em;
}

.app-screenshot {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
  background: #05080c;
}

.app-screenshot-hero {
  max-height: min(72vh, 520px);
  object-fit: cover;
  object-position: top center;
}

.screenshot-fallback {
  display: none;
  padding: 0.85rem;
}

.screenshot-fallback-note {
  margin: 0.75rem 0 0;
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--dim);
  text-align: center;
}

.screenshot-fallback-note code {
  font-size: 0.62rem;
  color: var(--muted);
}

/* Show mock fallback until hero image loads */
.app-screenshot-frame:not(.screenshot-loaded) .app-screenshot-hero {
  display: none;
}

.app-screenshot-frame:not(.screenshot-loaded) .screenshot-fallback {
  display: block;
}

.product-screens {
  padding: 4rem 0;
  background: var(--bg);
}

.screenshot-gallery {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .screenshot-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .screenshot-card-wide {
    grid-column: 1 / -1;
  }
}

.screenshot-card {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.screenshot-card-chrome {
  display: flex;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}

.screenshot-card .app-screenshot {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
}

.screenshot-card figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.screenshot-card:has(img[src]:not([src=''])) img.app-screenshot {
  min-height: 12rem;
}

.screenshot-card img.app-screenshot {
  background: linear-gradient(145deg, #0e1013 0%, #14161a 50%, #0a0b0d 100%);
}

.screenshot-card img.app-screenshot[src]:not([complete]) {
  min-height: 14rem;
}

.value-prop {
  background: var(--surface-2);
}

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

@media (min-width: 768px) {
  .value-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.value-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.35rem;
}

.value-card h3 {
  font-size: 1rem;
  margin: 0 0 0.6rem;
  color: var(--indigo-bright);
}

.value-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
}

.feature-card-highlight {
  border-color: rgba(45, 212, 191, 0.35);
  background: linear-gradient(145deg, var(--surface) 0%, rgba(45, 212, 191, 0.06) 100%);
}

.feature-card-highlight .feature-icon {
  background: rgba(45, 212, 191, 0.15);
  color: var(--teal);
}

/* Sections */
section {
  padding: 4rem 0;
}

.section-head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2.5rem;
}

.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

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

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

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem;
  transition: border-color 0.15s;
}

.feature-card:hover {
  border-color: rgba(129, 140, 248, 0.35);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 0.85rem;
  font-size: 1.1rem;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.feature-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

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

/* Steps */
.steps {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  text-align: center;
  padding: 1.5rem 1rem;
}

.step-num {
  width: 36px;
  height: 36px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--violet);
  color: white;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
}

.step h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.step p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

/* Pricing */
.pricing-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.2);
}

.price-card h3 {
  margin: 0;
  font-size: 1rem;
}

.price-card .amount {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0.5rem 0 0.25rem;
  letter-spacing: -0.02em;
}

.price-card .period {
  font-size: 0.8rem;
  color: var(--dim);
  font-family: var(--mono);
}

.price-card ul {
  margin: 1rem 0 1.25rem;
  padding: 0;
  list-style: none;
  flex: 1;
}

.price-card li {
  font-size: 0.8rem;
  color: var(--muted);
  padding: 0.3rem 0;
  padding-left: 1.1rem;
  position: relative;
}

.price-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-size: 0.75rem;
}

.enterprise-box {
  margin-top: 2rem;
  padding: 1.75rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(45, 212, 191, 0.06));
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.enterprise-box h3 {
  margin: 0 0 0.35rem;
}

.enterprise-box p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 36rem;
}

.trial-note {
  text-align: center;
  margin-top: 1.5rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--dim);
}

/* Security */
.security-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .security-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.security-item {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.15rem;
}

.security-item h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}

.security-item p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* CTA band */
.cta-band {
  padding: 3.5rem 0;
}

.cta-inner {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  background-image: radial-gradient(ellipse at top, rgba(99, 102, 241, 0.15), transparent 60%);
}

.cta-inner h2 {
  margin: 0 0 0.75rem;
  font-size: 1.75rem;
}

.cta-inner p {
  margin: 0 auto 1.5rem;
  max-width: 28rem;
  color: var(--muted);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* Signup / request trial */
.signup-page .signup-main {
  padding: 2.5rem 0 4rem;
}

.signup-layout {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 900px) {
  .signup-layout {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.signup-intro h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.signup-intro > p {
  color: var(--muted);
  margin: 0 0 1.25rem;
  line-height: 1.6;
}

.signup-checklist {
  margin: 0 0 1.5rem;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.7;
}

.signup-note {
  font-size: 0.9rem;
  color: var(--dim);
  margin: 0;
}

.signup-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.signup-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.signup-card-lead {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.signup-form label {
  display: block;
  margin-bottom: 1rem;
}

.signup-form label span {
  display: block;
  font-family: var(--mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dim);
  margin-bottom: 0.35rem;
}

.signup-form label em {
  font-style: normal;
  text-transform: none;
  letter-spacing: 0;
  color: var(--dim);
  font-size: 0.6rem;
}

.signup-form input,
.signup-form textarea,
.signup-form select {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
}

.signup-form input:focus,
.signup-form textarea:focus {
  outline: none;
  border-color: rgba(129, 140, 248, 0.5);
}

.btn-block {
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
}

.form-message {
  font-size: 0.9rem;
  margin: 1rem 0 0;
  color: var(--teal);
}

.signup-fine {
  margin: 1rem 0 0;
  font-size: 0.75rem;
  color: var(--dim);
  line-height: 1.5;
}

.signup-footer {
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--dim);
}

.signup-footer p {
  margin: 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0 2.5rem;
  margin-top: 2rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-inner p {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: var(--dim);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
}

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