/* ============================================================
   AS212424 — ViaRézo · Network Operator Stylesheet
   Aesthetic: Dark terminal, cyan accents, monospace precision
   ============================================================ */

/* --- Variables --- */
:root {
  --bg:           #080c10;
  --bg-alt:       #0c1118;
  --bg-card:      #0f1620;
  --bg-card-hov:  #141e2a;
  --border:       #1c2d3f;
  --border-bright:#1e4060;

  --cyan:         #00d4ff;
  --cyan-dim:     #0099bb;
  --cyan-glow:    rgba(0, 212, 255, 0.12);
  --green:        #00ff88;
  --green-dim:    #00bb66;
  --amber:        #ffb300;
  --red:          #ff4444;

  --text:         #c8dae8;
  --text-dim:     #6a8099;
  --text-bright:  #e8f4ff;
  --text-mono:    #a0c8e0;

  --mono:         'Share Tech Mono', 'Courier New', monospace;
  --sans:         'Exo 2', 'Segoe UI', sans-serif;

  --radius:       4px;
  --radius-lg:    8px;
  --nav-h:        56px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color .2s;
}
a:hover { color: var(--text-bright); }

code {
  font-family: var(--mono);
  color: var(--cyan);
  background: rgba(0, 212, 255, 0.07);
  padding: .1em .35em;
  border-radius: var(--radius);
  font-size: .9em;
}

/* --- Scan line overlay --- */
.scan-line {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0,0,0,.08) 3px,
    rgba(0,0,0,.08) 4px
  );
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: rgba(8, 12, 16, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  color: var(--text-bright);
  font-family: var(--mono);
  font-size: .95rem;
  letter-spacing: .05em;
}
.nav-brand:hover { color: var(--cyan); }
.nav-logo { height: 26px; width: auto; filter: brightness(0) invert(1); opacity: .85; }
.nav-asn { font-family: var(--mono); font-weight: 700; color: var(--cyan); font-size: 1rem; }

.nav-links {
  display: flex;
  list-style: none;
  gap: .25rem;
}
.nav-links a {
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--text-dim);
  padding: .4rem .8rem;
  border-radius: var(--radius);
  letter-spacing: .05em;
  text-transform: uppercase;
  transition: color .2s, background .2s;
}
.nav-links a:hover {
  color: var(--cyan);
  background: var(--cyan-glow);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 2rem) 1.5rem 4rem;
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, .04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green-dim);
  border: 1px solid rgba(0, 255, 136, .2);
  border-radius: 100px;
  padding: .3rem .9rem;
  margin-bottom: 1.8rem;
}
.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .4; }
}

.hero-asn-big {
  font-family: var(--mono);
  font-size: clamp(3rem, 10vw, 6.5rem);
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: -.02em;
  line-height: 1;
  text-shadow: 0 0 60px rgba(0, 212, 255, .35);
  margin-bottom: .5rem;
}

.hero-name {
  font-family: var(--sans);
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: .4rem;
}

.hero-org {
  font-size: .95rem;
  color: var(--text-dim);
  margin-bottom: 2.5rem;
  font-style: italic;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  justify-content: center;
  margin-bottom: 2.2rem;
}

.stat-pill {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: .4rem 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .82rem;
}
.stat-label {
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.stat-value {
  color: var(--text-bright);
  font-weight: 600;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  justify-content: center;
}
.ext-link {
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--cyan-dim);
  border: 1px solid var(--border-bright);
  padding: .35rem .85rem;
  border-radius: var(--radius);
  transition: background .2s, color .2s, border-color .2s;
}
.ext-link:hover {
  background: var(--cyan-glow);
  color: var(--cyan);
  border-color: var(--cyan);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  color: var(--text-dim);
  font-size: 1.2rem;
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* --- Sections --- */
.section { padding: 5rem 1.5rem; }
.section-alt { background: var(--bg-alt); }

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--mono);
  font-size: 1.3rem;
  color: var(--text-bright);
  margin-bottom: 2.5rem;
  letter-spacing: .02em;
}
.title-prefix {
  color: var(--cyan);
  margin-right: .4rem;
}

.section-subtitle {
  color: var(--text-dim);
  margin-bottom: 2rem;
  font-size: .95rem;
}

/* --- Info Grid --- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.2rem;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  transition: border-color .2s, background .2s;
}
.info-card:hover {
  border-color: var(--border-bright);
  background: var(--bg-card-hov);
}

.info-card-header {
  font-family: var(--mono);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--cyan-dim);
  margin-bottom: 1rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--border);
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}
.info-table tr + tr td,
.info-table tr + tr th { border-top: 1px solid var(--border); }
.info-table th {
  color: var(--text-dim);
  font-weight: 400;
  text-align: left;
  padding: .45rem .4rem .45rem 0;
  white-space: nowrap;
  width: 45%;
  font-family: var(--mono);
  font-size: .8rem;
}
.info-table td {
  padding: .45rem 0;
  color: var(--text-bright);
}

.status-ok {
  display: inline-block;
  background: rgba(0, 255, 136, .1);
  color: var(--green);
  border: 1px solid rgba(0, 255, 136, .25);
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: .75rem;
  padding: .1em .45em;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.proto-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: .8rem;
}
.proto-tag {
  background: rgba(0, 212, 255, .08);
  border: 1px solid rgba(0, 212, 255, .2);
  color: var(--cyan);
  font-family: var(--mono);
  font-size: .78rem;
  padding: .2em .7em;
  border-radius: 100px;
}
.proto-note {
  font-size: .82rem;
  color: var(--text-dim);
  margin-top: .5rem;
}

/* --- Prefixes --- */
.prefix-columns {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.prefix-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
}

