:root {
  --background: #070707;
  --foreground: #e9e7e2;
  --card: #0e0e10;
  --card-foreground: #ffffff;
  --muted: #17171a;
  --muted-foreground: #8d8a86;
  --primary: #e9e7e2;
  --primary-foreground: #0a0a0a;
  --primary-rgb: 233, 231, 226;
  --accent: #c9a15a;
  --accent-rgb: 201, 161, 90;
  --accent-secondary: #7c8aa3;
  --accent-secondary-rgb: 124, 138, 163;
  --destructive: #e0455f;
  --border: #242426;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --font-display: "Bricolage Grotesque", "JetBrains Mono", ui-sans-serif, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  border-color: var(--border);
}

html {
  background: var(--background);
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(var(--accent-rgb), 0.08), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(var(--accent-secondary-rgb), 0.05), transparent),
    linear-gradient(rgba(var(--primary-rgb), 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--primary-rgb), 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 64px 64px, 64px 64px;
}

::selection {
  background: var(--primary);
  color: var(--primary-foreground);
}

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

button {
  font-family: inherit;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
}

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

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

@keyframes ping {
  75%,
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

.scanline-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0.012;
}

.scanline-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.3) 2px,
    rgba(0, 0, 0, 0.3) 4px
  );
}

.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 51;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

.container {
  width: 100%;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(8px);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-mark {
  position: relative;
  display: flex;
  height: 2.5rem;
  width: 6.75rem;
  padding: 0.2rem 0.75rem;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid var(--primary);
  color: var(--primary);
  font-size: 1.08rem;
}

.logo-glyph {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  color: var(--accent);
}

.logo-mark .pulse-corner {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--primary);
  animation: pulse-dot 1.5s ease-in-out infinite;
}

.logo-text {
  display: none;
}

@media (min-width: 640px) {
  .logo-text {
    display: block;
  }
}

.logo-title {
  font-size: 0.875rem;
  color: var(--primary);
}

.logo-sub {
  font-size: 10px;
  color: var(--muted-foreground);
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

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

.nav-desktop a {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  transition: color 0.2s;
}

.nav-desktop a:hover {
  color: var(--accent-secondary);
}

.nav-bracket {
  opacity: 0.5;
  transition: opacity 0.2s;
}

.nav-desktop a:hover .nav-bracket {
  opacity: 1;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--muted-foreground);
  transition: border-color 0.2s, color 0.2s;
}

.lang-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.lang-toggle svg {
  width: 14px;
  height: 14px;
}

.online-badge {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  border: 1px solid rgba(var(--primary-rgb), 0.3);
  background: rgba(var(--primary-rgb), 0.05);
}

@media (min-width: 1024px) {
  .online-badge {
    display: flex;
  }
}

.online-badge .dot {
  width: 0.5rem;
  height: 0.5rem;
  background: var(--accent-secondary);
  box-shadow: 0 0 8px rgba(var(--accent-secondary-rgb), 0.6);
  animation: pulse-dot 1.5s ease-in-out infinite;
}

.online-badge span {
  font-size: 10px;
  color: var(--accent-secondary);
}

.menu-toggle {
  display: flex;
  padding: 0.5rem;
  border: 1px solid var(--border);
  color: var(--muted-foreground);
  transition: border-color 0.2s, color 0.2s;
}

.menu-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
}

@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }
}

.menu-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
}

.nav-mobile {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--background);
}

.site-header.is-menu-open .nav-mobile {
  display: block;
}

@media (min-width: 768px) {
  .site-header.is-menu-open .nav-mobile {
    display: none;
  }
}

.nav-mobile a {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  border: 1px solid transparent;
  transition: all 0.2s;
}

.nav-mobile a:hover {
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.05);
  border-color: rgba(var(--primary-rgb), 0.3);
}

.menu-toggle .icon-close {
  display: none;
}

.site-header.is-menu-open .menu-toggle .icon-menu {
  display: none;
}

.site-header.is-menu-open .menu-toggle .icon-close {
  display: block;
  color: var(--primary);
}

