:root {
  color-scheme: light;
  --bg: #f6f2ec;
  --ink: #15131a;
  --muted: #5f5b66;
  --accent: #ff6b4a;
  --accent-deep: #ff3d1f;
  --ocean: #0c4a6e;
  --mint: #c9f7e6;
  --card: #ffffff;
  --line: rgba(15, 15, 15, 0.08);
  --shadow: 0 30px 60px rgba(20, 14, 40, 0.12);
  --mono: "IBM Plex Mono", "Courier New", monospace;
  --sans: "Space Grotesk", "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.bg-glow {
  position: absolute;
  filter: blur(60px);
  opacity: 0.7;
  transform: translate3d(0, 0, 0);
  animation: floatGlow 18s ease-in-out infinite;
}

.bg-glow--one {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(255, 107, 74, 0.5), transparent 70%);
  top: -120px;
  left: -120px;
}

.bg-glow--two {
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(12, 74, 110, 0.35), transparent 70%);
  bottom: -160px;
  right: -160px;
  animation-delay: -6s;
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(transparent 95%, rgba(15, 15, 15, 0.08) 96%),
    linear-gradient(90deg, transparent 95%, rgba(15, 15, 15, 0.08) 96%);
  background-size: 120px 120px;
  opacity: 0.35;
}

.bg-noise {
  position: absolute;
  inset: 0;
  opacity: 0.25;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.nav {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 6vw 12px;
  background: linear-gradient(180deg, rgba(246, 242, 236, 0.92), rgba(246, 242, 236, 0.6));
  backdrop-filter: blur(12px);
  z-index: 10;
}

.nav.nav-open .nav-links {
  display: flex;
  position: absolute;
  top: 72px;
  right: 6vw;
  flex-direction: column;
  align-items: flex-start;
  background: #fff;
  padding: 16px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.nav.nav-open .nav-links a {
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--line);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  overflow: hidden;
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-text {
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a.nav-cta {
  color: #ffffff;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-links a.nav-cta:hover {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.nav-cta {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #ffffff;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
  display: block;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 2px;
  background: var(--ink);
  left: 0;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

main {
  padding: 40px 6vw 80px;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 48px;
  align-items: center;
  padding: 40px 0 80px;
}

.hero-copy h1 {
  font-size: clamp(2.8rem, 4vw, 4.3rem);
  line-height: 1.04;
  margin: 12px 0 16px;
  letter-spacing: -0.02em;
}

.hero-copy h1 span {
  display: block;
  color: var(--ocean);
  font-weight: 600;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ocean);
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 28px 0 32px;
}

.btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  background: #fff;
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(180deg, #1b1922, #0f0d12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 32px rgba(10, 10, 16, 0.28);
}

.btn-ghost {
  background: transparent;
}

.hero-meta {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.meta-title {
  font-weight: 600;
}

.meta-sub {
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-visual {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
}

.orbit {
  position: absolute;
  width: 420px;
  height: 420px;
  border: 1px dashed rgba(12, 74, 110, 0.25);
  border-radius: 50%;
  animation: rotate 22s linear infinite;
}

.orbit-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 12px rgba(255, 107, 74, 0.6);
}

.orbit-dot:nth-child(1) {
  transform: translate(-50%, -50%) translateX(210px);
}

.orbit-dot:nth-child(2) {
  transform: translate(-50%, -50%) translateY(-210px);
  background: var(--ocean);
}

.orbit-dot:nth-child(3) {
  transform: translate(-50%, -50%) translateX(-210px);
  background: #ffc9a8;
}

.device {
  width: min(520px, 90vw);
  background: var(--card);
  border-radius: 26px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(15, 15, 15, 0.08);
  overflow: hidden;
  transform: perspective(1200px) rotateY(-6deg) rotateX(4deg);
  animation: floatCard 12s ease-in-out infinite;
}

.device-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 242, 236, 0.6);
  font-weight: 600;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #50d890;
  box-shadow: 0 0 8px rgba(80, 216, 144, 0.8);
}

.device-pills {
  margin-left: auto;
  display: flex;
  gap: 6px;
}

.pill {
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--mint);
  color: #135b41;
}

.device-screen {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 20px;
}

.screen-col {
  display: grid;
  gap: 12px;
}

.screen-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  background: #fff;
  box-shadow: 0 12px 20px rgba(20, 14, 40, 0.06);
}

