:root {
  --bg: #07111f;
  --bg-soft: #0b1729;
  --bg-card: rgba(13, 28, 49, 0.78);
  --line: rgba(116, 196, 255, 0.16);
  --text: #e8f2ff;
  --muted: #9fb4cc;
  --cyan: #38d5ff;
  --cyan-2: #20a9d8;
  --blue: #5b8cff;
  --green: #52e3a4;
  --danger: #ff6b7a;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 10%, rgba(56, 213, 255, 0.16), transparent 28rem),
    radial-gradient(circle at 80% 5%, rgba(91, 140, 255, 0.13), transparent 26rem),
    linear-gradient(180deg, #06101d 0%, var(--bg) 48%, #050b14 100%);
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.75), transparent 75%);
}

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

.section { padding: 84px 0; }
.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}
.section-heading h2,
.split h2,
.contact-section h2,
.certs-section h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}
.section-heading p,
.split p,
.contact-section p { color: var(--muted); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(5, 12, 22, 0.78);
  border-bottom: 1px solid var(--line);
}
.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.15rem;
}
.brand img { filter: drop-shadow(0 0 16px rgba(56, 213, 255, 0.4)); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.95rem;
}
.nav-links a:hover { color: var(--text); }
.nav-toggle { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid rgba(56, 213, 255, 0.45);
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #03101d;
  font-weight: 800;
  box-shadow: 0 12px 34px rgba(56, 213, 255, 0.2);
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-ghost {
  background: rgba(255,255,255,0.04);
  color: var(--text);
  box-shadow: none;
}
.btn-small { min-height: 38px; padding: 0 15px; font-size: 0.9rem; }

.flash-wrap { padding-top: 22px; }
.flash {
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(13, 28, 49, 0.9);
}
.flash-success { border-color: rgba(82, 227, 164, 0.45); }
.flash-error { border-color: rgba(255, 107, 122, 0.55); }

.hero { padding-top: 104px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan) !important;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  font-weight: 800;
}
h1 {
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 5.15rem);
  line-height: 0.98;
  letter-spacing: -0.07em;
}
.lead {
  margin: 24px 0 0;
  max-width: 720px;
  color: var(--muted);
  font-size: 1.12rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.trust-row span,
.cert-tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  background: rgba(255,255,255,0.03);
  font-size: 0.88rem;
}

.hero-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(14, 34, 58, 0.92), rgba(7, 17, 31, 0.92));
  box-shadow: var(--shadow);
  overflow: hidden;
}
.panel-top {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-flex; }
.dot-green { background: var(--green); }
.dot-cyan { background: var(--cyan); }
.dot-blue { background: var(--blue); }
.terminal-lines { padding: 22px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.terminal-lines p { margin: 0 0 12px; color: var(--muted); }
.terminal-lines p span { color: var(--cyan); }
.terminal-lines .ok { color: var(--green); }

.stats-section { padding: 28px 0 72px; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.stats-grid div,
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow: 0 18px 50px rgba(0,0,0,0.2);
}
.stats-grid div { padding: 22px; }
.stats-grid strong { display: block; font-size: 2rem; letter-spacing: -0.05em; }
.stats-grid span { color: var(--muted); }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card { padding: 26px; }
.service-card h3,
.price-card h3 { margin: 14px 0 8px; font-size: 1.22rem; }
.service-card p,
.price-card li { color: var(--muted); }
.card-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(56, 213, 255, 0.1);
  border: 1px solid rgba(56, 213, 255, 0.22);
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.split { background: rgba(255,255,255,0.018); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.split-grid,
.contact-grid,
.certs-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: start;
}
.check-list { display: grid; gap: 12px; }
.check-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  color: var(--muted);
}
.check-item span { color: var(--green); font-weight: 900; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.price {
  margin: 4px 0 18px;
  color: var(--cyan);
  font-size: 1.6rem;
  font-weight: 900;
}
.price-card ul { padding-left: 20px; min-height: 96px; }
.price-card .btn { width: 100%; margin-top: 10px; }

.certs-section { padding-top: 28px; }
.certs-grid { align-items: center; }
.cert-tags { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

.contact-section {
  padding-bottom: 104px;
}
.contact-notes {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
}
.contact-notes p { margin: 0 0 8px; }
.contact-form {
  display: grid;
  gap: 16px;
}
.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 700;
}
input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(4, 12, 23, 0.85);
  color: var(--text);
  padding: 13px 14px;
  font: inherit;
  outline: none;
}
input:focus, textarea:focus { border-color: rgba(56, 213, 255, 0.75); }
.hidden-field { position: absolute; left: -9999px; }

.footer {
  border-top: 1px solid var(--line);
  background: rgba(3, 9, 17, 0.7);
  padding: 34px 0 24px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}
