@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Fraunces:opsz,wght@9..144,600;9..144,700&display=swap');

:root {
  --ink: #0b1f33;
  --ink-soft: #243447;
  --green: #0b8f5a;
  --green-deep: #076b43;
  --amber: #e8a317;
  --fog: #f3f7f5;
  --line: #d7e3dc;
  --white: #ffffff;
  --danger: #b42318;
  --shadow: 0 18px 50px rgba(11, 31, 51, 0.08);
  --radius: 18px;
  --sidebar: 260px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Manrope', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(11, 143, 90, 0.12), transparent 55%),
    radial-gradient(900px 400px at 100% 0%, rgba(232, 163, 23, 0.10), transparent 50%),
    linear-gradient(180deg, #eef5f1 0%, var(--fog) 40%, #e8f0ec 100%);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.login-page::before {
  content: '';
  position: absolute;
  inset: auto -10% -20% 40%;
  height: 55%;
  background:
    linear-gradient(135deg, rgba(11, 143, 90, 0.22), rgba(11, 31, 51, 0.08)),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230b8f5a' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  filter: blur(0.2px);
  pointer-events: none;
}

.login-card {
  width: min(440px, 100%);
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(215, 227, 220, 0.9);
  border-radius: 28px;
  padding: 36px 32px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  animation: rise 0.55s ease both;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.brand-mark svg { width: 48px; height: 48px; }
.brand-mark .brand-text strong {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}
.brand-mark .brand-text span {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.login-card h1 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 700;
}
.login-card p.lead {
  margin: 0 0 22px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.form-row { margin-bottom: 14px; }
.form-row label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  font-weight: 600;
}
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(11, 143, 90, 0.15);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, opacity .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--green), var(--green-deep));
  color: #fff;
  width: 100%;
}
.btn-secondary {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
}
.btn-sm { padding: 8px 12px; font-size: 0.88rem; width: auto; }

.hint {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(11, 143, 90, 0.08);
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.45;
}

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar) 1fr;
  min-height: 100vh;
}

