/* ═══════════════════════════════════════════
   VARIABLES & RESET
════════════════════════════════════════════ */
:root {
  --blue: #1A1AFF;
  --blue-mid: #3B3BFF;
  --blue-light: #EEF0FF;
  --purple: #7C3AED;
  --purple-light: #F5F0FF;
  --teal: #00B8A9;
  --green: #22C55E;
  --orange: #F97316;
  --text-dark: #0F172A;
  --text-mid: #334155;
  --text-muted: #64748B;
  --border: #E2E8F0;
  --bg: #FFFFFF;
  --bg-soft: #F8FAFF;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 24px rgba(26,26,255,0.08), 0 1px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 16px 48px rgba(26,26,255,0.12), 0 4px 12px rgba(0,0,0,0.08);
  --radius: 12px;
  --radius-lg: 20px;
  --font-heading: 'Sora', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ═══════════════════════════════════════════
   LAYOUT
════════════════════════════════════════════ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ═══════════════════════════════════════════
   TYPOGRAPHY
════════════════════════════════════════════ */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; }

h1 { font-size: clamp(2rem, 4vw, 3rem); color: var(--text-dark); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); color: var(--text-dark); }
h3 { font-size: 1.05rem; font-weight: 600; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}

.accent { color: var(--blue); }

/* ═══════════════════════════════════════════
   BUTTONS
════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue);
  color: white;
  box-shadow: 0 4px 20px rgba(26,26,255,0.35);
}
.btn-primary:hover {
  background: #0000e0;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(26,26,255,0.45);
}
.btn-primary .arrow { transition: transform var(--transition); }
.btn-primary:hover .arrow { transform: translateX(4px); }

.btn-ghost {
  background: white;
  color: var(--text-dark);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
}

.play-btn {
  width: 28px; height: 28px;
  background: var(--bg-soft);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
}

/* ═══════════════════════════════════════════
   LOGO
════════════════════════════════════════════ */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-icon { flex-shrink: 0; }
.logo-text {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1.3;
  color: var(--text-dark);
}
.logo-text strong { font-weight: 800; display: block; }

/* ═══════════════════════════════════════════
   NAVBAR
════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}
.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-mid);
  position: relative;
  padding-bottom: 4px;
  transition: color var(--transition);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transition: width var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--blue); }
.nav-links a.active::after,
.nav-links a:hover::after { width: 100%; }

.nav-cta { margin-left: 16px; padding: 10px 20px; font-size: 0.85rem; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ═══════════════════════════════════════════
   HERO
════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 0 60px;
  background: linear-gradient(135deg, #F8FAFF 0%, #FAFBFF 50%, #F0F4FF 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(26,26,255,0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text { max-width: 520px; }
.hero-text h1 { margin-bottom: 20px; }
.hero-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.7;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.tag {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-mid);
  box-shadow: var(--shadow-sm);
}
.icon-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  display: inline-block;
}
.icon-dot.blue { background: var(--blue); }

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero Visual */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cube-wrap {
  position: relative;
  width: 440px;
  height: 440px;
}

.connector-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-cube {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 130px; height: 130px;
  background: linear-gradient(135deg, #ffffff 0%, #f0f4ff 100%);
  border-radius: 28px;
  box-shadow: 0 20px 60px rgba(26,26,255,0.18), 0 4px 16px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  animation: cubePulse 3s ease-in-out infinite;
}

@keyframes cubePulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 20px 60px rgba(26,26,255,0.18); }
  50% { transform: translate(-50%, -50%) scale(1.04); box-shadow: 0 28px 80px rgba(26,26,255,0.25); }
}

.cube-glow {
  position: absolute;
  inset: -20px;
  border-radius: 40px;
  background: radial-gradient(circle, rgba(26,26,255,0.08) 0%, transparent 70%);
  animation: glowPulse 3s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.orbit-item {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 5;
}
.orbit-item .orbit-icon {
  width: 52px; height: 52px;
  background: white;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 20px rgba(26,26,255,0.12), 0 1px 4px rgba(0,0,0,0.06);
  transition: transform var(--transition);
}
.orbit-item:hover .orbit-icon { transform: scale(1.1) translateY(-4px); }
.orbit-item span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-mid);
  font-family: var(--font-heading);
}

