:root {
  --bg: #07090d;
  --surface: #0e141b;
  --surface-2: #121c25;
  --line: rgba(255, 255, 255, 0.1);
  --text: #eef4f8;
  --muted: #93a4b2;
  --cyan: #3dd9ff;
  --green: #4ade80;
  --amber: #f8c15a;
  --danger: #ff5b6b;
  --radius: 8px;
  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
}

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

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

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: 72px;
  border-bottom: 1px solid transparent;
  background: rgba(7, 9, 13, 0.66);
  backdrop-filter: blur(18px);
}

.site-header.scrolled {
  border-color: var(--line);
  background: rgba(7, 9, 13, 0.9);
}

.header-layout {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background:
    linear-gradient(135deg, rgba(61, 217, 255, 0.9), rgba(74, 222, 128, 0.9)),
    var(--cyan);
  box-shadow: 0 0 28px rgba(61, 217, 255, 0.25);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 7px 6px;
  border-top: 3px solid #081017;
  border-bottom: 3px solid #081017;
}

.nav-links {
  display: flex;
  gap: 26px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--green));
  color: #061016;
}

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.btn-glass {
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.btn-large {
  min-height: 48px;
  padding: 0 22px;
  font-size: 15px;
}

.btn-block { width: 100%; }

.hero {
  min-height: 760px;
  position: relative;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(7, 9, 13, 0.98) 0%, rgba(7, 9, 13, 0.82) 34%, rgba(7, 9, 13, 0.16) 72%),
    linear-gradient(0deg, var(--bg) 0%, rgba(7, 9, 13, 0) 22%, rgba(7, 9, 13, 0.22) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 96px;
}

.eyebrow {
  color: var(--green);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin: 0 0 16px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  width: min(690px, 100%);
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1;
  letter-spacing: 0;
  margin-bottom: 22px;
}

h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
  margin-bottom: 16px;
}

h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.hero-copy {
  width: min(570px, 100%);
  color: #c5d2dc;
  font-size: 19px;
  line-height: 1.65;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.status-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(18, 28, 37, 0.9);
}

.status-layout {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.status-layout p {
  margin: 0;
  color: #c9d5de;
  flex: 1;
}

.status-layout a {
  color: var(--cyan);
  font-weight: 700;
  white-space: nowrap;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 20px rgba(74, 222, 128, 0.75);
}

.section {
  padding: 110px 0;
}

.section-heading {
  width: min(700px, 100%);
  margin-bottom: 44px;
}

.section-heading p:last-child,
.split-layout p,
.contact-layout p,
.feature-card p,
.ticket-box p,
.doc-content p,
.doc-content li {
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.feature-card,
.ticket-box,
.room-panel,
.doc-panel,
.uptime-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
}

.feature-card {
  min-height: 250px;
  padding: 24px;
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  border: 1px solid rgba(61, 217, 255, 0.28);
  border-radius: 8px;
  color: var(--cyan);
  background: rgba(61, 217, 255, 0.08);
  font-size: 24px;
}

.split-section {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.split-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
  gap: 56px;
  align-items: center;
}

.room-panel {
  padding: 18px;
}

.room-row {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  color: #cbd8e1;
}

.room-row:last-child { border-bottom: 0; }

.room-row strong {
  color: var(--green);
  font-size: 13px;
}

.room-row.active {
  border-radius: 6px;
  background: rgba(61, 217, 255, 0.08);
  color: var(--text);
}

.contact-section { padding-top: 90px; }

.ticket-box {
  padding: 28px;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 42px 0;
  background: #05070a;
}

.footer-layout {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.footer p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.doc-hero {
  padding: 140px 0 42px;
  background: radial-gradient(circle at top right, rgba(61, 217, 255, 0.14), transparent 34%);
}

.doc-hero h1 {
  overflow-wrap: anywhere;
}

.doc-content {
  padding: 44px 0 90px;
}

.doc-panel {
  padding: 34px;
}

.doc-panel h2 {
  font-size: 24px;
  margin-top: 32px;
}

.doc-panel h2:first-child { margin-top: 0; }

.doc-panel ul { padding-left: 22px; }

.uptime-panel {
  padding: 34px;
}

.uptime-value {
  font-size: clamp(54px, 12vw, 104px);
  line-height: 1;
  color: var(--green);
  font-weight: 800;
  margin: 20px 0;
}

.status-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.status-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
}

.status-pill {
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.modal-overlay.active { display: block; }

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 90;
  width: min(440px, calc(100% - 32px));
  transform: translate(-50%, -48%);
  display: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.5);
}

.modal.active {
  display: block;
  transform: translate(-50%, -50%);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.modal-header h3 { margin: 0; }

.modal-close {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
}

.modal-body {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.modal-body label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.modal-body input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #070b10;
  color: var(--text);
  padding: 0 12px;
  font: inherit;
}

.modal-body input:focus {
  outline: 2px solid rgba(61, 217, 255, 0.35);
  border-color: rgba(61, 217, 255, 0.5);
}

.form-message {
  margin: 0;
  padding: 12px;
  border-radius: 6px;
  font-size: 14px;
}

.error-message {
  color: #ffd2d8;
  background: rgba(255, 91, 107, 0.1);
  border: 1px solid rgba(255, 91, 107, 0.28);
}

.success-message {
  color: #d4ffe1;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.28);
}

.btn-loader {
  display: none;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid rgba(6, 16, 22, 0.26);
  border-top-color: #061016;
  animation: spin 800ms linear infinite;
}

.btn-submit.loading .btn-text { display: none; }
.btn-submit.loading .btn-loader { display: block; }

@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 980px) {
  .nav-links { display: none; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .container { width: min(100% - 28px, 1160px); }
  .site-header { height: 66px; }
  .header-actions .btn-ghost { display: none; }
  .brand { font-size: 15px; }
  .hero {
    min-height: 720px;
    align-items: end;
  }
  .hero-media img {
    object-position: 58% center;
  }
  .hero-shade {
    background:
      linear-gradient(0deg, rgba(7, 9, 13, 0.98) 0%, rgba(7, 9, 13, 0.78) 48%, rgba(7, 9, 13, 0.26) 100%);
  }
  .hero-content {
    padding: 0 0 52px;
  }
  .hero-copy {
    font-size: 16px;
  }
  .hero-actions,
  .status-layout,
  .footer-layout,
  .footer-links {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn { width: 100%; }
  .status-layout {
    padding: 18px 0;
    gap: 10px;
  }
  .section { padding: 74px 0; }
  .doc-hero h1 {
    font-size: clamp(34px, 10vw, 46px);
  }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: auto; }
  .status-item {
    align-items: flex-start;
    flex-direction: column;
  }
}
