/* Basic reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  background: radial-gradient(circle at top, #101928 0%, #050710 50%, #020308 100%);
  color: #e5e7eb;
  line-height: 1.6;
}

/* Design tokens */
:root {
  --accent: #22d3ee; /* primary accent for dark UIs */
  --accent-strong: #0369a1; /* stronger/darker accent for light backgrounds */
}

/* Shell layout: left sidebar + right content */
.layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* Right column houses main + footer */
.layout-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* Layout helpers */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Sidebar header */
.site-header {
  width: 260px;
  border-right: 1px solid rgba(148, 163, 184, 0.2);
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(3, 7, 18, 0.98), rgba(3, 7, 18, 0.95));
  position: sticky;
  top: 0;
  align-self: flex-start;
  z-index: 10;
}

.header-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.75rem;
  padding: 1.5rem 1.25rem 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: radial-gradient(circle at top, #22d3ee, #0ea5e9, #0369a1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.logo-text {
  font-weight: 700;
  letter-spacing: 0.03em;
  font-size: 1rem;
}

/* Sidebar nav */
.nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.25rem;
  font-size: 0.9rem;
  width: 100%;
}

/* Main links group (Home, Passes, etc.) */
.nav-main-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.nav a {
  display: block;
  text-decoration: none;
  color: #9ca3af;
  transition:
    color 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease;
  padding: 0.45rem 0.7rem;
  border-radius: 0.65rem;
  border: 1px solid transparent;
}

.nav a:hover {
  color: #e5e7eb;
  border-color: rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.9);
}

.nav-cta {
  margin-top: 0.35rem;
  text-align: center;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.7);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.08), rgba(14, 165, 233, 0.18));
  color: var(--accent);
}

/* Docs section styling */
.nav-docs-group {
  margin-top: 0;
  position: relative;
}

.nav-section-title {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e5e7eb;
  padding: 0.4rem 0.7rem 0.2rem;
}

.nav-docs-list {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

/* Vertical guide line beside docs items */
.nav-docs-list::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  bottom: 1.5rem;
  left: 1rem;
  width: 1px;
  background-color: rgba(55, 65, 81, 0.7);
  pointer-events: none;
}

/* First-level doc items */
.nav-link-sub {
  font-size: 0.88rem;
  padding: 0.35rem 0.7rem 0.35rem 1.4rem;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  margin-bottom: 0.05rem;
  z-index: 1;
}

/* Active doc link */
.nav-link-current {
  color: #e5e7eb !important;
  border-color: rgba(56, 189, 248, 0.5) !important;
  background: rgba(3, 7, 18, 0.55) !important;
  font-weight: 600;
}

/* Docs subsection (Settings) */
.nav-subsection {
  margin-top: 0.4rem;
  display: flex;
  flex-direction: column;
}

.nav-subsection-title {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9ca3af;
  padding: 0.3rem 0.7rem 0.15rem;
}

.nav-link-child {
  padding-left: 2rem;
}

/* Hover on docs links */
.nav-link-sub:hover {
  color: #e5e7eb;
  border-color: rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.95);
  z-index: 2;
}

/* Mobile hamburger (hidden on desktop) */
.nav-toggle {
  display: none;
  align-self: flex-end;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.9);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: #e5e7eb;
}

/* ------------------ */
/* HERO (home page)   */
/* ------------------ */

.hero {
  padding: 3.5rem 0 3rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.1rem, 3vw, 2.7rem);
  line-height: 1.05;
  margin-bottom: 1rem;
}

.hero-copy p {
  color: #9ca3af;
  font-size: 0.98rem;
  max-width: 32rem;
}

