/* ==========================================================================
   Variables
   ========================================================================== */
:root {
  --bg: #101410;
  --bg-soft: #151a16;
  --panel: #1b211c;
  --panel-strong: #222a23;
  --surface: #f7f3e8;
  --surface-muted: #e6dfd0;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.28);
  --text: #f7f3e8;
  --muted: #c5bdad;
  --ink: #17120b;
  --brand: #49d17d;
  --brand-strong: #23b766;
  --brand-deep: #0f8f55;
  --accent: #f7c948;
  --accent-strong: #f0a91e;
  --danger: #ef4444;
  --danger-strong: #dc2626;
  --info: #38bdf8;
  --warning: #f59e0b;
  --success: #22c55e;
  --radius: 8px;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-strong: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 14px 34px rgba(0, 0, 0, 0.24);
}

/* ==========================================================================
   Base
   ========================================================================== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(73, 209, 125, 0.18), transparent 34rem),
    radial-gradient(circle at 92% 12%, rgba(35, 183, 102, 0.12), transparent 28rem),
    linear-gradient(180deg, #101410 0%, #151a16 52%, #101410 100%);
  color: var(--text);
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
}

pre {
  white-space: pre-wrap;
}

::selection {
  background: rgba(247, 201, 72, 0.35);
}

:focus-visible {
  outline: 3px solid rgba(247, 201, 72, 0.75);
  outline-offset: 3px;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

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

.section {
  padding: 72px 0;
}

.alt-bg {
  background: rgba(247, 243, 232, 0.045);
  border-block: 1px solid rgba(255, 255, 255, 0.06);
}

.page-hero {
  padding: 64px 0 24px;
}

.page-hero.small h1 {
  max-width: 920px;
  margin: 12px 0 0;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.1;
}

.hero {
  padding: 74px 0 34px;
}

.hero-grid,
.contact-grid,
.two-col-layout,
.product-layout,
.feature-grid {
  display: grid;
  gap: 28px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  align-items: center;
}

.contact-grid,
.two-col-layout {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
}

.product-layout {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  align-items: start;
}

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

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.section-head.left-only {
  justify-content: flex-start;
}

.section-head h2,
.content-card h2,
.form-card h2,
.admin-card h2 {
  margin: 8px 0 0;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
}

.inline-actions,
.hero-actions,
.product-actions,
.table-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wrap {
  flex-wrap: wrap;
}

.stacked-gap {
  display: grid;
  gap: 16px;
}

.full-width {
  grid-column: 1 / -1;
}

/* ==========================================================================
   Header and Footer
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(16, 20, 16, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  color: var(--text);
  text-decoration: none;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.logo span {
  color: var(--brand);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1 1 auto;
  flex-wrap: wrap;
}

.main-nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 9px 12px;
  border-radius: var(--radius);
  color: var(--muted);
  text-decoration: none;
  font-weight: 650;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.site-footer {
  margin-top: 50px;
  padding: 48px 0 68px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.14);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 28px;
}

.footer-grid p {
  color: var(--muted);
  line-height: 1.65;
}

.footer-grid a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(247, 201, 72, 0.65);
  text-underline-offset: 4px;
}

.footer-grid a:hover {
  color: var(--accent);
}

/* ==========================================================================
   Buttons and Links
   ========================================================================== */
.btn,
.primary-btn,
.ghost-btn,
.danger-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  padding: 11px 16px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  line-height: 1.15;
  cursor: pointer;
  user-select: none;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease;
}

.btn:hover,
.primary-btn:hover,
.ghost-btn:hover,
.danger-btn:hover {
  transform: translateY(-1px);
}

.btn:active,
.primary-btn:active,
.ghost-btn:active,
.danger-btn:active {
  transform: translateY(0);
}

.btn-primary,
.primary-btn {
  background: linear-gradient(180deg, var(--brand), var(--brand-strong));
  border-color: rgba(130, 255, 174, 0.72);
  color: #07120d;
  box-shadow: 0 12px 28px rgba(73, 209, 125, 0.28);
}

