@font-face {
  font-family: "Rajdhani";
  src: url("./assets/rajdhani-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Rajdhani";
  src: url("./assets/rajdhani-semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Rajdhani";
  src: url("./assets/rajdhani-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #070a10;
  --bg-2: #0a0f18;
  --card: #0f151f;
  --card-2: #141c29;
  --card-3: #192332;
  --border: #1e2a3a;
  --text: #e4ecf6;
  --muted: #7c8fa6;
  --accent: #00f5a0;
  --accent-soft: #00c482;
  --accent-dark: #063026;
  --purple: #8b6cff;
  --amber: #ffbe5c;
  --red: #ff5c70;
  --max: 1160px;
  --radius: 18px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Rajdhani", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(700px 500px at 88% -10%, rgba(0, 245, 160, 0.1), transparent 70%),
    radial-gradient(700px 600px at 0% 100%, rgba(139, 108, 255, 0.09), transparent 70%),
    linear-gradient(180deg, #070a10 0%, #0a0f18 55%, #070a10 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(120, 160, 190, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 160, 190, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.2) 55%, transparent);
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: #6dffc6;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

::selection {
  background: rgba(0, 245, 160, 0.25);
  color: #fff;
}

h1,
h2,
h3 {
  margin: 0 0 0.35em;
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(3rem, 6vw, 5.2rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

h3 {
  font-size: 1.3rem;
  letter-spacing: 0.01em;
}

p {
  margin: 0 0 1em;
}

code {
  padding: 0.1em 0.4em;
  border-radius: 6px;
  background: var(--card-2);
  border: 1px solid var(--border);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82em;
  color: #c7f8e6;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--accent);
  color: #03130e;
  font-weight: 700;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: rgba(7, 10, 16, 0.72);
  backdrop-filter: blur(16px);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--border);
  background: rgba(7, 10, 16, 0.9);
}

.nav-wrap {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.02em;
}

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

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  box-shadow: 0 0 0 1px rgba(0, 245, 160, 0.25);
}

.brand-name {
  font-family: "Rajdhani", sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.brand-tag {
  margin-left: -4px;
  margin-top: 8px;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.98rem;
  font-weight: 600;
}

.site-nav a {
  color: #b7c4d4;
  transition: color 0.15s ease;
}

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

.site-nav .nav-github {
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  background: var(--card);
}

.site-nav .nav-github:hover {
  border-color: var(--accent-soft);
  color: var(--accent);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  cursor: pointer;
  padding: 11px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(56px, 9vw, 112px) 0 42px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  align-items: center;
  gap: clamp(32px, 6vw, 72px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  padding: 6px 12px;
  border: 1px solid rgba(0, 245, 160, 0.25);
  border-radius: 999px;
  background: rgba(0, 245, 160, 0.06);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.hero h1 span {
  display: block;
  color: var(--accent);
  text-shadow: 0 0 36px rgba(0, 245, 160, 0.22);
}

.lead {
  max-width: 620px;
  margin: 22px 0 30px;
  color: #b7c4d4;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.5;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-family: "Rajdhani", sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

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

.btn-primary {
  color: #03130e;
  background: var(--accent);
  box-shadow: 0 10px 30px rgba(0, 245, 160, 0.18);
}

.btn-primary:hover {
  color: #03130e;
  background: #58ffc4;
  box-shadow: 0 14px 38px rgba(0, 245, 160, 0.26);
}

.btn-secondary {
  color: var(--text);
  background: var(--card);
  border-color: var(--border);
}

.btn-secondary:hover {
  color: var(--accent);
  border-color: var(--accent-soft);
  background: var(--card-2);
}

.coffee-badge {
  display: inline-flex;
  border-radius: 10px;
  line-height: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.coffee-badge img {
  width: 220px;
  height: auto;
  border-radius: 10px;
}

.coffee-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 221, 0, 0.16);
}

.support {
  padding: 32px 0 clamp(70px, 9vw, 120px);
}

.support-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 44px);
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(180deg, var(--card), rgba(15, 21, 31, 0.65));
  text-align: center;
}

.support-inner .eyebrow {
  margin-bottom: 12px;
}

.support-inner h2 {
  margin-bottom: 10px;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}

.support-inner p:not(.eyebrow) {
  max-width: 520px;
  margin: 0 auto 22px;
  color: var(--muted);
  font-size: 1rem;
}

.support-coffee {
  margin: 0 auto;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 600;
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-points li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 10px 0;
}

.app-frame {
  position: relative;
  z-index: 2;
  width: min(100%, 380px);
  padding: 8px;
  border: 1px solid rgba(0, 196, 130, 0.5);
  border-radius: 20px;
  background: #0a0f18;
  box-shadow: var(--shadow), 0 0 70px rgba(0, 245, 160, 0.12);
  transform: rotate(1.2deg);
}

.app-frame img {
  border-radius: 12px;
  width: 100%;
}

.floating-card {
  position: absolute;
  z-index: 3;
  right: max(0px, calc(50% - 260px));
  bottom: 26px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(0, 245, 160, 0.35);
  border-radius: 12px;
  background: rgba(15, 21, 31, 0.94);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  font-size: 0.82rem;
  line-height: 1.2;
}

.floating-card strong {
  display: block;
  color: var(--text);
}

.floating-card small {
  color: var(--muted);
}

.pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(0, 245, 160, 0.5);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 245, 160, 0.45); }
  70% { box-shadow: 0 0 0 12px rgba(0, 245, 160, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 245, 160, 0); }
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
}

.glow-a {
  width: 260px;
  height: 260px;
  top: -40px;
  right: -40px;
  background: rgba(0, 245, 160, 0.15);
}

.glow-b {
  width: 220px;
  height: 220px;
  bottom: -50px;
  left: 10px;
  background: rgba(139, 108, 255, 0.15);
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  margin-top: clamp(40px, 6vw, 72px);
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.trust-strip strong {
  color: #b7c4d4;
  font-weight: 600;
}

/* Sections */
.section {
  padding: clamp(70px, 9vw, 120px) 0;
  scroll-margin-top: calc(var(--header-h) + 10px);
}

.section-alt {
  position: relative;
  background: linear-gradient(180deg, rgba(10, 15, 24, 0.65), rgba(10, 15, 24, 0.2));
  border-top: 1px solid rgba(30, 42, 58, 0.55);
  border-bottom: 1px solid rgba(30, 42, 58, 0.55);
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(36px, 5vw, 60px);
}

.section-head p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.1rem;
}

.section-head .eyebrow {
  margin-bottom: 14px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--card), rgba(15, 21, 31, 0.7));
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 196, 130, 0.55);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.feature-card h3 {
  margin-top: 18px;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(0, 245, 160, 0.22);
  border-radius: 12px;
  background: rgba(0, 245, 160, 0.06);
  color: var(--accent);
}

.icon svg {
  width: 24px;
  height: 24px;
}

/* Steps and gallery */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0 0 56px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--accent);
  color: #03130e;
  font-weight: 700;
  font-size: 1.15rem;
}

