:root {
  --dashboard-color: #157525;
  --dashboard-soft: rgba(21, 117, 37, 0.18);
  --dashboard-glow: rgba(21, 117, 37, 0.42);

  --demo-color: #52624f;
  --demo-soft: rgba(82, 98, 79, 0.16);
  --demo-glow: rgba(82, 98, 79, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 130px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.95), transparent 36%),
    linear-gradient(135deg, #f5f1e8, #e5dfd1);
  color: #102417;
}

button,
a {
  font: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #083622;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 12px 16px;
  border-radius: 12px;
  background: #083622;
  color: #fff;
  font-weight: 800;
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* Header */
.site-header {
  width: min(1180px, calc(100% - 48px));
  margin: 24px auto 0 auto;
  padding: 16px 20px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  position: sticky;
  top: 18px;
  z-index: 100;

  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 28px;

  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);

  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;

  font-size: 22px;
  font-weight: 800;
  color: #083622;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  text-decoration: none;
  color: #52624f;
  font-size: 15px;
  font-weight: 600;

  padding: 10px 16px;
  border-radius: 18px;

  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover {
  background: rgba(82, 98, 79, 0.10);
  color: #083622;
  transform: translateY(-1px);
}

/* Main */
main {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

/* Hero */
.hero-section {
  min-height: calc(100vh - 120px);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
  padding: 70px 0 90px 0;
}

.eyebrow {
  margin: 0 0 14px 0;
  color: #6f7e68;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-text h1 {
  margin: 0;
  font-size: clamp(64px, 8vw, 112px);
  line-height: 0.95;
  color: #083622;
  letter-spacing: -0.06em;
}

.hero-description {
  max-width: 520px;
  margin: 28px 0 0 0;

  color: #52624f;
  font-size: 22px;
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 34px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  text-decoration: none;
  font-weight: 800;
  border-radius: 999px;
  padding: 16px 24px;

  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-button {
  background: #52624f;
  color: white;
  box-shadow: 0 14px 28px rgba(82, 98, 79, 0.24);
}

.secondary-button {
  background: rgba(255, 255, 255, 0.72);
  color: #52624f;
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
}

/* Hero image */
.hero-visual {
  position: relative;
  min-height: 520px;
  border-radius: 48px;
  overflow: hidden;

  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.86);

  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.hero-render img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  display: block;
}

.hero-render::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.10),
      rgba(0, 0, 0, 0.04) 45%,
      rgba(0, 0, 0, 0.14)
    );
  pointer-events: none;
}

.hero-glass-label {
  position: absolute;
  left: 28px;
  bottom: 28px;
  z-index: 2;

  padding: 14px 20px;
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.88);

  color: #083622;
  font-weight: 800;

  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

/* Sections */
.dashboard-section,
.recommendations-section,
.demo-section,
.device-section {
  padding: 90px 0;
  scroll-margin-top: 120px;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 36px;
}

.section-heading h2 {
  margin: 0;
  color: #083622;
  font-size: clamp(38px, 5vw, 64px);
  letter-spacing: -0.04em;
}

.section-heading p {
  color: #687061;
  font-size: 18px;
  line-height: 1.55;
}

/* Shared cards */
.product-panel,
.demo-visual-card,
.data-card,
.response-card,
.device-grid article {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.08);

  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
}

/* Dashboard */
.dashboard-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
}

.product-panel {
  position: relative;
  min-height: 460px;
  border-radius: 42px;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;
}

.dashboard-halo {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      var(--dashboard-glow) 0%,
      var(--dashboard-soft) 38%,
      rgba(255, 255, 255, 0) 72%
    );

  filter: blur(18px);
  animation: haloPulse 3.2s ease-in-out infinite;
  z-index: 1;
}

.product-panel img {
  position: relative;
  z-index: 2;

  width: 82%;
  max-height: 360px;
  object-fit: contain;

  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.14));
  transition: transform 0.24s ease, opacity 0.24s ease;
}

.product-panel img:hover {
  transform: scale(1.03);
}

.dashboard-mode-badge {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 3;

  padding: 12px 16px;
  border-radius: 999px;

  background: rgba(232, 244, 223, 0.82);
  color: #083622;

  font-weight: 800;
  font-size: 14px;

  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}

.data-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.data-card {
  border-radius: 32px;
  padding: 26px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.data-card:hover,
.response-card:hover,
.device-grid article:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 62px rgba(0, 0, 0, 0.11);
}

.data-card span,
.response-card span {
  display: block;
  color: #687061;
  font-size: 15px;
  margin-bottom: 16px;
}

.data-card strong {
  display: block;
  color: var(--dashboard-color);
  font-size: 56px;
  line-height: 1;
}

.data-card p {
  margin: 8px 0 0 0;
  color: #52624f;
}

/* Demo */
.demo-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  align-items: stretch;
  transition: opacity 0.25s ease, filter 0.25s ease;
}

.demo-section.is-disabled .demo-layout {
  opacity: 0.42;
  filter: saturate(0.55);
}

.demo-visual-card {
  position: relative;
  min-height: 440px;
  border-radius: 42px;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;
}

.demo-halo {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      var(--demo-glow) 0%,
      var(--demo-soft) 38%,
      rgba(255, 255, 255, 0) 72%
    );

  filter: blur(18px);
  animation: haloPulse 3.2s ease-in-out infinite;
  z-index: 1;
}

.demo-visual-card img {
  position: relative;
  z-index: 2;

  width: 88%;
  max-height: 350px;
  object-fit: contain;

  filter: drop-shadow(0 26px 32px rgba(0, 0, 0, 0.14));
}

