:root {
  --bg-color: #020617;
  /* Slate 950 */
  --bg-gradient-start: #0f172a;
  --bg-gradient-end: #020617;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;

  --primary-color: #38bdf8;
  --primary-glow: rgba(56, 189, 248, 0.4);
  --secondary-color: #818cf8;
  --secondary-glow: rgba(129, 140, 248, 0.4);
  --accent-color: #a855f7;

  --card-bg: rgba(15, 23, 42, 0.6);
  --card-border: rgba(51, 65, 85, 0.6);
  --card-hover-border: rgba(56, 189, 248, 0.5);
  --card-blur: blur(16px);

  --nav-height: 70px;
}

[data-theme="light"] {
  --bg-color: #f8fafc; /* Slate 50 */
  --bg-gradient-start: #f1f5f9;
  --bg-gradient-end: #e2e8f0;

  --text-main: #0f172a; /* Slate 900 */
  --text-muted: #475569; /* Slate 600 */

  --primary-color: #0284c7; /* Sky 600 */
  --primary-glow: rgba(2, 132, 199, 0.2);
  --secondary-color: #4f46e5; /* Indigo 600 */
  --secondary-glow: rgba(79, 70, 229, 0.2);
  --accent-color: #9333ea; /* Purple 600 */

  --card-bg: rgba(255, 255, 255, 0.75);
  --card-border: rgba(203, 213, 225, 0.9); /* Slate 300 */
  --card-hover-border: rgba(2, 132, 199, 0.5);
}

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

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-color);
  background-image:
    radial-gradient(circle at 15% 50%, rgba(56, 189, 248, 0.08), transparent 45%),
    radial-gradient(circle at 85% 30%, rgba(168, 85, 247, 0.08), transparent 45%);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4 {
  margin-top: 0;
  line-height: 1.25;
  font-weight: 800;
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.03em;
}

p {
  color: var(--text-muted);
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* Typography Enhancements */
.text-gradient {
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Layout --- */
.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

.section {
  padding: 80px 7vw;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 50px;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.1rem;
}

/* --- Header / Nav --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 7vw;
  background: rgba(2, 6, 23, 0.7);
  backdrop-filter: var(--card-blur);
  -webkit-backdrop-filter: var(--card-blur);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.brand-link:hover {
  opacity: 0.9;
}

.brand-logo {
  height: clamp(34px, 4vw, 44px);
  width: auto;
  filter: drop-shadow(0 0 10px rgba(0, 243, 255, 0.2));
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.brand-tagline {
  font-size: 0.62rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0.8;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
}

.nav a {
  font-size: clamp(0.85rem, 0.9vw, 0.92rem);
  font-weight: 500;
  color: var(--text-muted);
  padding: 10px clamp(12px, 1.5vw, 20px);
  border-radius: 999px;
  position: relative;
  transition: all 0.3s ease;
  letter-spacing: 0.02em;
}

.nav a:hover,
.nav a.active {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.nav a.active::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 2px;
  background: var(--primary-color);
  border-radius: 2px;
  box-shadow: 0 0 10px var(--primary-glow);
  opacity: 0.8;
}

/* --- Dropdown --- */
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 15px);
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  background: rgba(15, 15, 15, 0.85);
  backdrop-filter: blur(32px) saturate(1.5);
  -webkit-backdrop-filter: blur(32px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  min-width: 320px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 30px 60px rgba(0,0,0,0.5), inset 0 0 20px rgba(255,255,255,0.02);
  z-index: 1000;
}

.nav-item:hover .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.25s ease;
  background: transparent !important;
}

.dropdown-link:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  transform: translateX(4px);
}

.dd-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.dropdown-link:hover .dd-icon {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 0 20px var(--primary-glow);
}

.dd-icon svg {
  width: 22px;
  height: 22px;
}

.dd-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dd-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  display: block;
}

.dd-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
}

.dropdown-link.active .dd-title {
  color: var(--primary-color);
}

.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  padding: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.btn-box {
  width: 24px;
  height: 18px;
  display: inline-block;
  position: relative;
}

.btn-inner {
  top: 50%;
  margin-top: -1px;
}

.btn-inner, 
.btn-inner::before, 
.btn-inner::after {
  width: 24px;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 4px;
  position: absolute;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease;
}

.btn-inner::before, 
.btn-inner::after {
  content: "";
  display: block;
}

.btn-inner::before { top: -8px; }
.btn-inner::after { top: 8px; }

/* Animated State */
.nav-open .btn-inner {
  background-color: transparent !important;
}