.btn-primary:hover,
.primary-btn:hover {
  background: linear-gradient(180deg, #63e995, #22b562);
  box-shadow: 0 16px 34px rgba(73, 209, 125, 0.34);
}

.btn-secondary,
.ghost-btn {
  background: rgba(247, 243, 232, 0.08);
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-secondary:hover,
.ghost-btn:hover {
  background: rgba(247, 243, 232, 0.14);
  border-color: rgba(73, 209, 125, 0.64);
}

.btn-outline {
  background: transparent;
  border-color: rgba(73, 209, 125, 0.72);
  color: #baf7d0;
}

.btn-outline:hover {
  background: rgba(73, 209, 125, 0.12);
  border-color: rgba(132, 255, 174, 0.86);
}

.btn-danger,
.danger-btn {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(248, 113, 113, 0.72);
  color: #fecaca;
}

.btn-danger:hover,
.danger-btn:hover {
  background: var(--danger-strong);
  border-color: var(--danger-strong);
  color: #fff;
}

.btn-icon {
  min-width: 44px;
  padding-inline: 12px;
}

.btn-sm {
  min-height: 36px;
  padding: 8px 12px;
  font-size: 14px;
}

.btn-lg {
  min-height: 52px;
  padding: 14px 20px;
  font-size: 17px;
}

.btn.is-active,
.btn-secondary.is-active,
.btn-outline.is-active {
  background: rgba(73, 209, 125, 0.18);
  border-color: rgba(73, 209, 125, 0.82);
  color: #baf7d0;
}

.btn[disabled],
.btn.is-disabled,
button:disabled,
input[type="submit"]:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  box-shadow: none;
}

.text-link {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.text-link:hover {
  color: #ffe08a;
}

/* Hero */
.hero {
  position: relative;
  padding: 92px 0 58px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 72% 30%, rgba(73, 209, 125, 0.2), transparent 26rem),
    linear-gradient(90deg, rgba(0, 0, 0, 0.18), transparent 56%);
}

.hero-grid {
  position: relative;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.95fr);
  gap: 54px;
  align-items: center;
}

.hero-copy {
  display: grid;
  gap: 20px;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
}

.lead {
  max-width: 700px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.75;
}