/* Main */
.page {
  min-height: 100vh;
  background: var(--background);
}

main {
  padding-top: 4rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - 4rem);
  padding: 2rem 0 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  opacity: 0.14;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(var(--primary-rgb), 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--primary-rgb), 0.1) 1px, transparent 1px);
  background-size: 120px 120px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 0%, transparent 75%);
}

.hero-deco {
  display: none;
  pointer-events: none;
}

@media (min-width: 1024px) {
  .hero-deco {
    display: block;
    position: absolute;
    border: 1px solid rgba(var(--primary-rgb), 0.2);
  }

  .hero-deco--1 {
    top: 8rem;
    left: 2.5rem;
    width: 8rem;
    height: 8rem;
    transform: rotate(45deg);
    animation: pulse-dot 3s ease-in-out infinite;
  }

  .hero-deco--2 {
    bottom: 8rem;
    right: 2.5rem;
    width: 6rem;
    height: 6rem;
    border-color: rgba(var(--primary-rgb), 0.1);
  }

  .hero-deco--3 {
    top: 50%;
    right: 25%;
    width: 0.5rem;
    height: 0.5rem;
    background: var(--accent);
    border: none;
    box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.5);
    animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
  }
}

.terminal-window {
  border: 1px solid var(--border);
  background: var(--card);
  margin-bottom: 3rem;
  max-width: 42rem;
}

.terminal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(26, 26, 26, 0.5);
}

.terminal-dots {
  display: flex;
  gap: 0.5rem;
}

.terminal-dots span {
  width: 0.75rem;
  height: 0.75rem;
  border: 1px solid;
}

.dot-r {
  border-color: var(--destructive);
  background: rgba(255, 0, 85, 0.2);
}

.dot-y {
  border-color: #eab308;
  background: rgba(234, 179, 8, 0.2);
}

.dot-g {
  border-color: var(--primary);
  background: rgba(var(--primary-rgb), 0.2);
}

.terminal-bar-title {
  font-size: 10px;
  color: var(--muted-foreground);
}

.terminal-body {
  padding: 1rem;
  font-size: 0.875rem;
}

.terminal-body .prompt {
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
}

.terminal-body .prompt .dollar {
  color: var(--accent);
}

.cursor-blink::after {
  content: "_";
  animation: blink 1s step-end infinite;
  color: var(--accent);
}

.hero-shell {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.hero-terminal {
  position: relative;
  max-width: 42rem;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.6);
  transition: transform 0.4s ease;
}

.hero-terminal:hover {
  transform: rotate(0deg);
}


.hero-terminal::after {
  position: absolute;
  top: -0.6rem;
  right: 1.25rem;
  padding: 0.2rem 0.6rem;
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--primary-foreground);
  background: var(--accent);
  transform: rotate(2deg);
  z-index: 1;
}

.hero-body {
  display: grid;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .hero-body {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.hero-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0 0 2rem;
  padding: 20px;
  list-style: none;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.hero-specs li::before {
  content: "› ";
  color: var(--accent);
}

.hero-metrics {
  margin-top: 0;
}

.hero-specs {
  border-block: 1px solid var(--border);
  background: rgba(var(--primary-rgb), 0.03);
}

.manifesto-strip {
  border-block: 1px solid var(--border);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(var(--accent-rgb), 0.06) 50%,
    transparent
  );
}

.manifesto-text {
  margin: 0;
  padding: 1.25rem 0;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--muted-foreground);
  text-align: center;
}

.manifesto-text::before {
  content: "// ";
  color: var(--accent-secondary);
}

.crypto-terminal-gap {
  margin-top: 1rem;
}

.footer-status-wrap {
  display: flex;
  justify-content: center;
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(var(--accent-secondary-rgb), 0.35);
  background: rgba(var(--accent-secondary-rgb), 0.06);
  margin-bottom: 2rem;
}