.orbit-top    { top: 16px; left: 50%; transform: translateX(-50%); }
.orbit-right  { top: 50%; right: 16px; transform: translateY(-50%); }
.orbit-bottom { bottom: 16px; left: 50%; transform: translateX(-50%); }
.orbit-left   { top: 50%; left: 0px; transform: translateY(-50%); }
.orbit-bl     { bottom: 70px; left: 42px; }
.orbit-br     { bottom: 70px; right: 22px; }

/* Social Sidebar */
.social-sidebar {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0;
  z-index: 100;
}
.social-sidebar a {
  width: 40px; height: 40px;
  background: white;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: all var(--transition);
  border-bottom: none;
}
.social-sidebar a:last-child { border-bottom: 1px solid var(--border); }
.social-sidebar a:hover { background: var(--blue); color: white; border-color: var(--blue); }

/* ═══════════════════════════════════════════
   SERVICES
════════════════════════════════════════════ */
.services {
  padding: 100px 0;
  background: white;
}

.services-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
  align-items: start;
}

.services-header h2 { margin-bottom: 20px; }
.section-rule {
  width: 40px; height: 3px;
  background: var(--blue);
  border-radius: 2px;
  margin-top: 16px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.service-card {
  background: white;
  padding: 28px 24px;
  transition: all var(--transition);
}
.service-card:hover {
  background: var(--blue-light);
  z-index: 1;
}

.service-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 14px;
}
.service-icon.ai     { background: #EEF0FF; }
.service-icon.iot    { background: #F0FFF4; }
.service-icon.mobile { background: #FFF5F7; }
.service-icon.cloud  { background: #F0F9FF; }
.service-icon.erp    { background: #FFFBF0; }
.service-icon.cyber  { background: #F5F0FF; }

.service-card h3 { margin-bottom: 8px; font-size: 0.95rem; }
.service-card p  { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }

/* ═══════════════════════════════════════════
   PRODUCTS
════════════════════════════════════════════ */
.products {
  padding: 100px 0;
  background: var(--bg-soft);
}

.products-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
}
.products-header h2 { margin-top: 8px; }

.products-nav { display: flex; gap: 8px; }
.prod-nav-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: white;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  color: var(--text-mid);
}
.prod-nav-btn:hover { background: var(--blue); color: white; border-color: var(--blue); }

.products-timeline {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 28px;
  padding-left: 130px;
}
.timeline-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--blue);
  border: 2px solid var(--blue);
  flex-shrink: 0;
}
.timeline-dot.icon {
  width: 44px; height: 44px;
  background: white;
  border: 2px solid var(--blue-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.timeline-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--blue) 0%, #c0c8ff 100%);
}

.products-track {
  display: grid;
  grid-template-columns: 260px repeat(3, 1fr);
  gap: 20px;
}

.product-card {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.product-card:hover {
  border-color: var(--blue-mid);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.product-card.featured {
  border-color: #c0c8ff;
  background: white;
  box-shadow: var(--shadow-sm);
}

.product-card-top { margin-bottom: 4px; }
.tapaxe-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.tapaxe-logo strong { font-family: var(--font-heading); font-size: 1.1rem; display: block; }
.tapaxe-logo small { font-size: 0.72rem; color: var(--teal); font-weight: 500; }

.product-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }
.product-icon {
  font-size: 2rem;
  width: 56px; height: 56px;
  background: var(--blue-light);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
}
.product-card h3 { font-size: 0.95rem; }

.learn-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue);
  margin-top: auto;
  transition: gap var(--transition);
}
.learn-more:hover { gap: 8px; }

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: auto;
}
.coming-soon {
  background: #F0F4FF;
  color: var(--blue);
  border: 1px solid #c0c8ff;
}