.screen-card--tall {
  min-height: 200px;
}

.card-title {
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f5f1ea;
}

.chip {
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 0.7rem;
}

.qr {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.qr-block {
  height: 18px;
  border-radius: 6px;
  background: var(--ocean);
  opacity: 0.12;
}

.qr-block:nth-child(odd) {
  opacity: 0.3;
}

.client,
.transfer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 0.75rem;
}

.client-dot,
.transfer-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.client-tag,
.transfer-tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: #f7e9da;
  font-size: 0.65rem;
}

.progress {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: #f1ede6;
  overflow: hidden;
}

.progress-bar {
  width: 82%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--ocean));
  animation: progressPulse 4s ease-in-out infinite;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  margin-top: 8px;
}

.note {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.4;
}

.code-panel {
  position: absolute;
  right: -40px;
  bottom: -30px;
  width: 240px;
  border-radius: 18px;
  background: #0b1c2c;
  color: #e8f4ff;
  padding: 16px;
  font-family: var(--mono);
  font-size: 0.7rem;
  box-shadow: 0 30px 60px rgba(11, 28, 44, 0.25);
  animation: floatCard 10s ease-in-out infinite;
}

.code-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.55rem;
  color: rgba(232, 244, 255, 0.7);
}

.code-lines {
  display: grid;
  gap: 6px;
  min-height: 90px;
}

.code-line {
  height: 10px;
  background: linear-gradient(90deg, rgba(232, 244, 255, 0.2), rgba(232, 244, 255, 0.7));
  border-radius: 6px;
  padding: 0 6px;
  display: flex;
  align-items: center;
  color: #e8f4ff;
  overflow: hidden;
}

.code-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: rgba(232, 244, 255, 0.7);
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7df9ff;
  box-shadow: 0 0 12px rgba(125, 249, 255, 0.9);
  animation: pulse 2s ease-in-out infinite;
}

.section {
  padding: 70px 0;
}

.section-head {
  max-width: 640px;
}

.section-head h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  margin: 0 0 12px;
}