.hero-cta-row {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.hero-note {
  font-size: 0.85rem;
  color: #9ca3af;
}

.hero-tags {
  margin-top: 1.4rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: #d1d5db;
}

/* Subtle hero entrance animation */
.hero-copy {
  opacity: 0;
  transform: translateY(10px);
  animation: heroFadeInUp 0.8s ease-out forwards;
}

.hero-card {
  opacity: 0;
  transform: translateY(10px);
  animation: heroFadeInUp 0.8s ease-out forwards;
  animation-delay: 0.12s;
}

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

/* Buttons (shared) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #22d3ee, #0ea5e9, #6366f1);
  color: #0b1120;
  box-shadow: 0 14px 35px rgba(56, 189, 248, 0.4);
  transition: transform 0.1s ease, box-shadow 0.1s ease, filter 0.1s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 18px 40px rgba(56, 189, 248, 0.55);
  justify-content: flex-end;
}

.phone-frame {
  width: 100%;
  max-width: 320px;
  border-radius: 28px;
  padding: 0.7rem;
  background: linear-gradient(145deg, #020617, #0b1120);
  box-shadow:
    0 22px 55px rgba(15, 23, 42, 0.9),
    0 0 40px rgba(56, 189, 248, 0.3);
}

.phone-header {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.5rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.dot.red { background: #f87171; }
.dot.amber { background: #fbbf24; }
.dot.green { background: #4ade80; }

.phone-body {
  margin-top: 0.2rem;
  background: radial-gradient(circle at top, #0f172a, #020617);
  border-radius: 22px;
  padding: 1.25rem 1.1rem 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.phone-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.phone-logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at top, #22d3ee, #0ea5e9, #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.phone-logo-text {
  font-size: 0.95rem;
  font-weight: 600;
}

.phone-status {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.9rem;
}

.status-label {
  font-size: 0.75rem;
  color: #9ca3af;
}

.status-value {
  font-size: 0.85rem;
  font-weight: 600;
}

.status-off { color: #f97373; }

.big-connect-button {
  width: 100%;
  border-radius: 999px;
  border: none;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #022c22;
  box-shadow: 0 15px 35px rgba(34, 197, 94, 0.5);
  position: relative;
  overflow: visible;
}

/* Soft pulse ring around the Connect button */
.big-connect-button::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  border: 1px solid rgba(34, 197, 94, 0.65);
  opacity: 0;
  pointer-events: none;
  animation: connectPulse 2.4s ease-out infinite;
}

@keyframes connectPulse {
  0% {
    opacity: 0.7;
    transform: scale(1);
  }
  60% {
    opacity: 0;
    transform: scale(1.06);
  }
  100% {
    opacity: 0;
    transform: scale(1.06);
  }
}

.phone-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
  font-size: 0.75rem;
}

.meta-label {
  color: #9ca3af;
  font-size: 0.7rem;
}

.meta-value {
  color: #e5e7eb;
}

.phone-footnote {
  font-size: 0.7rem;
  color: #9ca3af;
}

/* Sections (home) */
.section {
  padding: 3rem 0 2.8rem;
}

.section-alt {
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.9));
}

.section h2 {
  font-size: 1.6rem;
  margin-bottom: 0.7rem;
}

.section-intro {
  max-width: 34rem;
  font-size: 0.96rem;
  color: #9ca3af;
  margin-bottom: 1.7rem;
}

/* Grid & cards */
.grid {
  display: grid;
  gap: 1.3rem;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.15), rgba(15, 23, 42, 0.9));
  border-radius: 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 1.2rem 1.15rem 1.15rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
  transition:
    transform 0.18s ease-out,
    box-shadow 0.18s ease-out,
    border-color 0.18s ease-out;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 24px 55px rgba(15, 23, 42, 0.95),
    0 0 30px rgba(56, 189, 248, 0.35);
  border-color: rgba(56, 189, 248, 0.6);
}

.card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.card p {
  font-size: 0.9rem;
  color: #d1d5db;
}

.card-pass .price {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
}

/* Comparison table */
.comparison-table-wrapper {
  margin-top: 1.2rem;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: radial-gradient(
    circle at top left,
    rgba(56, 189, 248, 0.12),
    rgba(15, 23, 42, 0.96)
  );
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.comparison-table th,
.comparison-table td {
  padding: 0.7rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid rgba(55, 65, 81, 0.7);
}

.comparison-table th {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
  background: rgba(15, 23, 42, 0.9);
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table tbody tr:nth-child(even) {
  background: rgba(15, 23, 42, 0.7);
}

.comparison-table tbody tr:nth-child(odd) {
  background: rgba(15, 23, 42, 0.4);
}

.comparison-table td:nth-child(2),
.comparison-table td:nth-child(3) {
  width: 7rem;
  text-align: center;
}

/* FAQ */
.small-print {
  font-size: 0.78rem;
  color: #9ca3af;
  margin-top: 1rem;
}

.faq-item {
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 0.9rem 1rem;
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.14), rgba(15, 23, 42, 0.95));
  margin-bottom: 0.7rem;
}

.faq-item h3 {
  font-size: 0.98rem;
  margin-bottom: 0.25rem;
}

.faq-item p {
  font-size: 0.9rem;
  color: #d1d5db;
}

/* Waitlist */
.waitlist {
  text-align: left;
}

.waitlist p {
  max-width: 36rem;
  color: #d1d5db;
}

.waitlist-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.2rem;
}

.waitlist-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 0.7rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.85);
  color: #e5e7eb;
  font-size: 0.9rem;
}

.waitlist-form input::placeholder {
  color: #6b7280;
}

.waitlist-note {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: #9ca3af;
}

.waitlist-note a {
  color: var(--accent);
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(31, 41, 55, 1);
  padding: 1.4rem 0 1.8rem;
  background: #020617;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
  color: #9ca3af;
}

