:root {
  /* Colors */
  --bg-base:       #0A0A0F;
  --bg-surface:    #111118;
  --bg-card:       #1A1A28;
  --accent-cyan:   #00D4FF;
  --accent-orange: #FF6B00;
  --accent-green:  #00FF88;
  --text-primary:  #F0F4FF;
  --text-muted:    #6B7280;
  --border-subtle: #1E2035;
  --border-glow:   rgba(0, 212, 255, 0.3);
  --wa-green:      #25D366;
  --tg-blue:       #229ED9;
  --wc-green:      #07C160;

  /* Typography */
  --font-display: 'Rajdhani', sans-serif;
  --font-heading: 'Barlow Condensed', sans-serif;
  --font-body:    'IBM Plex Sans', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* Spacing */
  --section-py: clamp(60px, 8vw, 120px);
  --container:  min(1280px, 90vw);

  /* Effects */
  --glow-cyan: 0 0 20px rgba(0, 212, 255, 0.4);
  --glow-sm:   0 0 10px rgba(0, 212, 255, 0.2);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }

.container {
  width: var(--container);
  margin: 0 auto;
}

/* Blueprint grid overlay on sections */
.blueprint-bg {
  position: relative;
}
.blueprint-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border-subtle) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.1;
  pointer-events: none;
  z-index: 0;
}

/* Scan line texture */
.scanlines::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.04) 2px,
    rgba(0,0,0,0.04) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

/* Base Typography */
h1, h2, h3, h4 { font-family: var(--font-heading); text-transform: uppercase; }
h1 { font-size: clamp(2rem, 6vw, 4rem); line-height: 1.1; margin-bottom: 24px; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 40px; color: var(--text-primary); text-align: center; }
.mono { font-family: var(--font-mono); }
.tech-label { font-family: var(--font-mono); color: var(--accent-cyan); font-size: 0.85rem; letter-spacing: 0.15em; display: inline-block; margin-bottom: 16px; }

/* Glowing border card */
.card-glow {
  border: 1px solid var(--border-subtle);
  transition: border-color 0.3s, box-shadow 0.3s;
  background: var(--bg-card);
}
.card-glow:hover {
  border-color: var(--accent-cyan);
  box-shadow: var(--glow-sm);
}

/* ==================================
   1. NAVBAR
================================== */
#navbar {
  position: fixed;
  top: 0; left: 0; width: 100%;
  padding: 20px 0;
  z-index: 1000;
  transition: all 0.3s ease;
}
#navbar.scrolled {
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(12px);
  padding: 15px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo { display: flex; align-items: baseline; }
