:root {
  --bg: #1b2838;
  --panel: #16202d;
  --accent: #1b75d0;
  --accent-soft: #66c0f4;
  --text: #c7d5e0;
  --muted: #8f98a0;
  --border: rgba(255,255,255,0.06);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, sans-serif;
  background: radial-gradient(circle at top, rgba(27,117,208,0.14), transparent 35%), var(--bg);
  color: var(--text);
}

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 22px 16px 42px;
}

.section {
  background: rgba(22,32,45,0.96);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: 0 14px 34px rgba(0,0,0,0.18);
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
  align-items: stretch;
}

h1 { font-size: 30px; margin: 0 0 8px; }
h2 { font-size: 18px; margin: 0 0 10px; }
h3 { font-size: 15px; margin: 0 0 8px; }

p {
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 10px;
  font-size: 14px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.chip {
  font-size: 12px;
  padding: 4px 8px;
  background: rgba(27,117,208,0.16);
  border-radius: 6px;
  color: #d8ecff;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.mini-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 14px;
}

.mini-card p,
.mini-card li {
  font-size: 14px;
  color: var(--muted);
}

.flow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}

.flow span {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.05);
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 13px;
}

.arrow {
  color: var(--accent-soft);
  border: none !important;
  background: transparent !important;
  padding: 0 2px !important;
  font-size: 15px !important;
}

.note {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(27,117,208,0.10);
  border: 1px solid rgba(102,192,244,0.12);
  color: #d8ecff;
  font-size: 13px;
  line-height: 1.6;
}

.note.warn {
  background: rgba(255,179,71,0.08);
  border-color: rgba(255,179,71,0.16);
  color: #ffe7bf;
}

.list {
  padding-left: 18px;
  margin: 8px 0 0;
}

.list li {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 14px;
}

.label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  margin-right: 8px;
  vertical-align: middle;
}

.ok { background: rgba(126,231,135,0.15); color: #baf7c1; }
.warn-tag { background: rgba(255,179,71,0.15); color: #ffd9a0; }

.mode-switch {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.mode-btn {
  background: transparent;
  border: none;
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  border-radius: 30px;
  transition: all 0.2s;
}

.mode-btn.active {
  background: rgba(27,117,208,0.2);
  color: var(--accent-soft);
}

.mode-btn:hover:not(.active) {
  color: var(--text);
  background: rgba(255,255,255,0.05);
}

.mode-panel { display: none; }
.mode-panel.active-panel { display: block; }

.steps {
  display: grid;
  gap: 12px;
}

.step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
}

.step-num {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: white;
  font-weight: 800;
  font-size: 14px;
}

.step p { margin-bottom: 0; }

.fade { animation: fadeUp 0.45s ease both; }
.delay-1 { animation-delay: 0.05s; }
.delay-2 { animation-delay: 0.12s; }
.delay-3 { animation-delay: 0.18s; }
.delay-4 { animation-delay: 0.24s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.ddns-link,
.ultramarine-link {
  color: #4169E1;
  text-decoration: underline;
}

.ddns-link:hover,
.ultramarine-link:hover {
  text-decoration: none;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7);
  font-family: sans-serif;
}

.modal-content {
  background-color: var(--panel);
  margin: 10% auto;
  padding: 20px;
  border: 1px solid var(--border);
  width: 90%;
  max-width: 600px;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  color: var(--text);
}

.modal-content h2,
.modal-content h3,
.modal-content a {
  color: var(--accent-soft);
}

.close {
  color: var(--muted);
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

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

@media (max-width: 900px) {
  .hero,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}
