/* =========================================================
   VARIABLES
   ========================================================= */
:root {
  --bg: #090b0f;
  --bg-soft: rgba(20, 24, 31, 0.45);
  --bg-hover: rgba(28, 33, 42, 0.55);

  --border: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.14);
  --border-tag: #292f38;

  --text: #e7eaf0;
  --text-muted: #969faa;
  --text-faint: #7f8895;
  --text-dim: #697280;

  --accent: #4da3ff;
  --accent-2: #b26bff;
  --success: #66d68a;

  --content-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

/* =========================================================
   NAVIGATION
   ========================================================= */
nav {
  width: calc(100% - 40px);
  max-width: var(--content-width);
  height: 72px;
  margin: 20px auto 0;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--bg-soft);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.logo {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.4px;
  white-space: nowrap;
}

.logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  color: var(--text-muted);
  font-size: 14px;
}

.nav-links a {
  position: relative;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-links a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  width: 100%;
  max-width: var(--content-width);
  min-height: auto;
  margin: 0 auto;
  padding: 72px 30px 70px;
  display: flex;
  align-items: center;
  position: relative;
}

/* Gradienty celowo position: fixed — mają "pływać" względem viewportu,
   nie przewijać się razem z sekcją .hero. */
.hero::before {
  content: "";
  position: fixed;
  width: 100vw;
  height: 520px;
  left: 50%;
  transform: translateX(-50%);
  top: -120px;
  background: radial-gradient(
    ellipse at 75% 40%,
    rgba(20, 150, 255, 0.22) 0%,
    rgba(20, 150, 255, 0.16) 30%,
    transparent 70%
  );
  pointer-events: none;
  z-index: -1;
}

.hero::after {
  content: "";
  position: fixed;
  width: 100vw;
  height: 520px;
  left: 50%;
  transform: translateX(-50%);
  bottom: -160px;
  background: radial-gradient(
    ellipse at 20% 65%,
    rgba(178, 107, 255, 0.18) 0%,
    rgba(178, 107, 255, 0.12) 30%,
    transparent 70%
  );
  pointer-events: none;
  z-index: -1;
}

.hero-content {
  width: 100%;
  max-width: 800px;
  position: relative;
  z-index: 1;
}

/* =========================================================
   HERO TYPOGRAPHY
   ========================================================= */
.eyebrow {
  margin-bottom: 20px;
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.7px;
}

h1 {
  margin: 0 0 26px;
  font-size: clamp(52px, 7vw, 88px);
  line-height: 0.94;
  letter-spacing: -4px;
  font-weight: 750;
}

h1 span {
  color: var(--text-dim);
}

.description {
  max-width: 650px;
  margin-bottom: 32px;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.65;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.button.primary:hover {
  background: #ffffff;
}

.button.secondary {
  background: var(--bg-soft);
  color: var(--text);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.button.secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* =========================================================
   STATUS
   ========================================================= */
.status {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 30px 70px;
}

.status-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 9px;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.status-item {
  min-height: 82px;
  padding: 20px 22px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.status-item:last-child {
  border-right: none;
}

.status-label {
  margin-bottom: 4px;
  color: var(--text-dim);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.4px;
}

.status-value {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.online {
  color: var(--success);
}

.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  background: var(--success);
  border-radius: 50%;
  vertical-align: middle;
  box-shadow: 0 0 0 3px rgba(102, 214, 138, 0.08);
}

/* =========================================================
   SECTIONS
   ========================================================= */
.section {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 80px 30px;
}

.section-label {
  margin-bottom: 12px;
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.6px;
}

.section h2 {
  margin-bottom: 18px;
  color: var(--text);
  font-size: clamp(34px, 4vw, 44px);
  line-height: 1;
  letter-spacing: -2px;
  font-weight: 700;
}

.section-text {
  max-width: 700px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
}

/* =========================================================
   CARDS
   ========================================================= */
.cards {
  width: 100%;
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.card {
  min-width: 0;
  padding: 26px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 9px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--border-light);
  background: var(--bg-hover);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.card-icon {
  margin-bottom: 20px;
  color: var(--accent);
  font-size: 22px;
  line-height: 1;
}

.card h3 {
  margin-bottom: 9px;
  font-size: 18px;
  letter-spacing: -0.3px;
}

.card p {
  color: var(--text-faint);
  font-size: 13px;
  line-height: 1.7;
}

/* =========================================================
   TAGS
   ========================================================= */
.tags {
  margin-top: 18px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag {
  display: inline-block;
  padding: 4px 7px;
  border: 1px solid var(--border-tag);
  border-radius: 4px;
  color: var(--text-muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  line-height: 1.3;
}

/* =========================================================
   FOOTER
   ========================================================= */
footer {
  width: calc(100% - 40px);
  max-width: var(--content-width);
  margin: 30px auto 20px;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 34px 30px;
  color: var(--text-dim);
  font-size: 12px;
  background: var(--bg-soft);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.footer-inner {
  width: 100%;
  max-width: var(--content-width);
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* =========================================================
   SELECTION
   ========================================================= */
::selection {
  background: rgba(77, 163, 255, 0.25);
  color: #ffffff;
}

/* =========================================================
   MOBILE
   ========================================================= */
@media (max-width: 800px) {
  nav {
    height: 64px;
    padding: 0 20px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding: 60px 20px 55px;
  }

  .hero::before {
    width: 100vw;
    height: 350px;
    left: 50%;
    transform: translateX(-50%);
    top: -100px;
  }

  .hero::after {
    width: 100vw;
    height: 350px;
    left: 50%;
    transform: translateX(-50%);
    bottom: -110px;
  }

  h1 {
    font-size: clamp(48px, 14vw, 68px);
    letter-spacing: -3px;
  }

  .description {
    font-size: 16px;
    line-height: 1.6;
  }

  .status {
    padding: 0 20px 55px;
  }

  .status-box {
    grid-template-columns: 1fr;
  }

  .status-item {
    min-height: 78px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .status-item:last-child {
    border-bottom: none;
  }

  .section {
    padding: 65px 20px;
  }

  .section h2 {
    font-size: 35px;
    letter-spacing: -1.5px;
  }

  .section-text {
    font-size: 15px;
  }

  .cards {
    grid-template-columns: 1fr;
    margin-top: 32px;
    gap: 12px;
  }

  .card {
    padding: 23px;
  }

  .button {
    display: block;
    width: 100%;
    white-space: normal;
  }

  footer {
    padding: 30px 20px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* =========================================================
   SMALL PHONES
   ========================================================= */
@media (max-width: 480px) {
  .hero {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  h1 {
    font-size: 46px;
    letter-spacing: -2.5px;
  }

  .eyebrow {
    font-size: 10px;
  }

  .buttons {
    width: 100%;
  }
}
