:root {
  --bg: #f7f7f9;
  --bg-alt: #eef0f5;
  --text: #222222;
  --muted-text: #555555;
  --primary: #ff6628;
  --primary-dark: #e0551f;
  --accent: #007aff;
  --border: #dddddd;
  --card-bg: #ffffff;
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.06);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --transition-fast: 0.18s ease-out;
}

/* Global */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top left, #ffffff, var(--bg));
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

p {
  line-height: 1.6;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  background: #f1f3f7;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
}

/* Layout helpers */

.wrapper {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.narrow {
  max-width: 720px;
}

.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.5);
}

.section-title {
  font-size: 1.7rem;
  margin-bottom: 0.75rem;
}

.section-lead {
  margin-bottom: 2rem;
  color: var(--muted-text);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: linear-gradient(to bottom, rgba(247, 247, 249, 0.96), rgba(247, 247, 249, 0.9));
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: inherit;
  text-decoration: none;
}

.brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: #151515;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.3);
  overflow: hidden;
}

.brand-icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.brand-text {
  font-weight: 600;
  letter-spacing: 0.01em;
  font-size: 1rem;
}

/* Navigation */

.nav {
  display: none;
  flex-direction: column;
  gap: 0.4rem;
  position: absolute;
  right: 1.25rem;
  top: 3.3rem;
  padding: 0.6rem 0.75rem;
  background: var(--card-bg);
  border-radius: 999px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

.nav-open {
  display: flex;
}

.nav-link {
  font-size: 0.9rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  color: var(--muted-text);
  text-decoration: none;
  white-space: nowrap;
}

.nav-link:hover {
  background: rgba(15, 23, 42, 0.04);
  color: var(--text);
}

.nav-link-active {
  background: #111827;
  color: #ffffff;
}

/* Nav toggle */

.nav-toggle {
  border: none;
  background: #e5e7eb;
  border-radius: 999px;
  padding: 0.35rem 0.5rem;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.22rem;
  cursor: pointer;
}

.nav-toggle-bar {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #111827;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 999px;
  padding: 0.65rem 1.4rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition-fast),
    box-shadow var(--transition-fast), background-color var(--transition-fast),
    color var(--transition-fast), border-color var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #ffffff;
  box-shadow: 0 16px 35px rgba(255, 102, 40, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 45px rgba(255, 102, 40, 0.45);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(15, 23, 42, 0.11);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

/* Hero */

.hero {
  padding-top: 3.2rem;
  padding-bottom: 3.5rem;
}

.hero-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hero-copy h1 {
  font-size: 1.9rem;
  line-height: 1.1;
  margin: 0.7rem 0 0.7rem;
}

.hero-subtitle {
  margin: 0 0 1rem;
  color: var(--muted-text);
}

.hero-bullets {
  list-style: none;
  padding-left: 0;
  margin: 0 0 1.4rem;
}

.hero-bullets li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.25rem;
  color: #4b5563;
}

.hero-bullets li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0.05rem;
  color: var(--accent);
  font-size: 1.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.05);
  color: #4b5563;
}

/* Browser mockup */

.hero-visual {
  display: flex;
  justify-content: center;
}

.browser-mockup {
  width: 100%;
  max-width: 420px;
  border-radius: 22px;
  background: var(--card-bg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.8rem;
  background: #0b1120;
  color: #e5e7eb;
  font-size: 0.75rem;
}

.browser-bar .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(249, 250, 251, 0.12);
}

.browser-address {
  margin-left: 0.35rem;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.8);
}

.browser-body {
  padding: 1rem 1rem 1.2rem;
  background: radial-gradient(circle at top, #eff6ff, #f9fafb);
}

.mock-search {
  height: 38px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(148, 163, 184, 0.25);
  margin-bottom: 1rem;
}

.mock-bookmark-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

.mock-card {
  border-radius: 12px;
  background: linear-gradient(135deg, #ffffff, #e5e7eb);
  height: 54px;
}

/* Cards & grids */

.card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.4rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.15);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.35rem;
  font-size: 1.1rem;
}

.card p {
  margin: 0;
  color: var(--muted-text);
}

.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.3rem;
  margin-top: 1.8rem;
}

.feature-block {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 1.3rem 1.4rem;
  border: 1px solid rgba(148, 163, 184, 0.15);
  box-shadow: var(--shadow-soft);
}

.feature-block h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.feature-block ul {
  padding-left: 1.2rem;
  margin: 0;
  color: var(--muted-text);
}

.permissions-grid {
  margin-top: 1.6rem;
}

.trust-note {
  margin-top: 1.4rem;
  color: var(--muted-text);
}

/* Steps */

.steps {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
  margin-top: 1.8rem;
}

.steps li {
  position: relative;
  padding-left: 2.3rem;
  margin-bottom: 0.85rem;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
  background: #111827;
}

/* FAQ */

.faq {
  margin-top: 1.6rem;
}

.faq-item {
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.3);
  padding: 0.65rem 0.9rem;
  margin-bottom: 0.65rem;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 500;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "▾";
  float: right;
  font-size: 0.85rem;
  color: #6b7280;
}

.faq-item[open] summary::after {
  content: "▴";
}

.faq-item p {
  margin-top: 0.45rem;
  color: var(--muted-text);
}

/* Page titles */

.page-title {
  font-size: 1.8rem;
  margin-bottom: 0.4rem;
}

.last-updated {
  color: var(--muted-text);
  font-size: 0.9rem;
}

/* Misc */

.back-link {
  margin-top: 2rem;
}

.back-link a {
  text-decoration: none;
  font-weight: 500;
}

.back-link a:hover {
  text-decoration: underline;
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(248, 250, 252, 0.95);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 1rem 1.25rem 1.4rem;
  font-size: 0.9rem;
  color: #4b5563;
}

.footer-nav {
  display: flex;
  gap: 0.8rem;
}

.footer-nav a {
  color: #4b5563;
  text-decoration: none;
}

.footer-nav a:hover {
  text-decoration: underline;
}

/* Desktop layout */

@media (min-width: 768px) {
  .section {
    padding: 4rem 0;
  }

  .hero {
    padding-top: 4.2rem;
    padding-bottom: 4.5rem;
  }

  .hero-grid {
    flex-direction: row;
    align-items: center;
    gap: 3rem;
  }

  .hero-copy h1 {
    font-size: 2.4rem;
  }

  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .permissions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .nav {
    position: static;
    display: flex !important;
    flex-direction: row;
    box-shadow: none;
    background: transparent;
    padding: 0;
  }

  .nav-link {
    font-size: 0.92rem;
  }

  .nav-toggle {
    display: none;
  }
}

@media (min-width: 1024px) {
  .hero-copy h1 {
    font-size: 2.7rem;
  }
}
