:root {
  --landing-bg: #101214;
  --landing-card: #1a1d21;
  --landing-card-hover: #22262c;
  --landing-border: #2a2f36;
  --landing-light: #f8fafc;
  --landing-light-muted: #64748b;
  --accent: #2dd4bf;
  --accent-dark: #14b8a6;
  --accent-glow: rgba(45, 212, 191, 0.25);
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.landing-page {
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  background: var(--landing-bg);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

.font-display {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

.landing-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 50;
  padding: 1rem 1.5rem;
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}

.landing-header.scrolled {
  background: rgba(16, 18, 20, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--landing-border);
}

.landing-nav-link {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.landing-nav-link:hover {
  color: var(--accent);
}

.btn-teal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #0a0a0a !important;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-teal:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-teal-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff !important;
  font-weight: 600;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.btn-teal-outline:hover {
  border-color: var(--accent);
  background: rgba(45, 212, 191, 0.08);
}

.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 7rem 1.5rem 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(16, 18, 20, 0.88) 0%, rgba(16, 18, 20, 0.62) 45%, rgba(16, 18, 20, 0.35) 100%),
    url('../assets/hero.jpg') center / cover no-repeat,
    #101214;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 42rem;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.section-dark {
  background: var(--landing-bg);
  padding: 5rem 1.5rem;
}

.section-light {
  background: var(--landing-light);
  color: #0f172a;
  padding: 5rem 1.5rem;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.section-sub {
  color: var(--text-secondary);
  max-width: 36rem;
}

.section-light .section-sub {
  color: var(--landing-light-muted);
}

.feature-icon-box {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
  border: 1px solid var(--landing-border);
  background: var(--landing-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 1rem;
}

.feature-grid-item h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-grid-item p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.mockup-card {
  background: var(--landing-card);
  border: 1px solid var(--landing-border);
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.mockup-card-light {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 600;
}

.stat-pill-green {
  background: rgba(45, 212, 191, 0.15);
  color: var(--accent);
}

.stat-pill-yellow {
  background: rgba(234, 179, 8, 0.15);
  color: #eab308;
}

.stat-pill-red {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

.testimonial-card-dark {
  background: var(--landing-card);
  border: 1px solid var(--landing-border);
  border-radius: 1rem;
  padding: 1.5rem;
}

.testimonial-card-dark .quote {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.65;
  font-style: italic;
}

.testimonial-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  object-fit: cover;
  border: 2px solid var(--landing-border);
}

.pagination-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: var(--landing-border);
  transition: background 0.2s ease, width 0.2s ease;
}

.pagination-dot.active {
  width: 1.5rem;
  background: var(--accent);
}

.pricing-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 64rem;
  margin-inline: auto;
  align-items: stretch;
}

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

.pricing-card {
  background: var(--landing-card);
  border: 1px solid var(--landing-border);
  border-radius: 1.25rem;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pricing-card:hover {
  border-color: rgba(45, 212, 191, 0.35);
}

.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 16px 40px var(--accent-glow);
}

.pricing-badge {
  display: block;
  min-height: 1.25rem;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1.25rem;
}

.pricing-badge--empty {
  visibility: hidden;
}

.pricing-name {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.pricing-desc {
  margin: 0.35rem 0 1rem;
  min-height: 2.5rem;
  font-size: 0.875rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.5);
}

.pricing-price {
  margin: 0;
  font-size: 1.875rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.pricing-price span {
  margin-left: 0.15rem;
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.4);
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  flex: 1 1 auto;
}

.pricing-features li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding: 0.35rem 0;
  padding-left: 1.25rem;
  position: relative;
}

.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.pricing-cta {
  margin-top: 1.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  text-align: center;
}

.trust-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--landing-border);
}

.trust-item:last-child {
  border-bottom: none;
}