.prefix-block-header {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-bottom: 1.1rem;
}

.ip-badge {
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  padding: .2em .7em;
  border-radius: var(--radius);
}
.ip-v4 { background: rgba(0, 212, 136, .1); color: var(--green); border: 1px solid rgba(0, 255, 136, .25); }
.ip-v6 { background: rgba(0, 255, 136, .1);  color: var(--green); border: 1px solid rgba(0, 255, 136, .25); }

.prefix-count {
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--text-dim);
}

.prefix-list {
  list-style: none;
}
.prefix-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .6rem 0;
  border-bottom: 1px solid var(--border);
}
.prefix-list li:last-child { border-bottom: none; }

.prefix-cidr {
  font-size: .95rem;
}
.prefix-link {
  color: var(--text-dim);
  font-size: .85rem;
  transition: color .2s;
}
.prefix-link:hover { color: var(--cyan); }

.prefix-note {
  font-size: .85rem;
  color: var(--text-dim);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: .9rem 1.2rem;
  border-left: 3px solid var(--cyan-dim);
}

/* --- Peering --- */
.peering-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.5rem;
  align-items: start;
}

.peering-policy-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
}

.policy-headline {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: 1rem;
}
.policy-icon {
  color: var(--cyan);
  font-size: 1.4rem;
  line-height: 1;
}
.policy-label {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-bright);
}

.peering-policy-card p {
  color: var(--text-dim);
  font-size: .9rem;
  margin-bottom: 1.3rem;
}
.peering-policy-card strong { color: var(--text-bright); }

.policy-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.policy-table tr + tr td,
.policy-table tr + tr th { border-top: 1px solid var(--border); }
.policy-table th {
  color: var(--text-dim); font-weight: 400;
  text-align: left; padding: .45rem .4rem .45rem 0;
  font-family: var(--mono); font-size: .8rem; width: 50%;
}
.policy-table td { padding: .45rem 0; color: var(--text-bright); }

.peering-resources {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
}

.resource-list {
  list-style: none;
  margin-top: .2rem;
}
.resource-list li { padding: .5rem 0; border-bottom: 1px solid var(--border); }
.resource-list li:last-child { border-bottom: none; }
.resource-list a {
  font-size: .88rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: .5rem;
  transition: color .2s;
}
.resource-list a:hover { color: var(--cyan); }
.res-icon { color: var(--cyan-dim); font-size: .8rem; }

.tag-open {
  display: inline-block;
  background: rgba(0, 212, 255, .1);
  color: var(--cyan);
  border: 1px solid rgba(0, 212, 255, .25);
  font-family: var(--mono);
  font-size: .75rem;
  padding: .1em .5em;
  border-radius: var(--radius);
  text-transform: uppercase;
  letter-spacing: .07em;
}

.tag-no {
  display: inline-block;
  background: rgba(255, 180, 0, .08);
  color: var(--amber);
  border: 1px solid rgba(255, 180, 0, .2);
  font-family: var(--mono);
  font-size: .75rem;
  padding: .1em .5em;
  border-radius: var(--radius);
}

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  transition: border-color .2s, background .2s;
}
.contact-card:hover {
  border-color: var(--border-bright);
  background: var(--bg-card-hov);
}

.contact-role {
  font-family: var(--mono);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--cyan-dim);
  margin-bottom: .6rem;
}

.contact-email {
  font-family: var(--mono);
  font-size: .9rem;
  color: var(--cyan);
  word-break: break-all;
  display: block;
  margin-bottom: .6rem;
}

.contact-desc {
  font-size: .83rem;
  color: var(--text-dim);
}

.placeholder-note {
  background: rgba(255, 180, 0, .06);
  border: 1px solid rgba(255, 180, 0, .2);
  border-radius: var(--radius-lg);
  padding: .9rem 1.2rem;
  font-size: .84rem;
  color: var(--amber);
}
.placeholder-note code {
  background: rgba(255, 180, 0, .1);
  color: var(--amber);
}

/* --- Footer --- */
.site-footer {
  background: #050810;
  border-top: 1px solid var(--border);
  padding: 1.8rem 1.5rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: .8rem;
}

.footer-logo {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: .5;
}

.footer-asn {
  font-family: var(--mono);
  font-size: .9rem;
  color: var(--cyan-dim);
  font-weight: 700;
}

.footer-org {
  font-size: .78rem;
  color: var(--text-dim);
}

.footer-right {
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
}
.footer-right a { color: var(--text-dim); }
.footer-right a:hover { color: var(--cyan); }
.footer-sep { color: var(--border-bright); }

/* --- Responsive --- */
@media (max-width: 768px) {
  .peering-layout {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .hero-asn-big {
    font-size: clamp(2.5rem, 15vw, 4rem);
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .footer-right {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-stats { gap: .4rem; }
  .stat-pill { font-size: .75rem; padding: .3rem .7rem; }
}
