/* =========================================================
   Lift Logic Systems — Public Homepage
   Theme: High-Tech Grow Room
   /static/css/home.css
   ========================================================= */

/* --- Custom Properties --- */
:root {
  /* Backgrounds */
  --bg-body:      #060d18;
  --bg-panel:     #0b1525;
  --bg-surface:   #0f1c30;
  --bg-surface-2: #14223a;

  /* Accents */
  --accent-cyan:       #43c6ff;
  --accent-cyan-dim:   rgba(67, 198, 255, 0.10);
  --accent-cyan-glow:  rgba(67, 198, 255, 0.22);
  --accent-green:      #35e47c;
  --accent-green-dim:  rgba(53, 228, 124, 0.10);
  --accent-green-glow: rgba(53, 228, 124, 0.20);

  /* Text */
  --text-primary:   #d9e8ff;
  --text-secondary: #7a9dba;
  --text-muted:     #3e5870;

  /* Borders */
  --border-base:   rgba(67, 198, 255, 0.10);
  --border-bright: rgba(67, 198, 255, 0.28);

  /* Shadows / glow */
  --shadow-card:  0 4px 24px rgba(0, 0, 0, 0.55);
  --glow-cyan:    0 0 24px rgba(67, 198, 255, 0.15);
  --glow-green:   0 0 24px rgba(53, 228, 124, 0.12);

  /* Layout */
  --max-width:    1200px;
  --radius:       12px;
  --radius-lg:    18px;
  --section-pad:  96px 0;
}

/* =========================================================
   RESET & BASE
   ========================================================= */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, Arial, sans-serif;
  background: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
}

/* =========================================================
   LAYOUT UTILITIES
   ========================================================= */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  display: block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-body {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 620px;
}

.section-header {
  margin-bottom: 52px;
}

/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.15s ease, border-color 0.18s ease, color 0.18s ease;
  white-space: nowrap;
  line-height: 1;
}

.btn-primary {
  background: var(--accent-cyan);
  color: #060d18;
  box-shadow: 0 4px 18px rgba(67, 198, 255, 0.32);
}

.btn-primary:hover {
  background: #6cd6ff;
  box-shadow: 0 6px 26px rgba(67, 198, 255, 0.48);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-bright);
}

.btn-ghost:hover {
  background: var(--accent-cyan-dim);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-1px);
}

.btn-green {
  background: var(--accent-green);
  color: #060d18;
  font-size: 16px;
  padding: 15px 34px;
  box-shadow: 0 4px 18px rgba(53, 228, 124, 0.30);
}

.btn-green:hover {
  background: #5aeeaa;
  box-shadow: 0 6px 28px rgba(53, 228, 124, 0.46);
  transform: translateY(-1px);
}

/* =========================================================
   HEADER / NAVIGATION
   ========================================================= */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(6, 13, 24, 0.90);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-base);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo {
  height: 90px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.nav-brand-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 8px 13px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}

.nav-links a:hover {
  color: var(--accent-cyan);
  background: var(--accent-cyan-dim);
}

.nav-cta {
  flex-shrink: 0;
}

.nav-cta .btn {
  padding: 9px 18px;
  font-size: 13px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-bright);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--bg-panel);
  border-top: 1px solid var(--border-base);
  padding: 8px 24px 20px;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  display: block;
  padding: 11px 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 1px solid var(--border-base);
  transition: color 0.15s;
}

.nav-mobile a:last-child {
  border-bottom: none;
}

.nav-mobile a:hover {
  color: var(--accent-cyan);
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%,   rgba(67, 198, 255, 0.07) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 85% 65%,   rgba(53, 228, 124, 0.05) 0%, transparent 55%),
    linear-gradient(180deg, #060d18 0%, #08111e 60%, #060d18 100%);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(67, 198, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(67, 198, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(53, 228, 124, 0.09);
  border: 1px solid rgba(53, 228, 124, 0.22);
  border-radius: 999px;
  padding: 6px 14px 6px 10px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-green);
  margin-bottom: 28px;
}

.hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 0 3px rgba(53, 228, 124, 0.18);
  flex-shrink: 0;
  animation: pulse-dot 2.2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(53, 228, 124, 0.18); }
  50%       { box-shadow: 0 0 0 6px rgba(53, 228, 124, 0.07); }
}

.hero-headline {
  font-size: clamp(36px, 5.5vw, 70px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.04;
  color: var(--text-primary);
  margin-bottom: 26px;
  max-width: 880px;
}

.hero-headline .hl-cyan  { color: var(--accent-cyan); }
.hero-headline .hl-green { color: var(--accent-green); }

.hero-sub {
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.75;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 72px;
}

.hero-stats {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--border-base);
  padding-top: 36px;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-right: 40px;
  margin-right: 40px;
  border-right: 1px solid var(--border-base);
}

.hero-stat:last-child {
  border-right: none;
  margin-right: 0;
}

.hero-stat-value {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1;
}

.hero-stat-value .unit {
  font-size: 13px;
  font-weight: 800;
  color: var(--accent-cyan);
  margin-left: 3px;
  vertical-align: middle;
}

.hero-stat-label {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* =========================================================
   PLATFORM OVERVIEW  (#platform)
   ========================================================= */

.section-platform {
  padding: var(--section-pad);
  background: var(--bg-panel);
  border-top: 1px solid var(--border-base);
  border-bottom: 1px solid var(--border-base);
}

.platform-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.platform-intro .section-body {
  margin-bottom: 20px;
}

.platform-intro .section-body + .section-body {
  margin-bottom: 0;
}

.platform-pillars {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.platform-pillar {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-base);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.platform-pillar:hover {
  border-color: var(--border-bright);
  box-shadow: var(--glow-cyan);
}

.pillar-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  background: var(--accent-cyan-dim);
  border: 1px solid rgba(67, 198, 255, 0.18);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  font-size: 15px;
}

.pillar-text h4 {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.pillar-text p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* =========================================================
   CORE CAPABILITIES  (#features)
   ========================================================= */

.section-capabilities {
  padding: var(--section-pad);
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.cap-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-base);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.18s;
}

.cap-card:hover {
  border-color: rgba(67, 198, 255, 0.28);
  box-shadow: var(--glow-cyan);
  transform: translateY(-2px);
}

.cap-card.green:hover {
  border-color: rgba(53, 228, 124, 0.28);
  box-shadow: var(--glow-green);
}

.cap-icon {
  width: 46px;
  height: 46px;
  background: var(--accent-cyan-dim);
  border: 1px solid rgba(67, 198, 255, 0.18);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  font-size: 18px;
  margin-bottom: 16px;
}

.cap-card.green .cap-icon {
  background: var(--accent-green-dim);
  border-color: rgba(53, 228, 124, 0.18);
  color: var(--accent-green);
}

.cap-card h3 {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.cap-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* =========================================================
   ARCHITECTURE  (#architecture)
   ========================================================= */

.section-architecture {
  padding: var(--section-pad);
  background: var(--bg-panel);
  border-top: 1px solid var(--border-base);
  border-bottom: 1px solid var(--border-base);
}

.arch-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

/* Diagram — left column */
.arch-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border-base);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.arch-node {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-base);
  position: relative;
}

.arch-node:last-child {
  border-bottom: none;
}

.arch-node.highlight {
  background: rgba(67, 198, 255, 0.05);
  border-bottom-color: rgba(67, 198, 255, 0.15);
}

.arch-node-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  background: var(--accent-cyan-dim);
  border: 1px solid rgba(67, 198, 255, 0.18);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  font-size: 14px;
}

.arch-node.green-node .arch-node-icon {
  background: var(--accent-green-dim);
  border-color: rgba(53, 228, 124, 0.18);
  color: var(--accent-green);
}

.arch-node-text {
  flex: 1;
  min-width: 0;
}

.arch-node-text h4 {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.arch-node-text p {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.arch-node-badge {
  flex-shrink: 0;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(53, 228, 124, 0.10);
  color: var(--accent-green);
  border: 1px solid rgba(53, 228, 124, 0.20);
}

.arch-arrow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 18px;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border-base);
}

.arch-arrow-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-bright), transparent);
}