.nav-open .btn-inner::before {
  transform: translateY(8px) rotate(45deg);
}

.nav-open .btn-inner::after {
  transform: translateY(-8px) rotate(-45deg);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
  min-height: calc(100vh - var(--nav-height));
  padding: 40px 7vw 0;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.hero-content {
  max-width: 820px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  bottom: 0;
  z-index: -1;
  overflow: hidden;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
  animation: float 10s ease-in-out infinite;
}

.glow-1 {
  width: 400px;
  height: 400px;
  background: var(--primary-glow);
  top: -100px;
  left: -100px;
}

.glow-2 {
  width: 300px;
  height: 300px;
  background: var(--secondary-glow);
  bottom: 10%;
  right: 10%;
  animation-delay: -5s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-30px);
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
  font-size: 0.8rem;
  color: var(--primary-color);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-color);
  box-shadow: 0 0 10px var(--primary-color);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(56, 189, 248, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0);
  }
}

.hero h1 {
  font-size: clamp(2.8rem, 5.2vw, 4.2rem);
  line-height: 1.2;
  margin-bottom: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-slogan {
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: 0.4rem;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 32px;
  text-shadow: 0 0 30px rgba(56, 189, 248, 0.2);
}

.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 48px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #fff;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.hero-stats {
  display: flex;
  gap: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 32px;
  flex-wrap: wrap;
}

.stat-box {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.02em;
}

.stat-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* -- Hero Visual (Orbit) -- */
.hero-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-panel {
  position: relative;
  width: 80%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.8), rgba(2, 6, 23, 0.2));
  border: 1px solid rgba(56, 189, 248, 0.2);
  box-shadow: inset 0 0 50px rgba(56, 189, 248, 0.1);
}

.radar-scan {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 70%, rgba(56, 189, 248, 0.4) 100%);
  animation: radar 4s linear infinite;
}

@keyframes radar {
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.hero-orbit {
  position: absolute;
  inset: 0;
}

.orbit-lines {
  width: 100%;
  height: 100%;
}

.spin-slow {
  animation: spin 20s linear infinite;
  transform-origin: center;
}

.spin-fast-reverse {
  animation: spin 10s linear infinite reverse;
  transform-origin: center;
}

.hero-node {
  position: absolute;
  padding: 8px 16px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.4);
  font-size: 0.85rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  animation: float 6s ease-in-out infinite;
}

.node-core {
  top: 40%;
  left: 40%;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(129, 140, 248, 0.2));
  border-color: var(--primary-color);
  padding: 12px 24px;
  font-size: 1rem;
  z-index: 10;
  animation-delay: 0s;
}

.node-optics {
  top: 15%;
  left: 20%;
  animation-delay: -1s;
}

.node-motion {
  bottom: 20%;
  right: 15%;
  animation-delay: -2s;
}

.node-system {
  top: 60%;
  right: 10%;
  animation-delay: -3s;
}


/* --- General Grid & Cards --- */
.grid {
  display: grid;
  gap: 24px;
}

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

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

.spec-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 40px;
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.spec-table tr:last-child {
  border-bottom: none;
}

.spec-table td {
  padding: 16px 0;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 32px;
  backdrop-filter: var(--card-blur);
  -webkit-backdrop-filter: var(--card-blur);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--card-hover-border);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card:hover::before {
  opacity: 1;
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.quick-card {
  display: block;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 32px;
  border-radius: 16px;
  text-align: center;
  transition: all 0.3s;
}

.quick-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--primary-color);
  transform: translateY(-4px);
}

.qc-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: var(--primary-color);
}

/* --- Utilities & Lists --- */
.list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  color: var(--text-muted);
}

.list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--primary-color);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--primary-color);
}

/* --- Base & Contact Form Layouts --- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.9rem;
  color: var(--text-main);
}

.form-group input,
.form-group textarea {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--card-border);
  padding: 12px;
  border-radius: 8px;
  color: var(--text-main);
  font-family: inherit;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}


/* --- Animated Visibility --- */
.section-hidden {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-visible {
  opacity: 1;
  transform: translateY(0);
}

.section-visible .hero-hidden {
  opacity: 1;
  transform: translateY(0);
}

.page-hero {
  position: relative;
  padding: 160px 7vw 100px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-image-box {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6) saturate(1.2);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--bg-color) 20%, transparent 60%),
              linear-gradient(to top, var(--bg-color) 0%, transparent 40%);
}

.product-detail {
  padding: 120px 7vw;
}

.product-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 100px;
  align-items: center;
}

