@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;900&display=swap');

:root {
  --bg: #FAFAF7;
  --ink: #111111;
  --accent: #E63B2E;
  --gray: #9A9A94;
  --hairline: rgba(17, 17, 17, 0.12);
}

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

body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: 'Archivo', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--ink);
  text-decoration: none;
  position: relative;
  transition: color 150ms ease;
}

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

.nav-link, .cta-link {
  display: inline-block;
}

.nav-link::after, .cta-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--ink);
  transition: width 150ms ease, background-color 150ms ease;
}

.nav-link:hover::after, .cta-link:hover::after {
  width: 100%;
  background-color: var(--accent);
}

/* Layout System */
.container {
  max-width: 1440px;
  margin: 0 auto;
  border-left: 1px solid var(--hairline);
  border-right: 1px solid var(--hairline);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
}

.row {
  border-bottom: 1px solid var(--hairline);
}

.col {
  border-right: 1px solid var(--hairline);
  padding: 2rem;
}

.col:last-child {
  border-right: none;
}

/* Header & Nav */
.header-row {
  border-bottom: 1px solid var(--hairline);
}
.logo-col {
  grid-column: span 3;
  display: flex;
  align-items: center;
}
.nav-col {
  grid-column: span 9;
  display: flex;
  gap: 3rem;
  align-items: center;
  justify-content: flex-end;
}

/* Logo */
.cat-logo {
  width: 50px;
  height: 50px;
  display: block;
}
.cat-line {
  fill: none;
  stroke: var(--ink);
  stroke-width: 3px;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.cat-eye {
  fill: var(--accent);
  animation: blink 4s infinite;
}

@keyframes blink {
  0%, 96%, 100% { opacity: 1; }
  98% { opacity: 0; }
}

/* Typography */
h1, h2, h3 {
  font-weight: 900;
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.hero-h1 {
  grid-column: span 12;
  font-size: clamp(48px, 9vw, 120px);
  margin-bottom: 2rem;
}

.hero-intro {
  grid-column: span 6;
  font-size: 1.5rem;
  line-height: 1.4;
}

.caption {
  font-size: 0.85rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
  display: block;
}

/* Manifesto */
.manifesto-col {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
}
.manifesto-num {
  font-weight: 900;
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: var(--accent);
  line-height: 1;
}

/* Server Table */
.server-container {
  grid-column: span 12;
  padding: 0;
}
.server-row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--hairline);
  transition: background-color 150ms ease, color 150ms ease;
  cursor: default;
}
.server-row:last-child {
  border-bottom: none;
}
.server-row:hover {
  background-color: var(--ink);
  color: var(--bg);
}
.server-row:hover .caption {
  color: var(--bg);
  opacity: 0.7;
}

.s-region { grid-column: span 4; font-weight: 900; font-size: 1.25rem; }
.s-latency { grid-column: span 4; }
.s-status { grid-column: span 4; text-align: right; }

.header-row-tbl {
  padding: 1rem 2rem;
}
.header-row-tbl .s-region, .header-row-tbl .s-latency, .header-row-tbl .s-status {
  font-weight: 400;
}

/* Pricing */
.pricing-col {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
}
.price {
  font-size: 5rem;
  font-weight: 900;
  margin: 2rem 0;
  line-height: 0.9;
}
.price span {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--gray);
}
.price-details {
  list-style: none;
  margin-bottom: 4rem;
  flex-grow: 1;
}
.price-details li {
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 0.5rem;
}

.btn-cta {
  display: inline-block;
  padding: 1.25rem 2rem;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-weight: 900;
  text-transform: uppercase;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
  align-self: flex-start;
}
.btn-cta:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

/* Resources & Footer */
.resource-col {
  grid-column: span 12;
  font-size: 1.5rem;
}

.footer-col {
  grid-column: span 3;
}
.footer-col a {
  display: block;
  margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .manifesto-col, .pricing-col {
    grid-column: span 12;
    border-right: none;
    border-bottom: 1px solid var(--hairline);
  }
  .manifesto-col:last-child, .pricing-col:last-child {
    border-bottom: none;
  }
  .hero-intro { grid-column: span 12; }
  .logo-col, .nav-col {
    grid-column: span 12;
    border-right: none;
  }
  .logo-col { border-bottom: 1px solid var(--hairline); }
  .nav-col { justify-content: flex-start; flex-wrap: wrap; gap: 1.5rem; }
  .footer-col {
    grid-column: span 6;
    border-bottom: 1px solid var(--hairline);
  }
  .footer-col:nth-child(even) { border-right: none; }
  .footer-col:nth-child(n+3) { border-bottom: none; }
}

@media (max-width: 600px) {
  .col { padding: 1.5rem 1rem; }
  .server-row { padding: 1.25rem 1rem; }
  .s-region { grid-column: span 8; }
  .s-latency { display: none; }
  .s-status { grid-column: span 4; }
  .footer-col { grid-column: span 12; border-right: none; border-bottom: 1px solid var(--hairline) !important; }
  .footer-col:last-child { border-bottom: none !important; }
}

.floating-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--bg);
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 0.75rem 1.25rem;
  font-weight: 900;
  z-index: 9999;
  text-transform: uppercase;
  transition: all 150ms ease;
  font-size: 0.85rem;
}

.floating-btn:hover {
  background-color: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