.small-lead {
  font-size: 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(73, 209, 125, 0.36);
  border-radius: 999px;
  background: rgba(73, 209, 125, 0.13);
  color: #baf7d0;
  font-size: 14px;
  font-weight: 800;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.metrics div {
  display: grid;
  gap: 5px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(14px);
}

.metrics strong {
  color: #eaffef;
  font-size: 30px;
  line-height: 1;
}

.metrics span {
  color: var(--muted);
  font-size: 14px;
}

.hero-visual {
  position: relative;
  min-height: 560px;
}

.hero-card,
.content-card,
.form-card,
.sidebar-card,
.feature-box,
.product-card,
.admin-card,
.stat-card,
.solution-card,
.benefit-card,
.cta-banner,
.cta-card,
.request-note {
  background: rgba(247, 243, 232, 0.06);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.hero-image-card {
  overflow: hidden;
  height: 100%;
  min-height: 540px;
  background: linear-gradient(145deg, rgba(73, 209, 125, 0.18), rgba(255, 255, 255, 0.055));
  border-color: rgba(73, 209, 125, 0.2);
}

.hero-image-card img {
  width: 100%;
  height: 100%;
  min-height: 540px;
  object-fit: cover;
}

.floating-card {
  position: absolute;
  max-width: 230px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(13, 22, 18, 0.72);
  color: #f6fff8;
  font-weight: 850;
  line-height: 1.3;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.float-time {
  top: 34px;
  left: -22px;
}

.float-install {
  right: -18px;
  top: 44%;
}

.float-audience {
  left: 42px;
  bottom: 38px;
}

/* Solution cards */
.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.solution-card {
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.04));
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.solution-card:hover {
  transform: translateY(-5px);
  border-color: rgba(73, 209, 125, 0.56);
  box-shadow: var(--shadow);
}

.solution-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.solution-content {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.solution-content h3 {
  margin: 0;
  font-size: 24px;
}

.solution-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

/* Product cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

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

.product-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.04)),
    var(--panel);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(73, 209, 125, 0.5);
  box-shadow: var(--shadow);
}

.product-media {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--panel-strong);
  text-decoration: none;
}

.product-media img,
.product-card > img {
  width: 100%;
  height: 285px;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.product-card:hover .product-media img {
  transform: scale(1.035);
}

.product-card > img {
  border-bottom: 1px solid var(--line);
}

.product-label {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(73, 209, 125, 0.9);
  color: #06120c;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.26);
}

.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
}

.category-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(73, 209, 125, 0.12);
  border: 1px solid rgba(73, 209, 125, 0.28);
  color: #d9ffe4;
  font-size: 13px;
  font-weight: 850;
}

.product-card h3 {
  margin: 0;
  font-size: 23px;
  line-height: 1.2;
}

.product-card p,
.feature-box p,
.content-card p,
.form-card p,
.empty-state {
  color: var(--muted);
  line-height: 1.7;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #e4ddce;
  font-size: 14px;
}

.product-meta span {
  min-height: 31px;
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.product-footer {
  display: grid;
  gap: 15px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.product-price,
.product-actions strong,
.detail-price {
  color: #ffe08a;
  font-weight: 900;
}

.product-price {
  display: block;
  font-size: 28px;
}

.product-actions {
  justify-content: space-between;
  flex-wrap: wrap;
}

.card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.card-actions .btn {
  flex: 1 1 auto;
}

.feature-box,
.content-card,
.sidebar-card,
.admin-card {
  padding: 26px;
}

.feature-box {
  background: rgba(247, 243, 232, 0.05);
}

/* Benefits */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.benefit-card {
  padding: 24px;
  background: linear-gradient(180deg, rgba(73, 209, 125, 0.08), rgba(255, 255, 255, 0.04));
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.benefit-card:hover {
  transform: translateY(-3px);
  border-color: rgba(73, 209, 125, 0.48);
}

.benefit-icon {
  display: inline-grid;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  place-items: center;
  border-radius: 50%;
  background: rgba(73, 209, 125, 0.14);
  color: #baf7d0;
  font-weight: 900;
}

.benefit-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.benefit-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

/* Gallery */
figure {
  margin: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr) minmax(0, 0.85fr);
  grid-auto-rows: 220px;
  gap: 16px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow-soft);
}

.gallery-featured {
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.gallery-item:hover img {
  transform: scale(1.035);
}

.gallery-item figcaption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(10, 18, 14, 0.72);
  color: #f7fff9;
  font-weight: 850;
  backdrop-filter: blur(12px);
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.timeline {
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 44px;
  left: 9%;
  right: 9%;
  height: 2px;
  background: linear-gradient(90deg, rgba(73, 209, 125, 0), rgba(73, 209, 125, 0.68), rgba(73, 209, 125, 0));
}

.step {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(247, 243, 232, 0.052);
}

.timeline .step {
  padding-top: 30px;
}

.step strong {
  position: relative;
  z-index: 1;
  display: inline-grid;
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(73, 209, 125, 0.24), rgba(73, 209, 125, 0.1));
  border: 1px solid rgba(73, 209, 125, 0.42);
  color: #d9ffe4;
  box-shadow: 0 0 0 8px rgba(16, 20, 16, 0.8);
}

.step h3 {
  margin: 0 0 9px;
  font-size: 20px;
}

.step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

/* CTA */
.cta-section {
  padding-top: 36px;
}

.cta-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.45fr);
  gap: 28px;
  align-items: center;
  padding: clamp(26px, 5vw, 44px);
  background:
    radial-gradient(circle at 84% 18%, rgba(73, 209, 125, 0.22), transparent 20rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
}

.cta-banner h2 {
  max-width: 760px;
  margin: 14px 0 12px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.1;
}

.cta-banner p {
  max-width: 660px;
  color: var(--muted);
  line-height: 1.7;
}

.cta-card {
  padding: 24px;
  background: rgba(8, 16, 13, 0.54);
  backdrop-filter: blur(12px);
}

.cta-card span {
  display: block;
  margin-bottom: 12px;
  color: #baf7d0;
  font-weight: 900;
}

.cta-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: var(--text);
}