/* ═══════════════════════════════════════════
   PROCESS
════════════════════════════════════════════ */
.process {
  padding: 100px 0;
  background: white;
}

.process-header { margin-bottom: 56px; }

.process-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 90px;
}

.step-icon {
  width: 68px; height: 68px;
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: all var(--transition);
}
.process-step:hover .step-icon {
  background: var(--blue);
  border-color: var(--blue);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(26,26,255,0.2);
}

.step-num {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
}
.step-label {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dark);
  text-align: center;
}

.step-arrow {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0 12px;
  margin-bottom: 32px;
  opacity: 0.5;
}

/* ═══════════════════════════════════════════
   STATS
════════════════════════════════════════════ */
.stats {
  padding: 80px 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--border);
}

.stat-card {
  background: white;
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  transition: background var(--transition);
}
.stat-card:hover { background: var(--bg-soft); }
.stat-card:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 20%; bottom: 20%;
  width: 1px;
  background: var(--border);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  display: inline-block;
}
.stat-plus {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  display: inline-block;
  margin-left: -2px;
}
.stat-number.blue, .stat-plus.blue { color: var(--blue); }
.stat-number.purple, .stat-plus.purple { color: var(--purple); }
.stat-number.orange { color: var(--orange); }
.stat-number.teal, .stat-plus.teal { color: var(--teal); }
.stat-number.green, .stat-plus.green { color: var(--green); }

.stat-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 4px;
}
.stat-icon {
  font-size: 1.4rem;
  margin-top: 8px;
  opacity: 0.7;
}

/* Row 1: number + plus inline */
.stat-card .stat-number + .stat-plus { display: inline; }

/* ═══════════════════════════════════════════
   FOOTER
════════════════════════════════════════════ */
.footer {
  background: var(--bg);
  padding-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 280px repeat(4, 1fr);
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--border);
}

.footer-brand p {
  font-size: 0.83rem;
  color: var(--text-muted);
  margin: 20px 0 24px;
  line-height: 1.7;
}

.footer-social {
  display: flex;
  gap: 8px;
}
.footer-social a {
  width: 36px; height: 36px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: all var(--transition);
}
.footer-social a:hover { background: var(--blue); color: white; border-color: var(--blue); }

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--blue); }

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.footer-contact li span { flex-shrink: 0; font-size: 1rem; }

.map-placeholder {
  margin-top: 16px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.footer-bottom {
  padding: 20px 0;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-bottom span,
.footer-bottom a {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.footer-bottom a:hover { color: var(--blue); }
.footer-legal { display: flex; align-items: center; gap: 12px; }

/* ═══════════════════════════════════════════
   ANIMATIONS
════════════════════════════════════════════ */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-animate="fadeIn"] {
  transform: translateX(24px);
}
[data-animate].visible {
  opacity: 1;
  transform: none;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-text { max-width: 100%; }
  .hero-tags { justify-content: center; }
  .hero-actions { justify-content: center; }
  .hero-visual { display: none; }
  .social-sidebar { display: none; }
  .services-inner { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .products-track { grid-template-columns: repeat(2, 1fr); }
  .products-timeline { display: none; }
  .process-steps { gap: 8px; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .navbar.menu-open .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 72px 0 0 0;
    background: white;
    padding: 32px 24px;
    gap: 24px;
    border-top: 1px solid var(--border);
    overflow-y: auto;
    z-index: 999;
  }
  .navbar.menu-open .nav-cta { display: inline-flex; margin: 0; width: fit-content; }
  .services-grid { grid-template-columns: 1fr; }
  .products-track { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .process-steps { flex-wrap: wrap; gap: 16px; }
  .step-arrow { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom-inner { flex-direction: column; gap: 8px; text-align: center; }
  .products-header { flex-direction: column; align-items: flex-start; gap: 16px; }
}
