:root {
  --bg: #08080a;
  --bg-elevated: #111114;
  --bg-card: #141418;
  --border: rgba(255, 76, 76, 0.18);
  --text: #ececec;
  --text-muted: #8a8a94;
  --accent: #ff2a2a;
  --accent-dim: #991111;
  --accent-glow: rgba(255, 42, 42, 0.35);
  --mono: 'Share Tech Mono', monospace;
  --display: 'Syne', system-ui, sans-serif;
  --radius: 14px;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--display);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: rgba(255, 42, 42, 0.08);
  border: 1px solid var(--border);
  padding: 0.12em 0.45em;
  border-radius: 6px;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 0;
}

.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

.glow-a {
  width: 480px;
  height: 480px;
  background: var(--accent-glow);
  top: -120px;
  right: -80px;
}

.glow-b {
  width: 360px;
  height: 360px;
  background: rgba(120, 0, 0, 0.25);
  bottom: 10%;
  left: -100px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  background: rgba(8, 8, 10, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  border-bottom-color: var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent);
  text-shadow: 0 0 20px var(--accent-glow);
}

.logo-mark {
  width: 10px;
  height: 10px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  border-radius: 2px;
}

.nav {
  display: flex;
  gap: 1.75rem;
}

.nav a {
  font-size: 0.92rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.auth-slot {
  display: flex;
  align-items: center;
  min-height: 40px;
  position: relative;
}

#authSignedOut[hidden],
#authSignedIn[hidden] {
  display: none !important;
}

.btn-google-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  isolation: isolate;
}

.btn-google-wrap:hover .btn-google {
  border-color: rgba(255, 76, 76, 0.45);
  background: rgba(255, 42, 42, 0.08);
}

.btn-google {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.95rem 0.45rem 0.7rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  pointer-events: none;
}

.btn-google-icon {
  display: flex;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.gsi-hitbox {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  opacity: 0.02;
}

.gsi-hitbox > div,
.gsi-hitbox iframe {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  min-width: 100% !important;
  min-height: 100% !important;
  border: 0 !important;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  max-width: min(420px, 52vw);
  padding: 0.2rem 0.35rem 0.2rem 0.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.user-chip img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: #222;
  flex-shrink: 0;
}

.user-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}

