/* ===================================================================
   HELYX NAMES — Visual Style Sheet
   "Your identity on Genesis L1."
   Pure CSS · Modern Web3 Infrastructure Aesthetic
   =================================================================== */

:root {
  /* Color Palette */
  --bg-dark: #07080c;
  --bg-card: rgba(14, 17, 24, 0.82);
  --bg-card-hover: rgba(22, 27, 39, 0.9);
  --bg-surface: #0e1118;

  /* Borders & Dividers */
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(56, 189, 248, 0.35);

  /* Accents */
  --accent-cyan: #38bdf8;
  --accent-indigo: #6366f1;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;

  /* Typography */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #8d9cb0;

  /* Fonts */
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, Menlo, monospace;

  /* Spacing & Layout */
  --max-width: 1200px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Shadows & Glows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-card: 0 12px 32px -8px rgba(0, 0, 0, 0.6);
  --glow-cyan: 0 0 24px rgba(56, 189, 248, 0.15);
  --glow-card: 0 0 40px rgba(99, 102, 241, 0.08);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 30%, rgba(99, 102, 241, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 20% 70%, rgba(16, 185, 129, 0.04) 0%, transparent 40%);
  background-attachment: fixed;
}

/* Ambient Background Grid */
.ambient-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  z-index: 0;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* -------------------------------------------------------------------
   Header & Navigation
   ------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(7, 8, 12, 0.85);
  border-bottom: 1px solid var(--border-subtle);
  transition: border-color 0.2s ease;
}

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

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-icon {
  width: 36px;
  height: 36px;
  display: block;
  flex-shrink: 0;
  border-radius: 8px;
  box-shadow: var(--glow-cyan);
}

.brand-icon--small {
  width: 30px;
  height: 30px;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.25);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, #38bdf8 0%, #3b82f6 100%);
  color: #07080c;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4);
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
}

.btn-outline {
  background: rgba(14, 17, 24, 0.6);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  border-color: var(--border-hover);
  background: rgba(22, 27, 39, 0.8);
  color: var(--accent-cyan);
}

.btn-wallet {
  position: relative;
  overflow: hidden;
}

.btn-wallet .status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-amber);
  box-shadow: 0 0 8px var(--accent-amber);
}

.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  padding: 8px;
  cursor: pointer;
}

.mobile-toggle:focus-visible,
.nav-link:focus-visible,
.btn-wallet:focus-visible,
.btn-copy:focus-visible {
  outline: 2px solid var(--accent-amber);
  outline-offset: 3px;
}

/* -------------------------------------------------------------------
   Hero Section
   ------------------------------------------------------------------- */
.hero-section {
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
}

.hero-badge-wrap {
  display: inline-flex;
  margin-bottom: 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(14, 17, 24, 0.8);
  border: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
}

.hero-badge .pulse-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
}

.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: #ffffff;
}

.hero-title-highlight {
  background: linear-gradient(135deg, #ffffff 30%, #38bdf8 80%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  max-width: 640px;
  margin: 0 auto 40px;
  font-size: 1.12rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* -------------------------------------------------------------------
   Search Box Component
   ------------------------------------------------------------------- */
.search-container {
  max-width: 680px;
  margin: 0 auto 20px;
}

.search-helper {
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  line-height: 1.6;
}

.search-mode-hint {
  margin-top: 4px;
  font-weight: 600;
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 8px 10px 8px 20px;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.7);
  transition: all 0.25s ease;
}

.search-box:focus-within {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18), 0 20px 48px -10px rgba(0, 0, 0, 0.8);
}

.search-icon {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  margin-right: 12px;
  flex-shrink: 0;
}

.search-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-primary);
}

.search-input::placeholder {
  color: var(--text-muted);
  opacity: 1;
  font-weight: 400;
}

.tld-badge {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin: 0 12px;
  user-select: none;
  flex-shrink: 0;
}

#search-mode {
  color-scheme: dark;
  cursor: pointer;
  appearance: auto;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