.logo .hard { color: var(--accent-cyan); font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; }
.logo .tech { color: var(--text-primary); font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; }
.logo .domain { color: var(--accent-orange); font-size: 0.75rem; background: rgba(255,107,0,0.15); padding: 2px 6px; border-radius: 4px; margin-left: 4px; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-link { color: var(--text-primary); font-family: var(--font-mono); font-size: 0.9rem; transition: color 0.3s; }
.nav-link:hover, .nav-link.active { color: var(--accent-cyan); }
.lang-switcher { display: flex; gap: 8px; font-family: var(--font-mono); font-size: 0.85rem; margin-left: 16px; border-left: 1px solid var(--border-subtle); padding-left: 16px; }
.lang-btn { background: none; border: none; color: var(--text-muted); cursor: pointer; transition: color 0.3s; text-transform: uppercase; }
.lang-btn:hover, .lang-btn.active { color: var(--accent-cyan); }
.btn-cta { background: transparent; border: 1px solid var(--accent-cyan); color: var(--accent-cyan); padding: 8px 20px; font-family: var(--font-mono); font-size: 0.9rem; cursor: pointer; transition: all 0.3s; }
.btn-cta:hover { background: var(--accent-cyan); color: #000; box-shadow: var(--glow-cyan); }
.hamburger { display: none; background: none; border: none; font-size: 1.5rem; color: var(--accent-cyan); cursor: pointer; }
.mobile-menu { display: none; }

/* ==================================
   2. HERO SECTION
================================== */
#hero {
  padding: calc(var(--section-py) + 80px) 0 var(--section-py);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-radial {
  position: absolute;
  top: 50%; right: 0;
  width: 800px; height: 800px;
  background: radial-gradient(ellipse at center, rgba(0,212,255,0.15), transparent 60%);
  transform: translateY(-50%);
  z-index: 0; pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 40px;
  align-items: center;
  position: relative; z-index: 1;
}
.gradient-text { background: linear-gradient(90deg, #00D4FF, #00FF88); -webkit-background-clip: text; color: transparent; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.chip { border: 1px solid var(--accent-cyan); background: rgba(0, 212, 255, 0.1); color: var(--accent-cyan); padding: 6px 12px; border-radius: 4px; font-family: var(--font-mono); font-size: 0.85rem; }
.hero-stats { display: flex; gap: 40px; margin-bottom: 48px; border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); padding: 20px 0; }
.h-stat-val { font-size: 2rem; font-family: var(--font-heading); color: var(--accent-cyan); display: block; font-weight: bold; }
.h-stat-lbl { font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.hero-actions { display: flex; gap: 20px; flex-wrap: wrap; }
.btn-primary { background: var(--accent-cyan); color: #000; padding: 16px 32px; font-weight: bold; font-family: var(--font-mono); text-transform: uppercase; transition: all 0.3s; display: inline-flex; align-items: center; justify-content: center; }
.btn-primary:hover { box-shadow: var(--glow-cyan); transform: translateY(-2px); }
.btn-wa { background: transparent; border: 1px solid var(--wa-green); color: var(--wa-green); padding: 16px 32px; font-weight: bold; transition: all 0.3s; display: inline-flex; align-items: center; gap: 10px; }
.btn-wa svg { width: 20px; height: 20px; fill: currentColor; }
.btn-wa:hover { background: rgba(37,211,102,0.1); box-shadow: 0 0 15px rgba(37,211,102,0.3); transform: translateY(-2px); }

/* Hero Visual right side */
.hero-visual { position: relative; height: 500px; display: flex; justify-content: center; align-items: center; }
.machine-abstract { width: 300px; height: 400px; background: rgba(255,255,255,0.02); border: 1px solid rgba(0,212,255,0.2); position: relative; overflow: hidden; }
.circuit-line { position: absolute; background: var(--accent-cyan); opacity: 0.5; }
.c1 { width: 2px; height: 100px; top: 50px; left: 40px; }
.c2 { width: 150px; height: 2px; top: 150px; left: 40px; }
.c3 { width: 2px; height: 200px; top: 150px; right: 40px; }
.machine-scan {
  position: absolute; left: 0; right: 0; height: 2px;
  background: var(--accent-cyan); box-shadow: var(--glow-cyan);
  animation: scan 3s linear infinite;
}
@keyframes scan {
  0% { top: 0%; opacity: 1; }  90% { opacity: 1; }  100% { top: 100%; opacity: 0; }
}
.float-panel { position: absolute; background: var(--bg-base); border: 1px solid var(--accent-cyan); color: var(--accent-cyan); padding: 8px 12px; font-family: var(--font-mono); font-size: 0.75rem; box-shadow: 0 0 10px rgba(0,0,0,0.5); }
.panel-stat { top: 40px; right: 0; }
.panel-diag { bottom: 40px; left: -20px; }
.blink { animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ==================================
   3. TRUST BAR
================================== */
#trust-bar { border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); padding: 30px 0; overflow: hidden; background: rgba(0,0,0,0.3); }
#trust-bar h4 { text-align: center; color: var(--text-muted); font-family: var(--font-mono); font-size: 0.8rem; margin-bottom: 20px; letter-spacing: 2px; }
.marquee-container { position: relative; display: flex; max-width: 100vw; overflow: hidden; }
.marquee { display: flex; align-items: center; gap: 80px; padding-left: 80px; animation: marquee 20s linear infinite; white-space: nowrap; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.brand { color: #fff; font-family: var(--font-heading); font-size: 2rem; opacity: 0.3; transition: opacity 0.3s; font-weight: bold; letter-spacing: 2px; }
.brand:hover { opacity: 1; text-shadow: 0 0 10px rgba(255,255,255,0.5); }

/* ==================================
   4. SERVICES SECTION
================================== */
#services { padding: var(--section-py) 0; }
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; position: relative; z-index: 2; }
.service-card { background: var(--bg-card); padding: 40px; position: relative; overflow: hidden; }
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 0;
  background: var(--accent-cyan); transition: height 0.4s ease;
}
.service-card:hover::before { height: 100%; }
.card-header { display: flex; justify-content: space-between; margin-bottom: 24px; }
.card-number { font-family: var(--font-mono); color: var(--accent-cyan); opacity: 0.4; font-size: 2.5rem; font-weight: bold; line-height: 1; }
.card-title { font-size: 1.8rem; margin-bottom: 16px; }
.card-desc { color: var(--text-muted); margin-bottom: 24px; font-size: 1.1rem; }
.card-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 0.75rem; font-family: var(--font-mono); border: 1px solid var(--border-subtle); color: var(--text-muted); padding: 4px 12px; border-radius: 20px; transition: all 0.3s; }
.service-card:hover .tag { border-color: var(--accent-cyan); color: var(--accent-cyan); background: rgba(0,212,255,0.05); }

/* ==================================
   5. PROCESS SECTION
================================== */
#process { padding: var(--section-py) 0; background: rgba(255,255,255,0.01); border-top: 1px solid var(--border-subtle); }
.process-steps { display: flex; justify-content: space-between; align-items: flex-start; text-align: center; position: relative; margin-top: 40px; }
.process-connector { flex-grow: 1; height: 2px; border-top: 2px dashed rgba(0, 212, 255, 0.3); margin: 30px 20px 0; }
.step { width: 220px; position: relative; }
.step-num { font-family: var(--font-mono); color: var(--accent-cyan); opacity: 0.15; font-size: 4rem; position: absolute; top: -45px; left: 50%; transform: translateX(-50%); font-weight: bold; z-index: 0; }
.step-icon { width: 60px; height: 60px; background: var(--bg-card); border: 1px solid var(--accent-cyan); border-radius: 50%; margin: 0 auto 20px; display: flex; justify-content: center; align-items: center; font-size: 1.5rem; position: relative; z-index: 1; box-shadow: inset 0 0 10px rgba(0,212,255,0.2); }
.step h4 { color: var(--text-primary); margin-bottom: 8px; font-size: 1.2rem; }
.step p { color: var(--text-muted); font-size: 0.9rem; }

/* ==================================
   6. STATS SECTION
================================== */
#stats { padding: var(--section-py) 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat-box { padding: 40px 20px; background: var(--bg-card); border: 1px solid var(--border-subtle); position: relative; overflow: hidden; }
.stat-box::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent); opacity: 0; transition: opacity 0.3s; }
.stat-box:hover::after { opacity: 1; }
.s-num { font-size: 3.5rem; font-family: var(--font-heading); color: var(--accent-cyan); font-weight: bold; display: block; line-height: 1; text-shadow: var(--glow-sm); }
.s-lbl { color: var(--text-muted); font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 1px; text-transform: uppercase; margin-top: 10px; display: block; }

/* ==================================
   7. CONTACT SECTION
================================== */
#contact { padding: var(--section-py) 0; position: relative; color: var(--text-primary); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-left .contact-phone { font-size: clamp(2.5rem, 5vw, 4rem); font-family: var(--font-heading); color: var(--accent-cyan); display: block; margin-bottom: 10px; font-weight: bold; transition: text-shadow 0.3s; }
.contact-phone:hover { text-shadow: var(--glow-cyan); }
.working-hours { color: var(--text-muted); font-family: var(--font-mono); margin-bottom: 40px; display: inline-block; padding-left: 15px; border-left: 2px solid var(--accent-orange); }
.msg-btn { display: flex; align-items: center; gap: 16px; padding: 16px 24px; border-radius: 12px; text-decoration: none; transition: transform 0.2s, box-shadow 0.2s; margin-bottom: 16px; }
.msg-btn:hover { transform: translateX(8px); }
.msg-btn svg { width: 28px; height: 28px; }
.msg-wa  { background: rgba(37,211,102,0.1); border: 1px solid #25D366; } .msg-wa svg { fill: #25D366; }
.msg-tg  { background: rgba(34,158,217,0.1); border: 1px solid #229ED9; } .msg-tg svg { fill: #229ED9; }
.msg-wc  { background: rgba(7,193,96,0.1);   border: 1px solid #07C160; } .msg-wc svg { fill: #07C160; }
.msg-phone { background: rgba(0,212,255,0.1); border: 1px solid var(--accent-cyan); } .msg-phone svg { fill: var(--accent-cyan); }
.btn-platform { display: block; font-weight: 600; color: var(--text-primary); font-size: 1.1rem; }
.btn-action   { display: block; font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-top: 2px; }

/* QR Panel */
.qr-panel { background: var(--bg-card); border: 1px solid var(--border-subtle); padding: 40px; text-align: center; border-radius: 12px; }
.qr-panel-header { margin-bottom: 30px; }
.qr-grid { display: flex; justify-content: center; gap: 24px; margin-bottom: 24px; }
.qr-item { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.qr-frame { position: relative; padding: 12px; background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.1); }
.qr-frame canvas, .qr-frame img { display: block; width: 120px; height: 120px; }
.qr-frame::before, .qr-frame::after { content: ''; position: absolute; width: 20px; height: 20px; border-color: var(--accent-cyan); border-style: solid; opacity: 0.8; }
.qr-frame::before { top: 0; left: 0; border-width: 2px 0 0 2px; }
.qr-frame::after  { bottom: 0; right: 0; border-width: 0 2px 2px 0; }
.qr-scanline { position: absolute; left: 12px; right: 12px; height: 2px; background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent); animation: qr-scan 2s ease-in-out infinite; opacity: 0.6; z-index: 10; pointer-events: none; }
@keyframes qr-scan { 0%, 100% { top: 12px; } 50% { top: calc(100% - 14px); } }
.qr-label { font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-muted); }
.qr-hint { font-size: 0.9rem; color: var(--text-muted); font-family: var(--font-mono); opacity: 0.7; }

/* ==================================
   8. FOOTER
================================== */
footer { background: #050508; padding: 60px 0 30px; border-top: 1px solid var(--border-subtle); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 60px; }
.footer-tagline { color: var(--text-muted); margin-top: 16px; max-width: 300px; }
.footer-title { color: #fff; font-family: var(--font-heading); font-size: 1.2rem; margin-bottom: 24px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--text-muted); transition: color 0.3s; }
.footer-links a:hover { color: var(--accent-cyan); }
.footer-contact p { color: var(--text-muted); margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.footer-bottom { border-top: 1px solid var(--border-subtle); padding-top: 30px; display: flex; justify-content: space-between; color: var(--text-muted); font-size: 0.85rem; font-family: var(--font-mono); }
.heart { color: red; }

/* Animations */
[data-animate] { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
[data-animate].visible { opacity: 1; transform: translateY(0); }
.d-1 { transition-delay: 100ms; } .d-2 { transition-delay: 200ms; } .d-3 { transition-delay: 300ms; } .d-4 { transition-delay: 400ms; }

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-stats { justify-content: center; }
  .hero-actions { justify-content: center; }
  .machine-abstract { margin: 0 auto; }
  .float-panel { display: none; } /* Hide floating logic on smaller to avoid overlap */
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .lang-switcher, .btn-cta { display: none; }
  .hamburger { display: block; }
  .mobile-menu { display: none; position: fixed; top: 70px; left: 0; width: 100%; background: rgba(10,10,15,0.95); backdrop-filter: blur(20px); padding: 40px 20px; flex-direction: column; gap: 20px; z-index: 999; }
  .mobile-menu.active { display: flex; }
  .mobile-lang { align-self: flex-start; display: flex; gap: 10px; }
  .services-grid { grid-template-columns: 1fr; }
  .process-steps { flex-direction: column; align-items: center; gap: 50px; }
  .process-connector { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-contact p { justify-content: center; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 10px; }
  .qr-grid { flex-wrap: wrap; }
  h1 { font-size: clamp(2.2rem, 8vw, 3rem); }
}
