:root {
  --bg: #02040a;
  --surface: #060917;

  --white: #ffffff;

  --text-primary: rgba(255, 255, 255, 0.9);
  --text-secondary: rgba(255, 255, 255, 0.75);
  --text-muted: rgba(255, 255, 255, 0.55);
  --text-dim: rgba(255, 255, 255, 0.4);
  --text-faint: rgba(255, 255, 255, 0.25);

  --blue: #2563eb;
  --blue-soft: rgba(37, 99, 235, 0.28);

  --border: rgba(255, 255, 255, 0.08);
  --border-soft: rgba(255, 255, 255, 0.07);

  --serif: "Fraunces", serif;
  --sans: "Inter", sans-serif;

  --max-width: 72rem;
  --page-padding: 1.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text-secondary);
  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;
}

.page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.page-content {
  position: relative;
  z-index: 10;
}

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

/* -------------------------------------------------- */
/* Background */
/* -------------------------------------------------- */

.hero-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 0;
  height: 760px;
  pointer-events: none;

  background:
    radial-gradient(
      ellipse 900px 500px at 50% -10%,
      rgba(37, 99, 235, 0.28),
      transparent 60%
    ),
    radial-gradient(
      ellipse 700px 400px at 80% 0%,
      rgba(79, 70, 229, 0.16),
      transparent 60%
    );
}

/* -------------------------------------------------- */
/* Hero */
/* -------------------------------------------------- */

.hero {
  padding-top: 5rem;
  padding-bottom: 6rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 3rem;
}

.hero-copy {
  text-align: center;
}

.logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1.75rem;
}

.logo {
  width: 68px;
  height: 68px;
  object-fit: cover;
}

.nepali-title {
  margin-bottom: 0.25rem;
  color: rgba(219, 234, 254, 0.4);
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.4;
  letter-spacing: 0.025em;
}

.nepali-description {
  margin: 0 0 0.5rem;
  color: rgba(255, 255, 255, 0.25);
  font-size: 12px;
  line-height: 1.5;
}

.brand-title {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--serif);
  font-size: 68px;
  font-weight: 400;
  font-style: italic;
  line-height: 1;
  letter-spacing: -0.01em;
}

.hero-description {
  max-width: 400px;
  margin: 1.25rem auto 0;
  color: rgba(255, 255, 255, 0.4);
  font-size: 15px;
  line-height: 1.625;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.5rem;
  border-radius: 999px;
  padding: 0.625rem 1.25rem;
  font-size: 12px;
  line-height: 1;
  transition:
    color 150ms ease,
    background-color 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.primary-button {
  background: rgba(255, 255, 255, 0.92);
  color: #050915;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.16);
  font-weight: 500;
}

.primary-button:hover {
  background: #fff;
}

.secondary-button {
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.55);
}

.secondary-button:hover {
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.13);
}

.arrow {
  font-size: 13px;
}

.os-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  fill: currentColor;
}

.os-icon-stroke {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.security-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  margin-top: 0.75rem;
  color: rgba(251, 191, 36, 0.9);
  font-size: 12px;
  line-height: 1.5;
}

.warning-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: currentColor;
}

.security-notice a {
  text-decoration: underline;
  transition: color 150ms ease;
}

.security-notice a:hover {
  color: #fcd34d;
}

.app-preview-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.app-preview-wrap {
  width: 100%;
  max-width: 430px;
  margin-inline: auto;
}

.app-preview-glow {
  position: absolute;
  inset: -2rem;
  border-radius: 40px;
  pointer-events: none;

  background: radial-gradient(
    ellipse at center,
    rgba(37, 99, 235, 0.12),
    transparent 65%
  );
}

.app-preview {
  position: relative;
  width: 100%;
  max-width: 380px;
  margin-inline: auto;
  object-fit: contain;

  filter: drop-shadow(0 24px 60px rgba(0, 0, 0, 0.45));
}

/* -------------------------------------------------- */
/* Download section */
/* -------------------------------------------------- */

.download-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.download-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 32px;
  padding: 2.5rem 1.5rem;

  background: rgba(255, 255, 255, 0.025);

  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
}

.download-heading {
  margin-bottom: 2.5rem;
  text-align: center;
}

.download-heading p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--serif);
  font-size: 36px;
  font-style: italic;
  line-height: 1;
}

.download-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.platform-download-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;

  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;

  padding: 0.625rem 1rem;

  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.55);

  font-size: 12px;
  line-height: 1;

  transition:
    color 150ms ease,
    background-color 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.platform-download-button:hover {
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.13);
}

