/* ETerminal High-Trust Enterprise Landing Stylesheet */

/* Interactive Mouse Spotlight / Soft Ambient Depth */
.interactive-spotlight-bg {
  position: relative;
  background-color: #FAFAFB;
  background-image: 
    radial-gradient(850px circle at var(--mouse-x, 50%) var(--mouse-y, 25%), rgba(2, 132, 199, 0.08), transparent 60%),
    radial-gradient(700px circle at 80% 15%, rgba(14, 165, 233, 0.05), transparent 50%),
    radial-gradient(600px circle at 20% 80%, rgba(2, 132, 199, 0.03), transparent 50%);
}

.interactive-spotlight-dark {
  position: relative;
  background-color: #0B1120;
  background-image: 
    radial-gradient(950px circle at var(--mouse-x, 50%) var(--mouse-y, 25%), rgba(2, 132, 199, 0.22), transparent 70%),
    radial-gradient(750px circle at 85% 30%, rgba(16, 185, 129, 0.08), transparent 60%);
}

/* Subtle Shimmer & Ambient Floating */
@keyframes soft-float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-6px);
  }
}

.animate-soft-float {
  animation: soft-float 6s ease-in-out infinite;
}

/* Pulse & Status Indicator */
.status-beacon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.status-beacon::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 9999px;
  background-color: currentColor;
  opacity: 0.75;
  animation: beacon-ping 2.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes beacon-ping {
  75%, 100% {
    transform: scale(2.6);
    opacity: 0;
  }
}

/* Live Telemetry Pulse Dot */
.telemetry-pulse {
  position: relative;
  display: inline-block;
}

.telemetry-pulse::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 9999px;
  background: inherit;
  opacity: 0.6;
  animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* Device Wallboard Frame Preview */
.wallboard-mockup-frame {
  position: relative;
  border-radius: 1.25rem;
  background: #0B1120;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 
    0 25px 60px -15px rgba(15, 23, 42, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 60px -15px rgba(2, 132, 199, 0.18);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.wallboard-mockup-frame:hover {
  box-shadow: 
    0 30px 70px -15px rgba(15, 23, 42, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.14),
    0 0 80px -10px rgba(2, 132, 199, 0.28);
}

.wallboard-header-bar {
  background: #111827;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.875rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Tab Switcher in Wallboard Frame */
.wallboard-tab-btn {
  padding: 0.375rem 0.875rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #94A3B8;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.wallboard-tab-btn:hover {
  color: #F8FAFC;
  background: rgba(255, 255, 255, 0.06);
}

.wallboard-tab-btn.active {
  color: #FFFFFF;
  background: rgba(2, 132, 199, 0.25);
  border-color: rgba(2, 132, 199, 0.5);
}

/* — Exact Terminal Screen Replica (Inside Mockup) — */
.terminal-screen-wrapper {
  background-color: #F6FAFE;
  color: #2A343A;
  font-family: 'Inter', system-ui, sans-serif;
  padding: 1.5rem;
}

/* Terminal Internal Header */
.terminal-inner-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #D9E4EC;
}

.terminal-brand-title {
  font-size: 1.125rem;
  font-weight: 800;
  color: #45627E;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.terminal-toolbar-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.terminal-search-box {
  flex: 1;
  min-width: 200px;
  height: 2.35rem;
  padding: 0 0.875rem;
  font-size: 0.8125rem;
  background-color: #FFFFFF;
  border: 1px solid #D9E4EC;
  border-radius: 0.625rem;
  color: #2A343A;
}

.terminal-search-box:focus {
  outline: none;
  border-color: #49617D;
}

.terminal-filter-pill {
  height: 2.35rem;
  padding: 0 0.875rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #45627E;
  background: #FFFFFF;
  border: 1px solid #D9E4EC;
  border-radius: 0.625rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.terminal-more-btn {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid #D9E4EC;
  color: #566167;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.terminal-more-btn .active-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #0284C7;
}

/* — Sensor Card (Exact Match to Terminal App) — */
.terminal-sensor-card {
  position: relative;
  background-color: #FFFFFF;
  border: 1px solid rgba(217, 228, 236, 0.8);
  border-radius: 0.75rem;
  padding: 1.25rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 8px 30px -8px rgba(42, 52, 58, 0.08);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.terminal-sensor-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -10px rgba(42, 52, 58, 0.12);
  border-color: rgba(73, 97, 125, 0.3);
}

/* Alert State Sensor Card */
.terminal-sensor-card.alert-state {
  background: linear-gradient(180deg, #FFFFFF 0%, #FFF4F4 100%);
  border: 1px solid rgba(239, 68, 68, 0.35);
  box-shadow: 0 10px 30px -8px rgba(220, 38, 38, 0.15);
}

.terminal-sensor-card.alert-state:hover {
  border-color: rgba(220, 38, 38, 0.5);
  box-shadow: 0 18px 45px -10px rgba(220, 38, 38, 0.22);
}

/* Left Status Pillar */
.terminal-card-pillar {
  position: absolute;
  left: 0;
  top: 25%;
  bottom: 25%;
  width: 4px;
  border-top-right-radius: 9999px;
  border-bottom-right-radius: 9999px;
  background-color: #456749;
}

.terminal-sensor-card.alert-state .terminal-card-pillar {
  background-color: #EF4444;
  width: 5px;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.45);
}

.terminal-card-id-label {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #566167;
}

.terminal-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #45627E;
  margin-top: 0.125rem;
  line-height: 1.25;
}

.terminal-sensor-card.alert-state .terminal-card-title {
  color: #991B1B;
}

/* Capsule Status Badges */
.terminal-capsule-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.terminal-capsule-badge.badge-normal {
  background-color: #D7FED6;
  color: #426345;
}

.terminal-capsule-badge.badge-alert {
  background-color: #FFF7F6;
  color: #6E0A12;
}

.terminal-capsule-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.terminal-capsule-badge.badge-normal .dot {
  background-color: #456749;
  animation: pulse-soft 2s infinite;
}

.terminal-capsule-badge.badge-alert .dot {
  background-color: #A83836;
  animation: badge-ping 1s infinite;
}

.terminal-assigned-badge {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: #E0F2FE;
  color: #0369A1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

/* Main Readout & Trend */
.terminal-giant-number {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #2A343A;
}

.terminal-sensor-card.alert-state .terminal-giant-number {
  color: #DC2626;
}

.terminal-unit-label {
  font-size: 1rem;
  font-weight: 400;
  color: #566167;
}

.terminal-trend-box {
  margin: 0.75rem 0;
}

.terminal-trend-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #566167;
  margin-bottom: 0.25rem;
}

.terminal-live-tag {
  background: #E0F2FE;
  color: #0369A1;
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  font-size: 0.5625rem;
  font-weight: 700;
}

.terminal-sensor-card.alert-state .terminal-live-tag {
  background: #FEE2E2;
  color: #B91C1C;
}

/* Card Footer Metrics */
.terminal-footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(217, 228, 236, 0.6);
  font-size: 0.6875rem;
}

.terminal-footer-grid .col-title {
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #566167;
  margin-bottom: 0.125rem;
}

.terminal-footer-grid .col-val {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #2A343A;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.terminal-footer-grid .col-val .material-symbols-outlined {
  font-size: 0.875rem;
  color: #49617D;
}

/* Feature Cards */
.feature-card {
  position: relative;
  border-radius: 1.25rem;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  padding: 2rem;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(350px circle at var(--card-mouse-x, 50%) var(--card-mouse-y, 50%), rgba(2, 132, 199, 0.08), transparent 70%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: #BAE6FD;
  box-shadow: 
    0 20px 35px -10px rgba(2, 132, 199, 0.08),
    0 0 0 1px rgba(2, 132, 199, 0.15);
}

.feature-icon-wrapper {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F0F9FF;
  color: #0284C7;
  margin-bottom: 1.5rem;
  border: 1px solid #E0F2FE;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon-wrapper {
  background: #0284C7;
  color: #FFFFFF;
  border-color: #0284C7;
  transform: scale(1.05);
}

/* Platform Badges */
.platform-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 500;
  background: #FFFFFF;
  color: #334155;
  border: 1px solid #E2E8F0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #FFFFFF;
  color: #475569;
  border: 1px solid #E2E8F0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

@keyframes pulse-soft {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.05); }
}