.footer p, .copyright { color: var(--muted); margin: 4px 0 0; }
.footer-links { display: flex; gap: 16px; color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.copyright { margin-top: 18px; font-size: 0.9rem; }

@media (max-width: 900px) {
  .hero-grid,
  .split-grid,
  .contact-grid,
  .certs-grid { grid-template-columns: 1fr; }
  .cards-grid,
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-tags { justify-content: flex-start; }
}

@media (max-width: 720px) {
  .section { padding: 62px 0; }
  .hero { padding-top: 72px; }
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    align-items: center;
    justify-content: center;
  }
  .nav-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--text);
  }
  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 78px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(6, 16, 29, 0.96);
  }
  .nav-links.is-open { display: flex; }
  .cards-grid,
  .pricing-grid,
  .stats-grid { grid-template-columns: 1fr; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .btn { width: 100%; }
  .hero-actions { align-items: stretch; flex-direction: column; }
}

/* Publish-ready additions */
.service-card { display: flex; flex-direction: column; }
.mini-tags,
.stack-tags,
.contact-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.mini-tags span,
.stack-tags span,
.contact-methods a,
.cert-list a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--muted);
  background: rgba(255,255,255,0.035);
  font-size: 0.86rem;
}
.mini-tags span { color: var(--cyan); }
.project-grid { display: grid; gap: 12px; }
.project-item p { margin: 6px 0 0; color: var(--muted); }
.project-item strong { color: var(--text); }
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.process-card .step {
  color: var(--cyan);
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}
.process-card h3 { margin: 12px 0 8px; }
.process-card p,
.plan-description,
.faq-item p { color: var(--muted); }
.stack-section,
.faq-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.018);
}
.stack-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 44px;
  align-items: start;
}
.stack-tags { margin-top: 0; }
.pricing-grid { grid-template-columns: repeat(4, 1fr); }
.price-card { display: flex; flex-direction: column; }
.price-card ul { flex: 1; }
.cert-list { justify-content: flex-end; }
.cert-list a:hover,
.contact-methods a:hover { color: var(--text); border-color: rgba(56, 213, 255, 0.5); }
.faq-grid { display: grid; gap: 12px; max-width: 920px; }
.faq-item summary { cursor: pointer; font-weight: 800; }
.faq-item p { margin-bottom: 0; }
.form-note { color: var(--muted); font-size: 0.86rem; margin: -4px 0 0; }
.privacy-page { max-width: 880px; }
.privacy-page h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
.privacy-page h2 { margin-top: 34px; }
.privacy-page p,
.privacy-page li { color: var(--muted); }
.privacy-page a { color: var(--cyan); }

@media (max-width: 1100px) {
  .pricing-grid,
  .process-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .stack-grid { grid-template-columns: 1fr; }
  .stack-tags { margin-top: 0; }
  .cert-list { justify-content: flex-start; }
}

@media (max-width: 720px) {
  .pricing-grid,
  .process-grid { grid-template-columns: 1fr; }
}

/* Dashboard fallback layout */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  align-items: stretch;
}

.dashboard-card {
  background: rgba(7, 17, 31, 0.72);
  border: 1px solid rgba(70, 217, 255, 0.16);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.24);
}

.dashboard-card h2,
.dashboard-card h3 {
  color: #f4f8ff;
}

.dashboard-card p {
  color: #b9c9dc;
}

.pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(70, 217, 255, 0.24);
  border-radius: 999px;
  padding: 4px 10px;
  color: #67e8f9;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.actions-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.notice-list {
  display: grid;
  gap: 10px;
  margin: 0 0 22px;
}

.notice {
  border: 1px solid rgba(70, 217, 255, 0.22);
  background: rgba(70, 217, 255, 0.08);
  border-radius: 16px;
  padding: 12px 14px;
  color: #dff7ff;
}

.repo-access-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.repo-access-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid rgba(70, 217, 255, 0.12);
}

.repo-access-status {
  min-width: 42px;
  text-align: center;
  border-radius: 12px;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 800;
  border: 1px solid rgba(70, 217, 255, 0.24);
}

.repo-access-status.is-active {
  color: #67e8f9;
  background: rgba(70, 217, 255, 0.10);
}

.repo-access-status.is-off {
  color: #8aa0b8;
  background: rgba(138, 160, 184, 0.08);
}

.repo-access-info {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.repo-access-info strong {
  color: #f4f8ff;
}

.repo-access-info span {
  color: #b9c9dc;
  font-size: 13px;
}

.repo-access-delete button {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(255, 120, 120, 0.35);
  background: rgba(255, 120, 120, 0.08);
  color: #ffb4b4;
  cursor: pointer;
}

.repo-access-delete button:hover {
  background: rgba(255, 120, 120, 0.16);
}

/* HomeLAN navbar logo */
.brand-logo-only {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo-img {
  display: block;
  height: 42px;
  width: auto;
  object-fit: contain;
}

@media (max-width: 720px) {
  .brand-logo-img {
    height: 34px;
  }
}

/* HomeLAN navbar logo size override */
.brand-logo-img {
  height: 32px;
}

/* HomeLAN navbar logo final size */
.brand-logo-img {
  height: 36px;
}

/* HomeLAN navbar logo final size */
.brand-logo-img {
  height: 38px;
}

/* HomeLAN navbar logo final size */
.brand-logo-img {
  height: 40px;
}

/* HomeLAN navbar logo final size */
.brand-logo-img {
  height: 42px;
}

/* HomeLAN navbar logo final size */
.brand-logo-img {
  height: 46px;
}

/* HomeLAN navbar logo final size */
.brand-logo-img {
  height: 48px;
}
