@import url("dcent-assets/fonts/fonts.css");

:root {
  --bg: #0a0a0a;
  --panel: #101312;
  --panel-2: #141817;
  --line: rgba(255, 255, 255, 0.11);
  --muted: rgba(255, 255, 255, 0.64);
  --soft: rgba(255, 255, 255, 0.42);
  --green: #1dde6e;
  --green-2: #22f07a;
  --red: #ff4e48;
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: #fff;
  font-family: "DM Sans", Arial, sans-serif;
}

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

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

button {
  font: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: "Syne", Arial, sans-serif;
  line-height: 1.05;
  margin: 0;
  letter-spacing: 0;
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 5vw;
  background: rgba(10, 10, 10, 0.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.72);
  font-family: "Syne", Arial, sans-serif;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 142px;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  font-weight: 600;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.connect-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid rgba(29, 222, 110, 0.55);
  border-radius: 999px;
  background: rgba(29, 222, 110, 0.1);
  color: var(--green);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.connect-btn:hover {
  background: var(--green);
  color: #07110b;
}

.mobile-connect {
  display: none;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: currentColor;
}

.version {
  display: inline-flex;
  width: fit-content;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--green);
  color: #07110b;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  background: var(--green);
  color: #07110b;
  box-shadow: 0 0 0 rgba(29, 222, 110, 0);
}

.btn-primary:hover {
  background: var(--green-2);
  box-shadow: 0 0 22px rgba(29, 222, 110, 0.35);
}

.btn-outline {
  border-color: var(--green);
  color: var(--green);
  background: rgba(29, 222, 110, 0.03);
}

.btn-outline:hover {
  background: rgba(29, 222, 110, 0.12);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 720px;
  background: #0a0a0a;
}

.hero-bg,
.firmware-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #0a0a0a 0%, rgba(10, 10, 10, 0.82) 46%, rgba(10, 10, 10, 0.2) 100%),
    linear-gradient(0deg, #0a0a0a 0%, rgba(10, 10, 10, 0) 42%),
    url("dcent-assets/images/dcent_hero_bg.webp") center / cover no-repeat;
  opacity: 0.92;
}

.hero-inner,
.firmware,
.prep,
.products,
.services,
.reviews,
.faq {
  position: relative;
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 96px 5vw;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr);
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 15px;
  border: 1px solid rgba(29, 222, 110, 0.3);
  border-radius: 999px;
  background: rgba(29, 222, 110, 0.1);
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
}

.eyebrow span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 1.8s infinite;
}

.hero h1 {
  max-width: 780px;
  margin-top: 24px;
  font-size: clamp(44px, 6vw, 84px);
}

.hero h1 span,
.section-head h2 span {
  color: var(--green);
}

.hero-copy > p {
  max-width: 560px;
  margin-top: 24px;
  font-size: 18px;
}

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

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

.hero-product img {
  position: relative;
  width: min(440px, 82vw);
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.55));
}

.product-glow {
  position: absolute;
  width: min(420px, 70vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(29, 222, 110, 0.12);
  filter: blur(50px);
}

.partners {
  overflow: hidden;
  padding: 34px 0;
  border-block: 1px solid var(--line);
  background: #090b0a;
}

.issue-section {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 86px 5vw;
  background:
    linear-gradient(180deg, rgba(10, 10, 10, 0), rgba(29, 222, 110, 0.045), rgba(10, 10, 10, 0));
}

.issue-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 42px;
}

.issue-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 258px;
  padding: 22px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  text-align: center;
}

.issue-card:hover {
  border-color: rgba(29, 222, 110, 0.45);
  background: rgba(29, 222, 110, 0.055);
}

.issue-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(29, 222, 110, 0.12);
  color: var(--green);
  font-size: 26px;
  font-weight: 800;
}

.issue-card h3 {
  margin-top: 16px;
  font-size: 20px;
}

.issue-card p {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.55;
}

.issue-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: auto;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: #07110b;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
}

.issue-button:hover {
  background: var(--green-2);
  box-shadow: 0 0 18px rgba(29, 222, 110, 0.28);
}

.partners p {
  text-align: center;
  padding: 0 5vw 22px;
  color: var(--soft);
  font-size: 14px;
}

.ticker {
  overflow: hidden;
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 64px;
  width: max-content;
  animation: ticker 28s linear infinite;
}

