:root {
  --primary: #059669;
  --primary-hover: #047857;
  --bg: #ffffff;
  --bg-offset: #f8fafc;
  --text: #0f172a;
  --text-muted: #64748b;
  --white: #ffffff;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none !important; color: inherit; }
img { max-width: 100%; }

/* --- Clean Mesh Background --- */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #fafafa;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(at 100% 0%, rgba(5, 150, 105, 0.08) 0px, transparent 50%),
    radial-gradient(at 0% 100%, rgba(52, 211, 153, 0.05) 0px, transparent 50%);
}

/* --- Custom Cursor --- */
.cursor-dot {
  position: fixed; width: 8px; height: 8px;
  background: #059669; border-radius: 50%;
  pointer-events: none; z-index: 10000;
  transform: translate(-50%, -50%);
  top: 0; left: 0;
  opacity: 0;
  transition: width 0.3s, height 0.3s, opacity 0.3s;
}
.cursor-ring {
  position: fixed; width: 40px; height: 40px;
  border: 1px solid rgba(5,150,105,0.35);
  border-radius: 50%; pointer-events: none; z-index: 10000;
  transform: translate(-50%, -50%);
  top: 0; left: 0;
  opacity: 0;
  transition: width 0.3s, height 0.3s, opacity 0.3s;
}
body:hover .cursor-dot, body:hover .cursor-ring { opacity: 1; }
.cursor-dot.hovering { width: 16px; height: 16px; }
.cursor-ring.hovering { width: 60px; height: 60px; border-color: rgba(5,150,105,0.6); }

/* --- Typography --- */
.heading-xl {
  font-family: 'Sora', sans-serif;
  font-size: clamp(2.5rem, 7vw, 4.2rem); /* Significantly reduced */
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #fff !important;
}
.heading-lg {
  font-family: 'Sora', sans-serif;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #0f172a;
}
.heading-md {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #0f172a;
}
.text-body {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #64748b;
}
.text-sm {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: #94a3b8;
}
.text-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #059669;
}
.gradient-text {
  background: linear-gradient(135deg, #059669, #34d399, #059669);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientShift 5s ease infinite;
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* --- Buttons --- */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.75rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #059669, #047857);
  color: #fff;
  font-family: 'Inter', sans-serif; font-size: 0.9rem; font-weight: 600;
  border-radius: 100px; border: none; cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(5,150,105,0.35);
}
.btn-outline {
  display: inline-flex; align-items: center; gap: 0.75rem;
  padding: 1rem 2rem;
  background: transparent; color: #0f172a;
  font-family: 'Inter', sans-serif; font-size: 0.9rem; font-weight: 500;
  border-radius: 100px; border: 1px solid #e2e8f0;
  cursor: pointer; transition: all 0.4s ease;
}
.btn-outline:hover {
  border-color: #059669; color: #059669;
}

/* --- Sections --- */
.section { position: relative; padding: 7rem 2rem; }
.section-inner { max-width: 1400px; margin: 0 auto; }

/* --- Hero --- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden; padding-top: 80px;
  background: #fff;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg-gradient {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(5,150,105,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(52,211,153,0.05) 0%, transparent 40%);
}
.hero-bg-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}
/* --- Immersive Hero (Ditto Vecna) --- */
.hero {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  background: #000;
  padding: 140px 5% 80px; /* Refined padding */
}
.hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-video-bg iframe {
  width: 100vw;
  height: 56.25vw; /* 16:9 */
  min-height: 100vh;
  min-width: 177.77vh; /* 16:9 */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.5;
}
.hero-image-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  transform: scale(1.05);
  will-change: transform;
}
.hero-image-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 1200px;
  color: #fff;
}
.heading-xl {
  font-family: 'Sora', sans-serif;
  font-size: clamp(3.5rem, 10vw, 7.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.05em;
  margin-bottom: 2.5rem;
  color: #fff;
}
.text-hero-sub {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: rgba(255,255,255,0.8);
  max-width: 650px;
  margin-bottom: 3.5rem;
  line-height: 1.5;
}

/* --- Clean Modern Solutions (Vecna-Style) --- */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 3rem;
  margin-top: 5rem;
}
.solution-card {
  position: relative;
  height: 600px;
  border-radius: 32px;
  overflow: hidden;
  background: var(--bg-offset);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.solution-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.solution-card:hover img {
  transform: scale(1.08);
}
.solution-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 3rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.9));
  color: #fff;
  transform: translateY(20px);
  transition: transform 0.6s ease;
}
.solution-card:hover .solution-content {
  transform: translateY(0);
}
.solution-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.solution-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.9rem;
}
.conveyor-card-premium img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
}
.conveyor-card-premium .tech-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--primary);
  background: rgba(5, 150, 105, 0.05);
  padding: 2px 8px;
  width: fit-content;
}
.conveyor-card-premium:hover {
  transform: translateZ(50px) scale(1.05);
  border-color: var(--primary);
  box-shadow: 0 40px 80px rgba(5, 150, 105, 0.1);
}
.conveyor-3d::before {
  content: '';
  position: absolute;
  top: 50%; left: -20%; right: -20%;
  height: 140px;
  background: linear-gradient(90deg, transparent, rgba(5, 150, 105, 0.05), transparent);
  border-top: 1px solid rgba(5, 150, 105, 0.2);
  border-bottom: 1px solid rgba(5, 150, 105, 0.2);
  transform: translateY(-50%) translateZ(-100px);
}
.conveyor-3d-track {
  display: flex;
  gap: 3rem;
  padding: 2rem;
  will-change: transform;
}
.conveyor-item-3d {
  width: 320px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0,0,0,0.04);
  border-radius: 28px;
  padding: 1.25rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
  transform-style: preserve-3d;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}