#search-mode:not(:disabled):hover {
  border-color: var(--accent-cyan);
  background-color: rgba(56, 189, 248, 0.16);
}

#search-mode option {
  background: var(--bg-surface);
  color: var(--text-primary);
}

.search-box .search-input-wrap {
  min-width: 0;
}

.search-btn {
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
}

/* -------------------------------------------------------------------
   Search Result Area
   ------------------------------------------------------------------- */
.search-result-area {
  max-width: 720px;
  margin: 28px auto 0;
  transition: all 0.3s ease;
}

.search-result-area + .search-result-card {
  max-width: 720px;
  margin: 28px auto 0;
}

.search-result-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card), var(--glow-card);
  text-align: left;
  position: relative;
  overflow: hidden;
}

.search-result-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), var(--accent-indigo), transparent);
}

.search-result-area + .commitment-empty {
  padding: 16px 20px;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.commitment-empty::before { display: none; }
.commitment-empty .registration-actions { margin-top: 8px; }

.result-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.result-name {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.demo-disclaimer-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  font-size: 0.84rem;
}

.address-mappings {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}

#my-names-list { list-style: none; }
#my-names-list[hidden] { display: none; }
#my-names-list .result-name { overflow-wrap: anywhere; }

.address-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(7, 8, 12, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.address-type-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

.address-value-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.address-val {
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--text-primary);
  word-break: break-all;
}

.btn-copy {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 0.75rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-copy:hover {
  color: var(--accent-cyan);
  border-color: var(--border-hover);
  background: rgba(56, 189, 248, 0.08);
}

.btn-copy.copied {
  color: var(--accent-emerald);
  border-color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.1);
}

.result-card-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.result-meta-note {
  font-size: 0.8rem;
  color: var(--text-muted);
}

#primary-name-value[data-has-name] {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.registry-address {
  overflow-wrap: anywhere;
  min-width: 0;
}

.registration-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.set-address-controls [hidden] { display: none; }
.registration-secondary[hidden] { display: none; }
.set-address-form { display: grid; gap: 12px; margin-top: 12px; }
.registration-form {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}
.set-address-form label { display: grid; gap: 8px; }
.set-address-form input, .set-address-form select { border: 1px solid var(--border-hover); border-radius: var(--radius-md); padding: 12px; width: 100%; min-width: 0; }
.set-address-form select { background: var(--bg-surface); }
.registration-form select {
  width: fit-content;
  max-width: 100%;
  color-scheme: dark;
  background-color: var(--bg-surface);
  color: var(--text-primary);
  font: inherit;
}
.registration-form select option {
  background-color: var(--bg-surface);
  color: var(--text-primary);
}
.registration-price {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.set-address-form input:focus-visible, .set-address-form select:focus-visible { outline: 2px solid var(--accent-amber); outline-offset: 2px; }
.set-address-error { color: #fca5a5; }
.set-address-error:empty { display: none; }

.registration-countdown {
  margin: 12px 0;
  font-family: var(--font-mono);
  font-size: clamp(2rem, 6vw, 3rem);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  color: var(--accent-cyan);
}

.registration-countdown[hidden] { display: none; }

.registration-countdown ~ .result-meta-note {
  margin-bottom: 12px;
}

.registration-primary,
.registration-secondary,
.registration-destructive {
  min-height: 44px;
  padding: 12px 18px;
  font-family: inherit;
  font-weight: 600;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-md);
}

.registration-primary {
  background: var(--accent-cyan);
  color: var(--bg-dark);
  border-color: var(--accent-cyan);
}

.registration-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
}

.registration-secondary.name-action {
  min-height: 46px;
  padding: 12px 20px;
  background: var(--bg-card-hover);
  border-color: rgba(56, 189, 248, 0.55);
  color: var(--text-primary);
  transition: background-color 150ms ease, border-color 150ms ease;
}

.registration-secondary.name-action:hover:not(:disabled) {
  background: rgba(56, 189, 248, 0.09);
  border-color: var(--accent-cyan);
  filter: none;
}