.platform-download-button.detected {
  color: rgba(219, 234, 254, 0.75);
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(147, 197, 253, 0.35);
  box-shadow: 0 0 0 1px rgba(147, 197, 253, 0.1);
}

/* -------------------------------------------------- */
/* Unsigned release warning */
/* -------------------------------------------------- */

.launch-warning {
  margin-top: 2rem;
  border: 1px solid rgba(253, 230, 138, 0.12);
  border-radius: 24px;
  padding: 1.25rem;

  background: linear-gradient(
    to bottom,
    rgba(253, 230, 138, 0.055),
    rgba(255, 255, 255, 0.018)
  );

  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.14);
}

.warning-content {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
}

.warning-symbol {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 36px;
  height: 36px;
  flex: 0 0 auto;

  margin-top: 0.125rem;

  border: 1px solid rgba(253, 230, 138, 0.12);
  border-radius: 12px;

  background: rgba(252, 211, 77, 0.1);
  color: rgba(254, 240, 138, 0.7);
}

.warning-symbol svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.warning-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.warning-heading h3 {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.unsigned-badge {
  border: 1px solid rgba(253, 230, 138, 0.12);
  border-radius: 999px;
  padding: 0.125rem 0.5rem;

  background: rgba(253, 230, 138, 0.06);
  color: rgba(254, 249, 195, 0.45);

  font-size: 9px;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.warning-description {
  margin: 0.375rem 0 0;
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
  line-height: 1.625;
}

/* -------------------------------------------------- */
/* Platform instructions */
/* -------------------------------------------------- */

.launch-notes {
  margin-top: 1.5rem;
  padding-top: 1.5rem;

  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.platform-card {
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 22px;
  padding: 1.25rem;

  background: rgba(0, 0, 0, 0.16);

  transition:
    border-color 150ms ease,
    background-color 150ms ease;
}

.platform-card:hover {
  border-color: rgba(255, 255, 255, 0.11);
  background: rgba(0, 0, 0, 0.2);
}

.platform-heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.platform-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 36px;
  height: 36px;
  flex: 0 0 auto;

  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;

  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.55);
}

.platform-icon svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.platform-heading h4 {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.platform-heading p {
  margin: 0.125rem 0 0;
  color: rgba(255, 255, 255, 0.25);
  font-size: 10px;
  line-height: 1.4;
}

.platform-description {
  margin: 0;
  color: rgba(255, 255, 255, 0.38);
  font-size: 12px;
  line-height: 1.625;
}

.platform-description em {
  color: rgba(255, 255, 255, 0.5);
}

.run-instructions {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
}

.instructions-label {
  margin: 0 0 0.75rem;

  color: rgba(255, 255, 255, 0.25);

  font-size: 9px;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.run-instructions ol {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;

  margin: 0;
  padding: 0;

  list-style: none;

  color: rgba(255, 255, 255, 0.35);

  font-size: 11.5px;
  line-height: 1.625;
}

.run-instructions li {
  display: flex;
  gap: 0.625rem;
}

.run-instructions li > span:first-child {
  color: rgba(255, 255, 255, 0.2);
}

.run-instructions strong {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

.platform-guide {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;

  margin-top: 1.25rem;

  color: rgba(191, 219, 254, 0.45);

  font-size: 11px;

  transition: color 150ms ease;
}

.platform-guide:hover {
  color: rgba(219, 234, 254, 0.75);
}

/* -------------------------------------------------- */
/* Footer */
/* -------------------------------------------------- */

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;

  border-top: 1px solid rgba(255, 255, 255, 0.07);

  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
}

.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.25);
  font-size: 12px;
  line-height: 1.5;
}

.github-link {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 36px;
  height: 36px;

  color: rgba(255, 255, 255, 0.3);

  transition: color 150ms ease;
}

.github-link:hover {
  color: rgba(255, 255, 255, 0.65);
}

.github-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* -------------------------------------------------- */
/* Responsive */
/* -------------------------------------------------- */

@media (min-width: 640px) {
  .container {
    padding-inline: 2rem;
  }

  .brand-title {
    font-size: 76px;
  }

  .download-card {
    padding: 3rem 2.5rem;
  }
}

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

  .hero-copy {
    text-align: left;
  }

  .logo-wrap {
    justify-content: flex-start;
  }

  .hero-description {
    margin-inline: 0;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .security-notice {
    justify-content: flex-start;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-inline: 2.5rem;
  }

  .hero-grid {
    gap: 4rem;
  }
}

@media (max-width: 639px) {
  .hero-actions {
    flex-wrap: wrap;
  }

  .security-notice {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