@keyframes badge-ping {
  75%, 100% { transform: scale(2); opacity: 0; }
}

.code-preview-scroll::-webkit-scrollbar {
  height: 6px;
  width: 6px;
}

.code-preview-scroll::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}

/* ==========================================================================
   ETerminal Clean & Minimalist Products Dropdown
   ========================================================================== */

.nav-item-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 100%;
}

.nav-dropdown-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
    border-radius: 0.5rem;
    transition: all 0.15s ease;
    cursor: pointer;
    background: transparent;
    border: none;
    outline: none;
}

.nav-dropdown-btn:hover,
.nav-item-dropdown:hover .nav-dropdown-btn {
    color: #0284c7;
    background-color: #f8fafc;
}

.nav-dropdown-arrow {
    font-size: 18px;
    transition: transform 0.2s ease;
    color: #94a3b8;
}

.nav-item-dropdown:hover .nav-dropdown-arrow {
    transform: rotate(180deg);
    color: #0284c7;
}

/* Minimal Floating Dropdown Menu */
.nav-dropdown-menu.clean-dropdown {
    position: absolute;
    top: calc(100% - 6px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    width: 380px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    box-shadow: 0 20px 40px -12px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(15, 23, 42, 0.02);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
    z-index: 100;
    overflow: hidden;
    padding: 0.5rem;
}

.nav-item-dropdown:hover .nav-dropdown-menu.clean-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Minimal Product Row Item */
.clean-menu-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.75rem 0.875rem;
    border-radius: 0.75rem;
    transition: all 0.15s ease;
    text-decoration: none;
}

.clean-menu-item:hover {
    background-color: #f8fafc;
}

.clean-menu-item:hover .clean-menu-title {
    color: #0284c7;
}

.clean-menu-item:hover .clean-menu-arrow {
    opacity: 1;
    transform: translateX(2px);
    color: #0284c7;
}

.clean-icon-box {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 0.625rem;
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    transition: all 0.15s ease;
}

.clean-menu-item:hover .clean-icon-box {
    background-color: #e0f2fe;
    border-color: #bae6fd;
}

.clean-menu-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #0f172a;
    transition: color 0.15s ease;
}

.clean-menu-desc {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.125rem;
    line-height: 1.35;
}

.clean-menu-arrow {
    font-size: 16px;
    color: #cbd5e1;
    opacity: 0;
    transition: all 0.15s ease;
    margin-left: auto;
    flex-shrink: 0;
}

/* Clean Dropdown Sub-Footer */
.clean-dropdown-footer {
    margin-top: 0.375rem;
    padding: 0.625rem 0.875rem;
    background-color: #f8fafc;
    border-radius: 0.625rem;
    border: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
}

