@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css');

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

:root {
  --bg:      #080c14;
  --bg2:     #0e1420;
  --bg3:     #141c2e;
  --bg4:     #1a2540;
  --border:  rgba(255,255,255,0.07);
  --border2: rgba(255,255,255,0.12);
  --text1:   #f0f4ff;
  --text2:   #8896b0;
  --text3:   #4a5568;
  --blue:    #3b82f6;
  --cyan:    #06b6d4;
  --green:   #10b981;
  --red:     #ef4444;
  --amber:   #f59e0b;
  --blue-glow: rgba(59,130,246,0.15);
  --cyan-glow: rgba(6,182,212,0.12);
  --radius:    10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Pretendard', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text1);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { text-decoration: none; color: inherit; }

/* ── NAV ── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8,12,20,0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 32px; height: 56px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 16px; font-weight: 800; color: var(--text1); letter-spacing: -0.03em;
}
.nav-logo-icon {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.nav-links { display: flex; gap: 2px; }
.nav-links a {
  font-size: 13px; color: var(--text2);
  padding: 6px 12px; border-radius: 8px; transition: all 0.15s;
}
.nav-links a:hover { background: var(--bg3); color: var(--text1); }
.nav-links a.active { color: var(--blue); background: var(--blue-glow); }

/* ── LAYOUT ── */
.container { max-width: 1000px; margin: 0 auto; padding: 0 32px; }
.container-sm { max-width: 720px; margin: 0 auto; padding: 0 32px; }

/* ── CARDS ── */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.card-sm { padding: 16px 20px; }
.card-title {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text3); margin-bottom: 16px;
}

/* ── IP DISPLAY ── */
.ip-big {
  font-size: 42px; font-weight: 900; letter-spacing: -0.03em;
  color: var(--text1); font-variant-numeric: tabular-nums;
  line-height: 1;
}
.ip-big span { color: var(--blue); }

/* ── INFO TABLE ── */
.info-table { width: 100%; }
.info-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 0; border-bottom: 1px solid var(--border);
}
.info-row:last-child { border-bottom: none; }
.info-key { font-size: 12px; color: var(--text3); font-weight: 500; }
.info-val { font-size: 13px; color: var(--text1); font-weight: 600; text-align: right; }
.info-val.mono { font-family: 'Courier New', monospace; font-size: 12px; color: var(--cyan); }

/* ── STAT CARDS ── */
.stat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.stat-card { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px 20px; }
.stat-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text3); margin-bottom: 8px; }
.stat-value { font-size: 28px; font-weight: 800; color: var(--text1); line-height: 1; }
.stat-unit { font-size: 13px; font-weight: 500; color: var(--text2); margin-left: 3px; }
.stat-sub { font-size: 11px; color: var(--text3); margin-top: 5px; }
.stat-card.blue { border-top: 2px solid var(--blue); }
.stat-card.cyan { border-top: 2px solid var(--cyan); }
.stat-card.green { border-top: 2px solid var(--green); }

/* ── SPEED GAUGE ── */
.gauge-wrap { display: flex; flex-direction: column; align-items: center; }
.gauge-svg { width: 220px; height: 130px; }
.gauge-value { font-size: 52px; font-weight: 900; color: var(--text1); line-height: 1; margin-top: -8px; text-align: center; }
.gauge-unit { font-size: 16px; color: var(--text2); font-weight: 500; }
.gauge-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text3); margin-top: 6px; }

/* ── SPEED RESULT ROW ── */
.speed-results { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-top: 24px; }
.speed-result-card { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; text-align: center; }
.speed-result-icon { font-size: 20px; margin-bottom: 8px; }
.speed-result-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text3); margin-bottom: 6px; }
.speed-result-val { font-size: 32px; font-weight: 900; color: var(--text1); line-height: 1; }
.speed-result-unit { font-size: 13px; color: var(--text2); }
.speed-result-bar { height: 3px; background: var(--border); border-radius: 2px; margin-top: 10px; overflow: hidden; }
.speed-result-fill { height: 100%; border-radius: 2px; transition: width 1s ease; }