.demo-mode-panel {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 4;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

  padding: 14px 16px;
  border-radius: 28px;

  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.9);

  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
}

.demo-mode-panel span {
  display: block;
  color: #687061;
  font-size: 13px;
  margin-bottom: 4px;
}

.demo-mode-panel strong {
  color: var(--demo-color);
  font-size: 20px;
}

.demo-mode-panel button {
  border: none;
  cursor: pointer;

  padding: 12px 18px;
  border-radius: 999px;

  background: #52624f;
  color: white;

  font-weight: 800;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.demo-mode-panel button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(82, 98, 79, 0.24);
}

.demo-mode-panel button:disabled {
  cursor: default;
  opacity: 0.78;
  transform: none;
  box-shadow: none;
}

.demo-control-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
}

.demo-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.demo-controls button {
  border: none;
  cursor: pointer;

  padding: 15px 28px;
  border-radius: 999px;

  font-size: 16px;
  font-weight: 800;

  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease,
    outline 0.18s ease;
}

.demo-controls button:nth-child(1) {
  background: #e8f4df;
  color: #157525;
}

.demo-controls button:nth-child(2) {
  background: #fff1d3;
  color: #955700;
}

.demo-controls button:nth-child(3) {
  background: #ffe5e3;
  color: #be1212;
}

.demo-controls button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.08);
}

.demo-controls button:active:not(:disabled) {
  transform: scale(0.96);
}

.demo-controls button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.selected-demo {
  outline: 3px solid var(--demo-soft);
  box-shadow:
    0 14px 30px var(--demo-soft),
    inset 0 1px 0 rgba(255, 255, 255, 0.65) !important;
  transform: translateY(-2px);
}

.response-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.response-card {
  border-radius: 32px;
  padding: 26px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.response-card strong {
  display: block;
  color: var(--demo-color);
  font-size: 24px;
  line-height: 1.25;
}

/* Device */
.device-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.device-grid article {
  border-radius: 32px;
  padding: 26px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.device-grid h3 {
  margin: 0 0 12px 0;
  color: #083622;
  font-size: 22px;
}

.device-grid p {
  margin: 0;
  color: #687061;
  line-height: 1.55;
}

/* Motion */
@keyframes haloPulse {
  0% {
    transform: scale(0.94);
    opacity: 0.65;
  }

  50% {
    transform: scale(1.08);
    opacity: 1;
  }

  100% {
    transform: scale(0.94);
    opacity: 0.65;
  }
}

/* Responsive */
@media (max-width: 980px) {
  .site-header {
    flex-direction: column;
    gap: 14px;
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-section,
  .dashboard-layout,
  .demo-layout {
    grid-template-columns: 1fr;
  }

  .hero-section {
    padding-top: 50px;
  }

  .hero-visual {
    min-height: 420px;
  }

  .hero-render img {
    min-height: 420px;
  }

  .device-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  html {
    scroll-padding-top: 190px;
  }

  main,
  .site-header {
    width: min(100% - 28px, 1180px);
  }

  .site-nav a {
    font-size: 13px;
    padding: 8px 10px;
  }

  .dashboard-section,
  .recommendations-section,
  .demo-section,
  .device-section {
    padding: 64px 0;
    scroll-margin-top: 180px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .data-grid,
  .response-grid,
  .device-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual,
  .product-panel,
  .demo-visual-card {
    min-height: 340px;
    border-radius: 34px;
  }

  .hero-render img {
    min-height: 340px;
  }

  .dashboard-halo,
  .demo-halo {
    width: 240px;
    height: 240px;
  }

  .demo-mode-panel {
    flex-direction: column;
    align-items: stretch;
  }

  .demo-mode-panel button {
    width: 100%;
  }
}
/* Recommendations Section */

.recommendation-panel {
  display: grid;
  grid-template-columns: 0.35fr 0.65fr;
  gap: 28px;

  background: rgba(255, 255, 255, 0.70);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 42px;

  padding: 34px;

  box-shadow: 0 24px 62px rgba(0, 0, 0, 0.08);

  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
}

.recommendation-status {
  min-height: 260px;
  border-radius: 32px;

  background:
    radial-gradient(
      circle at 50% 40%,
      var(--dashboard-glow),
      var(--dashboard-soft) 42%,
      rgba(255, 255, 255, 0.20) 100%
    );

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;
}

.recommendation-status span {
  color: #687061;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
}

.recommendation-status strong {
  color: var(--dashboard-color);
  font-size: 46px;
  line-height: 1;
}

.recommendation-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.recommendation-content h3 {
  margin: 0 0 14px 0;
  color: #083622;
  font-size: 32px;
  letter-spacing: -0.03em;
}

.recommendation-content p {
  margin: 0 0 22px 0;
  color: #687061;
  font-size: 18px;
  line-height: 1.55;
}

.recommendation-content ul {
  margin: 0;
  padding-left: 20px;
}

.recommendation-content li {
  margin-bottom: 10px;
  color: #52624f;
  font-size: 16px;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .recommendation-panel {
    grid-template-columns: 1fr;
  }

  .recommendation-status {
    min-height: 190px;
  }
}

.demo-command-status {
  margin: -8px 0 0;
  color: #687061;
  font-size: 14px;
  font-weight: 700;
  min-height: 1.4em;
}

.demo-command-status.is-active {
  color: var(--demo-color);
}

.noscript-message {
  width: min(1180px, calc(100% - 48px));
  margin: 24px auto;
  padding: 16px 20px;
  border-radius: 18px;
  background: #ffe5e3;
  color: #7f1010;
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