.ticker-track img {
  width: 130px;
  max-height: 36px;
  opacity: 0.62;
  filter: grayscale(1) brightness(1.7);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.stats div {
  min-height: 160px;
  display: grid;
  place-items: center;
  align-content: center;
  background: #0c0e0d;
}

.stats strong {
  font-family: "Syne", Arial, sans-serif;
  color: var(--green);
  font-size: clamp(38px, 5vw, 64px);
}

.stats span {
  color: var(--muted);
  font-weight: 700;
}

.firmware {
  width: 100%;
  max-width: none;
  overflow: hidden;
}

.firmware::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.62), #0a0a0a 82%),
    url("dcent-assets/images/dcent_firmware_bg.webp") center / cover no-repeat;
  opacity: 0.44;
}

.firmware > * {
  position: relative;
  width: min(1180px, 100%);
  margin-inline: auto;
}

.section-head {
  text-align: center;
}

.section-head .version {
  margin-inline: auto;
  margin-bottom: 18px;
}

.section-head h2 {
  font-size: clamp(34px, 5vw, 60px);
}

.section-head p {
  max-width: 720px;
  margin: 18px auto 0;
}

.firmware-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
  margin-top: 56px;
}

.version-card,
.update-card,
.prep-grid article,
.methods,
.product-panel,
.service-grid article,
.review-grid article,
.accordion details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
}

.notice-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.72);
}

.help-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.72);
}

.help-modal.open {
  display: grid;
}

.help-dialog {
  position: relative;
  width: min(560px, 100%);
  padding: 34px;
  border: 1px solid rgba(29, 222, 110, 0.24);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(29, 222, 110, 0.1), rgba(255, 255, 255, 0.025)),
    #0d1110;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.55);
}

.help-dialog h2 {
  margin-top: 18px;
  font-size: clamp(30px, 5vw, 44px);
}

.help-dialog p {
  margin-top: 16px;
}

.help-dialog .btn {
  margin-top: 26px;
}

.notice-modal.open {
  display: grid;
}

.notice-dialog {
  position: relative;
  width: min(620px, 100%);
  padding: 34px;
  border: 1px solid rgba(29, 222, 110, 0.24);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(29, 222, 110, 0.1), rgba(255, 255, 255, 0.025)),
    #0d1110;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.55);
}

.notice-dialog h2 {
  margin-top: 18px;
  font-size: clamp(30px, 5vw, 46px);
}

.notice-dialog p {
  margin-top: 16px;
}

.notice-dialog .btn {
  margin-top: 26px;
}

.notice-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

body.notice-open {
  overflow: hidden;
}

.version-card,
.update-card {
  padding: 28px;
}

.version-card h3,
.update-card h3,
.methods h3 {
  font-size: 24px;
  margin-bottom: 22px;
}

.release {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.release:first-of-type {
  border-top: 0;
}

.release span {
  color: #fff;
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
}

.release small {
  justify-self: end;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--green);
  color: #08110c;
  font-weight: 800;
}

.release time {
  color: var(--soft);
  font-size: 13px;
}

.release p {
  grid-column: 1 / -1;
  font-size: 14px;
}

.update-card > p + p {
  margin-top: 14px;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.benefits div {
  padding: 18px;
  border: 1px solid rgba(29, 222, 110, 0.16);
  border-radius: 14px;
  background: rgba(29, 222, 110, 0.06);
}

.benefits span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green);
  color: #07110b;
  font-family: "JetBrains Mono", monospace;
  font-weight: 800;
}

.benefits strong {
  display: block;
  margin-top: 14px;
}

.benefits p {
  margin-top: 8px;
  font-size: 14px;
}

.prep-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 44px;
}

.prep-grid article {
  padding: 24px;
}

.prep-grid .wide-card {
  grid-column: 1 / -1;
}

.prep-grid strong {
  display: block;
  font-family: "Syne", Arial, sans-serif;
  font-size: 20px;
}

.prep-grid span {
  display: block;
  color: var(--muted);
  margin-top: 10px;
}

.methods {
  padding: 30px;
  margin-top: 28px;
}

.method-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.method-grid article {
  padding: 24px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
}

.port {
  color: var(--green);
  font-family: "JetBrains Mono", monospace;
  font-weight: 800;
}

.method-grid h4 {
  margin-top: 12px;
  font-size: 20px;
}

.method-grid p,
.browser-note {
  margin-top: 12px;
}

.compact {
  margin-top: 24px;
}

.product-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
}

.product-tabs button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 18px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
}

.product-tabs button.active {
  background: var(--green);
  color: #07110b;
  border-color: var(--green);
}

.product-panel {
  display: none;
  grid-template-columns: 0.75fr 1fr;
  gap: 36px;
  align-items: center;
  margin-top: 28px;
  padding: 34px;
}

.product-panel.active {
  display: grid;
}

.product-panel img {
  max-height: 430px;
  margin: auto;
}