.sidebar {
  padding: 22px 18px;
  background: linear-gradient(180deg, #0b1f33 0%, #12304a 100%);
  color: #e8f0ec;
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar .brand-mark { margin-bottom: 28px; }
.sidebar .brand-mark .brand-text strong { color: #fff; }
.sidebar .brand-mark .brand-text span { color: rgba(232,240,236,0.7); }

.nav-list { display: grid; gap: 6px; }
.nav-list a {
  padding: 11px 12px;
  border-radius: 12px;
  color: rgba(232,240,236,0.86);
  font-weight: 600;
  transition: background .2s, color .2s;
}
.nav-list a:hover, .nav-list a.active {
  background: rgba(11, 143, 90, 0.28);
  color: #fff;
}

.main {
  padding: 28px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  animation: rise 0.4s ease both;
}
.topbar h1 {
  margin: 0;
  font-size: 1.7rem;
  letter-spacing: -0.02em;
}
.topbar .meta { color: var(--ink-soft); font-size: 0.95rem; }

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

.stat, .panel {
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(215,227,220,0.95);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.stat {
  padding: 18px;
  animation: rise 0.5s ease both;
}
.stat .label {
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 600;
}
.stat .value {
  margin-top: 8px;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.stat .value em {
  font-style: normal;
  color: var(--green);
}

.panel {
  padding: 18px;
  animation: rise 0.55s ease both;
}
.panel h2 {
  margin: 0 0 14px;
  font-size: 1.1rem;
}

.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
th, td {
  text-align: left;
  padding: 11px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  color: var(--ink-soft);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
tr:hover td { background: rgba(11, 143, 90, 0.03); }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}
.badge-ok { background: rgba(11,143,90,0.12); color: var(--green-deep); }
.badge-off { background: rgba(180,35,24,0.10); color: var(--danger); }
.badge-soft { background: rgba(11,31,51,0.08); color: var(--ink-soft); }

.alert {
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 14px;
  font-weight: 600;
}
.alert-error { background: rgba(180,35,24,0.1); color: var(--danger); }
.alert-success { background: rgba(11,143,90,0.12); color: var(--green-deep); }

.site-card {
  padding: 18px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, #fff 0%, #f4faf7 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform .2s ease;
}
.site-card:hover { transform: translateY(-2px); }
.site-card h3 { margin: 0 0 6px; font-size: 1.15rem; }
.site-card .code {
  color: var(--ink-soft);
  font-size: 0.85rem;
  margin-bottom: 12px;
}
.site-card .metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.site-card .metrics div {
  background: rgba(11, 143, 90, 0.06);
  border-radius: 12px;
  padding: 10px;
}
.site-card .metrics strong {
  display: block;
  font-size: 1.1rem;
}
.site-card .metrics span {
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.form-panel {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
  align-items: start;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-panel { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: relative;
    height: auto;
    padding: 16px;
  }
  .nav-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .main { padding: 16px; }
  .topbar { align-items: flex-start; flex-wrap: wrap; }
  .topbar h1 { font-size: 1.35rem; }
  .site-card .metrics { grid-template-columns: 1fr; }
}

.login-body { background: #07151f; }
.login-split {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr;
}
.login-aside {
  display: none;
  background:
    radial-gradient(700px 400px at 10% 10%, rgba(11,143,90,0.28), transparent 55%),
    linear-gradient(180deg, #0b1f33 0%, #07151f 100%);
  color: #eef4f1;
  padding: 36px 48px;
}
.login-aside-inner { max-width: 440px; }
.login-aside h1 {
  font-family: 'Fraunces', serif;
  font-size: 2.6rem;
  line-height: 1.15;
  margin: 0 0 16px;
}
.login-aside p { color: rgba(238,244,241,0.74); line-height: 1.55; font-size: 1.05rem; }
.login-main {
  display: grid;
  place-items: center;
  padding: 24px 16px 32px;
}
.login-back {
  color: rgba(232, 240, 236, 0.88);
  font-weight: 700;
  display: inline-block;
  margin-bottom: 28px;
}
.login-back-mobile { padding: 4px 4px 16px; }
.login-card {
  width: min(440px, 100%);
}
.login-card h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.landing-body {
  background: #07151f;
  color: #eef4f1;
}
.lp-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 40px;
  background: rgba(7, 21, 31, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.lp-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.lp-brand svg { width: 40px; height: 40px; flex-shrink: 0; }
.lp-brand strong { display: block; font-family: 'Fraunces', serif; font-size: 1.05rem; }
.lp-brand small { display: block; color: rgba(238,244,241,0.65); font-size: 0.75rem; }
.lp-links {
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 700;
  font-size: 0.92rem;
}
.lp-links a { color: rgba(238,244,241,0.82); }
.lp-nav-cta {
  width: auto;
  padding: 10px 14px;
  color: #fff !important;
}
.lp-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
  padding: 72px 40px 48px;
  max-width: 1180px;
  margin: 0 auto;
}
.lp-kicker {
  color: #e8a317;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin: 0 0 10px;
}
.lp-hero h1 {
  margin: 0 0 14px;
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.lp-lead {
  margin: 0 0 22px;
  color: rgba(238,244,241,0.78);
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 34rem;
}
.lp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.lp-actions .btn { width: auto; min-width: 140px; }
.lp-note {
  margin: 14px 0 0;
  color: rgba(238,244,241,0.5);
  font-size: 0.85rem;
}
.lp-hero-card {
  background: linear-gradient(180deg, #12304a, #0b1f33);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.28);
}
.lp-mini-top {
  color: rgba(238,244,241,0.6);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.lp-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.lp-mini-grid div {
  background: rgba(11,143,90,0.16);
  border-radius: 14px;
  padding: 10px 8px;
  text-align: center;
}
.lp-mini-grid em {
  display: block;
  font-style: normal;
  font-size: 1.25rem;
  font-weight: 800;
  color: #7ddea8;
}
.lp-mini-grid span { font-size: 0.75rem; color: rgba(238,244,241,0.65); }
.lp-mini-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.92rem;
}
.lp-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 40px 16px;
}
.lp-section h2 {
  margin: 0 0 16px;
  font-size: clamp(1.35rem, 4vw, 1.9rem);
}
.lp-section-lead { color: rgba(238,244,241,0.65); margin: -6px 0 18px; }
.lp-features, .lp-sites {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.lp-sites { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lp-features article, .lp-sites article {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 20px;
  padding: 18px;
}
.lp-features h3, .lp-sites h3 { margin: 8px 0 8px; }
.lp-features p, .lp-sites p { color: rgba(238,244,241,0.7); line-height: 1.5; margin: 0; }
.lp-sites ul { margin: 12px 0 0; padding-left: 18px; color: rgba(238,244,241,0.75); }
.lp-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.lp-steps li {
  background: rgba(11,143,90,0.12);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.lp-steps strong {
  color: #e8a317;
}
.lp-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  max-width: 1180px;
  margin: 28px auto 0;
  padding: 28px 40px 40px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.lp-foot span { display: block; color: rgba(238,244,241,0.55); font-size: 0.85rem; }
.lp-foot .btn { width: auto; }

@media (min-width: 961px) {
  .login-split { grid-template-columns: 1.05fr 0.95fr; }
  .login-aside { display: flex; flex-direction: column; }
  .login-back-mobile { display: none; }
  .login-main { padding: 48px; }
  .lp-nav-cta,
  .lp-actions .btn,
  .lp-foot .btn { width: auto; }
}

@media (max-width: 960px) {
  .lp-nav {
    flex-wrap: wrap;
    padding: 12px 16px;
  }
  .lp-links { width: 100%; justify-content: space-between; gap: 8px; }
  .lp-links a:not(.lp-nav-cta) { font-size: 0.82rem; }
  .lp-hero,
  .lp-features,
  .lp-sites,
  .lp-steps {
    grid-template-columns: 1fr;
  }
  .lp-hero { padding: 28px 16px 24px; gap: 22px; }
  .lp-section { padding: 24px 16px 8px; }
  .lp-actions .btn,
  .lp-nav-cta,
  .lp-foot .btn { width: 100%; }
  .lp-foot {
    flex-direction: column;
    align-items: stretch;
    padding: 22px 16px 28px;
  }
  .login-aside { display: none; }
  .login-card { padding: 24px 18px; }
  .form-row input { min-height: 48px; font-size: 16px; }
}

@media (max-width: 420px) {
  .lp-brand small { display: none; }
  .lp-hero h1 { font-size: 1.85rem; }
}
