:root {
  --bg:           #0e141d;
  --surface:      #171c26;
  --surface2:     #1f2735;
  --surface3:     #252e3f;
  --text:         #e2e8f0;
  --text-dim:     #94a3b8;
  --accent:       #3cbef2;
  --accent-dim:   #2a8ab5;
  --glow:         0 0 12px rgba(60,190,242,0.18);
  --shadow:       0 6px 16px rgba(0,0,0,0.5);
  --inset:        inset 0 1px 4px rgba(0,0,0,0.6);
  --border:       rgba(60,190,242,0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: clamp(15px, 2.1vw, 16px);
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100dvh;
  background: radial-gradient(circle at 50% 10%, #1e293b 0%, var(--bg) 70%);
}

.header {
  text-align: center;
  padding: clamp(3rem, 9vw, 6rem) 1rem 4rem;
}

.logo-wrapper {
  margin: 0 auto 1.8rem;
  width: 165px;
  height: 60px;
  filter: drop-shadow(0 4px 12px var(--glow));
}

.main-title {
  font-size: clamp(2.5rem, 7.5vw, 3.9rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #d1e0ff, var(--accent) 60%, #a5e9ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitle {
  margin-top: 0.9rem;
  font-size: 1.15rem;
  opacity: 0.85;
}

.hero-section,
.verification-section,
.mirrors-section,
.platform-info,
.security-guide,
.evolution-block,
.faq-section {
  max-width: 1080px;
  margin: 0 auto 5rem;
  padding: 0 1.2rem;
}

.hero-card,
.lens-card {
  background: var(--surface);
  border-radius: 14px;
  padding: clamp(1.8rem, 4.5vw, 2.8rem);
  border: 1px solid var(--border);
  box-shadow: var(--shadow), var(--inset);
  position: relative;
}

.hero-card::before,
.lens-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(60,190,242,0.05) 70%, transparent);
  pointer-events: none;
}

.hero-card h2,
.lens-card h2 {
  font-size: 2rem;
  margin-bottom: 1.1rem;
  color: var(--accent);
}

.section-intro,
.hero-warning {
  font-size: 1.05rem;
  opacity: 0.9;
  margin-bottom: 1.6rem;
}

.input-wrapper {
  display: flex;
  gap: 0.9rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

#linkInput {
  flex: 1;
  min-width: 240px;
  padding: 1rem 1.3rem;
  font-size: 1.03rem;
  font-family: ui-monospace, monospace;
  background: var(--surface2);
  border: 1px solid rgba(60,190,242,0.2);
  border-radius: 10px;
  color: var(--text);
  box-shadow: var(--inset);
}

#linkInput:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(60,190,242,0.2);
}

#verifyBtn {
  padding: 0 2rem;
  font-weight: 700;
  color: #0f1c2a;
  background: var(--accent);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.18s, transform 0.18s;
}

#verifyBtn:hover {
  background: #58ccff;
  transform: translateY(-1px);
}

.validation-result {
  min-height: 3.4rem;
  padding: 1rem 1.4rem;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.25s ease;
}

.validation-result.success {
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.35);
  color: #bbf7d0;
}

.validation-result.error {
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.35);
  color: #fecaca;
}

.mirrors-section h2 {
  text-align: center;
  font-size: 2.2rem;
  margin: 2.5rem 0 2rem;
  color: #cbd5e1;
}

.mirrors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.6rem;
}

.mirror-card {
  background: var(--surface2);
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow), var(--inset);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.mirror-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.55), var(--glow);
}

.card-face {
  padding: 1.6rem 1.8rem;
  position: relative;
}

.link-url {
  font-family: ui-monospace, monospace;
  font-size: 1.06rem;
  line-height: 1.45;
  color: var(--accent);
  word-break: break-all;
  margin-bottom: 0.9rem;
  cursor: pointer;
}

.link-latency {
  font-size: 0.88rem;
  opacity: 0.78;
  margin-bottom: 1.1rem;
}

.copy-btn {
  position: absolute;
  top: 1.3rem;
  right: 1.3rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(60,190,242,0.15);
  color: var(--accent);
  font-size: 1.15rem;
  cursor: pointer;
  transition: all 0.18s;
}

.copy-btn:hover {
  background: var(--accent);
  color: #0f1c2a;
  transform: scale(1.1);
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.4rem;
  color: #cbd5e1;
  text-align: center;
}

.feature-list,
.safety-steps {
  list-style: none;
  margin: 1.4rem 0;
  font-size: 1.04rem;
}

.feature-list li,
.safety-steps li {
  margin-bottom: 0.9rem;
  padding-left: 1.6rem;
  position: relative;
}

.feature-list li::before,
.safety-steps li::before {
  content: "→";
  color: var(--accent);
  position: absolute;
  left: 0;
}

.warning {
  color: #fca5a5;
  font-weight: 500;
  padding: 1.1rem;
  background: rgba(239,68,68,0.07);
  border: 1px solid rgba(239,68,68,0.28);
  border-radius: 10px;
  margin-top: 1.8rem;
}

.faq-section details {
  margin-bottom: 0.9rem;
  background: var(--surface2);
  border-radius: 10px;
  border: 1px solid var(--border);
}

.faq-section summary {
  padding: 1.1rem 1.6rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--surface3);
  transition: background 0.16s;
}

.faq-section summary:hover {
  background: rgba(60,190,242,0.07);
}

.faq-section p {
  padding: 0 1.6rem 1.3rem;
  opacity: 0.93;
}

.primary-link-box {
  margin-top: 1.8rem;
  padding: 1.3rem;
  background: var(--surface2);
  border-radius: 10px;
  border: 1px solid var(--border);
  text-align: center;
}

.primary-onion {
  font-family: ui-monospace, monospace;
  font-size: 1.25rem;
  color: var(--accent);
  word-break: break-all;
  display: block;
  margin: 0.9rem 0;
}

.primary-copy {
  position: static;
  width: auto;
  height: auto;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  font-size: 1rem;
}

footer {
  text-align: center;
  padding: 4rem 1rem 2.5rem;
  opacity: 0.75;
  font-size: 0.94rem;
  border-top: 1px solid rgba(60,190,242,0.08);
}

footer p {
  margin-bottom: 0.7rem;
}

@media (max-width: 680px) {
  .input-wrapper {
    flex-direction: column;
  }
  #verifyBtn {
    width: 100%;
    padding: 1rem;
  }
  .mirrors-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    transform: none !important;
  }
}