:root {
  --bg: #0b1419;
  --bg-elevated: #121c24;
  --surface: #1a2730;
  --text: #e8f0f4;
  --muted: #9bb0bd;
  --accent: #3dd6c3;
  --accent-2: #f4b942;
  --danger: #ff6b6b;
  --radius: 12px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(11, 20, 25, 0.85);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem 0; gap: 1rem;
}
.brand {
  display: flex; align-items: center; gap: 0.65rem;
  color: var(--text); font-weight: 700; font-size: 1.05rem;
  text-decoration: none;
}
.brand em { font-style: normal; color: var(--accent); font-weight: 600; }
.brand img { border-radius: 10px; }

.nav-main { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.nav-main a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.nav-main a:hover { color: var(--text); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.55rem 1.1rem; border-radius: 999px; font-weight: 600;
  border: none; cursor: pointer; text-decoration: none; font-size: 0.95rem;
}
.btn-primary { background: linear-gradient(135deg, var(--accent), #2bb39f); color: #04241f; }
.btn-ghost { background: transparent; border: 1px solid rgba(255,255,255,0.15); color: var(--text); }
.btn-danger { background: var(--danger); color: #fff; }

.hero {
  padding: 4rem 0 3rem;
  background:
    radial-gradient(ellipse 80% 60% at 70% 0%, rgba(61,214,195,0.18), transparent),
    linear-gradient(180deg, #0f1a22, var(--bg));
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2.5rem; align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.1; margin: 0 0 1rem; }
.hero p.lead { color: var(--muted); font-size: 1.15rem; max-width: 36rem; }
.hero-cta { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hero img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }

.pill-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.25rem 0 0; }
.pill {
  font-size: 0.8rem; padding: 0.35rem 0.7rem; border-radius: 999px;
  background: rgba(255,255,255,0.06); color: var(--muted);
}

.section { padding: 4rem 0; }
.section h2 { font-size: 2rem; margin: 0 0 0.5rem; }
.section .sub { color: var(--muted); margin-bottom: 2rem; max-width: 40rem; }

.cards-3 {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}
@media (max-width: 800px) { .cards-3 { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius); padding: 1.35rem;
}
.card h3 { margin: 0 0 0.5rem; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2rem;
}
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat {
  text-align: center; padding: 1rem; background: var(--bg-elevated); border-radius: var(--radius);
}
.stat strong { display: block; font-size: 1.6rem; color: var(--accent-2); }
.stat span { color: var(--muted); font-size: 0.85rem; }

.site-footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 3rem 0 2rem; margin-top: 3rem;
  background: #080e12;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem;
}
.footer-grid-4 { grid-template-columns: 2fr 1fr 1fr 1.2fr; }
@media (max-width: 900px) { .footer-grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .footer-grid, .footer-grid-4 { grid-template-columns: 1fr; } }
.footer-legal { color: var(--muted); font-size: 0.9rem; line-height: 1.6; margin: 0; }
.footer-grid h4 { margin: 0 0 0.75rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin: 0.35rem 0; }
.footer-grid a { color: var(--muted); }
.footer-copy { color: var(--muted); font-size: 0.85rem; margin-top: 2rem; }

.auth-page {
  min-height: 70vh; display: flex; align-items: center; justify-content: center;
  padding: 2rem 0;
}
.auth-card {
  width: min(420px, 92vw); background: var(--surface);
  border-radius: var(--radius); padding: 2rem; border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow);
}
.auth-card h1 { margin: 0 0 0.35rem; font-size: 1.6rem; }
.auth-card .muted { color: var(--muted); margin-bottom: 1.25rem; }
.form-field { margin-bottom: 1rem; }
.form-field label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 0.35rem; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 0.65rem 0.75rem; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12); background: var(--bg-elevated); color: var(--text);
}
.form-error {
  background: rgba(255,107,107,0.12); color: #ffb4b4;
  padding: 0.65rem 0.75rem; border-radius: 8px; margin-bottom: 1rem; font-size: 0.9rem;
}