.hero-badge .dot {
  width: 0.5rem;
  height: 0.5rem;
  background: var(--accent-secondary);
  box-shadow: 0 0 8px rgba(var(--accent-secondary-rgb), 0.5);
  animation: pulse-dot 1.5s ease-in-out infinite;
}

.hero-badge span {
  font-size: 0.75rem;
  color: var(--accent-secondary);
}

.hero h1 {
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.5vw, 4.75rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.05;
}

.hero h1 .line-muted {
  color: var(--foreground);
}

.hero h1 .line-accent {
  color: var(--accent);
  font-weight: 700;
  text-shadow: 0 0 28px rgba(var(--accent-rgb), 0.2);
}

.hero-lead {
  margin: 0 0 2rem;
  max-width: 36rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

@media (min-width: 768px) {
  .hero-lead {
    font-size: 1rem;
  }
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .hero-cta {
    flex-direction: row;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: 0.875rem;
  font-weight: 700;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: #171308;
  border: 1px solid var(--accent);
  box-shadow: 0 0 16px rgba(var(--accent-rgb), 0.18);
}

.btn-primary:hover {
  background: #dbb672;
  border-color: #dbb672;
  box-shadow: 0 0 22px rgba(var(--accent-rgb), 0.3);
}

.btn-outline {
  border: 1px solid rgba(var(--accent-secondary-rgb), 0.45);
  color: var(--accent-secondary);
  background: rgba(var(--accent-secondary-rgb), 0.06);
}

.btn-outline:hover {
  border-color: var(--accent-secondary);
  color: var(--accent-secondary);
  background: rgba(var(--accent-secondary-rgb), 0.12);
}

.btn svg.chevron {
  width: 1rem;
  height: 1rem;
  transition: transform 0.2s;
}

.btn-primary:hover .chevron {
  transform: translateX(4px);
}

.feature-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.feature-mini {
  position: relative;
  padding: 1.5rem;
  border: 1px solid var(--border);
  background: var(--card);
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s;
}

.feature-mini:hover {
  border-color: rgba(var(--primary-rgb), 0.5);
  background: rgba(10, 10, 10, 0.8);
}

.feature-mini::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 2rem;
  height: 2rem;
  border-top: 1px solid rgba(var(--primary-rgb), 0.3);
  border-right: 1px solid rgba(var(--primary-rgb), 0.3);
  transition: border-color 0.2s;
}

.feature-mini:hover::before {
  border-color: var(--primary);
}

.feature-mini svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--accent-secondary);
  margin-bottom: 1rem;
}