.section-head p {
  color: var(--muted);
  margin: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.feature {
  background: #fff;
  border-radius: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(20, 14, 40, 0.08);
  transition: transform 0.2s ease;
}

.feature:hover {
  transform: translateY(-4px);
}

.feature h3 {
  margin-top: 0;
}

.version-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.version-card {
  padding: 24px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

.version-card--accent {
  background: linear-gradient(160deg, #fff, #fff4ed);
  border-color: rgba(255, 107, 74, 0.3);
}

.version-title {
  font-weight: 600;
  margin-bottom: 12px;
}

.version-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.version-list li {
  position: relative;
  padding-left: 18px;
}

.version-list li::before {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  left: 0;
  top: 6px;
}

.experience {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(246, 242, 236, 0.2));
  border-radius: 32px;
  padding: 60px;
}

.experience-steps {
  display: grid;
  gap: 20px;
  margin-top: 28px;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border-radius: 18px;
  border: 1px solid var(--line);
}

.step-number {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ocean);
}

.cta {
  padding-bottom: 100px;
}

.cta-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 36px 40px;
  border-radius: 28px;
  background: linear-gradient(130deg, #0c4a6e, #0b1c2c);
  color: #fff;
}

.cta-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.download-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.install-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.install-card {
  padding: 20px 22px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 12px 26px rgba(20, 14, 40, 0.08);
}

.install-card--center {
  display: grid;
  gap: 14px;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.install-card--center .install-title {
  width: 100%;
  text-align: left;
}

.install-title {
  font-weight: 600;
  margin-bottom: 12px;
}

.install-code {
  margin: 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f5f1ea;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.85rem;
  white-space: pre-wrap;
}

.install-code--compact {
  padding: 10px 12px;
  font-size: 0.8rem;
}

.snap-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
}

.snap-badge img {
  max-width: 180px;
  height: auto;
}

.download-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  box-shadow: 0 12px 26px rgba(20, 14, 40, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.download-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.download-title {
  font-weight: 600;
}

.download-sub {
  font-size: 0.85rem;
  color: var(--muted);
}

.platform-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background-color: #f5f1ea;
  border: 1px solid var(--line);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 60%;
}

.platform-icon.apple {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M16.6 12.4c0-2.6 2.1-3.5 2.2-3.5-1.2-1.7-3.1-1.9-3.8-2-1.6-.2-3.1.9-3.9.9-.8 0-2-.9-3.4-.9-1.7 0-3.4 1-4.3 2.5-1.8 3.2-.5 7.9 1.3 10.5.9 1.3 2 2.8 3.5 2.7 1.4-.1 1.9-.9 3.6-.9 1.7 0 2.2.9 3.6.9 1.5 0 2.5-1.3 3.4-2.6.9-1.2 1.3-2.4 1.3-2.5-.1 0-2.5-1-2.5-4.1Z' fill='%2315131a'/%3E%3Cpath d='M14.7 4.3c.7-.9 1.2-2.1 1.1-3.3-1 0-2.2.7-2.9 1.6-.6.7-1.2 2-1.1 3.1 1 .1 2.2-.6 2.9-1.4Z' fill='%2315131a'/%3E%3C/svg%3E");
}

.platform-icon.windows {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M3 5.2 10.5 4v7.1H3V5.2Zm0 13.6 7.5 1.2v-7.1H3v5.9Zm9.3-14.9L21 2.5v8.6h-8.7V3.9Zm0 16.2 8.7 1.4v-8.6h-8.7v7.2Z' fill='%2315131a'/%3E%3C/svg%3E");
}

.platform-icon.linux {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 3c-2.6 0-4.2 2-4.2 4.4 0 1.2.4 2.4 1.1 3.3-.4.4-1.5 1.6-1.5 3.4 0 1.7 1 2.7 1.7 3.2-.5.5-1 1.4-1 2.3 0 1.6 1.4 2.9 3.9 2.9s3.9-1.3 3.9-2.9c0-.9-.4-1.8-1-2.3.7-.5 1.7-1.5 1.7-3.2 0-1.8-1.1-3-1.5-3.4.7-.9 1.1-2.1 1.1-3.3C16.2 5 14.6 3 12 3Z' fill='%2315131a'/%3E%3Ccircle cx='10' cy='7.5' r='1' fill='%23ffffff'/%3E%3Ccircle cx='14' cy='7.5' r='1' fill='%23ffffff'/%3E%3Cpath d='M9.2 18.4c.7.5 1.7.8 2.8.8s2.1-.3 2.8-.8' stroke='%23ffffff' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-color: #f4d9c9;
}

.donate {
  padding-top: 30px;
}

.donate-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.donate-card {
  display: grid;
  gap: 12px;
  align-items: center;
  padding: 18px 20px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 26px rgba(20, 14, 40, 0.08);
}

.donate-title {
  font-weight: 600;
  font-size: 0.95rem;
}

.donate-body {
  display: grid;
  gap: 10px;
}

.donate-address {
  font-family: var(--mono);
  font-size: 0.85rem;
  word-break: break-all;
  color: var(--ink);
  background: #f5f1ea;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.donate-copy {
  justify-self: start;
}

.cta .btn {
  border-color: rgba(255, 255, 255, 0.2);
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 6vw 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-links {
  display: flex;
  gap: 18px;
}

@keyframes floatGlow {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(40px, 30px, 0);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes floatCard {
  0%,
  100% {
    transform: perspective(1200px) rotateY(-6deg) rotateX(4deg) translateY(0);
  }
  50% {
    transform: perspective(1200px) rotateY(-6deg) rotateX(4deg) translateY(-12px);
  }
}

@keyframes progressPulse {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(6%);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.4);
    opacity: 1;
  }
}

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

  .nav-toggle {
    display: inline-flex;
  }

  .code-panel {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 20px;
  }

  .device {
    transform: none;
  }

  .experience {
    padding: 40px 24px;
  }
}

@media (max-width: 720px) {
  .hero {
    padding-top: 10px;
  }

  .hero-meta {
    grid-template-columns: 1fr;
  }

  .device-screen {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