.arch-arrow-label {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Callouts — right column */
.arch-callouts {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.arch-callout {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-base);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.arch-callout:hover {
  border-color: var(--border-bright);
  box-shadow: var(--glow-cyan);
}

.arch-callout-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--accent-green-dim);
  border: 1px solid rgba(53, 228, 124, 0.18);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-green);
  font-size: 14px;
}

.arch-callout.cyan .arch-callout-icon {
  background: var(--accent-cyan-dim);
  border-color: rgba(67, 198, 255, 0.18);
  color: var(--accent-cyan);
}

.arch-callout h4 {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.arch-callout p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* RS-485 bus table */
.bus-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}

.bus-table td {
  padding: 4px 0;
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.4;
  vertical-align: top;
}

.bus-table td:first-child {
  font-weight: 800;
  color: var(--accent-cyan);
  padding-right: 10px;
  white-space: nowrap;
}

/* =========================================================
   GALLERY  (#gallery)
   ========================================================= */

.section-gallery {
  padding: var(--section-pad);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.gallery-placeholder {
  aspect-ratio: 16 / 10;
  background: var(--bg-panel);
  border: 1px dashed rgba(67, 198, 255, 0.18);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
  cursor: default;
}

.gallery-placeholder:hover {
  border-color: rgba(67, 198, 255, 0.32);
  background: rgba(67, 198, 255, 0.03);
}

.gallery-placeholder i {
  font-size: 24px;
  color: rgba(67, 198, 255, 0.22);
}

.gallery-placeholder-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
}

.gallery-placeholder-sub {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Real image cards */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(67, 198, 255, 0.14);
  background: var(--bg-panel);
  aspect-ratio: 16 / 10;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.gallery-item:hover {
  border-color: rgba(67, 198, 255, 0.36);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.50);
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  transition: transform 0.4s ease;
}

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

.gallery-item-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 12px 10px;
  background: linear-gradient(to top, rgba(6, 13, 24, 0.92) 0%, transparent 100%);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* Two images stacked vertically in one cell */
.gallery-item-stacked {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gallery-item-stacked img {
  flex: 1;
  min-height: 0;
  object-position: top left;
}

.gallery-note {
  margin-top: 28px;
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.6;
}

/* =========================================================
   CONTACT  (#contact)
   ========================================================= */

.section-contact {
  padding: var(--section-pad);
  background: var(--bg-panel);
  border-top: 1px solid var(--border-base);
  border-bottom: 1px solid var(--border-base);
}

.contact-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact-inner .section-label {
  display: block;
}

.contact-inner .section-title {
  margin-bottom: 16px;
}

.contact-inner .section-body {
  max-width: none;
  margin-bottom: 36px;
}

.contact-note {
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  padding: 52px 0;
  border-top: 1px solid var(--border-base);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-brand img {
  height: 38px;
  width: auto;
  opacity: 0.85;
}

.footer-tagline {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
}

.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
}

.footer-nav a {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

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

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1024px) {
  .cap-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .arch-layout,
  .platform-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

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

@media (max-width: 768px) {
  :root {
    --section-pad: 64px 0;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    padding-top: 100px;
    padding-bottom: 60px;
  }

  .hero-stats {
    gap: 0;
  }

  .hero-stat {
    padding-right: 24px;
    margin-right: 24px;
  }

  .hero-stat-value {
    font-size: 22px;
  }
}

@media (max-width: 600px) {
  .cap-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
    padding-top: 28px;
  }

  .hero-stat {
    border-right: none;
    border-bottom: 1px solid var(--border-base);
    padding-bottom: 16px;
    padding-right: 0;
    margin-right: 0;
  }

  .hero-stat:last-child {
    border-bottom: none;
  }
}