.feature-mini h3 {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.feature-mini p {
  margin: 0;
  font-size: 10px;
  color: var(--muted-foreground);
}

.stats-row {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
}

@media (min-width: 768px) {
  .stats-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-cell {
  background: var(--background);
  padding: 1.5rem;
  text-align: center;
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 10px;
  color: var(--muted-foreground);
  letter-spacing: 0.05em;
}

/* Section chrome */
.section-head {
  margin-bottom: 4rem;
}

.section-head-lines {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-head-lines::before,
.section-head-lines::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.section-tag {
  font-size: 0.75rem;
  color: var(--accent-secondary);
  letter-spacing: 0.08em;
}

.section-title {
  margin: 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.section-desc {
  margin: 1rem auto 0;
  max-width: 48rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Plans */
.plans-section {
  padding: 6rem 0;
  position: relative;
}

.plans-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .plans-grid--main {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .plans-grid--main {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  .plans-grid--main {
    grid-template-columns: repeat(5, 1fr);
  }
}

.plan-card {
  position: relative;
  border: 1px solid var(--border);
  background: var(--card);
  transition: border-color 0.2s;
}

.plan-card:hover {
  border-color: rgba(var(--primary-rgb), 0.5);
}

.plan-card.is-best {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.08);
}

.plan-card.is-best::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
}

.plan-card-head {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
}

.plan-card-head-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.plan-name {
  font-size: 1.125rem;
  font-weight: 700;
}

.badge-small {
  padding: 0.125rem 0.5rem;
  font-size: 10px;
  color: var(--accent);
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  background: rgba(var(--accent-rgb), 0.1);
}

.plan-price {
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 600;
  color: var(--accent);
}

.plan-price span {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  font-weight: 400;
}

.plan-specs {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.plan-spec {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.plan-spec svg {
  width: 1rem;
  height: 1rem;
  color: rgba(var(--primary-rgb), 0.6);
  flex-shrink: 0;
}

.plan-card-foot {
  padding: 0 1rem 1rem;
}

.btn-plan-buy {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid rgba(var(--accent-rgb), 0.5);
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  transition: all 0.2s;
}

.btn-plan-buy:hover {
  background: var(--accent);
  color: #0a0a0a;
  border-color: var(--accent);
}

.details-more {
  border: 1px solid var(--border);
  background: var(--card);
}

.details-more summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  list-style: none;
}

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

.details-more summary .chevron {
  width: 1rem;
  height: 1rem;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.details-more[open] summary .chevron {
  transform: rotate(180deg);
}

.details-more .inner {
  padding: 1rem;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .details-more .inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .details-more .inner {
    grid-template-columns: repeat(5, 1fr);
  }
}

.plan-card-compact {
  border: 1px solid var(--border);
  background: rgba(10, 10, 10, 0.5);
  padding: 1rem;
  transition: border-color 0.2s;
}

.plan-card-compact:hover {
  border-color: rgba(var(--primary-rgb), 0.5);
}

.plan-card-compact .row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.plan-card-compact .mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  font-size: 10px;
  color: var(--muted-foreground);
  margin-bottom: 0.75rem;
}

.btn-plan-buy-sm {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--border);
  font-size: 10px;
  color: var(--muted-foreground);
  transition: all 0.2s;
}

.btn-plan-buy-sm:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Config panel */
.config-panel {
  margin-top: 3rem;
  border: 1px solid var(--primary);
  background: var(--card);
  display: none;
}

.config-panel.is-visible {
  display: block;
}

.config-panel::before {
  content: "";
  display: block;
  height: 2px;
  background: var(--primary);
}

.config-inner {
  padding: 1.5rem;
}

.config-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.config-head h3 {
  margin: 0;
  font-size: 1.125rem;
}

.btn-text {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  transition: color 0.2s;
}

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

.config-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .config-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .config-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.config-block label {
  display: block;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-bottom: 0.75rem;
}

.option-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.option-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  border: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--muted-foreground);
  text-align: left;
  transition: all 0.2s;
}

.option-btn:hover {
  border-color: rgba(var(--primary-rgb), 0.5);
}

.option-btn.is-active {
  border-color: var(--primary);
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
}

.option-btn .extra {
  font-size: 10px;
  opacity: 0.7;
}

.option-btn .check {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.total-box {
  padding: 1rem;
  border: 1px solid var(--primary);
  background: rgba(var(--primary-rgb), 0.05);
}

.total-box .amount {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.total-box .note {
  font-size: 10px;
  color: var(--muted-foreground);
}

.config-total-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}

.btn-pay {
  width: 100%;
  padding: 1rem;
  background: var(--accent);
  color: #171308;
  font-size: 0.875rem;
  font-weight: 700;
  border: 1px solid var(--accent);
  transition: background 0.2s, box-shadow 0.2s;
}

.btn-pay:hover {
  background: #dbb672;
  box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.25);
}

/* Features */
.features-section {
  padding: 6rem 0;
  position: relative;
}

.features-section .diagonal-lines {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(var(--primary-rgb), 0.03) 10px,
    rgba(var(--primary-rgb), 0.03) 11px
  );
}

.features-section .container {
  position: relative;
}

.features-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  position: relative;
  padding: 2rem;
  border: 1px solid var(--border);
  background: var(--card);
  transition: border-color 0.2s;
}

.feature-card:hover {
  border-color: rgba(var(--primary-rgb), 0.5);
}

.feature-card .idx {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 3.75rem;
  font-weight: 700;
  color: var(--border);
  line-height: 1;
  transition: color 0.2s;
  pointer-events: none;
}