/* ── SEARCH ── */
.search-wrap { display: flex; gap: 10px; margin-bottom: 24px; }
.search-input {
  flex: 1; background: var(--bg3); border: 1px solid var(--border2);
  border-radius: var(--radius-lg); padding: 12px 18px;
  font-size: 15px; font-family: inherit; color: var(--text1); outline: none;
  transition: border-color 0.15s;
}
.search-input::placeholder { color: var(--text3); }
.search-input:focus { border-color: var(--blue); }
.search-btn {
  background: var(--blue); color: #fff; border: none;
  border-radius: var(--radius-lg); padding: 12px 24px;
  font-size: 14px; font-weight: 700; font-family: inherit;
  cursor: pointer; transition: opacity 0.15s; white-space: nowrap;
}
.search-btn:hover { opacity: 0.85; }

/* ── BADGES ── */
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 100px; font-size: 11px; font-weight: 700; }
.badge-blue { background: var(--blue-glow); color: var(--blue); border: 1px solid rgba(59,130,246,0.3); }
.badge-green { background: rgba(16,185,129,0.12); color: var(--green); border: 1px solid rgba(16,185,129,0.25); }
.badge-red { background: rgba(239,68,68,0.12); color: var(--red); border: 1px solid rgba(239,68,68,0.25); }
.badge-amber { background: rgba(245,158,11,0.12); color: var(--amber); border: 1px solid rgba(245,158,11,0.25); }

/* ── TOOL CARDS ── */
.tool-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.tool-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px; display: block;
  transition: border-color 0.2s, background 0.2s;
}
.tool-card:hover { border-color: var(--blue); background: var(--bg3); }
.tool-card-icon { font-size: 28px; margin-bottom: 12px; }
.tool-card-name { font-size: 16px; font-weight: 800; color: var(--text1); margin-bottom: 5px; letter-spacing: -0.02em; }
.tool-card-desc { font-size: 13px; color: var(--text2); line-height: 1.6; }
.tool-card-arrow { font-size: 12px; color: var(--blue); margin-top: 14px; display: block; font-weight: 600; }

/* ── MAP PIN ── */
.location-dot { display: inline-block; width: 8px; height: 8px; background: var(--green); border-radius: 50%; margin-right: 6px; box-shadow: 0 0 0 3px rgba(16,185,129,0.2); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{box-shadow:0 0 0 3px rgba(16,185,129,0.2)} 50%{box-shadow:0 0 0 6px rgba(16,185,129,0.1)} }

/* ── LOADING SPINNER ── */
.spinner { width: 20px; height: 20px; border: 2px solid var(--border2); border-top-color: var(--blue); border-radius: 50%; animation: spin 0.7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── AD ── */
.ad-slot { background: var(--bg2); border: 1px dashed var(--border2); border-radius: var(--radius); padding: 14px; text-align: center; margin: 24px 0; }
.ad-slot p { font-size: 11px; color: var(--text3); }

/* ── FOOTER ── */
.footer { border-top: 1px solid var(--border); padding: 24px 32px; display: flex; align-items: center; justify-content: space-between; margin-top: 64px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 12px; color: var(--text3); }
.footer-links a:hover { color: var(--text2); }
.footer-copy { font-size: 12px; color: var(--text3); }

/* ── GLOW EFFECTS ── */
.glow-blue { box-shadow: 0 0 32px rgba(59,130,246,0.08); }
.glow-cyan { box-shadow: 0 0 32px rgba(6,182,212,0.08); }

@media (max-width: 768px) {
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .speed-results { grid-template-columns: 1fr; }
  .tool-grid { grid-template-columns: 1fr; }
  .container, .container-sm { padding: 0 16px; }
  .nav { padding: 0 16px; }
  .ip-big { font-size: 28px; }
}