.product-panel h3 {
  font-size: clamp(28px, 4vw, 48px);
}

.product-panel p {
  margin-top: 16px;
}

.product-panel ul {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.82);
}

.product-panel li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--green);
}

.card-wallet-visual {
  width: min(340px, 100%);
  aspect-ratio: 1.58;
  margin: auto;
  border-radius: 24px;
  background: linear-gradient(135deg, #202423, #050707);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.42);
  position: relative;
}

.card-wallet-visual::before {
  content: "D'CENT";
  position: absolute;
  left: 28px;
  top: 26px;
  color: rgba(255, 255, 255, 0.72);
  font-family: "Syne", Arial, sans-serif;
  font-weight: 800;
}

.card-wallet-visual::after {
  content: "";
  position: absolute;
  right: 28px;
  bottom: 28px;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 2px solid var(--green);
}

.service-grid,
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 44px;
}

.service-grid article,
.review-grid article {
  padding: 24px;
}

.service-grid h3 {
  font-size: 22px;
}

.service-grid p,
.review-grid p {
  margin-top: 12px;
}

.review-grid {
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  overflow-x: auto;
  padding-bottom: 8px;
}

.review-grid strong {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-top: 20px;
  border-radius: 50%;
  background: rgba(29, 222, 110, 0.16);
  color: var(--green);
}

.review-grid span {
  display: block;
  margin-top: 8px;
  color: var(--soft);
  font-size: 14px;
}

.accordion {
  display: grid;
  gap: 12px;
  max-width: 900px;
  margin: 42px auto 0;
}

.accordion details {
  padding: 0;
}

.accordion summary {
  cursor: pointer;
  padding: 22px 24px;
  font-weight: 800;
  list-style: none;
}

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

.accordion summary::after {
  content: "+";
  float: right;
  color: var(--green);
  font-family: "JetBrains Mono", monospace;
}

.accordion details[open] summary::after {
  content: "-";
}

.accordion details p {
  padding: 0 24px 24px;
}

.footer {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) repeat(3, 1fr);
  gap: 30px;
  padding: 60px 5vw 34px;
  border-top: 1px solid var(--line);
  background: #070807;
}

.footer p,
.footer a {
  display: block;
  margin-top: 10px;
  color: var(--soft);
  font-size: 14px;
}

.footer h3 {
  margin-bottom: 14px;
  font-size: 18px;
}

.copyright {
  grid-column: 1 / -1;
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

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

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-flex;
  }

  .desktop-connect {
    display: none;
  }

  .mobile-connect {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    inset: 72px 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 5vw 20px;
    background: rgba(10, 10, 10, 0.96);
    border-bottom: 1px solid var(--line);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 14px 0;
  }

  .hero-inner,
  .firmware-grid,
  .method-grid,
  .product-panel,
  .footer {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

  .hero-inner {
    padding-top: 64px;
  }

  .hero-product {
    min-height: auto;
  }

  .hero-product img {
    width: min(300px, 72vw);
  }

  .benefits,
  .prep-grid,
  .service-grid,
  .stats {
    grid-template-columns: 1fr;
  }

  .issue-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .review-grid {
    grid-template-columns: 1fr;
    overflow: visible;
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 64px;
    padding-inline: 20px;
  }

  .brand img {
    width: 118px;
  }

  .header-actions {
    gap: 8px;
  }

  .mobile-connect {
    min-height: 38px;
    padding: 0 13px;
    font-size: 12px;
  }

  .nav {
    inset-block-start: 64px;
  }

  .hero-inner,
  .firmware,
  .prep,
  .products,
  .services,
  .issue-section,
  .reviews,
  .faq {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-inner,
  .firmware,
  .prep,
  .products,
  .services,
  .issue-section,
  .reviews,
  .faq {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .hero h1 {
    font-size: 36px;
    max-width: 100%;
  }

  .issue-grid {
    grid-template-columns: 1fr;
  }

  .issue-card {
    min-height: auto;
  }

  .notice-modal {
    padding: 18px;
    align-items: center;
  }

  .notice-dialog {
    padding: 28px 20px 22px;
  }

  .notice-close {
    top: 12px;
    right: 12px;
  }

  .hero-actions,
  .compact {
    width: 100%;
  }

  .btn {
    width: 100%;
    white-space: normal;
    text-align: center;
  }

  .ticker-track {
    gap: 34px;
  }

  .ticker-track img {
    width: 105px;
  }

  .version-card,
  .update-card,
  .methods,
  .product-panel {
    padding: 22px;
  }

  .footer {
    padding-left: 20px;
    padding-right: 20px;
  }
}