.feature-card:hover .idx {
  color: rgba(var(--primary-rgb), 0.1);
}

.feature-card .corner-tl,
.feature-card .corner-br {
  position: absolute;
  width: 1rem;
  height: 1rem;
  opacity: 0;
  transition: opacity 0.2s;
}

.feature-card:hover .corner-tl,
.feature-card:hover .corner-br {
  opacity: 1;
}

.feature-card .corner-tl {
  top: 0;
  left: 0;
  border-top: 1px solid rgba(var(--primary-rgb), 0.5);
  border-left: 1px solid rgba(var(--primary-rgb), 0.5);
}

.feature-card .corner-br {
  bottom: 0;
  right: 0;
  border-bottom: 1px solid rgba(var(--primary-rgb), 0.5);
  border-right: 1px solid rgba(var(--primary-rgb), 0.5);
}

.feature-icon-wrap {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(var(--primary-rgb), 0.3);
  background: rgba(var(--primary-rgb), 0.05);
  margin-bottom: 1.5rem;
  transition: background 0.2s;
}

.feature-card:hover .feature-icon-wrap {
  background: rgba(var(--primary-rgb), 0.1);
}

.feature-icon-wrap svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--accent-secondary);
}

.feature-card h3 {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
}

.feature-card p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

.features-footer-deco {
  margin-top: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.features-footer-deco::before,
.features-footer-deco::after {
  content: "";
  width: 6rem;
  height: 1px;
}

.features-footer-deco::before {
  background: linear-gradient(90deg, transparent, rgba(var(--primary-rgb), 0.5));
}

.features-footer-deco::after {
  background: linear-gradient(270deg, transparent, rgba(var(--primary-rgb), 0.5));
}

.features-footer-deco .dot {
  width: 0.5rem;
  height: 0.5rem;
  background: var(--primary);
  animation: pulse-dot 1.5s ease-in-out infinite;
}

/* Crypto */
.crypto-section {
  padding: 5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.crypto-bg {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30L30 0z' fill='%23e8e8e8' fill-opacity='0.3'/%3E%3C/svg%3E");
  background-size: 60px 60px;
}

.crypto-section .container {
  position: relative;
}

.crypto-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

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

.crypto-terminal {
  border: 1px solid var(--border);
  background: var(--card);
}

.crypto-terminal .bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(26, 26, 26, 0.3);
}

.crypto-terminal .bar .dot {
  width: 0.5rem;
  height: 0.5rem;
  background: var(--primary);
}

.crypto-terminal .bar span {
  font-size: 10px;
  color: var(--muted-foreground);
}

.crypto-terminal .body {
  padding: 1.5rem;
  font-size: 0.875rem;
}

.crypto-terminal .body .line {
  margin-bottom: 0.5rem;
}

.crypto-terminal .json-block {
  margin-top: 1rem;
  padding-left: 1rem;
  color: var(--primary);
  font-size: 0.8125rem;
  white-space: pre-wrap;
}

.crypto-info .tag {
  display: inline-flex;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(var(--primary-rgb), 0.3);
  background: rgba(var(--primary-rgb), 0.05);
  margin-bottom: 1.5rem;
  font-size: 0.75rem;
  color: var(--primary);
}

.crypto-info h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.crypto-info .lead {
  margin: 0 0 2rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

.crypto-icons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

@media (min-width: 480px) {
  .crypto-icons {
    grid-template-columns: repeat(5, 1fr);
  }
}

.crypto-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--border);
  background: var(--card);
  transition: border-color 0.2s;
}

.crypto-item:hover {
  border-color: rgba(var(--primary-rgb), 0.5);
}

