/* ===== LEO Smart Home & Autoslide — Taste-Skill 2.5 Architecture =====
 * Reference Bar: figma.com / x.ai
 * House Rules: One section per screen (1440x900), equal edges, real photography,
 *              hover micro-animations (card lift 2px, photo zoom 1.025x, button press),
 *              plain authoritative copy (zero AI slop), 90% neutral palette with precise accents.
 */

:root {
  /* Taste-Skill Spacing Scale */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  /* Taste-Skill Motion Tokens */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --m-ease-enter: cubic-bezier(0.22, 1, 0.36, 1);
  --m-in: 150ms;
  --m-out: 120ms;
  --m-press: 90ms;
  --m-image: 500ms;

  /* Palette: Tech Hardware / Architectural Security */
  --ink: #0f172a;
  --ink-secondary: #334155;
  --muted: #64748b;
  --rule: #e2e8f0;
  
  --bg-page: #ffffff;
  --bg-surface: #f8fafc;
  --bg-surface-2: #f1f5f9;
  
  --dark-bg: #090d16;
  --dark-surface: #0f172a;
  --dark-card: #1e293b;
  --dark-rule: rgba(255, 255, 255, 0.08);

  /* Accents */
  --accent: #0284c7;
  --accent-hover: #0369a1;
  --accent-light: #38bdf8;
  --emerald: #10b981;
  --line-green: #06c755;
  --line-hover: #05963f;

  /* Aurora / Hub Backwards-Compatibility */
  --leo-paper: var(--bg-surface);
  --leo-paper-2: var(--bg-surface-2);
  --leo-ink: var(--ink);
  --leo-soft: var(--muted);
  --leo-rule: var(--rule);
  --leo-accent: var(--accent);
  --leo-accent-pop: #0ea5e9;

  /* Typography */
  --font-display: 'Plus Jakarta Sans', 'Prompt', sans-serif;
  --font-body: 'Prompt', 'Plus Jakarta Sans', sans-serif;
  
  /* Layout constraints */
  --max-w: 1280px;
  --gutter: clamp(20px, 4vw, 64px);
}

/* Base reset */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  color: var(--ink-secondary);
  background: var(--bg-page);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--m-in) var(--ease);
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

/* Container with equal left and right edges (Rule 4) */
.container, .wrap {
  width: 100%;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- Site Header (Frosted Glass & Top Bar) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--rule);
}

.top-bar {
  background: var(--dark-bg);
  color: #94a3b8;
  font-size: 13px;
  padding: 7px 0;
  border-bottom: 1px solid var(--dark-rule);
}