.user-name {
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-email {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.license-pill {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
  color: var(--text-muted);
}

.license-pill.pro {
  color: #ffd27a;
  border-color: rgba(255, 210, 122, 0.45);
  background: rgba(255, 210, 122, 0.08);
}

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

.btn-signout {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.35rem 0.55rem;
}

.btn-signout:hover {
  color: var(--text);
}

.auth-error {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.35rem 1.5rem 0;
  font-size: 0.82rem;
  color: #ff8a8a;
}

body.is-pro .js-buy-cta {
  display: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: 10px;
  font-family: var(--display);
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  color: #fff;
  box-shadow: 0 4px 24px var(--accent-glow);
}

.btn-primary:hover {
  box-shadow: 0 6px 32px var(--accent-glow);
}

.btn-outline {
  border-color: var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.btn-outline:hover {
  border-color: rgba(255, 76, 76, 0.45);
}

.btn-ghost {
  color: var(--text-muted);
  padding: 0.5rem 0.85rem;
}

.btn-ghost:hover {
  color: var(--text);
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
}

.section-lead {
  margin: 0.75rem 0 0;
  max-width: 36rem;
  color: var(--text-muted);
  font-size: 1rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 820px;
}

.price-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.6rem 1.5rem;
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  border-color: rgba(255, 76, 76, 0.55);
  box-shadow: 0 16px 48px rgba(255, 42, 42, 0.12);
  background: linear-gradient(180deg, rgba(255, 42, 42, 0.08), var(--bg-card) 40%);
}

.price-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  margin: 0;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
}

.price-plan {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.price-amount {
  margin: 0.35rem 0 0;
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.price-amount span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
}

.price-note {
  margin: 0.35rem 0 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

.price-list li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.25rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 76, 76, 0.08);
}

.price-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

.price-card .btn {
  width: 100%;
}

.price-activate {
  margin: 1.5rem 0 0;
  max-width: 820px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

main {
  position: relative;
  z-index: 1;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
  min-height: calc(100vh - 72px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.badge {
  background: rgba(255, 42, 42, 0.15);
  border: 1px solid var(--border);
  color: var(--accent);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
}

.hero h1 .accent {
  color: var(--accent);
  text-shadow: 0 0 40px var(--accent-glow);
}

.lead {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 32rem;
  margin: 0 0 2rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.hero-stats strong {
  display: block;
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 0.15rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.app-window {
  width: 100%;
  max-width: 380px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  overflow: hidden;
  transform: perspective(800px) rotateY(-4deg) rotateX(2deg);
}

.app-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid var(--border);
}

.app-titlebar .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #333;
}

.app-titlebar .dot:first-child { background: #ff5f57; }
.app-titlebar .dot:nth-child(2) { background: #febc2e; }
.app-titlebar .dot:nth-child(3) { background: #28c840; }

.app-title {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--accent);
}

.app-body {
  padding: 1.1rem 1rem 1.25rem;
  font-family: var(--mono);
  font-size: 0.72rem;
}

.app-section-label {
  color: var(--accent);
  margin: 0 0 0.45rem;
  font-size: 0.68rem;
}

.app-field,
.app-select {
  background: rgba(28, 28, 30, 0.95);
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
  margin-bottom: 0.5rem;
  color: #ffdddd;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-field.dim {
  color: #666;
}

.app-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  color: #fff;
  text-align: center;
  padding: 0.55rem;
  border-radius: 8px;
  margin-bottom: 0.65rem;
  font-size: 0.68rem;
}

.app-divider {
  height: 1px;
  background: var(--border);
  margin: 0.75rem 0;
}

.app-progress {
  height: 6px;
  background: #222;
  border-radius: 999px;
  overflow: hidden;
  margin: 0.75rem 0 0.4rem;
}

.app-progress span {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
}

.app-status {
  margin: 0;
  color: #fff;
  font-size: 0.65rem;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem 1.5rem;
  scroll-margin-top: 5.5rem;
}

.section-alt {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  max-width: none;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.section-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
  box-sizing: border-box;
}

.section-head {
  margin-bottom: 2.5rem;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: rgba(255, 76, 76, 0.4);
  transform: translateY(-3px);
}

.feature-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 42, 42, 0.12);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
}

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

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding-top: 0.5rem;
}

.step-num {
  display: block;
  font-family: var(--mono);
  font-size: 2rem;
  font-weight: 700;
  color: rgba(255, 42, 42, 0.25);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.steps h3 {
  font-size: 1.1rem;
  margin: 0 0 0.4rem;
}

.steps p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.download-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: linear-gradient(135deg, rgba(255, 42, 42, 0.08), rgba(20, 20, 24, 0.9));
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 2.5rem;
}

.download-card h2 {
  font-size: 1.75rem;
  margin: 0 0 0.35rem;
}

.download-desc {
  margin: 0;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 0.85rem;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.legal {
  margin: 1.5rem 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  max-width: 52rem;
}

.site-footer {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
}

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

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

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 2.5rem;
  }

  .hero-visual {
    order: -1;
  }

  .app-window {
    transform: none;
    max-width: 340px;
  }

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

  .steps {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

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

@media (max-width: 640px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    gap: 1rem;
  }

  .nav.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .header-actions .btn-ghost {
    display: none;
  }

  .user-email {
    display: none;
  }

  .btn-google {
    font-size: 0.78rem;
    padding: 0.4rem 0.75rem 0.4rem 0.6rem;
  }

  .site-header {
    position: relative;
    flex-wrap: wrap;
  }

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

  .download-card {
    flex-direction: column;
    align-items: flex-start;
  }
}