.registration-secondary.name-action:focus-visible {
  outline: 2px solid var(--accent-amber);
  outline-offset: 3px;
}

.registration-secondary.name-action:active:not(:disabled) {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--accent-cyan);
}

.search-result-card > .address-mappings + .set-address-controls {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.search-result-card > .set-address-controls + .set-address-controls {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.search-result-card > .set-address-controls > .set-address-form {
  margin-top: 16px;
  padding-left: 16px;
  border-left: 1px solid var(--border-subtle);
}

.registration-destructive {
  background: var(--bg-surface);
  color: #fca5a5;
  border-color: #9f4545;
}

.registration-primary:hover,
.registration-secondary:hover,
.registration-destructive:hover {
  filter: brightness(1.15);
}

.registration-actions [hidden] {
  display: none;
}

.registration-primary:focus-visible,
.registration-secondary:focus-visible,
.registration-destructive:focus-visible {
  outline: 2px solid var(--accent-amber);
  outline-offset: 3px;
}

.registration-primary:disabled,
.registration-secondary:disabled,
.registration-destructive:disabled {
  opacity: 0.6;
  cursor: wait;
}

@media (max-width: 480px) {
  .registration-form select {
    width: 100%;
    min-height: 44px;
  }

  .registration-actions .btn { width: 100%; }
  .registration-secondary.name-action { width: 100%; }
  .search-result-card > .address-mappings + .set-address-controls { margin-top: 20px; padding-top: 16px; }
  .search-result-card > .set-address-controls + .set-address-controls { margin-top: 16px; padding-top: 16px; }
  .search-result-card > .set-address-controls > .set-address-form { padding-left: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .registration-primary, .registration-secondary, .registration-destructive { transition: none; }
  .registration-secondary.name-action { transition: none; }
}

/* -------------------------------------------------------------------
   How It Works Section
   ------------------------------------------------------------------- */
.section {
  padding: 90px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  margin-bottom: 10px;
  display: block;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  position: relative;
  transition: all 0.25s ease;
}

.step-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card);
}

.step-number {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.step-text {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.step-note {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* -------------------------------------------------------------------
   Features Grid Section
   ------------------------------------------------------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: all 0.25s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.feature-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  margin-bottom: 20px;
}

.feature-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.feature-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.feature-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* -------------------------------------------------------------------
   Interactive Architecture Callout
   ------------------------------------------------------------------- */
.architecture-callout {
  margin-top: 50px;
  background: linear-gradient(135deg, rgba(14, 17, 24, 0.95), rgba(22, 27, 39, 0.85));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px;
  align-items: center;
}

.arch-info h3 {
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.arch-info p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 16px;
}

.arch-visual-box {
  background: #07080c;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.arch-tree-line {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  color: var(--text-secondary);
}

.arch-tree-line .tag {
  color: var(--accent-cyan);
  font-weight: 600;
}

.arch-tree-line .val {
  color: #ffffff;
}

/* -------------------------------------------------------------------
   Modal Simulation
   ------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  max-width: 440px;
  width: 100%;
  padding: 32px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
  position: relative;
  transform: translateY(12px) scale(0.97);
  transition: all 0.25s ease;
}

.modal-overlay.active .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  display: flex;
  border-radius: var(--radius-sm);
}

.modal-close-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.modal-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.modal-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.wallet-options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wallet-option-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.wallet-option-item:hover {
  border-color: var(--border-hover);
  background: rgba(56, 189, 248, 0.04);
}

.wallet-network {
  max-width: 110px;
  color: var(--text-secondary);
  font-size: 0.75rem;
}

.wallet-network-warning {
  color: var(--accent-amber);
}

.wallet-status {
  margin: 16px 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
}

.transaction-status {
  padding: 10px 12px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
}

button.wallet-option-item {
  width: 100%;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  overflow-wrap: anywhere;
}

.wallet-option-item:disabled,
#wallet-switch:disabled {
  cursor: wait;
  opacity: 0.6;
}

#wallet-modal [hidden] {
  display: none;
}

.wallet-option-item:focus-visible,
#wallet-switch:focus-visible {
  outline: 2px solid var(--accent-amber);
  outline-offset: 3px;
}

/* -------------------------------------------------------------------
   Footer Section
   ------------------------------------------------------------------- */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  background: rgba(7, 8, 12, 0.95);
  padding: 60px 0 36px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-brand-col p {
  margin-top: 14px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  max-width: 320px;
  line-height: 1.6;
}

.footer-col-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.18s ease;
}

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

.about-content {
  max-width: 992px;
  padding-block: clamp(40px, 8vw, 88px);
}

.about-identity {
  display: grid;
  grid-template-columns: clamp(144px, 22vw, 232px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 56px);
}

.about-avatar {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

.about-content p {
  color: var(--text-secondary);
}

.about-identity .section-desc {
  margin-bottom: 16px;
  color: var(--text-primary);
}

.about-section {
  margin-top: clamp(36px, 6vw, 60px);
  padding-top: clamp(24px, 4vw, 40px);
  border-top: 1px solid var(--border-subtle);
}

.about-validator {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 8px 20px;
  margin-bottom: 20px;
}

.about-validator dt { color: var(--text-secondary); }
.about-validator dd { overflow-wrap: anywhere; }
.about-validator code { font-family: var(--font-mono); }

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

.about-initiatives { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.about-grid h3 { margin-bottom: 6px; }
.about-grid a { color: var(--accent-cyan); }

.about-socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}

.about-socials a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.about-socials a:hover {
  color: var(--accent-cyan);
}

.about-socials svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: currentColor;
}

.about-page .footer-bottom { padding-top: 0; }
.about-page a:focus-visible { outline: 2px solid var(--accent-amber); outline-offset: 4px; }

.licenses-list { display: grid; gap: 20px; list-style: none; }
.licenses-list h3 { margin-bottom: 4px; overflow-wrap: anywhere; }
.licenses-list a { color: var(--accent-cyan); text-decoration: underline; }

@media (max-width: 640px) {
  .about-identity, .about-grid, .about-validator { grid-template-columns: minmax(0, 1fr); }
  .about-avatar { width: min(100%, 160px); }
  .about-validator dd + dt { margin-top: 8px; }
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 32px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.dev-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

.dev-indicator .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-amber);
}

/* -------------------------------------------------------------------
   Responsive Media Queries
   ------------------------------------------------------------------- */
@media (max-width: 992px) {
  .steps-grid, .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .architecture-callout {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute;
    inset: 100% 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 16px 24px;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border-subtle);
  }

  .header-inner:has(.mobile-toggle[aria-expanded="true"]) .nav-links {
    display: flex;
  }

  .nav-link {
    display: block;
  }

  .mobile-toggle {
    display: flex;
  }

  .header-actions .btn-wallet {
    display: inline-flex;
    padding: 8px 10px;
    font-size: 0.75rem;
  }

  .header-actions {
    gap: 8px;
  }

  .wallet-network {
    max-width: 64px;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 480px) {
  .site-header > .container { padding-inline: 12px; }
  .brand-link { gap: 8px; }
  .brand-name { font-size: 1rem; }
  .brand-tag { display: none; }
  .header-actions {
    display: grid;
    grid-template-columns: auto auto;
    gap: 2px 8px;
  }
  .wallet-network {
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: none;
    text-align: center;
  }
  .wallet-network:empty { display: none; }
  .search-result-card { padding: 18px; }
  .architecture-callout { padding: 20px; }
  .arch-tree-line { flex-wrap: wrap; }
}

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

  .footer-top {
    grid-template-columns: 1fr;
  }

  .search-box {
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    gap: 12px;
  }

  .search-input-wrap {
    width: 100%;
  }

  .tld-badge {
    margin: 0;
    align-self: flex-start;
  }

  .search-btn {
    width: 100%;
  }
}

.about-validator-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