.top-bar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.top-bar__tagline {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
  flex: none;
  animation: pulse-dot 2.5s infinite var(--ease);
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.top-bar__contact {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-contact-item {
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.top-contact-item:hover {
  color: #ffffff;
}

.top-contact-line {
  color: #4ade80;
  font-weight: 600;
}

.main-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand-badge {
  background: var(--dark-bg);
  color: #ffffff;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border-radius: 8px;
  display: inline-block;
  line-height: 1;
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.brand-dot {
  color: var(--accent);
}

.desktop-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  color: var(--ink-secondary);
  font-weight: 500;
  font-size: 14.5px;
  border-radius: 8px;
  transition: all var(--m-in) var(--ease);
  text-decoration: none;
}

.nav-link:hover {
  color: var(--accent);
  background: #f0f9ff;
  text-decoration: none;
}

.nav-link.active {
  color: var(--accent);
  background: #f0f9ff;
  font-weight: 600;
}

.header-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* Taste-Skill Buttons: hover step & press feedback */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 14px;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: transform var(--m-in) var(--ease), background var(--m-in) var(--ease), box-shadow var(--m-in) var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn--phone-nav {
  background: var(--bg-surface);
  color: var(--ink);
  border: 1px solid var(--rule);
}

.btn--phone-nav:hover {
  background: var(--bg-surface-2);
}

.btn--line {
  background: var(--line-green);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(6, 199, 85, 0.25);
}

.btn--line:hover {
  background: var(--line-hover);
  box-shadow: 0 6px 18px rgba(6, 199, 85, 0.35);
}

/* ---------- Taste-Skill Micro-Interactions (Rule 5) ---------- */
/* Card lift 2px on hover */
.card-lift, .pillar-card, .feature-item, .lh-card {
  transition: transform var(--m-in) var(--ease), box-shadow var(--m-in) var(--ease), border-color var(--m-in) var(--ease);
}

.card-lift:hover, .pillar-card:hover, .feature-item:hover, .lh-card:hover {
  transform: translateY(-2px);
}

/* Photo subtle zoom 1.025x inside frames */
.m-frame, .pillar-visual, .case-study-image-grid {
  overflow: hidden;
}

.m-frame img, .pillar-visual img, .case-img-main, .case-img-thumbs img {
  transition: transform var(--m-image) var(--ease);
}

.m-frame:hover img, .pillar-card:hover .pillar-visual img, .case-study-card:hover .case-img-main {
  transform: scale(1.025);
}

/* ---------- Subpage Prose & Content ---------- */
main {
  min-height: 65vh;
}

.page-content {
  padding-top: var(--s-6);
  padding-bottom: var(--s-9);
}

.prose {
  color: var(--ink-secondary);
  font-size: 16.5px;
  line-height: 1.8;
  max-width: 920px;
  margin: 0 auto;
}

.prose h1 {
  font-size: clamp(28px, 3.2vw, 40px);
  margin: var(--s-3) 0 var(--s-5);
  color: var(--ink);
}

.prose h2 {
  font-size: clamp(22px, 2.4vw, 30px);
  margin: var(--s-7) 0 var(--s-4);
  padding-left: 14px;
  border-left: 4px solid var(--accent);
  color: var(--ink);
}

.prose h3 {
  font-size: 20px;
  margin: var(--s-6) 0 var(--s-3);
  color: var(--ink);
}

.prose p {
  margin: 0 0 var(--s-5);
}

.prose ul, .prose ol {
  padding-left: 24px;
  margin: 0 0 var(--s-5);
}

.prose li {
  margin-bottom: 8px;
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

.prose img {
  border-radius: 12px;
  margin: var(--s-6) 0;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--s-6) 0;
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
}

.prose th, .prose td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--rule);
}

.prose th {
  background: var(--bg-surface-2);
  font-weight: 700;
  color: var(--ink);
  font-size: 15px;
}

.prose tbody tr:hover td {
  background: var(--bg-surface);
}

.prose blockquote {
  border-left: 4px solid var(--accent);
  background: #f0f9ff;
  margin: var(--s-6) 0;
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
}

.prose .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #ffffff !important;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
  transition: transform var(--m-in) var(--ease), background var(--m-in) var(--ease);
}

.prose .wp-block-button__link:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* ---------- Bento / Hub Styling ---------- */
.leo-hub {
  font-family: var(--font-body);
  background: #ffffff;
  color: var(--ink-secondary);
}

.leo-hub .lh-card {
  background: #ffffff;
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.leo-hub .lh-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

/* ---------- CTA Banner (Subpages) ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-surface) 100%);
  color: #ffffff;
  padding: var(--s-8) 0;
  margin-top: var(--s-8);
  border-top: 4px solid var(--accent);
}

.cta-banner__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-6);
  flex-wrap: wrap;
}

.cta-banner__content {
  flex: 1 1 500px;
}

.cta-banner__badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: var(--s-3);
}

.cta-badge {
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent-light);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.cta-banner__title {
  color: #ffffff;
  font-size: clamp(24px, 2.6vw, 32px);
  margin: 0 0 var(--s-3);
}

.cta-banner__desc {
  color: #cbd5e1;
  font-size: 15.5px;
  line-height: 1.7;
  margin: 0 0 var(--s-5);
}

.cta-banner__steps {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.step-chip {
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  color: #f1f5f9;
}

.cta-banner__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn--line-cta {
  background: var(--line-green);
  color: #ffffff;
  padding: 14px 24px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(6, 199, 85, 0.35);
  transition: transform var(--m-in) var(--ease), background var(--m-in) var(--ease);
}

.btn--line-cta:hover {
  background: var(--line-hover);
  transform: translateY(-1px);
  text-decoration: none;
}

.btn--phone-cta {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
  text-decoration: none;
  transition: background var(--m-in) var(--ease);
}

.btn--phone-cta:hover {
  background: rgba(255, 255, 255, 0.15);
  text-decoration: none;
}

/* ---------- Site Footer ---------- */
.site-footer {
  background: var(--dark-bg);
  color: #94a3b8;
  padding-top: var(--s-8);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: var(--s-6);
  padding-bottom: var(--s-7);
}

.footer-logo .brand-text {
  color: #ffffff;
}

.footer-desc {
  margin-top: var(--s-3);
  font-size: 14px;
  line-height: 1.7;
}

.footer-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12.5px;
  color: #cbd5e1;
  margin-top: var(--s-4);
}

