@import url("https://fonts.googleapis.com/css2?family=Syne:wght@400;700;800&family=DM+Mono:wght@300;400;500&display=swap");

:root {
  --bg: #080c12;
  --surface: #0f1520;
  --border: #1a2535;
  --border2: #243045;
  --blue: #3b82f6;
  --blue-light: #60a5fa;
  --blue-glow: rgba(59, 130, 246, 0.15);
  --ice: #bfdbfe;
  --text: #dce8f8;
  --muted: #4a6080;
  --muted2: #1e2d40;
  --red: #f87171;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "DM Mono", monospace;
  min-height: 100vh;
  overflow-x: hidden;
}

/* noise overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  background-size: 200px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.65;
}

/* ── CORNER MARKS ── */
.corner {
  position: fixed;
  width: 16px;
  height: 16px;
  z-index: 20;
  pointer-events: none;
}
.corner::before,
.corner::after {
  content: "";
  position: absolute;
  background: var(--border2);
}
.corner::before {
  width: 100%;
  height: 1px;
  top: 0;
  left: 0;
}
.corner::after {
  width: 1px;
  height: 100%;
  top: 0;
  left: 0;
}
.corner.tl {
  top: 20px;
  left: 20px;
}
.corner.tr {
  top: 20px;
  right: 20px;
  transform: scaleX(-1);
}
.corner.bl {
  bottom: 20px;
  left: 20px;
  transform: scaleY(-1);
}
.corner.br {
  bottom: 20px;
  right: 20px;
  transform: scale(-1);
}

/* ── CLOCK ── */
.clock-strip {
  position: fixed;
  bottom: 32px;
  right: 40px;
  z-index: 20;
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  color: var(--muted2);
  text-align: right;
  line-height: 1.9;
}
#clock {
  color: var(--muted);
}

/* ════════════════════════════
   HERO / COVER
════════════════════════════ */
.hero {
  position: relative;
  width: 100%;
  height: 88vh;
  min-height: 520px;
  overflow: hidden;
  z-index: 1;
}

/* profile photo — full bleed background */
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  /* shift focus slightly right so face isn't dead-center */
  filter: grayscale(25%) contrast(1.05) brightness(0.85);
  transform: scale(1.2);
  animation: heroZoom 18s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from {
    transform: scale(0.98);
  }
  to {
    transform: scale(1.15);
  }
}

/* dark gradient — bottom heavy so text is readable */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(8, 12, 18, 0.35) 0%,
      rgba(8, 12, 18, 0.15) 35%,
      rgba(8, 12, 18, 0.75) 72%,
      rgba(8, 12, 18, 1) 100%
    ),
    linear-gradient(to right, rgba(8, 12, 18, 0.5) 0%, transparent 60%);
}

/* subtle blue tint from top */
.hero-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 60% at 30% 0%,
    rgba(59, 130, 246, 0.18) 0%,
    transparent 70%
  );
}

/* content sits at bottom-left */
.hero-content {
  position: absolute;
  bottom: 52px;
  left: 0;
  right: 0;
  padding: 0 48px;
  z-index: 2;
}

.eyebrow {
  font-size: 0.62rem;
  font-weight: 300;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 14px;
  opacity: 0;
  animation: up 0.6s 0.1s ease forwards;
}

.domain-name {
  font-family: "Syne", sans-serif;
  font-weight: 500;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: #fff;
  display: block;
  margin-bottom: 24px;
  opacity: 0;
  animation: up 0.7s 0.2s ease forwards;
}

.domain-name .tld {
  color: var(--blue-light);
  text-shadow: 0 0 40px rgba(96, 165, 250, 0.45);
}

.meta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  opacity: 0;
  animation: up 0.6s 0.35s ease forwards;
}

.meta-item {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.45);
}

.meta-item a {
  color: var(--ice);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 1px;
  transition:
    color 0.2s,
    border-color 0.2s;
}
.meta-item a:hover {
  color: var(--blue-light);
  border-color: var(--blue-light);
}

.meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.unstable {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 4px 10px;
  text-transform: uppercase;
}
.unstable strong {
  color: var(--red);
  font-weight: 400;
}

/* ════════════════════════════
   MAIN CONTENT
════════════════════════════ */
.container {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 72px 40px 120px;
}

/* ── SECTION LABEL ── */
.section-label {
  font-size: 0.58rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border2), transparent);
}

/* ── SITES GRID ── */
.sites-section {
  margin-bottom: 72px;
  opacity: 0;
  animation: up 0.7s 0.5s ease forwards;
}

.sites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 10px;
}

.site-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  overflow: hidden;
  transition:
    border-color 0.22s,
    background 0.22s,
    transform 0.22s;
}

.site-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--blue);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.25s ease;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.7);
}

.site-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--blue-glow);
  opacity: 0;
  transition: opacity 0.25s;
}

.site-card:hover {
  border-color: var(--blue);
  background: #0d1828;
  transform: translateX(4px);
}
.site-card:hover::before {
  transform: scaleY(1);
}
.site-card:hover::after {
  opacity: 1;
}

.site-card-left {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-status {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 6px var(--blue);
  animation: pulse 2.8s ease-in-out infinite;
  flex-shrink: 0;
}

.site-card-name {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: -0.01em;
  transition: color 0.2s;
  position: relative;
  z-index: 1;
}
.site-card-name span {
  color: var(--muted);
  font-weight: 400;
}
.site-card:hover .site-card-name {
  color: var(--blue-light);
}

.site-card-arrow {
  font-size: 0.75rem;
  color: var(--muted);
  transition:
    color 0.2s,
    transform 0.2s;
  position: relative;
  z-index: 1;
}
.site-card:hover .site-card-arrow {
  color: var(--blue-light);
  transform: translate(3px, -3px);
}

/* ── SOCIAL ── */
.social-section {
  opacity: 0;
  animation: up 0.7s 0.7s ease forwards;
}

.social-links {
  display: flex;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid var(--border);
  margin-right: -1px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.66rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition:
    color 0.2s,
    border-color 0.2s,
    background 0.2s;
  position: relative;
  z-index: 0;
}
.social-link:hover {
  color: var(--blue-light);
  border-color: var(--blue);
  background: rgba(59, 130, 246, 0.07);
  z-index: 1;
}
.social-link i {
  font-size: 1rem;
}

/* ── ANIMATIONS ── */
@keyframes up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.25;
  }
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .hero-content {
    padding: 0 24px;
    bottom: 36px;
  }
  .container {
    padding: 48px 24px 100px;
  }
  .sites-grid {
    grid-template-columns: 1fr;
  }
  .social-links {
    flex-direction: column;
  }
  .social-link {
    margin-right: 0;
    margin-bottom: -1px;
  }
  .clock-strip {
    right: 24px;
    bottom: 20px;
  }
}