.empty-state {
  padding: 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: rgba(247, 243, 232, 0.045);
}

.prose {
  font-size: 18px;
  line-height: 1.85;
}

/* Forms */
.form-card,
.filter-form,
.admin-card:is(form),
.admin-card form,
.status-form {
  display: grid;
  gap: 14px;
}

.form-card {
  padding: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.04));
}

.request-form {
  gap: 16px;
}

.request-copy h2 {
  margin: 12px 0 12px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
}

.request-copy p {
  max-width: 560px;
  color: var(--muted);
  line-height: 1.75;
}

.request-note {
  display: grid;
  gap: 8px;
  max-width: 520px;
  margin-top: 22px;
  padding: 18px;
  background: rgba(73, 209, 125, 0.08);
}

.request-note strong {
  color: #d9ffe4;
}

.request-note span {
  color: var(--muted);
  line-height: 1.6;
}

label {
  display: grid;
  gap: 8px;
  color: #f4f0e6;
  font-weight: 750;
}

input:not([type="checkbox"]):not([type="hidden"]),
textarea,
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.24);
  color: var(--text);
  padding: 12px 13px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

input::placeholder,
textarea::placeholder {
  color: rgba(245, 238, 222, 0.52);
}

input:not([type="checkbox"]):not([type="hidden"]):focus,
textarea:focus,
select:focus {
  border-color: rgba(73, 209, 125, 0.8);
  background: rgba(0, 0, 0, 0.34);
  outline: none;
  box-shadow: 0 0 0 3px rgba(73, 209, 125, 0.16);
}

textarea {
  resize: vertical;
}

select {
  color-scheme: dark;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
}

.filter-form {
  margin-top: 16px;
}

.status-form {
  min-width: 190px;
}

.map {
  width: 100%;
  min-height: 320px;
  border: 0;
  border-radius: var(--radius);
  margin-top: 10px;
}

/* ==========================================================================
   Product Detail and Compare
   ========================================================================== */
.detail-image {
  width: 100%;
  min-height: 520px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.detail-panel {
  display: grid;
  gap: 18px;
}

.detail-panel h1 {
  margin: 0;
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.08;
}

.detail-price {
  font-size: 34px;
}

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

.spec-grid div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(247, 243, 232, 0.05);
}

.spec-grid span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
}

.spec-pre {
  margin: 0;
  color: #e7decf;
  font-family: inherit;
  line-height: 1.9;
}

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

/* ==========================================================================
   Tables
   ========================================================================== */
.compare-table-wrap,
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.card-grid + .compare-table-wrap {
  margin-top: 24px;
}

.compare-table,
.admin-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.compare-table th,
.compare-table td,
.admin-table th,
.admin-table td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.compare-table th,
.admin-table th {
  background: rgba(247, 243, 232, 0.08);
  color: #fff7df;
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.compare-table tbody tr:hover,
.admin-table tbody tr:hover {
  background: rgba(247, 243, 232, 0.045);
}

.compare-table tbody tr:last-child td,
.admin-table tbody tr:last-child td {
  border-bottom: 0;
}

/* ==========================================================================
   Public Pages
   ========================================================================== */
.sidebar-card {
  position: sticky;
  top: 104px;
}

.sidebar-card h3 {
  margin: 0;
  font-size: 24px;
}

.flash-stack {
  display: grid;
  gap: 10px;
  padding-top: 20px;
}

.flash {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 700;
}

.flash-success {
  background: rgba(34, 197, 94, 0.14);
  color: #bbf7d0;
}

.flash-danger {
  background: rgba(239, 68, 68, 0.14);
  color: #fecaca;
}

.flash-warning {
  background: rgba(245, 158, 11, 0.16);
  color: #fde68a;
}

.flash-info {
  background: rgba(56, 189, 248, 0.14);
  color: #bae6fd;
}

/* ==========================================================================
   Admin
   ========================================================================== */
.admin-body {
  background:
    linear-gradient(90deg, rgba(73, 209, 125, 0.08), transparent 34rem),
    #101410;
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
}

.admin-sidebar {
  padding: 24px;
  border-right: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
}

.admin-sidebar nav {
  display: grid;
  gap: 8px;
  margin-top: 28px;
}

.admin-sidebar nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--muted);
  text-decoration: none;
  font-weight: 780;
}