.footer-title {
  color: #ffffff;
  font-size: 15.5px;
  margin: 0 0 var(--s-4);
  font-weight: 700;
  border: 0;
  display: block;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
  font-size: 14px;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: color var(--m-in) var(--ease);
}

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

.footer-col--contact p {
  margin: 0 0 8px;
  font-size: 14px;
}

.footer-phone-main a {
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
}

.footer-line a {
  color: #4ade80;
  font-weight: 600;
}

.footer-bottom {
  border-top: 1px solid var(--dark-rule);
  padding: 20px 0;
  font-size: 13px;
}

.footer-bottom__inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-bottom__links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-bottom__links a {
  color: #64748b;
  text-decoration: none;
}

.footer-bottom__links a:hover {
  color: #cbd5e1;
}

/* ---------- Mobile Sticky Floating Bar ---------- */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(9, 13, 22, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 10px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 9999;
  gap: 10px;
}

.mobile-sticky-bar a {
  flex: 1;
  text-align: center;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.mob-call-btn {
  background: #1e293b;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.mob-line-btn {
  background: var(--line-green);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(6, 199, 85, 0.3);
}

/* ---------- Responsive Breakpoints ---------- */
@media (max-width: 1024px) {
  .desktop-nav {
    display: none;
  }
}

@media (max-width: 900px) {
  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }
  .top-bar__tagline span:last-child {
    display: none;
  }
  .cta-banner__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .top-bar {
    display: none;
  }
  .header-action .btn--phone-nav {
    display: none;
  }
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-bottom__inner {
    flex-direction: column;
    text-align: center;
  }
  .mobile-sticky-bar {
    display: flex;
  }
  body {
    padding-bottom: 65px;
  }
}

/* ===== LEO Smart Home Theme Extensions ===== */
:root {
  --dark-bg: #080c14;
  --dark-surface: #0d1527;
  --dark-card: #131d35;
  --dark-rule: rgba(255, 255, 255, 0.08);
  --accent: #0ea5e9;
  --accent-light: #38bdf8;
  --line-green: #06c755;
  --emerald: #10b981;
}

/* Hardcoded Fallback Styles for Dark Sections to prevent contrast bugs */
.leo-hero {
  background-color: #080c14 !important;
  color: #ffffff !important;
}

.why-leo-section {
  background-color: #080c14 !important;
  color: #ffffff !important;
}

.consult-box {
  background-color: #0b1120 !important;
  color: #ffffff !important;
}

.cta-banner {
  background: #080c14 !important;
  background: linear-gradient(135deg, #080c14 0%, #0d1527 100%) !important;
  color: #ffffff !important;
  padding: 64px 0 !important;
  margin-top: 64px !important;
  border-top: 4px solid #0ea5e9 !important;
}

.cta-banner__title {
  color: #ffffff !important;
}

.btn--line-cta, .btn-hero-primary, .mob-line-btn {
  background-color: #06c755 !important;
  color: #ffffff !important;
}

/* Smart Terminal Mockup (Anti-AI Slop) */
.smart-terminal-card {
  background: linear-gradient(145deg, rgba(19, 29, 53, 0.85) 0%, rgba(8, 12, 20, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 0 35px rgba(14, 165, 233, 0.15), 0 20px 40px rgba(0, 0, 0, 0.6);
  color: #ffffff;
}

.terminal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #38bdf8;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
}

.terminal-badges {
  display: flex;
  gap: 6px;
}

.badge-iot {
  font-size: 11px;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: #94a3b8;
}

.terminal-device-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 16px;
}

.device-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.device-icon {
  width: 40px;
  height: 40px;
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(14, 165, 233, 0.3);
  color: #38bdf8;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.device-details {
  flex: 1;
}

.device-name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.device-status {
  display: block;
  font-size: 11.5px;
  color: #94a3b8;
}

.device-battery {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #10b981;
}

.access-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.access-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  font-size: 12px;
  color: #cbd5e1;
}