.trust-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.625rem;
  background: rgba(45, 212, 191, 0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.laptop-frame {
  background: linear-gradient(145deg, #2a2f36, #1a1d21);
  border-radius: 1rem 1rem 0 0;
  padding: 0.75rem 0.75rem 0;
  border: 1px solid var(--landing-border);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.5);
}

.laptop-screen {
  background: var(--landing-bg);
  border-radius: 0.5rem 0.5rem 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.laptop-base {
  height: 0.75rem;
  background: #2a2f36;
  border-radius: 0 0 0.5rem 0.5rem;
  margin: 0 auto;
  width: 60%;
}

.landing-footer {
  background: #0a0c0e;
  border-top: 1px solid var(--landing-border);
  padding: 3rem 1.5rem 2rem;
}

.footer-col-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-link {
  display: block;
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding: 0.25rem 0;
  transition: color 0.15s ease;
}

.footer-link:hover {
  color: var(--accent);
}

.footer-social {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  border: 1px solid var(--landing-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.footer-social:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.mobile-menu.open {
  max-height: 420px;
}

.mobile-menu-panel {
  background: var(--landing-card);
  border: 1px solid var(--landing-border);
  border-radius: 0.75rem;
  margin-top: 0.75rem;
  padding: 1rem;
}

/* ===== Auth pages ===== */
.auth-body {
  margin: 0;
  min-height: 100vh;
  background: var(--landing-bg);
  color: #fff;
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  box-sizing: border-box;
}

.auth-shell {
  width: 100%;
  max-width: 400px;
}

.auth-shell--wide {
  max-width: 440px;
}

.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  margin: 0 0 1.75rem;
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.auth-logo img {
  display: block;
  flex-shrink: 0;
}

.auth-logo:hover {
  opacity: 0.85;
}

.auth-card {
  background: var(--landing-card);
  border: 1px solid var(--landing-border);
  border-radius: 1rem;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
  padding: 2rem;
}

.auth-title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  color: #fff;
  margin: 0 0 0.35rem;
  line-height: 1.25;
}

.auth-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: center;
  margin: 0 0 1.75rem;
  line-height: 1.4;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
  margin-top: 0.15rem;
}

.auth-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  color: var(--text-secondary);
  user-select: none;
}

.auth-checkbox-label input {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.auth-link {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}

.auth-link:hover {
  text-decoration: underline;
}

.auth-link--bold {
  font-weight: 600;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field-control {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 3.25rem;
  padding: 0 0.875rem;
  border: 1px solid var(--landing-border);
  border-radius: 0.75rem;
  background: #0a0c0e;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field-control:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.field-control.is-error {
  border-color: #ef4444;
  box-shadow: none;
}

.field-input {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  border-radius: 0;
  font-size: 0.9375rem;
  font-family: inherit;
  line-height: 1.25;
  background: transparent;
  color: #fff;
  box-sizing: border-box;
  outline: none;
  box-shadow: none;
  /* Prevent browser autofill from painting a light box inside the field */
  -webkit-text-fill-color: #fff;
  caret-color: #fff;
}

.field-input::placeholder {
  color: #64748b;
  -webkit-text-fill-color: #64748b;
}

.field-input:focus {
  outline: none;
  border: none;
  box-shadow: none;
}

.field-input:-webkit-autofill,
.field-input:-webkit-autofill:hover,
.field-input:-webkit-autofill:focus,
.field-input:-webkit-autofill:active {
  -webkit-text-fill-color: #fff !important;
  caret-color: #fff;
  border: none !important;
  /* Keep dark background even when Chrome paints autofill */
  -webkit-box-shadow: 0 0 0 1000px #0a0c0e inset !important;
  box-shadow: 0 0 0 1000px #0a0c0e inset !important;
  transition: background-color 99999s ease-in-out 0s;
  background-color: transparent !important;
  background-clip: content-box !important;
}

.field-control:has(.field-input:-webkit-autofill) {
  background: #0a0c0e;
}

.field-icon {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
  display: block;
}

.field-toggle {
  flex: 0 0 1.5rem;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.field-toggle:hover {
  color: var(--accent);
}

.field-icon.feather,
.field-icon svg,
svg.field-icon,
.field-toggle svg {
  width: 18px !important;
  height: 18px !important;
  stroke: currentColor;
  display: block;
}

.field-error {
  font-size: 0.75rem;
  color: #ef4444;
  margin: 0;
  min-height: 0;
  line-height: 1.3;
}

.field-error:empty {
  display: none;
}

.strength-bar {
  display: none;
  height: 4px;
  border-radius: 2px;
  background: var(--landing-border);
  overflow: hidden;
  margin: 0;
}

.strength-bar.is-active {
  display: block;
}

.strength-fill {
  height: 100%;
  width: 0;
  transition: width 0.3s ease, background 0.3s ease;
  border-radius: 2px;
}

.strength-weak { background: #ef4444; width: 33%; }
.strength-medium { background: #eab308; width: 66%; }
.strength-strong { background: var(--accent); width: 100%; }

.strength-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
  min-height: 0;
  line-height: 1.3;
}

.strength-label:empty {
  display: none;
}

.auth-divider {
  position: relative;
  margin: 1.75rem 0;
  text-align: center;
}

.auth-divider::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--landing-border);
}

.auth-divider span {
  position: relative;
  display: inline-block;
  padding: 0 0.75rem;
  background: var(--landing-card);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

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

.auth-oauth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.75rem;
  padding: 0 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--landing-border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.auth-oauth-btn:hover {
  border-color: rgba(45, 212, 191, 0.4);
  color: #fff;
}

.auth-footer-text {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 1.5rem 0 0;
  line-height: 1.4;
}

.auth-back {
  text-align: center;
  font-size: 0.75rem;
  color: #64748b;
  margin: 1.5rem 0 0;
}

.auth-back a {
  color: inherit;
  text-decoration: none;
}

.auth-back a:hover {
  color: var(--accent);
}

.auth-terms {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  cursor: pointer;
  line-height: 1.45;
  margin-top: 0.15rem;
}

.auth-terms input {
  margin: 0.15rem 0 0;
  width: 1rem;
  height: 1rem;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  height: 3.25rem;
  padding: 0 1rem;
  margin-top: 0.25rem;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  background: var(--accent);
  color: #0a0a0a !important;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: wait;
}

.btn-primary .spin {
  animation: spin 0.8s linear infinite;
}

.btn-success {
  background: var(--accent-dark) !important;
  pointer-events: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.logo-text {
  color: #fff;
}

.text-muted {
  color: var(--text-muted);
}

.page-enter {
  animation: pageEnter 0.6s ease forwards;
}

@keyframes pageEnter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.chart-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
}

.chart-area {
  fill: url(#chartGrad);
  opacity: 0.35;
}

.bg-landing-card {
  background: var(--landing-card);
}

.border-landing-border {
  border-color: var(--landing-border);
}

.bg-panel {
  background: #0a0c0e;
}