.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; } }
.price-card { position: relative; }
.price-card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.price-card .amount { font-size: 2.2rem; font-weight: 700; }
.price-card ul { padding-left: 1.1rem; color: var(--muted); }

.app-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
@media (max-width: 900px) { .app-layout { grid-template-columns: 1fr; } .app-sidebar { display: none; } }
.app-sidebar {
  background: #080e12; border-right: 1px solid rgba(255,255,255,0.06);
  padding: 1.25rem; display: flex; flex-direction: column; gap: 1.5rem;
}
.sidebar-brand { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; }
.sidebar-nav { display: flex; flex-direction: column; gap: 0.25rem; }
.sidebar-nav a {
  padding: 0.55rem 0.75rem; border-radius: 8px; color: var(--muted); text-decoration: none;
}
.sidebar-nav a:hover, .sidebar-nav a.active { background: rgba(61,214,195,0.12); color: var(--text); }
.sidebar-user { margin-top: auto; font-size: 0.85rem; }
.muted { color: var(--muted); }

.app-main { padding: 1.5rem 2rem 3rem; }
.app-top h1 { margin: 0 0 1.25rem; font-size: 1.5rem; }

.panel {
  background: var(--surface); border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.06); padding: 1.25rem; margin-bottom: 1.25rem;
}
.panel h2 { margin: 0 0 1rem; font-size: 1.1rem; }

.table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.table th, .table td { padding: 0.65rem 0.5rem; text-align: left; border-bottom: 1px solid rgba(255,255,255,0.06); }
.table th { color: var(--muted); font-weight: 600; }

.badge {
  display: inline-block; padding: 0.2rem 0.55rem; border-radius: 999px; font-size: 0.75rem;
  background: rgba(255,255,255,0.08);
}
.badge-ok { background: rgba(61,214,195,0.2); color: var(--accent); }
.badge-warn { background: rgba(244,185,66,0.2); color: var(--accent-2); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 700px) { .grid-2 { grid-template-columns: 1fr; } }

.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.25rem; }
@media (max-width: 800px) { .kpi-row { grid-template-columns: repeat(2, 1fr); } }
.kpi {
  background: var(--surface); border-radius: var(--radius); padding: 1rem;
  border: 1px solid rgba(255,255,255,0.06);
}
.kpi strong { font-size: 1.4rem; display: block; }

.booking-public {
  max-width: 960px; margin: 0 auto; padding: 2rem 1rem 4rem;
}
.room-card {
  display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center;
  padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.room-card:last-child { border-bottom: none; }

.screenshot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 0.55fr;
  gap: 1.25rem;
  align-items: start;
}
@media (max-width: 900px) { .screenshot-grid { grid-template-columns: 1fr; } }
.shot-card { margin: 0; }
.shot-card img {
  width: 100%; border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow);
}
.shot-card figcaption { margin-top: 0.75rem; color: var(--muted); font-size: 0.9rem; }
.shot-narrow img { max-height: 520px; object-fit: cover; object-position: top; }

.chart-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 900px) { .chart-grid { grid-template-columns: 1fr; } }
.chart-panel h3 { margin: 0 0 0.75rem; font-size: 1rem; color: var(--muted); font-weight: 600; }
.compare-table td:first-child { font-weight: 600; }
.arch-diagram img { width: 100%; height: auto; border-radius: 8px; margin-top: 0.5rem; }

.kb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 800px) { .kb-grid { grid-template-columns: 1fr; } }
.kb-card { text-decoration: none; color: inherit; display: block; transition: border-color 0.15s; }
.kb-card:hover { border-color: var(--accent); text-decoration: none; }
.kb-card h3 { margin: 0.5rem 0 0.25rem; font-size: 1.05rem; }
.kb-article { max-width: 720px; }
.kb-body { color: var(--muted); }
.kb-body strong { color: var(--text); }
.kb-body ol, .kb-body ul { padding-left: 1.2rem; }
