@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #0a1220;
  --bg-alt: #0e1b2e;
  --surface: #121f36;
  --surface-2: #17263f;
  --border: #223252;
  --text: #e8edf6;
  --text-dim: #8b97ae;
  --accent: #22d3a6;
  --accent-dim: #1a7a5f;
  --info: #6c94f2;
  --danger: #ff6b7a;
  --mono: 'JetBrains Mono', 'Consolas', monospace;
  --sans: 'Manrope', -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 900px 500px at 50% -10%, rgba(34, 211, 166, 0.10), transparent),
    radial-gradient(ellipse 700px 400px at 90% 20%, rgba(108, 148, 242, 0.08), transparent);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.5;
  min-height: 100vh;
}

a { color: var(--accent); }

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- Header ---- */
header.top {
  padding: 28px 0 0;
}
.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.brand .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
.brand small {
  color: var(--text-dim);
  font-weight: 500;
  font-size: 13px;
}
nav.top-nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  margin-left: 22px;
}
nav.top-nav a:hover { color: var(--text); }

/* ---- Hero ---- */
.hero { text-align: center; padding: 56px 0 8px; }
.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(34, 211, 166, 0.08);
  border: 1px solid rgba(34, 211, 166, 0.25);
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 22px;
}
h1 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}
h1 span { color: var(--accent); }
.hero p.sub {
  color: var(--text-dim);
  font-size: 16px;
  max-width: 480px;
  margin: 0 auto;
}

/* ---- SIM-card shaped checker (signature element) ---- */
.sim-card {
  position: relative;
  margin: 40px auto 0;
  max-width: 560px;
  background: linear-gradient(155deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 34px 32px 30px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.55);
}
/* notch corner, like a physical SIM card */
.sim-card::before {
  content: '';
  position: absolute;
  top: -1px; right: -1px;
  width: 46px; height: 46px;
  background: var(--bg);
  border-left: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: 0 22px 0 22px;
}
.sim-contacts {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 3px;
  width: 80px;
  height: 34px;
  margin-bottom: 22px;
}
.sim-contacts span {
  background: linear-gradient(180deg, #3a4d6e, #253a58);
  border-radius: 2px;
}

label.field-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.imei-input-row { display: flex; gap: 10px; }

input#imeiInput {
  flex: 1;
  background: var(--bg-alt);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 20px;
  letter-spacing: 0.06em;
  padding: 15px 16px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input#imeiInput::placeholder { color: #4a5b7a; letter-spacing: 0.06em; }
input#imeiInput:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(34, 211, 166, 0.12);
}

button#checkBtn {
  background: var(--accent);
  color: #06251c;
  border: none;
  border-radius: 12px;
  padding: 0 26px;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.1s, background 0.15s;
}
button#checkBtn:hover { background: #34e4b6; }
button#checkBtn:active { transform: scale(0.97); }
button#checkBtn:disabled { opacity: 0.6; cursor: default; }

.hint-row {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--text-dim);
}
.hint-row a { color: var(--info); text-decoration: none; cursor: pointer; }

/* ---- Result card ---- */
#resultArea { margin-top: 18px; }

.result-card {
  border-radius: 16px;
  padding: 22px 24px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  animation: rise 0.25s ease;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.result-status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 16px;
}
.result-status .badge {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}
.badge.ok { background: rgba(34,211,166,0.18); color: var(--accent); }
.badge.warn { background: rgba(255,183,77,0.18); color: #ffb74d; }
.badge.bad { background: rgba(255,107,122,0.18); color: var(--danger); }

.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 20px;
}
.spec-grid .spec { border-top: 1px solid var(--border); padding-top: 10px; }
.spec .k {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-dim); font-weight: 700; margin-bottom: 3px;
}
.spec .v { font-size: 15px; font-weight: 600; }
.spec .v.mono { font-family: var(--mono); }

.result-error {
  color: var(--danger);
  font-size: 14px;
  font-weight: 600;
}

/* ---- Info sections below fold ---- */
.info-section { padding: 60px 0 10px; }
.info-section h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.info-section p, .info-section li {
  color: var(--text-dim);
  font-size: 14.5px;
}
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}
.info-grid .card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
}
.info-grid .card h3 {
  font-size: 14.5px;
  margin: 0 0 6px;
  color: var(--text);
}
.info-grid .card p { margin: 0; font-size: 13.5px; }

.stats-strip {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 44px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-strip .stat { text-align: center; }
.stats-strip .stat .num {
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
}
.stats-strip .stat .lbl {
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

footer {
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
  padding: 50px 0 40px;
}
footer a { color: var(--text-dim); text-decoration: underline; }

@media (max-width: 600px) {
  h1 { font-size: 30px; }
  .imei-input-row { flex-direction: column; }
  button#checkBtn { padding: 14px; }
  .info-grid { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: 1fr; }
  nav.top-nav a { margin-left: 14px; font-size: 13px; }
}
