/* ==========================================================================
   OnlyAlex — clean professional stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root{
  --bg:         #0f1115;
  --bg-alt:     #15181e;
  --surface:    #1a1e26;
  --border:     #262b35;
  --border-soft:#1e222b;
  --text:       #f1f2f4;
  --text-dim:   #9aa3b0;
  --text-faint: #656d7a;
  --accent:     #5b8def;
  --accent-2:   #35c98d;
  --danger:     #ef5b5b;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 16px;

  --container: 1080px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

a{ color: inherit; }
img{ max-width: 100%; display: block; }

:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------------------------------- Nav ---------------------------------- */
header.site{
  border-bottom: 1px solid var(--border-soft);
  background: rgba(15,17,21,0.85);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  max-width: var(--container);
  margin: 0 auto;
  gap: 20px;
}
.brand{
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  color: var(--text);
  letter-spacing: -0.01em;
}
.brand .dot{
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.navlinks{
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  font-size: 14.5px;
}
.navlinks a{
  text-decoration: none;
  color: var(--text-dim);
  padding: 8px 14px;
  border-radius: var(--radius-s);
  transition: color .15s ease, background .15s ease;
}
.navlinks a:hover{ color: var(--text); background: var(--surface); }
.navlinks a.active{ color: var(--text); background: var(--surface); font-weight: 600; }

@media (max-width: 720px){
  .nav{ flex-wrap: wrap; }
  .navlinks{ width: 100%; justify-content: flex-start; }
}

/* --------------------------------- Hero ---------------------------------- */
.hero{ padding: 96px 0 56px; }
.eyebrow{
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
h1{
  font-weight: 800;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  color: var(--text);
}
h1 em{
  font-style: normal;
  color: var(--accent);
}
.lede{
  max-width: 620px;
  font-size: 18px;
  color: var(--text-dim);
  margin: 0 0 36px;
}
.lede strong{ color: var(--text); font-weight: 600; }

/* -------------------------------- Buttons -------------------------------- */
.btnrow{ display: flex; gap: 12px; flex-wrap: wrap; }
.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-m);
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--surface);
  transition: border-color .15s ease, background .15s ease, transform .1s ease;
}
.btn:hover{ border-color: #3a4150; background: #1f242e; }
.btn:active{ transform: scale(0.98); }
.btn.primary{
  background: var(--accent);
  border-color: var(--accent);
  color: #0b0f18;
}
.btn.primary:hover{ background: #6f9bf3; border-color: #6f9bf3; }
.btn.green{
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: #06251a;
}
.btn.green:hover{ background: #4fdba0; border-color: #4fdba0; }

/* -------------------------------- Sections -------------------------------- */
section{ padding: 60px 0; border-top: 1px solid var(--border-soft); }
section:first-of-type{ border-top: none; }

.section-head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
h2{
  font-weight: 700;
  font-size: clamp(24px, 3.4vw, 32px);
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--text);
}
.tag{
  font-size: 13px;
  color: var(--text-faint);
  font-weight: 500;
}

/* ---------------------------------- Cards ---------------------------------- */
.grid{ display: grid; gap: 16px; }
.grid.cols-3{ grid-template-columns: repeat(3, 1fr); }
.grid.cols-2{ grid-template-columns: repeat(2, 1fr); }
@media (max-width: 800px){
  .grid.cols-3, .grid.cols-2{ grid-template-columns: 1fr; }
}

.card{
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 26px;
  background: var(--bg-alt);
  transition: border-color .15s ease, transform .15s ease;
}
.card:hover{ border-color: #333a48; transform: translateY(-2px); }
.card h3{
  font-weight: 700;
  font-size: 19px;
  margin: 0 0 10px;
  color: var(--text);
  letter-spacing: -0.005em;
}
.card p{ color: var(--text-dim); margin: 0; font-size: 15px; }
.card .num{
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
  display: block;
}

/* social link cards */
.social{
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  text-decoration: none;
  color: var(--text);
  background: var(--bg-alt);
  transition: border-color .15s ease, transform .15s ease;
}
.social:hover{ border-color: var(--accent); transform: translateY(-2px); }
.social .ico{
  width: 40px; height: 40px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-m);
  background: var(--surface);
  font-size: 17px;
}
.social .meta{ flex: 1; }
.social .plat{
  font-size: 12.5px;
  color: var(--text-faint);
  font-weight: 500;
}
.social .handle{ font-weight: 600; font-size: 15px; }
.social .go{ color: var(--text-faint); }

/* ------------------------------- Timeline -------------------------------- */
.timeline{ position: relative; padding-left: 28px; }
.timeline::before{
  content: "";
  position: absolute; left: 4px; top: 6px; bottom: 6px;
  width: 1px;
  background: var(--border);
}
.tl-item{ position: relative; padding-bottom: 38px; }
.tl-item:last-child{ padding-bottom: 0; }
.tl-item::before{
  content: "";
  position: absolute; left: -32px; top: 4px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
}
.tl-item .when{
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}
.tl-item h3{
  font-weight: 700;
  font-size: 20px;
  margin: 0 0 8px;
  color: var(--text);
}
.tl-item p{ color: var(--text-dim); margin: 0; max-width: 560px; }

/* -------------------------------- Status page ------------------------------ */
.statusbar{
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  padding: 14px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  margin-bottom: 36px;
  color: var(--text-dim);
  background: var(--bg-alt);
}
.pulse{
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 0 rgba(53,201,141,0.6);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}
@keyframes pulse{
  0%{ box-shadow: 0 0 0 0 rgba(53,201,141,0.5); }
  70%{ box-shadow: 0 0 0 8px rgba(53,201,141,0); }
  100%{ box-shadow: 0 0 0 0 rgba(53,201,141,0); }
}
.statusbar strong{ color: var(--accent-2); font-weight: 600; }

.capacity{
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 30px;
  margin-bottom: 44px;
  background: var(--bg-alt);
}
.capacity-top{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.capacity-num{
  font-size: 46px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.02em;
}
.capacity-num span{ color: var(--accent-2); }
.capacity-label{
  font-size: 13px;
  color: var(--text-faint);
  font-weight: 500;
}
.meter{
  height: 8px;
  background: var(--surface);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 24px;
}
.meter-fill{
  height: 100%;
  background: var(--accent-2);
  border-radius: 999px;
}

.plotgrid{
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}
@media (max-width: 640px){
  .plotgrid{ grid-template-columns: repeat(5, 1fr); }
}
.plot{
  aspect-ratio: 1;
  border-radius: var(--radius-s);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--text-faint);
  background: var(--surface);
}
.plot.free{ background: rgba(53,201,141,0.12); border-color: var(--accent-2); color: var(--accent-2); }
.plot.taken{ background: var(--surface); border-color: var(--border); }

.legend{
  display: flex;
  gap: 22px;
  font-size: 13px;
  color: var(--text-dim);
  flex-wrap: wrap;
}
.legend span{ display: flex; align-items: center; gap: 8px; }
.legend i{ width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.legend i.free{ background: rgba(53,201,141,0.25); border: 1px solid var(--accent-2); }
.legend i.taken{ background: var(--surface); border: 1px solid var(--border); }

.note{
  font-size: 14px;
  color: var(--text-dim);
  border-left: 2px solid var(--accent);
  padding: 12px 16px;
  background: var(--bg-alt);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  margin: 24px 0;
}
.note strong{ color: var(--text); }

/* --------------------------------- Footer --------------------- */
footer.site{
  border-top: 1px solid var(--border-soft);
  margin-top: 40px;
}
.footer-inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 36px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--text-faint);
}
.footer-links{ display: flex; gap: 20px; }
.footer-links a{ color: var(--text-dim); text-decoration: none; }
.footer-links a:hover{ color: var(--text); }