/* --- Footer --- */
.site-footer {
  margin-top: 60px;
  padding: 60px 7vw 24px;
  background: rgba(2, 6, 23, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  max-width: 300px;
}

.footer-brand .brand-name {
  font-size: 1.5rem;
  margin-bottom: 16px;
  background: linear-gradient(to right, #fff, var(--text-muted));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.footer-col h4 {
  color: #fff;
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--primary-color);
}

.contact-box {
  margin-top: 10px;
  padding: 8px 0 0 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-main);
  font-weight: 600;
  margin-bottom: 8px;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  margin-top: 8px;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-main);
}

.contact-item:hover {
  border-color: var(--primary-color);
  box-shadow: inset 0 0 0 1px var(--primary-glow);
  transform: translateY(-1px);
}

.contact-item span {
  color: var(--primary-color);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.8rem;
}

.spec-table td:last-child {
  color: var(--text-main);
  font-weight: 500;
  text-align: right;
}

/* --- Inspection Gallery --- */
.inspection-gallery {
  margin-top: 80px;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.gallery-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.1rem;
  margin-bottom: 24px;
  color: var(--text-main);
}

.gallery-title .dot {
  width: 8px;
  height: 8px;
  background: var(--primary-color);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary-glow);
}

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

.gallery-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.img-frame {
  background: #1e1e1e;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.gallery-item label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
}

/* --- Portal Grid & Cards --- */
.portal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 40px;
}