.admin-sidebar nav a:hover,
.admin-sidebar nav a.is-active {
  background: rgba(247, 243, 232, 0.09);
  border-color: rgba(247, 201, 72, 0.55);
  color: var(--text);
}

.admin-main {
  min-width: 0;
  padding: 26px;
}

.admin-topbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 18px;
}

.admin-section {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
}

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

.stat-card {
  padding: 22px;
  background: linear-gradient(180deg, rgba(247, 243, 232, 0.08), rgba(247, 243, 232, 0.045));
}

.stat-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
}

.stat-card strong {
  color: #ffe08a;
  font-size: 38px;
}

.split-admin {
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
}

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

.admin-flash {
  padding-top: 0;
  padding-bottom: 12px;
}

.inline-actions form,
.table-actions form {
  margin: 0;
}

/* Responsive */
@media (max-width: 1100px) {
  .nav {
    align-items: flex-start;
    padding: 14px 0;
    flex-wrap: wrap;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }

  .nav-actions {
    margin-left: auto;
  }

  .hero-grid {
    gap: 36px;
  }

  .float-time {
    left: 12px;
  }

  .float-install {
    right: 12px;
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .contact-grid,
  .two-col-layout,
  .product-layout,
  .feature-grid,
  .footer-grid,
  .split-admin,
  .admin-shell,
  .cta-banner {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .card-grid.compact,
  .steps,
  .admin-stats,
  .compare-mini-grid,
  .spec-grid,
  .form-grid,
  .solution-grid,
  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 64px 0 44px;
  }

  .hero-visual {
    min-height: 0;
    display: grid;
    gap: 12px;
  }

  .hero-image-card,
  .hero-image-card img {
    min-height: 430px;
  }

  .floating-card {
    position: static;
    max-width: none;
  }

  .metrics {
    max-width: 680px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 230px;
  }

  .gallery-featured {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .timeline::before {
    display: none;
  }

  .step strong {
    box-shadow: none;
  }

  .sidebar-card {
    position: static;
  }

  .admin-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .admin-sidebar nav {
    display: flex;
    flex-wrap: wrap;
  }
}

@media (max-width: 680px) {
  .container,
  .narrow {
    width: min(100% - 24px, 1180px);
  }

  .section {
    padding: 48px 0;
  }

  .hero {
    padding: 48px 0 32px;
  }

  .hero h1 {
    font-size: 38px;
    line-height: 1.04;
  }

  .lead {
    font-size: 17px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-hero.small h1,
  .detail-panel h1 {
    font-size: 30px;
  }

  .nav-actions,
  .hero-actions,
  .product-actions,
  .card-actions,
  .inline-actions,
  .hero-actions .btn,
  .cta-banner .btn {
    width: 100%;
  }

  .nav-actions .btn,
  .hero-actions .btn,
  .product-actions .btn,
  .card-actions .btn,
  .inline-actions .btn,
  .nav-actions .primary-btn,
  .nav-actions .ghost-btn,
  .hero-actions .primary-btn,
  .hero-actions .ghost-btn,
  .inline-actions .ghost-btn,
  .inline-actions .primary-btn {
    flex: 1 1 100%;
  }

  .main-nav a {
    flex: 1 1 calc(50% - 6px);
    justify-content: center;
  }

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

  .metrics div {
    padding: 14px;
  }

  .hero-image-card,
  .hero-image-card img,
  .detail-image {
    min-height: 320px;
  }

  .product-media img,
  .product-card > img {
    height: 235px;
  }

  .form-card,
  .content-card,
  .sidebar-card,
  .feature-box,
  .admin-card,
  .benefit-card,
  .solution-content,
  .cta-card {
    padding: 20px;
  }

  .cta-banner {
    padding: 22px;
  }

  .gallery-grid {
    grid-auto-rows: 220px;
  }

  .product-price {
    font-size: 25px;
  }

  .admin-main {
    padding: 18px 12px;
  }

  .admin-sidebar {
    padding: 18px 12px;
  }
}