.steps h3 {
  margin-bottom: 8px;
}

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

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.gallery figure {
  margin: 0;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}

.gallery img {
  width: 100%;
  border-radius: 12px;
}

.gallery figcaption {
  padding: 12px 6px 4px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

/* Security */
.security-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}

.security-grid .section-head {
  margin-bottom: 0;
}

.security-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.security-item {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
}

.security-item h3 {
  font-size: 1.12rem;
  margin-bottom: 6px;
}

.security-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-weight: 600;
}

/* Download */
.download-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.download-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}

.os-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--card-2);
  color: var(--accent);
}

.os-icon svg {
  width: 26px;
  height: 26px;
}

.download-card h3 {
  margin-bottom: 8px;
}

.download-card p {
  min-height: 3.6em;
  color: var(--muted);
  font-size: 0.96rem;
}

.download-card .btn {
  width: 100%;
  margin-top: 6px;
}

.mini-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mini-link:hover {
  color: var(--accent);
}

.download-note {
  max-width: 850px;
  margin: 26px auto 0;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

/* FAQ */
.faq-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}

.faq-wrap .section-head {
  margin-bottom: 0;
  position: sticky;
  top: calc(var(--header-h) + 28px);
}

.faq-list details {
  border-bottom: 1px solid var(--border);
}

.faq-list summary {
  position: relative;
  padding: 20px 46px 20px 0;
  cursor: pointer;
  list-style: none;
  color: var(--text);
  font-weight: 600;
  font-size: 1.05rem;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  padding: 0 40px 20px 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* CTA */
.cta-band {
  padding: 0 0 28px;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid rgba(0, 245, 160, 0.28);
  border-radius: 24px;
  background:
    radial-gradient(500px 260px at 85% 0%, rgba(0, 245, 160, 0.13), transparent 70%),
    linear-gradient(135deg, #0f151f, #0a0f18);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

.cta-inner h2 {
  margin-bottom: 8px;
}

.cta-inner p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 28px;
  background: rgba(7, 10, 16, 0.75);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 44px;
}

.footer-brand {
  margin-bottom: 12px;
}

.site-footer p {
  max-width: 360px;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer h2 {
  margin: 4px 0 14px;
  font-family: "Rajdhani", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #b7c4d4;
}

.site-footer nav a {
  display: block;
  width: fit-content;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer nav a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  margin: 0;
  font-size: 0.8rem;
}

/* Reveal */
.reveal {
  opacity: 1;
  transform: translateY(14px);
  transition: transform 0.55s ease;
}

html:not(.js) .reveal {
  transform: none;
}

.reveal.visible {
  transform: none;
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
    margin-bottom: 8px;
  }

  .app-frame {
    width: min(100%, 360px);
    transform: none;
  }

  .floating-card {
    right: 50%;
    transform: translateX(50%);
    bottom: 6px;
  }

  .feature-grid,
  .download-grid,
  .gallery,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .security-grid,
  .faq-wrap {
    grid-template-columns: 1fr;
  }

  .faq-wrap .section-head {
    position: static;
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 64px;
  }

  body {
    font-size: 17px;
  }

  .container {
    padding: 0 18px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(var(--header-h) - 1px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 18px 18px;
    border-bottom: 1px solid var(--border);
    background: rgba(7, 10, 16, 0.98);
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.4);
  }

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

  .site-nav a {
    padding: 12px 6px;
    border-bottom: 1px solid rgba(30, 42, 58, 0.6);
  }

  .site-nav .nav-github {
    margin-top: 10px;
    text-align: center;
    border: 1px solid var(--border);
  }

  .hero {
    padding-top: 34px;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .trust-strip {
    gap: 10px 18px;
    font-size: 0.72rem;
  }

  .feature-grid,
  .download-grid,
  .gallery,
  .steps,
  .security-list {
    grid-template-columns: 1fr;
  }

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

  .cta-actions {
    width: 100%;
  }

  .cta-actions .btn {
    flex: 1 1 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
