:root {
  color-scheme: dark;

  --ink-950: #0e0f11;
  --ink-900: #141518;
  --ink-800: #1b1d21;
  --ink-700: #26282d;
  --ink-600: #34373e;

  --paper: #f6f4ef;

  --brass: #4fa8da;
  --brass-dim: #2e6e93;

  --moss: #7bae7f;

  --text: #ededec;
  --text-muted: #b6b7bb;
  --text-soft: #a9aaae;
  --text-dim: #8a8c92;
  --text-faint: #71737a;

  --serif: "Newsreader", ui-serif, Georgia, serif;
  --sans: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: "IBM Plex Mono", "Noto Sans Devanagari", ui-monospace, "SFMono-Regular", monospace;

  --max-width: 72rem;
  --page-padding: 1.5rem;
  --hairline: #26282d;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--ink-950);
}

body {
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

::selection {
  background: var(--brass);
  color: var(--ink-950);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--page-padding);
}

.nepali {
  font-family: "Noto Sans Devanagari", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(14, 15, 17, 0.8);
  border-bottom: 1px solid var(--hairline);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.header-inner {
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.brand-logo {
  width: 1.5rem;
  height: 1.5rem;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1;
  letter-spacing: -0.025em;
}

.nav {
  display: none;
  align-items: center;
  gap: 2rem;
  color: var(--text-muted);
  font-size: 13.5px;
}

.nav a,
.footer-links a {
  transition: color 150ms ease;
}

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

.hero {
  position: relative;
  overflow: hidden;
}

.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
  background-image: radial-gradient(#ffffff08 1px, transparent 1px);
  background-size: 22px 22px;
}

.fade-mask {
  -webkit-mask-image: linear-gradient(to bottom, black 82%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 82%, transparent 100%);
}

.hero-grid {
  position: relative;
  display: grid;
  align-items: center;
  gap: 3.5rem;
  padding-top: 4rem;
  padding-bottom: 5rem;
}

.eyebrow {
  margin: 0 0 1.25rem;
  color: var(--brass);
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.5;
  letter-spacing: 0.025em;
}

.hero-title {
  max-width: 100%;
  margin: 0;
  color: #fff;
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.hero-description {
  max-width: 28rem;
  margin: 1.5rem 0 0;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
}

.browser-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 2.25rem;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.625rem;
  border: 1px solid var(--hairline);
  border-radius: 3px;
  padding: 0.625rem 1.25rem;
  font-size: 14px;
  line-height: 1;
  transition:
    color 150ms ease,
    background-color 150ms ease,
    border-color 150ms ease;
}

.browser-button {
  color: var(--text);
}

.browser-button:hover,
.cta-button:hover {
  border-color: #454850;
}

.button-icon {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  fill: currentColor;
}

.license {
  margin: 1.5rem 0 0;
  color: var(--text-faint);
  font-size: 13px;
  line-height: 1.5;
}

.hero-image-wrap {
  min-width: 0;
}

.hero-image {
  width: 100%;
}

.section {
  position: relative;
}

.section-border {
  border-top: 1px solid var(--hairline);
}

.section-inner {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.section-grid {
  display: grid;
  gap: 3rem;
}

.section-title {
  max-width: 20rem;
  margin: 0;
  color: #fff;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.section-intro {
  max-width: 20rem;
  margin: 1rem 0 0;
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.7;
}

.feature-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.feature-row {
  display: grid;
  gap: 0.75rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--hairline);
}

.feature-row:last-child {
  border-bottom: 0;
}

.feature-title {
  color: #fff;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.35;
}

.feature-description {
  margin: 0;
  color: var(--text-soft);
  font-size: 14.5px;
  line-height: 1.7;
}

.permissions-section {
  border-top: 1px solid var(--hairline);
  background: rgba(20, 21, 24, 0.4);
}

.permissions-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14.5px;
}

.permissions-table th {
  border-bottom: 1px solid var(--hairline);
  padding-right: 1.5rem;
  padding-bottom: 0.75rem;
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
}

.permissions-table th:last-child {
  padding-right: 0;
}

.permissions-table td {
  border-bottom: 1px solid var(--hairline);
  padding-top: 1rem;
  padding-bottom: 1rem;
  vertical-align: top;
  color: var(--text-soft);
  line-height: 1.7;
}

.permissions-table tr:last-child td {
  border-bottom: 0;
}

.permission-name {
  width: 1%;
  padding-right: 1.5rem;
  color: var(--brass) !important;
  font-family: var(--mono);
  white-space: nowrap;
}

.cta {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.cta-eyebrow {
  margin-bottom: 0.75rem;
}

.cta-title {
  max-width: 28rem;
  margin: 0;
  color: #fff;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.cta-buttons {
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  gap: 1rem;
}

.cta-button {
  color: var(--text-dim);
}

.site-footer {
  border-top: 1px solid var(--hairline);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: #c7c8cc;
  font-family: var(--serif);
  font-size: 15px;
}

.footer-logo {
  width: 1.25rem;
  height: 1.25rem;
  opacity: 0.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.75rem;
  color: var(--text-dim);
  font-size: 13px;
}

.footer-links a:first-child {
  display: inline-flex;
  align-items: center;
}

.github-icon {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.browser-detected {
  background: var(--brass);
  color: var(--ink-950);
  border-color: var(--brass);
}

.browser-detected:hover {
  background: var(--brass);
  color: var(--ink-950);
  border-color: var(--brass);
}

.num-align {
  font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: no-preference) {
  .rise {
    opacity: 0;
    transform: translateY(14px);
    animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
  }

  @keyframes rise {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

@media (min-width: 640px) {
  .nav {
    display: flex;
  }

  .hero-grid {
    padding-top: 6rem;
  }

  .hero-title {
    font-size: 3rem;
  }

  .feature-row {
    grid-template-columns: 180px 1fr;
    gap: 2rem;
  }

  .cta {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .footer-inner {
    flex-direction: row;
    align-items: center;
  }
}

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

  .section-grid {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 5rem;
  }
}

@media (max-width: 639px) {
  .nav {
    display: none;
  }

  .permissions-table {
    table-layout: auto;
  }

  .permissions-table th:first-child,
  .permissions-table td:first-child {
    width: auto;
  }

  .permission-name {
    padding-right: 1rem;
  }
}