.access-pill.active {
  background: rgba(14, 165, 233, 0.12);
  border-color: rgba(14, 165, 233, 0.35);
  color: #38bdf8;
  font-weight: 600;
}

.terminal-stream {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.stream-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(15, 23, 42, 0.5);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.stream-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
  flex-shrink: 0;
}

.stream-dot--blue {
  background: #38bdf8;
  box-shadow: 0 0 6px #38bdf8;
}

.stream-info {
  flex: 1;
}

.stream-title {
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
}

.stream-time {
  font-size: 10.5px;
  color: #94a3b8;
}

.stream-tag {
  font-size: 10.5px;
  color: #10b981;
  padding: 2px 6px;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 4px;
}

.terminal-footer {
  text-align: center;
  font-size: 11.5px;
  color: #94a3b8;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Case Study Architectural Layout */
.case-study-wrap {
  max-width: 900px;
  margin: 0 auto;
}

.case-summary-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 32px;
}

.case-badge-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.case-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #334155;
}

.case-badge--live {
  background: #dcfce7;
  color: #166534;
}

.case-dot {
  width: 8px;
  height: 8px;
  background: #16a34a;
  border-radius: 50%;
  box-shadow: 0 0 6px #16a34a;
}

.case-badge--model {
  background: #e0f2fe;
  color: #0369a1;
}

.case-badge--type {
  background: #f1f5f9;
  color: #475569;
}

.case-hero-title {
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
  margin: 0 0 12px;
}

.case-hero-desc {
  font-size: 16.5px;
  line-height: 1.75;
  color: #475569;
  margin: 0;
}

.case-hero-media {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
  margin-bottom: 40px;
}

.case-img-cover {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

.case-section {
  margin-bottom: 48px;
}

.case-section-title {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 20px;
  padding-left: 12px;
  border-left: 4px solid var(--accent, #0ea5e9);
}

.case-reasons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.case-reason-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.case-reason-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.reason-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #e0f2fe;
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.case-reason-card h4 {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px;
}

.case-reason-card p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

.case-hardware-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.hardware-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.hardware-media {
  height: 320px;
  overflow: hidden;
  background: #f1f5f9;
}

.hardware-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 300ms ease;
}

.hardware-card:hover .hardware-img {
  transform: scale(1.03);
}

.hardware-info {
  padding: 20px;
}

.hardware-info h4 {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px;
}

.hardware-info p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

.case-door-showcase {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  background: #ffffff;
}

.case-door-caption {
  padding: 16px 20px;
  font-size: 14.5px;
  color: #475569;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  font-size: 15px;
}

.specs-table th {
  background: #0f172a;
  color: #ffffff;
  padding: 14px 18px;
  font-weight: 600;
  text-align: left;
}

.specs-table td {
  padding: 14px 18px;
  border-bottom: 1px solid #e2e8f0;
  color: #334155;
}

.specs-table tr:nth-child(even) td {
  background: #f8fafc;
}

.case-faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
}

.faq-q {
  font-size: 16.5px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px;
}

.faq-a {
  font-size: 15px;
  color: #64748b;
  line-height: 1.7;
  margin: 0;
}

.case-actions-card {
  background: #0b1120;
  border-radius: 16px;
  padding: 36px 32px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 40px;
}

.actions-header h4 {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 8px;
}

.actions-header p {
  color: #94a3b8;
  font-size: 15px;
  margin: 0;
}

.actions-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn-action-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #06c755;
  color: #ffffff;
  padding: 14px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(6, 199, 85, 0.35);
  transition: transform 150ms ease;
}

.btn-action-primary:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-action-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 15px;
  text-decoration: none;
  transition: background 150ms ease;
}

.btn-action-outline:hover {
  background: rgba(255, 255, 255, 0.16);
  text-decoration: none;
}

@media (max-width: 768px) {
  .case-reasons-grid {
    grid-template-columns: 1fr;
  }
  .case-hardware-grid {
    grid-template-columns: 1fr;
  }
  .hardware-media {
    height: 240px;
  }
  .case-img-cover {
    max-height: 320px;
  }
}
