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

:root {
  --bg: #050816;
  --surface: rgba(12, 18, 35, 0.86);
  --surface-soft: rgba(255, 255, 255, 0.035);
  --border: rgba(255, 255, 255, 0.08);
  --text: #ffffff;
  --muted: #9aa4b2;
  --green: #34d399;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --gradient: linear-gradient(135deg, #34d399 0%, #22d3ee 48%, #3b82f6 100%);
}

body {
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(52, 211, 153, 0.16), transparent 36%),
    radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.18), transparent 34%);
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.24;
  z-index: -1;
}

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

.container {
  width: min(1380px, calc(100% - 48px));
  margin: auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  background: rgba(5, 8, 22, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
  color: #03131f;
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.34);
}

.logo h1 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.logo p {
  color: var(--muted);
  font-size: 0.75rem;
  margin-top: 1px;
}

nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

nav a {
  color: #d1d5db;
  font-size: 14px;
  transition: 0.25s;
}

nav a:hover,
.back-link {
  color: var(--cyan);
}

.hero {
  padding: 58px 0 36px;
  display: grid;
  grid-template-columns: minmax(280px, 0.48fr) minmax(720px, 1.52fr);
  gap: 36px;
  align-items: start;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.25);
  background: rgba(34, 211, 238, 0.08);
  color: #9af7ef;
  margin-bottom: 16px;
  font-size: 0.83rem;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  70% { transform: scale(1.7); opacity: 0; }
  100% { transform: scale(1.7); opacity: 0; }
}