.crypto-item .coin-img {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.crypto-item .coin-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.crypto-item .lbl {
  font-size: 10px;
  color: var(--muted-foreground);
  transition: color 0.2s;
}

.crypto-item:hover .lbl {
  color: var(--foreground);
}

.crypto-note {
  margin-top: 2rem;
  padding: 1rem;
  border: 1px dashed var(--border);
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.crypto-note .gt {
  color: var(--primary);
}

/* FAQ */
.faq-section {
  padding: 6rem 0;
}

.faq-list {
  max-width: 56rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.faq-item {
  border: 1px solid var(--border);
  background: var(--card);
  transition: border-color 0.2s, background 0.2s;
}

.faq-item.is-open {
  border-color: var(--primary);
  background: rgba(var(--primary-rgb), 0.05);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
  text-align: left;
}

.faq-q-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.faq-num {
  font-size: 0.75rem;
  color: var(--primary);
  flex-shrink: 0;
}

.faq-q-text {
  font-size: 0.875rem;
}

.faq-q svg {
  width: 1rem;
  height: 1rem;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item.is-open .faq-q svg {
  transform: rotate(180deg);
}

.faq-a {
  display: none;
  padding: 0 1.25rem 1.25rem;
}

.faq-item.is-open .faq-a {
  display: block;
}

.faq-a-inner {
  margin-left: 2.5rem;
  padding-left: 1rem;
  border-left: 1px solid rgba(var(--primary-rgb), 0.3);
}

.faq-a p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

.faq-contact {
  margin-top: 3rem;
  padding: 1.5rem;
  border: 1px dashed var(--border);
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.faq-contact .handle {
  color: var(--primary);
  cursor: pointer;
  border-bottom: 1px dashed transparent;
  transition: color 0.2s, border-color 0.2s;
}

.faq-contact .handle:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--card);
  position: relative;
}

.site-footer::before {
  content: "";
  display: block;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(var(--primary-rgb), 0.5), transparent);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  padding: 3rem 0;
  align-items: center;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  gap: 1.5rem;
  flex-wrap: wrap;
}

@media (max-width: 767px) {
  .footer-links {
    justify-content: flex-start;
  }
}

.footer-links a {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-bottom p {
  margin: 0;
  font-size: 10px;
  color: var(--muted-foreground);
}

.footer-ascii {
  margin-top: 2rem;
  text-align: center;
  display: none;
}

@media (min-width: 1024px) {
  .footer-ascii {
    display: block;
  }
}

.footer-ascii pre {
  margin: 0;
  font-size: 6px;
  line-height: 1;
  color: rgba(var(--primary-rgb), 0.2);
  overflow-x: auto;
}

.config-block--full {
  grid-column: 1 / -1;
}

.config-fields {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .config-fields {
    grid-template-columns: 1fr 1fr;
  }
}

.config-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  background: var(--background);
  color: var(--foreground);
  font-family: inherit;
  font-size: 0.8125rem;
  transition: border-color 0.2s;
}

.config-input:focus {
  outline: none;
  border-color: rgba(var(--primary-rgb), 0.5);
}

.config-input::placeholder {
  color: var(--muted-foreground);
}

.config-hint {
  margin: 0.5rem 0 0;
  font-size: 0.6875rem;
  color: var(--muted-foreground);
  line-height: 1.5;
}

.config-pay-error {
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
  color: var(--destructive);
  line-height: 1.4;
}

.btn-pay:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 0 4rem;
}

.success-card {
  max-width: 36rem;
  margin: 0 auto;
  padding: 2rem;
  border: 1px solid var(--border);
  background: var(--card);
  text-align: center;
}

.success-tag {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.75rem;
  color: var(--primary);
}

.success-card h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: clamp(1.5rem, 4vw, 2rem);
}

.success-lead {
  margin: 0 0 1rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  font-size: 0.875rem;
}

.success-order {
  margin: 0 0 1.5rem;
  font-size: 0.8125rem;
  color: var(--primary);
}

.success-telegram {
  width: 100%;
  margin-bottom: 1rem;
}

.success-note {
  margin: 0 0 1.5rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  line-height: 1.5;
}

.success-back {
  width: 100%;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: #000;
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
}

::-webkit-scrollbar-thumb:hover {
  background: #ffffff;
}
