:root {
  --bg: #f8f5ef;
  --surface: #fffdfa;
  --ink: #1f2a34;
  --brand: #9b3d1f;
  --brand-deep: #5f1f0f;
  --accent: #264a60;
  --line: #e6dfd2;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 10%, #f0d9cd, transparent 35%),
    radial-gradient(circle at 80% 20%, #d9e6ee, transparent 40%),
    var(--bg);
}

h1,
h2,
h3 {
  font-family: 'Merriweather', serif;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem 1rem;
  position: sticky;
  top: 0;
  backdrop-filter: blur(6px);
  background: color-mix(in hsl, var(--surface), transparent 8%);
  border-bottom: 1px solid var(--line);
  z-index: 10;
  overflow: visible;
}

.brand img {
  width: 200px;
  height: 200px;
  object-fit: contain;
  transform: translateY(34px);
}

nav {
  display: flex;
  gap: 1rem;
  align-items: center;
}

nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.4rem 1.25rem 1.25rem;
}

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

.hero-copy {
  animation: lift 450ms ease-out;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 700;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0.25rem 0 0.75rem;
}

.hero-image img,
.gallery img {
  width: 100%;
  display: block;
  border-radius: 18px;
  border: 1px solid var(--line);
}

figure {
  margin: 0;
}

figcaption {
  font-size: 0.82rem;
  color: #455567;
  margin-top: 0.5rem;
}

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

.button {
  border: 0;
  border-radius: 999px;
  padding: 0.65rem 1rem;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  font-weight: 700;
}

.button:hover {
  background: var(--brand-deep);
}

.button-ghost {
  background: transparent;
  color: var(--brand-deep);
  border: 1px solid var(--brand-deep);
}

.features,
.compare-grid,
.pricing-grid,
.gallery {
  display: grid;
  gap: 1rem;
}

.features {
  margin-top: 1.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.features article,
.compare-card,
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
}

.compare,
.pricing {
  margin-top: 2rem;
}

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

.compare-header {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.compare-header img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
}

.tagline {
  color: var(--accent);
  font-weight: 700;
}

.benefit {
  font-size: 0.95rem;
  font-weight: 600;
}

.gallery {
  margin-top: 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gallery img {
  height: 260px;
  object-fit: cover;
}

.pricing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1rem;
}

.pricing-card h3 {
  margin-top: 0;
}

.pricing-card.recommended {
  border-color: var(--brand);
  box-shadow: 0 8px 24px rgba(155, 61, 31, 0.14);
}

.badge {
  display: inline-block;
  background: #f1d6c8;
  color: var(--brand-deep);
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  margin-bottom: 0.35rem;
}

.price {
  font-size: 2rem;
  color: var(--brand-deep);
  margin: 0.4rem 0;
}

.pricing-note {
  margin-top: 0.75rem;
  font-size: 0.87rem;
}

.deployment {
  margin-top: 2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
}

.floating-nav {
  position: fixed;
  right: 1rem;
  top: 6.3rem;
  z-index: 30;
  display: grid;
  gap: 0.45rem;
}

.floating-nav-btn {
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.45rem 0.7rem;
  font-weight: 700;
  font-size: 0.8rem;
  text-align: center;
}

.floating-nav-btn:hover {
  background: var(--brand-deep);
}

footer {
  margin-top: 2rem;
  text-align: center;
  padding: 1.25rem;
  border-top: 1px solid var(--line);
}

.admin-page {
  background: #f6f8fa;
}

.admin-main {
  max-width: 1300px;
}

.admin-identity {
  font-size: 0.9rem;
  color: #425061;
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.customer-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #d9e0e8;
}

.customer-table th,
.customer-table td {
  text-align: left;
  padding: 0.7rem;
  border-bottom: 1px solid #e8edf2;
}

.customer-table tr[data-id] {
  cursor: pointer;
}

.customer-table tr[data-id]:hover {
  background: #f3f7fb;
}

.customer-modal {
  width: min(1000px, calc(100vw - 1rem));
  border: 1px solid #d1d6df;
  border-radius: 12px;
  padding: 0;
}

.customer-modal form {
  margin: 0;
  padding: 1rem;
}

.modal-header,
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.form-divider {
  grid-column: 1 / -1;
  border-top: 1px dashed #b8c3cf;
  margin: 0.2rem 0;
  padding-top: 0.65rem;
  font-weight: 700;
  color: #2f4054;
}

label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.85rem;
}

input,
select {
  font: inherit;
  padding: 0.5rem;
  border: 1px solid #cdd5df;
  border-radius: 8px;
}

input:disabled {
  background: #eef2f7;
  color: #566372;
}

.form-error {
  color: #b31e1e;
  min-height: 1rem;
}

.login-main {
  min-height: 80vh;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.login-card {
  width: min(520px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.2rem;
  text-align: center;
}

.login-logo {
  width: min(240px, 80%);
  margin-bottom: 0.75rem;
}

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

@media (max-width: 900px) {
  .hero,
  .features,
  .compare-header,
  .compare-grid,
  .gallery,
  .pricing-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    flex-wrap: wrap;
    gap: 0.6rem;
  }

  .brand img {
    width: 120px;
    height: 120px;
    transform: translateY(10px);
  }

  .floating-nav {
    top: auto;
    bottom: 1rem;
  }
}