.hero h2 {
  font-size: clamp(2.1rem, 3.4vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -1px;
  font-weight: 900;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-description {
  margin-top: 16px;
  font-size: 14px;
  color: #c0c7d2;
  line-height: 1.7;
  max-width: 390px;
}

.hero-buttons,
.stats,
.deploy-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.btn {
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  transition: 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}

.btn-primary {
  background: var(--gradient);
  color: #03131f;
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(34, 211, 238, 0.42);
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: white;
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

.stats {
  gap: 18px;
  margin-top: 24px;
}

.stat-number {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--green);
}

.stat-text {
  color: var(--muted);
  margin-top: 4px;
  font-size: 0.85rem;
}

.mockup {
  position: relative;
}

.glow {
  position: absolute;
  inset: 0;
  background: rgba(34, 211, 238, 0.12);
  filter: blur(80px);
  z-index: 0;
}

.window,
.screenshot-card,
.code-panel,
.feature-card,
.deploy-card {
  border: 1px solid var(--border);
  background: var(--surface-soft);
  backdrop-filter: blur(12px);
}

.window {
  position: relative;
  z-index: 1;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(7, 12, 24, 0.92);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.window-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: #d1d5db;
  font-size: 13px;
}

.dots {
  display: flex;
  gap: 7px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: block;
}

.dot.red { background: #fb7185; }
.dot.yellow { background: #facc15; }
.dot.green { background: #4ade80; }
.header-spacer { width: 42px; }

.panel-preview {
  min-height: 430px;
  background: #f8fafc;
  color: #111827;
}

.dashboard-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 42px;
  padding: 0 10px;
  background: #0d6efd;
  color: #ffffff;
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
}

.dashboard-nav strong {
  font-size: 13px;
  font-weight: 800;
  margin-right: 4px;
}

.dashboard-nav span {
  flex: 0 0 auto;
}

.dashboard-nav em {
  margin-left: auto;
  font-style: normal;
  font-size: 10px;
  flex: 0 0 auto;
}

.dashboard-nav button {
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 4px;
  background: transparent;
  color: #ffffff;
  padding: 5px 8px;
  font: inherit;
  font-size: 10px;
  flex: 0 0 auto;
}

.dashboard-body {
  padding: 22px 26px 26px;
}

.dashboard-body h3 {
  font-size: clamp(1.6rem, 2.8vw, 2.25rem);
  line-height: 1.1;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.dashboard-body > p {
  color: #6b7280;
  margin-bottom: 20px;
}

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

.dash-card {
  min-height: 126px;
  border-radius: 5px;
  padding: 16px;
  border: 1px solid #d1dbe8;
  background: linear-gradient(135deg, #ffffff, #f4f8ff);
}

.dash-card h4 {
  font-size: 16px;
  margin-bottom: 12px;
  color: #0f172a;
  line-height: 1.2;
}

.dash-card p {
  color: #0f172a;
  font-size: 12px;
  line-height: 1.45;
}

.dns-card,
.dhcp-card,
.health-card {
  border-color: #b8e0cf;
  background: linear-gradient(135deg, #ffffff, #f1fbf7);
}

.dns-card h4,
.dhcp-card h4,
.health-card h4 {
  color: #075e4f;
}

.directory-card {
  border-color: #bfdbfe;
  background: linear-gradient(135deg, #ffffff, #eef6ff);
}

.directory-card h4 {
  color: #114a86;
}

.mail-card {
  border-color: #f3c887;
  background: linear-gradient(135deg, #ffffff, #fff8ed);
}

.mail-card h4 {
  color: #875800;
}

.assistant-card-preview {
  border-color: #bae6fd;
  background: linear-gradient(135deg, #ffffff, #f0f9ff);
}

.assistant-card-preview h4 {
  color: #075985;
}

section {
  padding: 52px 0;
}

.section-heading {
  text-align: center;
  margin-bottom: 36px;
}

.section-heading h3,
.docker-layout h3,
.deploy-content h3 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-top: 12px;
}

.section-heading p,
.docker-layout p,
.deploy-content p {
  max-width: 700px;
  margin: 12px auto 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.feature-card {
  border-radius: 16px;
  padding: 20px;
  transition: 0.35s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.3);
  background: rgba(34, 211, 238, 0.05);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: #abf5de;
  margin-bottom: 12px;
}

.feature-card h4,
.deploy-card h4 {
  font-size: 1rem;
  margin-bottom: 8px;
  font-weight: 700;
}

.feature-card p,
.deploy-card p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.9rem;
}

.docker-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: center;
}

.docker-layout p {
  margin-left: 0;
}

.code-panel {
  border-radius: 16px;
  overflow: hidden;
  background: rgba(2, 6, 23, 0.9);
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: #d1d5db;
  font-size: 13px;
}

.copy-button {
  border: 1px solid rgba(34, 211, 238, 0.28);
  background: rgba(34, 211, 238, 0.08);
  color: #b6f7ee;
  border-radius: 8px;
  padding: 7px 10px;
  font-weight: 700;
  cursor: pointer;
}

.copy-button:hover {
  background: rgba(34, 211, 238, 0.14);
}

pre {
  overflow-x: auto;
  padding: 16px;
}

code {
  font-family: Consolas, "Liberation Mono", monospace;
  color: #b6f7ee;
  font-size: 13px;
}

.screenshot-card {
  border-radius: 16px;
  overflow: hidden;
}

.shot-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 13px;
  color: #d1d5db;
}

.shot-content {
  padding: 12px;
  background: linear-gradient(135deg, #020617 0%, #0f172a 100%);
}

.shot-content img {
  width: 100%;
  border-radius: 10px;
  display: block;
}

.dashboard-screenshot {
  background: #f8fafc;
}

.dashboard-surface {
  background: #ffffff;
  color: #111827;
}

.dashboard-nav-full {
  min-height: 64px;
  padding: 0 14px;
  font-size: 16px;
  gap: 24px;
  overflow: visible;
}

.dashboard-nav-full strong {
  font-size: 23px;
}

.dashboard-nav-full em,
.dashboard-nav-full button {
  font-size: 14px;
}

.dashboard-nav-full button {
  border-radius: 5px;
  padding: 8px 12px;
}

.dashboard-body-full {
  width: min(1460px, calc(100% - 96px));
  margin: 0 auto;
  padding: 36px 0 72px;
}

.dashboard-body-full h3 {
  font-size: clamp(2.2rem, 4vw, 3rem);
}

.dashboard-body-full > p {
  font-size: 1.35rem;
  margin-bottom: 28px;
}

.dashboard-cards-full {
  gap: 18px;
}

.dashboard-cards-full .dash-card {
  min-height: 248px;
  padding: 32px 28px;
}

.dashboard-cards-full .dash-card h4 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.dashboard-cards-full .dash-card p {
  font-size: 1.05rem;
  line-height: 1.55;
}

.management-gallery {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.screen-card {
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
  padding: 18px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.screen-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.screen-title h4,
.settings-preview h4 {
  font-size: 1.1rem;
  line-height: 1.25;
  color: #111827;
}

.screen-title span {
  border-radius: 6px;
  background: #6b7280;
  color: #ffffff;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 800;
  flex: 0 0 auto;
}

.screen-meta {
  display: grid;
  gap: 14px;
}

.screen-meta.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.screen-meta.six {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.screen-meta small {
  display: block;
  color: #64748b;
  font-size: 12px;
  margin-bottom: 3px;
}

.screen-meta strong {
  display: block;
  color: #020617;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.screen-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid #d1d5db;
  margin-top: 18px;
  padding-top: 14px;
}

.screen-actions button,
.screen-actions a {
  border-radius: 6px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 600;
}

.screen-actions button {
  border: 1px solid #0f8f54;
  background: #0f8f54;
  color: #ffffff;
}

.screen-actions a {
  border: 1px solid #2563eb;
  color: #2563eb;
  background: transparent;
}

.settings-preview {
  grid-column: 1 / -1;
}

.form-preview {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}

.form-preview label {
  color: #0f172a;
  font-size: 13px;
}

.form-preview span {
  display: block;
  margin-top: 7px;
  min-height: 38px;
  border: 1px solid #d6dde7;
  border-radius: 7px;
  padding: 9px 12px;
  color: #0f172a;
  background: #ffffff;
  overflow-wrap: anywhere;
}

.deploy-section {
  border-radius: 20px;
  border: 1px solid rgba(34, 211, 238, 0.15);
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.08) 0%, rgba(59, 130, 246, 0.08) 100%);
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
}

.deploy-section::before {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(34, 211, 238, 0.1);
  filter: blur(80px);
  top: -160px;
  right: -140px;
}

.deploy-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.deploy-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  text-align: left;
}

.deploy-card {
  border-radius: 16px;
  background: rgba(5, 10, 20, 0.55);
  padding: 20px;
}

.deploy-card code {
  display: block;
  margin-top: 14px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(2, 6, 23, 0.72);
  white-space: nowrap;
  overflow-x: auto;
}

.deploy-actions {
  justify-content: center;
  margin-top: 26px;
}

footer {
  border-top: 1px solid var(--border);
  padding: 30px 0;
  margin-top: 40px;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-left h5 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.footer-left p {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #c0c7d2;
  font-size: 14px;
  transition: 0.25s;
}

.footer-links a:hover {
  color: var(--cyan);
}

@media (max-width: 1100px) {
  .hero,
  .docker-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-nav-full {
    gap: 14px;
    font-size: 13px;
    overflow-x: auto;
  }

  .dashboard-body-full {
    width: min(100% - 32px, 960px);
  }

  .dashboard-cards-full .dash-card {
    min-height: 180px;
  }

  .management-gallery {
    grid-template-columns: 1fr;
  }

  .screen-meta.four,
  .screen-meta.six {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  nav {
    display: none;
  }

  .hero {
    padding-top: 40px;
  }

  .dashboard-nav {
    gap: 10px;
  }

  .dashboard-nav span:nth-of-type(n+5) {
    display: none;
  }

  .dashboard-nav.dashboard-nav-full span:nth-of-type(n+5) {
    display: inline;
  }

  .form-preview {
    grid-template-columns: 1fr;
  }

  .deploy-section {
    padding: 28px 20px;
  }

  section {
    padding: 40px 0;
  }
}

@media (max-width: 640px) {
  .container {
    width: calc(100% - 28px);
  }

  .hero-buttons,
  .stats,
  .deploy-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .screen-meta.four,
  .screen-meta.six {
    grid-template-columns: 1fr;
  }

  .dashboard-body {
    padding: 18px;
  }

  .dashboard-cards {
    grid-template-columns: 1fr;
  }

  .dashboard-cards-full {
    grid-template-columns: 1fr;
  }

  .dashboard-nav-full {
    min-height: 52px;
  }

  .dashboard-body-full h3 {
    font-size: 2rem;
  }

  .dash-card {
    min-height: auto;
  }
}