.footer-logo {
  font-weight: 600;
  margin-right: 0.4rem;
}

.footer-right a {
  color: #9ca3af;
  text-decoration: none;
}

/* Misc */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ------------------------------------------ */
/* RELEASE NOTES LAYOUT + RIGHT HISTORY LIST  */
/* ------------------------------------------ */

/* Wrapper that holds main content + right sidebar */
.release-page-shell {
  flex: 1;
  display: flex;
  align-items: flex-start;
  width: 100%;
  padding: 3rem 1.5rem 0 1.5rem;
}

/* main element inside shell */
#release-notes-page {
  flex: 1;
}

/* Release content column */
.release-content {
  flex-grow: 1;
  max-width: 800px;
  min-width: 0;
  padding-right: 2rem;
  padding-bottom: 3rem;
}

.breadcrumb {
  font-size: 0.85rem;
  color: #9ca3af;
  margin-bottom: 0.8rem;
}

#release-notes-page h1 {
  font-size: 2.1rem;
  margin-bottom: 1.2rem;
}

.release-version-section {
  padding: 2rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.release-version-title {
  font-size: 1.8rem;
  margin-bottom: 0.3rem;
}

.release-date {
  font-size: 0.85rem;
  color: #9ca3af;
  margin-bottom: 1.2rem;
}

.release-category-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.release-list {
  list-style: disc;
  padding-left: 1.5rem;
  font-size: 0.95rem;
  color: #d1d5db;
}

.release-list li {
  margin-bottom: 0.4rem;
}

/* Right sidebar with scrollable release history */
.release-toc-container {
  width: 280px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: calc(100vh - 2rem);
  overflow-y: auto;
  border-left: 1px solid rgba(148, 163, 184, 0.1);
  padding-left: 2rem;
  padding-top: 3rem;
}

.release-toc-inner {
  padding-bottom: 3rem;
}

.toc-header {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e5e7eb;
  margin-bottom: 0.5rem;
}

.toc-nav {
  display: flex;
  flex-direction: column;
}

.toc-link {
  display: block;
  text-decoration: none;
  color: #9ca3af;
  padding: 0.2rem 0;
  font-size: 0.9rem;
  transition: color 0.15s ease;
}

.toc-link:hover {
  color: #e5e7eb;
}

.toc-link:first-child {
  font-weight: 600;
  color: #e5e7eb;
}

/* ------------------ */
/* RESPONSIVE         */
/* ------------------ */

@media (max-width: 1100px) {
  /* Hide the right TOC on smaller viewports */
  .release-toc-container {
    display: none;
  }

  .release-page-shell {
    padding: 3rem 1.25rem 0 1.25rem;
  }
}

@media (max-width: 860px) {
  .layout {
    flex-direction: column;
  }

  .site-header {
    width: 100%;
  border-right: none;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  position: sticky;
  top: 0;
  z-index: 20;
}

  .header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
  }

  .container {
    padding: 0 1.25rem;
  }

  /* Release page: stack, no sidebar */
  .release-page-shell {
    flex-direction: column;
    padding: 2.5rem 1.25rem 0 1.25rem;
  }

  .release-content {
    padding-right: 0;
    padding-bottom: 0;
  }

  .release-toc-container {
    display: none;
  }

  .hero {
    padding: 2.5rem 0 2.3rem;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-card {
    justify-content: center;
  }

  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .waitlist-form {
    flex-direction: column;
    align-items: stretch;
  }

  .waitlist-form input[type="email"],
  .waitlist-form .btn,
  .waitlist-form button {
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Mobile nav toggle */
  .nav-toggle {
    display: flex;
  }

  .nav {
    display: none;
    position: absolute;
    left: 1.25rem;
    right: 1.25rem;
    top: 100%;
    margin-top: 0.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem 0.9rem 0.9rem;
    background: linear-gradient(to bottom, rgba(3, 7, 18, 0.98), rgba(2, 6, 23, 0.98));
    border-radius: 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
  }

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

  .nav a {
    width: 100%;
    padding: 0.35rem 0.5rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(55, 65, 81, 0.85);
    font-size: 0.88rem;
  }

  .nav-main-links {
    padding-bottom: 0.6rem;
    margin-bottom: 0.6rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
    width: 100%;
  }

  .nav-docs-list::before {
    display: none;
  }

  .nav-section-title,
  .nav-subsection-title {
    padding-left: 0.7rem;
  }

  .nav-link-sub {
    padding-left: 1.3rem;
  }

  .nav-link-child {
    padding-left: 1.7rem;
  }

  .nav-cta {
    text-align: center;
    justify-content: center;
    border-color: rgba(56, 189, 248, 0.8);
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(14, 165, 233, 0.18));
  }
}