.conveyor-item-3d:hover {
  transform: translateZ(80px) rotateY(10deg);
  border-color: #059669;
  box-shadow: 0 30px 60px rgba(5, 150, 105, 0.15);
}
.conveyor-item-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 1.25rem;
}
.conveyor-item-title {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #0f172a;
  line-height: 1.3;
}
.conveyor-item-tag {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #059669;
  background: rgba(5, 150, 105, 0.08);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  display: inline-block;
  margin-bottom: 0.75rem;
}

/* Mechanical Decorations */
.mechanical-line {
  position: absolute;
  background: rgba(5, 150, 105, 0.15);
  pointer-events: none;
}
.line-v { width: 1px; height: 100%; top: 0; }
.line-h { height: 1px; width: 100%; left: 0; }
.mechanical-dot {
  position: absolute;
  width: 6px; height: 6px;
  background: #059669;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(5, 150, 105, 0.5);
}
/* --- Global Navbar Overrides for Hero --- */
#navbar-container .nav-link { color: #fff !important; }
#navbar-container .logo-text { color: #fff !important; }
#navbar-container .navbar { 
  background: rgba(0,0,0,0.2) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.75rem;
  padding: 0.6rem 1.5rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px; margin-bottom: 2rem;
}
.hero-badge-dot {
  width: 6px; height: 6px;
  background: #059669; border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}
.hero-tags { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 2.5rem 0; }
.hero-tag {
  padding: 0.5rem 1rem;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 100px; font-size: 0.8rem; color: #475569;
  transition: all 0.3s ease;
}
.hero-tag:hover { border-color: #059669; color: #059669; background: rgba(5,150,105,0.04); }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2.5rem; }
.hero-stats {
  display: flex; gap: 3rem; margin-top: 4rem;
  padding-top: 3rem; border-top: 1px solid #e2e8f0;
}
.hero-stat-number {
  font-family: 'Sora', sans-serif;
  font-size: 2.5rem; font-weight: 800; color: #0f172a;
}
.hero-stat-label { font-size: 0.8rem; color: #94a3b8; margin-top: 0.25rem; }

/* --- Partners --- */
.partners-section { background: #fff; border-top: 1px solid #f1f5f9; }
.partner-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 20px; padding: 2.5rem;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.partner-card:hover {
  border-color: #059669;
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(5,150,105,0.08);
}
.partner-logo { height: 48px; width: auto; object-fit: contain; opacity: 0.8; transition: opacity 0.3s; }
.partner-card:hover .partner-logo { opacity: 1; }

/* --- Marquee --- */
.marquee-section { background: #f8fafc; }
.marquee-track {
  display: flex; width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-item { flex-shrink: 0; padding: 0 2.5rem; display: flex; align-items: center; }
.marquee-item img {
  height: 40px; width: auto;
  filter: grayscale(100%); opacity: 0.3;
  transition: all 0.4s;
}
.marquee-item img:hover { opacity: 0.8; filter: grayscale(0%); }

/* --- About --- */
.about-section { background: #fff; }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
}
.about-image-wrapper {
  position: relative; border-radius: 24px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.08);
}
.about-image-wrapper img { width: 100%; height: auto; display: block; }
.about-image-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(255,255,255,0.3) 100%);
}

/* --- Org Chart --- */
.org-section { background: #f8fafc; }
.org-container {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 24px; padding: 3rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  overflow-x: auto;
}
.org-head { text-align: center; margin-bottom: 3rem; }
.org-head-card {
  display: inline-block;
  background: linear-gradient(135deg, rgba(5,150,105,0.08), rgba(52,211,153,0.05));
  border: 1px solid rgba(5,150,105,0.15);
  border-radius: 16px; padding: 1.5rem 3rem;
}
.org-head-card div:first-child { color: #0f172a !important; }
.org-departments {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}
.org-dept {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px; padding: 1.25rem;
  transition: all 0.3s ease;
}
.org-dept:hover {
  border-color: #059669;
  background: rgba(5,150,105,0.02);
  box-shadow: 0 8px 24px rgba(5,150,105,0.06);
}
.org-dept-title {
  font-family: 'Sora', sans-serif;
  font-size: 0.75rem; font-weight: 700;
  color: #059669; margin-bottom: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.org-dept-head {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem; font-weight: 600;
  color: #1e293b; margin-bottom: 0.5rem;
  padding-bottom: 0.5rem; border-bottom: 1px solid #e2e8f0;
}
.org-dept-members {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem; color: #94a3b8; line-height: 1.8;
}

/* --- Conveyor Belt (Products) --- */
.conveyor-section { background: #f8fafc; overflow: hidden; }
.conveyor-wrapper { perspective: 1200px; padding: 4rem 0; overflow: visible; }
.conveyor-track { display: flex; gap: 2rem; padding: 2rem 4rem; width: max-content; }
.conveyor-card {
  width: 320px; flex-shrink: 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 20px; overflow: hidden;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.conveyor-card:hover {
  border-color: #059669;
  transform: translateY(-8px) rotateY(0deg) !important;
  box-shadow: 0 30px 60px rgba(0,0,0,0.1), 0 0 0 1px rgba(5,150,105,0.15);
}
.conveyor-card-img {
  width: 100%; height: 200px; object-fit: cover;
  transition: transform 0.6s ease;
}
.conveyor-card:hover .conveyor-card-img { transform: scale(1.05); }
.conveyor-card-body { padding: 1.5rem; }
.conveyor-card-tag {
  display: inline-block; padding: 0.25rem 0.75rem;
  background: rgba(5,150,105,0.08); border-radius: 100px;
  font-size: 0.7rem; font-weight: 600; color: #059669;
  margin-bottom: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em;
}
.conveyor-card-title {
  font-family: 'Sora', sans-serif;
  font-size: 1.15rem; font-weight: 700; color: #0f172a; margin-bottom: 0.5rem;
}
.conveyor-card-desc { font-size: 0.8rem; color: #94a3b8; line-height: 1.5; margin-bottom: 1rem; }
.conveyor-card-link {
  font-size: 0.8rem; font-weight: 600; color: #059669;
  display: inline-flex; align-items: center; gap: 0.5rem;
  transition: gap 0.3s ease;
}
.conveyor-card-link:hover { gap: 0.75rem; }

/* --- CTA --- */
.cta-section {
  background: linear-gradient(135deg, #059669, #047857);
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,255,255,0.1) 0%, transparent 60%);
}
.cta-section .heading-lg { color: #fff !important; }
.cta-section .text-body { color: rgba(255,255,255,0.75) !important; }

/* --- Reveal Animation Classes --- */
.reveal { opacity: 0; transform: translateY(60px); }
.reveal-left { opacity: 0; transform: translateX(-60px); }
.reveal-right { opacity: 0; transform: translateX(60px); }
.reveal-scale { opacity: 0; transform: scale(0.9); }

/* Hero items use pure CSS animation - no JS dependency */
.hero-anim {
  animation: heroFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--delay, 0s);
  opacity: 0;
  transform: translateY(30px);
}
@keyframes heroFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

/* --- Technical Background --- */
.tech-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-color: #fafafa;
  background-image: 
    linear-gradient(rgba(5, 150, 105, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(5, 150, 105, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}
.tech-lines {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.1;
}
.blueprint-marker {
  position: absolute;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: #059669;
  text-transform: uppercase;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
  .hero-left { display: flex; flex-direction: column; align-items: center; }
  .hero-right { height: 400px; order: -1; }
  .hero-conveyor { transform: rotateY(0) rotateX(10deg); }
  .hero-tags { justify-content: center; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; border-top: none; padding-top: 0; }
  .heading-xl { font-size: 2.8rem; }
}
@media (max-width: 1024px) {
  .hero-stats { gap: 2rem; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
  .section { padding: 4rem 1.5rem; }
  .hero-stats { flex-wrap: wrap; gap: 1.5rem; }
  .hero-stat-number { font-size: 2rem; }
  .org-departments { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
  .conveyor-card { width: 280px; }
  .cursor-dot, .cursor-ring { display: none !important; }
}
