/*
  Arkh's Media Portal
  - Modern two-column hero
  - Service status dashboard cards
  - Responsive request workflow section
*/

:root {
  --bg: #060d18;
  --bg-soft: #0b1627;
  --panel: #111d32;
  --panel-2: #162742;
  --text: #ebf1fb;
  --muted: #9daec7;
  --accent: #35d2be;
  --accent-2: #5ba2ff;
  --border: rgba(157, 174, 199, 0.24);
  --shadow: 0 16px 38px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Manrope", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
  background:
    radial-gradient(circle at 5% 20%, rgba(91, 162, 255, 0.2), transparent 42%),
    radial-gradient(circle at 88% 0%, rgba(53, 210, 190, 0.16), transparent 36%),
    linear-gradient(160deg, #07101d 0%, var(--bg) 52%, #040910 100%);
}

.container {
  width: min(1160px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 12;
  border-bottom: 1px solid rgba(157, 174, 199, 0.2);
  background: rgba(6, 13, 24, 0.82);
  backdrop-filter: blur(10px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
}

.site-title {
  color: var(--text);
  text-decoration: none;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--text);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.18;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.55rem, 2.1vw, 2.1rem);
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 700;
  font-size: 0.74rem;
}

.hero {
  padding: 3rem 0 2.4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: 2rem;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.8rem);
  max-width: 15ch;
}

.hero-lead {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.55vw, 1.12rem);
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
}

.hero-meta li {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.72rem 0.78rem;
  color: #c4d3e7;
  font-size: 0.86rem;
  background: rgba(17, 29, 50, 0.42);
}

.hero-media {
  margin: 0;
  border-radius: 20px;
  border: 1px solid rgba(157, 174, 199, 0.22);
  overflow: hidden;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.38);
  min-height: 420px;
  position: relative;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 20%, rgba(6, 13, 24, 0.28) 100%),
    linear-gradient(120deg, rgba(53, 210, 190, 0.12) 0%, transparent 36%);
}

.hero-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(0.86) contrast(1.04) brightness(0.86);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 42px;
  padding: 0.62rem 1rem;
  border-radius: 12px;
  border: 1px solid #45618a;
  color: var(--text);
  background: transparent;
  text-decoration: none;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  border-color: #6b9fd8;
  background: rgba(91, 162, 255, 0.14);
}

.btn-primary {
  border-color: rgba(53, 210, 190, 0.62);
  background: linear-gradient(180deg, rgba(53, 210, 190, 0.3), rgba(53, 210, 190, 0.14));
}

.btn-primary:hover,
.btn-primary:focus-visible {
  border-color: rgba(53, 210, 190, 0.82);
  background: linear-gradient(180deg, rgba(53, 210, 190, 0.38), rgba(53, 210, 190, 0.18));
}

.btn-ghost {
  border-color: rgba(157, 174, 199, 0.38);
}

.services {
  padding: 1.9rem 0 4.4rem;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.section-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(17, 29, 50, 0.9), rgba(14, 25, 42, 0.92));
  box-shadow: var(--shadow);
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 0.72rem;
  padding: 1.2rem;
}

.service-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.service-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.service-title-wrap h3 {
  font-size: 1.1rem;
}

.service-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  font-size: 0.76rem;
  font-weight: 800;
}

.service-mark-plex {
  background: rgba(253, 230, 138, 0.22);
  color: #f4dc83;
}

.service-mark-audio {
  background: rgba(53, 210, 190, 0.2);
  color: #7ce3d5;
}

.service-mark-ebook {
  background: rgba(91, 162, 255, 0.22);
  color: #8dc0ff;
}

.service-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.service-btn {
  margin-top: auto;
  width: 100%;
}

.service-btn-label {
  margin-right: auto;
}

.service-btn-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.5rem;
  padding: 0.14rem 0.56rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.service-btn-status.unknown {
  color: #b3c0d3;
  background: rgba(157, 174, 199, 0.12);
}

.service-btn-status.checking {
  color: #f7df8a;
  border-color: rgba(253, 230, 138, 0.45);
  background: rgba(253, 230, 138, 0.12);
}

.service-btn-status.online {
  color: #80f0dd;
  border-color: rgba(53, 210, 190, 0.55);
  background: rgba(53, 210, 190, 0.14);
}

.service-btn-status.offline {
  color: #ff9f98;
  border-color: rgba(255, 159, 152, 0.55);
  background: rgba(255, 159, 152, 0.14);
}

.service-btn.is-online {
  border-color: rgba(53, 210, 190, 0.65);
}

.service-btn.is-offline {
  border-color: rgba(255, 159, 152, 0.65);
}

.service-btn.is-checking {
  border-color: rgba(253, 230, 138, 0.65);
}

.service-status-detail {
  min-height: 1.4rem;
  margin: 0;
  color: #bdcce0;
  font-size: 0.84rem;
}

.requests {
  padding: 0 0 4.5rem;
}

.requests-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.requests-intro {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(11, 22, 39, 0.82), rgba(10, 18, 32, 0.88));
  box-shadow: var(--shadow);
  padding: 1.4rem;
}

.requests-copy {
  margin: 0.85rem 0 0;
  color: var(--muted);
}

.requests-points {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: #c8d7ea;
}

.requests-points li + li {
  margin-top: 0.45rem;
}

.request-form {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(18, 34, 57, 0.9), rgba(15, 28, 46, 0.94));
  box-shadow: var(--shadow);
  padding: 1.35rem;
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field {
  margin-bottom: 0.98rem;
}

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.92rem;
  font-weight: 700;
}

.field input,
.field select {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(157, 174, 199, 0.42);
  padding: 0.65rem 0.78rem;
  background: rgba(7, 14, 25, 0.72);
  color: var(--text);
  font: inherit;
}

.field input:focus-visible,
.field select:focus-visible {
  outline: 2px solid rgba(91, 162, 255, 0.42);
  outline-offset: 1px;
  border-color: rgba(91, 162, 255, 0.65);
}

.form-submit {
  min-width: 164px;
}

.form-status {
  margin: 0.74rem 0 0;
  min-height: 1.4rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.form-status.success {
  color: #80f0dd;
}

.form-status.error {
  color: #ff9f98;
}

.btn:disabled {
  opacity: 0.64;
  cursor: not-allowed;
  transform: none;
}

.site-footer {
  border-top: 1px solid rgba(157, 174, 199, 0.24);
  color: var(--muted);
  padding: 1.55rem 0 1.8rem;
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 980px) {
  .hero {
    padding-top: 2.2rem;
  }

  .hero-grid,
  .requests-layout {
    grid-template-columns: 1fr;
  }

  .hero-media {
    min-height: 320px;
  }

  .hero-meta {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(1120px, 94%);
  }

  .nav-wrap {
    flex-direction: row;
    align-items: center;
    gap: 0.6rem;
  }

  .nav-list {
    gap: 0.75rem;
  }

  .nav-list a {
    font-size: 0.84rem;
  }

  .hero-copy h1 {
    font-size: clamp(1.85rem, 9vw, 2.45rem);
  }

  .hero-media {
    min-height: 250px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 0.9rem;
  }

  .request-form,
  .requests-intro,
  .service-card {
    padding: 1rem;
  }

  .service-card-head {
    align-items: flex-start;
    flex-direction: column;
  }
}