.portal-card {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.portal-card:hover {
  transform: translateY(-8px);
  border-color: var(--card-hover-border);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.portal-img {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
}

.portal-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.portal-card:hover .portal-img img {
  transform: scale(1.05);
}

.portal-content {
  padding: 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.portal-tag {
  font-size: 0.75rem;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  font-weight: 600;
}

.portal-card h2 {
  font-size: 1.75rem;
  margin-bottom: 16px;
  color: var(--text-main);
}

.portal-card p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.portal-btn {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.95rem;
}

.portal-btn svg {
  transition: transform 0.3s ease;
}

.portal-card:hover .portal-btn svg {
  transform: translateX(4px);
}

.cta-card h2 {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

/* --- Responsive --- */
@media (max-width: 1200px) {
  .product-grid {
    gap: 60px;
  }
}

@media (max-width: 992px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-subtitle {
    margin: 0 auto 40px;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    max-width: 400px;
    margin: 0 auto;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .product-visual {
    order: -1;
  }

  .portal-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 1100px) {
  .site-header {
    padding: 0 5vw;
  }

  .brand-tagline {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(32px) saturate(1.8);
    -webkit-backdrop-filter: blur(32px) saturate(1.8);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 80px 40px;
    gap: 15px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-open .nav {
    right: 0;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.8);
  }

  .nav a {
    font-size: 1.4rem;
    padding: 12px 0;
    width: 100%;
    border-radius: 0;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.4s ease;
  }

  .nav-open .nav a {
    opacity: 1;
    transform: translateX(0);
  }

  /* Stagger link animations */
  .nav-open .nav a:nth-child(1) { transition-delay: 0.1s; }
  .nav-open .nav a:nth-child(2) { transition-delay: 0.15s; }
  .nav-open .nav a:nth-child(3) { transition-delay: 0.2s; }
  .nav-open .nav a:nth-child(4) { transition-delay: 0.25s; }
  .nav-open .nav a:nth-child(5) { transition-delay: 0.3s; }
  .nav-open .nav a:nth-child(6) { transition-delay: 0.35s; }
  .nav-open .nav a:nth-child(7) { transition-delay: 0.4s; }

  .nav a.active::after {
    bottom: 0;
    left: 0;
    transform: none;
    width: 30px;
    height: 3px;
  }

  .dropdown-panel {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0 0 0 20px;
    min-width: 0;
    display: none;
    margin-top: 5px;
  }

  .nav-item.active .dropdown-panel,
  .nav-item:hover .dropdown-panel {
    display: flex;
  }

  .dropdown-link {
    padding: 10px 0;
    gap: 12px;
  }

  .dd-icon {
    width: 32px;
    height: 32px;
  }

  .dd-icon svg {
    width: 16px;
    height: 16px;
  }

  .dd-title {
    font-size: 0.9rem;
  }

  .dd-desc {
    font-size: 0.7rem;
  }
}

body.menu-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .grid.two,
  .grid.three {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .hero h1 {
    font-size: 2.5rem;
  }

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

  .img-frame {
    aspect-ratio: auto;
  }

  .img-frame img {
    height: auto;
    max-height: 400px;
  }

  .section {
    padding: 40px 5vw;
  }
  
  .card, .spec-card, .quick-card {
    padding: 24px;
  }
  
  .cta-card {
    padding: 30px 20px !important;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  .hero h1 {
    font-size: 2.2rem;
  }
}

/* Specific Charts Elements for Other Pages */
.kpi-row {
  display: flex;
  justify-content: space-between;
  text-align: center;
  margin: 30px 0;
  flex-wrap: wrap;
  gap: 20px;
}

.kpi-number {
  font-size: 2.8rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: var(--primary-color);
  text-shadow: 0 0 20px var(--primary-glow);
  display: block;
  letter-spacing: -0.01em;
}

.kpi-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.bar-chart-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.bar-label {
  width: 100px;
  font-size: 0.9rem;
  color: var(--text-main);
  flex-shrink: 0;
}

.bar-track {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: 4px;
}

.bar-value {
  width: 45px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: right;
  flex-shrink: 0;
}

.flow-diagram {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.flow-node {
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s;
}

.flow-node:hover {
  border-color: var(--primary-color);
  background: rgba(56, 189, 248, 0.05);
}

.flow-arrow-down {
  text-align: center;
  color: var(--primary-color);
  margin: -8px 0;
}

/* --- Theme Toggle Button --- */
.theme-toggle {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  margin-left: 12px;
}

.theme-toggle:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .theme-toggle:hover {
  background: rgba(0, 0, 0, 0.08);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

.moon-icon { display: block; }
.sun-icon { display: none; }
[data-theme="light"] .moon-icon { display: none; }
[data-theme="light"] .sun-icon { display: block; }

/* --- Light Theme Component Overrides --- */
[data-theme="light"] body {
  background-image:
    radial-gradient(circle at 15% 50%, rgba(2, 132, 199, 0.08), transparent 45%),
    radial-gradient(circle at 85% 30%, rgba(147, 51, 234, 0.08), transparent 45%);
}

[data-theme="light"] .brand-logo {
  filter: invert(1) hue-rotate(180deg) brightness(0.8) drop-shadow(0 0 10px rgba(0, 0, 0, 0.1));
}

[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .dropdown-panel {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1), inset 0 0 20px rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .dd-title,
[data-theme="light"] .hero-node,
[data-theme="light"] .stat-num {
  color: var(--text-main);
}

[data-theme="light"] .dd-desc,
[data-theme="light"] .stat-text {
  color: var(--text-muted);
}

[data-theme="light"] .hero-node {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(2, 132, 199, 0.3);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .btn-secondary {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.1);
  color: var(--text-main);
}

[data-theme="light"] .btn-secondary:hover {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .nav a {
  color: var(--text-muted);
}

[data-theme="light"] .nav a:hover,
[data-theme="light"] .nav a.active {
  color: var(--text-main);
  background: rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-main);
  border-color: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .spec-card,
[data-theme="light"] .quick-card {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .card::before {
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

[data-theme="light"] .dd-icon {
  background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .dropdown-link:hover {
  background: rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .btn-inner, 
[data-theme="light"] .btn-inner::before, 
[data-theme="light"] .btn-inner::after {
  background-color: var(--text-main);
}

[data-theme="light"] .site-footer {
  background: rgba(248, 250, 252, 0.95);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .footer-col h4 {
  color: var(--text-main);
}

[data-theme="light"] .footer-brand .brand-name {
  background: linear-gradient(to right, var(--text-main), var(--text-muted));
  -webkit-background-clip: text;
  background-clip: text;
}

[data-theme="light"] .hero-panel {
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.6));
  border: 1px solid rgba(14, 165, 233, 0.3);
  box-shadow: inset 0 0 60px rgba(14, 165, 233, 0.15), 0 20px 40px rgba(14, 165, 233, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

[data-theme="light"] .radar-scan {
  background: conic-gradient(from 0deg, transparent 65%, rgba(14, 165, 233, 0.1) 85%, rgba(14, 165, 233, 0.6) 100%);
}

[data-theme="light"] .orbit-lines circle {
  stroke: rgba(14, 165, 233, 0.5);
  stroke-width: 1.5;
}

[data-theme="light"] .orbit-lines circle:nth-child(2) {
  stroke: rgba(139, 92, 246, 0.5);
}

/* --- Light Theme Mobile Overrides --- */
@media (max-width: 1100px) {
  [data-theme="light"] .nav {
    background: rgba(248, 250, 252, 0.95);
    border-left: 1px solid rgba(0, 0, 0, 0.1);
  }
  
  [data-theme="light"] .dropdown-panel {
    background: transparent;
    border: none;
    box-shadow: none;
  }
}