/* ═══════════════════════════════════════════════
   ALA CORPORATE — STYLES
   Year 5070 Design System
═══════════════════════════════════════════════ */

/* ── Tokens ── */
:root {
  --bg:       #020408;
  --bg2:      #050c18;
  --bg3:      #0a1628;
  --cyan:     #00d4ff;
  --cyan2:    #00a8cc;
  --purple:   #8b5cf6;
  --purple2:  #6d28d9;
  --green:    #00ff88;
  --text:     #e2e8f0;
  --text2:    #94a3b8;
  --text3:    #475569;
  --border:   rgba(0,212,255,0.12);
  --glass:    rgba(255,255,255,0.03);
  --glass2:   rgba(0,212,255,0.05);

  --r:   8px;
  --r2: 16px;
  --r3: 24px;

  --nav-h: 72px;

  --ease-out-expo: cubic-bezier(0.16,1,0.3,1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  overflow-x: hidden;
  cursor: default;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ── Custom Scrollbar ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--cyan); border-radius: 2px; }

/* ── Selection ── */
::selection { background: rgba(0,212,255,0.25); color: var(--cyan); }

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

.grad-text {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 20px;
}
.section-tag::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.section-h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.section-desc {
  color: var(--text2);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 560px;
}

.section-head {
  text-align: center;
  margin-bottom: 64px;
}
.section-head .section-desc {
  margin: 20px auto 0;
}

.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* ══════════════════════════════════════
   NAVBAR
══════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
}

#navbar.scrolled {
  background: rgba(2,4,8,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 48px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-hex {
  width: 40px;
  height: 46px;
  filter: drop-shadow(0 0 8px rgba(0,212,255,0.6));
  transition: filter 0.3s;
}
.logo-hex:hover { filter: drop-shadow(0 0 16px rgba(0,212,255,0.9)); }
.logo-hex.small { width: 32px; height: 37px; }

.logo-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-ala {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--cyan);
  letter-spacing: 0.1em;
}
.logo-corp {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.55rem;
  font-weight: 400;
  color: var(--text2);
  letter-spacing: 0.25em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-left: auto;
}
.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text2);
  letter-spacing: 0.04em;
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out-expo);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: 36px;
}

.lang-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text2);
  font-family: 'Orbitron', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  padding: 6px 12px;
  border-radius: var(--r);
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s;
}
.lang-btn:hover { border-color: var(--cyan); color: var(--cyan); }

.nav-cta {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #000;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 10px 20px;
  border-radius: var(--r);
  transition: opacity 0.3s, box-shadow 0.3s;
  white-space: nowrap;
}
.nav-cta:hover {
  opacity: 0.9;
  box-shadow: 0 0 24px rgba(0,212,255,0.4);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: 0.3s;
}

/* ══════════════════════════════════════
   BUTTONS
══════════════════════════════════════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #000;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 14px 28px;
  border-radius: var(--r);
  transition: box-shadow 0.3s, transform 0.2s;
}
.btn-primary:hover {
  box-shadow: 0 0 32px rgba(0,212,255,0.5), 0 0 64px rgba(139,92,246,0.3);
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  color: var(--text);
  font-family: 'Orbitron', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 14px 28px;
  border-radius: var(--r);
  backdrop-filter: blur(8px);
  transition: border-color 0.3s, color 0.3s, background 0.3s, transform 0.2s;
}
.btn-outline:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0,212,255,0.05);
  transform: translateY(-2px);
}

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(0,212,255,0.06) 0%, transparent 60%),
              radial-gradient(ellipse 60% 80% at 80% 20%, rgba(139,92,246,0.08) 0%, transparent 50%),
              linear-gradient(to bottom, transparent 60%, var(--bg) 100%);
  pointer-events: none;
}

/* HUD corners */
.hud {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  color: rgba(0,212,255,0.4);
  opacity: 0;
  animation: hudFadeIn 1s 2s forwards;
}
.hud-tl { top: calc(var(--nav-h) + 20px); left: 24px; }
.hud-tr { top: calc(var(--nav-h) + 20px); right: 24px; }
.hud-bl { bottom: 80px; left: 24px; }
.hud-br { bottom: 80px; right: 24px; }
.hud-line {
  display: block;
  width: 32px;
  height: 1px;
  background: rgba(0,212,255,0.3);
}

@keyframes hudFadeIn { to { opacity: 1; } }

/* Geo floating shapes */
.geo {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: geoFloat 8s ease-in-out infinite;
}
.g1 {
  width: 300px; height: 300px;
  top: 10%; right: 8%;
  border: 1px solid rgba(0,212,255,0.08);
  animation-delay: 0s;
}
.g2 {
  width: 180px; height: 180px;
  bottom: 20%; left: 6%;
  border: 1px solid rgba(139,92,246,0.1);
  animation-delay: -3s;
}
.g3 {
  width: 80px; height: 80px;
  top: 30%; left: 15%;
  background: radial-gradient(circle, rgba(0,212,255,0.05), transparent);
  animation-delay: -6s;
}
.g4 {
  width: 120px; height: 120px;
  bottom: 30%; right: 15%;
  border: 1px solid rgba(0,255,136,0.06);
  animation-delay: -2s;
}

@keyframes geoFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-24px) rotate(4deg); }
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--nav-h) 24px 120px;
  max-width: 900px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: var(--cyan);
  border: 1px solid rgba(0,212,255,0.25);
  padding: 8px 20px;
  border-radius: 100px;
  background: rgba(0,212,255,0.05);
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 0.8s 0.3s var(--ease-out-expo) forwards;
}
.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(3.5rem, 10vw, 8rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  opacity: 0;
  animation: fadeUp 0.8s 0.5s var(--ease-out-expo) forwards;
}

/* Glitch effect */
.glitch {
  position: relative;
  color: #fff;
  text-shadow: 0 0 40px rgba(0,212,255,0.4);
}
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  overflow: hidden;
}
.glitch::before {
  color: var(--cyan);
  animation: glitch1 4s infinite;
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
  transform: translateX(-3px);
}
.glitch::after {
  color: var(--purple);
  animation: glitch2 4s infinite;
  clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
  transform: translateX(3px);
}
@keyframes glitch1 {
  0%, 90%, 100% { transform: translateX(0); opacity: 0; }
  92%            { transform: translateX(-4px); opacity: 0.8; }
  94%            { transform: translateX(2px); opacity: 0.5; }
  96%            { transform: translateX(-2px); opacity: 0.8; }
}
@keyframes glitch2 {
  0%, 90%, 100% { transform: translateX(0); opacity: 0; }
  93%            { transform: translateX(4px); opacity: 0.7; }
  95%            { transform: translateX(-3px); opacity: 0.4; }
  97%            { transform: translateX(2px); opacity: 0.7; }
}

.hero-corp {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.38em;
  font-weight: 400;
  letter-spacing: 0.35em;
  color: var(--text2);
  display: block;
  margin-top: 8px;
}

.hero-tagline {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(0.85rem, 2vw, 1.1rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--cyan);
  margin: 32px 0 16px;
  min-height: 1.5em;
  opacity: 0;
  animation: fadeUp 0.8s 0.7s var(--ease-out-expo) forwards;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text2);
  line-height: 1.7;
  max-width: 540px;
  margin: 0 auto 40px;
  opacity: 0;
  animation: fadeUp 0.8s 0.9s var(--ease-out-expo) forwards;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
  opacity: 0;
  animation: fadeUp 0.8s 1.1s var(--ease-out-expo) forwards;
}

/* Stats */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  opacity: 0;
  animation: fadeUp 0.8s 1.3s var(--ease-out-expo) forwards;
}
.hstat {
  text-align: center;
}
.hstat-n {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--cyan);
  text-shadow: 0 0 20px rgba(0,212,255,0.5);
}
.hstat-s {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.4rem;
  color: var(--purple);
}
.hstat-l {
  display: block;
  font-size: 0.72rem;
  color: var(--text3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 4px;
}
.hstat-div {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--border), transparent);
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  color: var(--text3);
  animation: scrollCueBob 2s ease-in-out infinite;
  opacity: 0;
  animation: fadeIn 1s 2s forwards, scrollCueBob 2s 3s ease-in-out infinite;
}
.scroll-cue-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
  box-shadow: 0 0 8px var(--cyan);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { height: 48px; opacity: 1; }
  100% { height: 8px;  opacity: 0; transform: translateY(40px); }
}
@keyframes scrollCueBob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}
@keyframes fadeIn { to { opacity: 1; } }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════
   ABOUT
══════════════════════════════════════ */
#about {
  position: relative;
  padding: 140px 0;
  overflow: hidden;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* Orb */
.about-visual {
  display: flex;
  justify-content: center;
}
.orb-wrap {
  position: relative;
  width: 320px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.orb-ring {
  position: absolute;
  border-radius: 50%;
  border-style: solid;
  border-color: transparent;
  animation: spin linear infinite;
}
.r1 {
  width: 320px; height: 320px;
  border-width: 1px;
  border-top-color: rgba(0,212,255,0.3);
  border-right-color: rgba(0,212,255,0.1);
  animation-duration: 20s;
}
.r2 {
  width: 260px; height: 260px;
  border-width: 1px;
  border-top-color: rgba(139,92,246,0.4);
  border-left-color: rgba(139,92,246,0.15);
  animation-duration: 14s;
  animation-direction: reverse;
}
.r3 {
  width: 200px; height: 200px;
  border-width: 1px;
  border-top-color: rgba(0,255,136,0.3);
  border-right-color: rgba(0,255,136,0.1);
  animation-duration: 10s;
}
.r4 {
  width: 140px; height: 140px;
  border-width: 2px;
  border-top-color: rgba(0,212,255,0.5);
  animation-duration: 7s;
  animation-direction: reverse;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.orb-core {
  position: relative;
  z-index: 2;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,255,0.3) 0%, rgba(139,92,246,0.2) 50%, transparent 100%);
  border: 1px solid rgba(0,212,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 40px rgba(0,212,255,0.3), inset 0 0 20px rgba(0,212,255,0.1);
}
.orb-core span {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.9rem;
  font-weight: 900;
  color: var(--cyan);
  text-shadow: 0 0 20px var(--cyan);
}

/* Orbiting dots */
.orb-dot {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}
.od1 {
  animation: orbitDot1 20s linear infinite;
}
.od2 {
  background: var(--purple);
  box-shadow: 0 0 12px var(--purple);
  animation: orbitDot2 14s linear infinite reverse;
}
.od3 {
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
  animation: orbitDot3 10s linear infinite;
}
@keyframes orbitDot1 {
  0%   { transform: rotate(0deg)   translateX(160px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(160px) rotate(-360deg); }
}
@keyframes orbitDot2 {
  0%   { transform: rotate(120deg)  translateX(130px) rotate(-120deg); }
  100% { transform: rotate(480deg)  translateX(130px) rotate(-480deg); }
}
@keyframes orbitDot3 {
  0%   { transform: rotate(240deg)  translateX(100px) rotate(-240deg); }
  100% { transform: rotate(600deg)  translateX(100px) rotate(-600deg); }
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.about-text p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text2);
}
.about-text .section-h2 {
  margin-bottom: 8px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.pill {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--cyan);
  border: 1px solid rgba(0,212,255,0.25);
  background: rgba(0,212,255,0.05);
  padding: 6px 14px;
  border-radius: 100px;
  transition: background 0.3s, border-color 0.3s;
}
.pill:hover {
  background: rgba(0,212,255,0.12);
  border-color: var(--cyan);
}

/* ══════════════════════════════════════
   SERVICES
══════════════════════════════════════ */
#services {
  padding: 140px 0;
  position: relative;
}

.srv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.srv-card {
  position: relative;
  padding: 40px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  overflow: hidden;
  transition: transform 0.4s var(--ease-out-expo), border-color 0.4s;
  transform-style: preserve-3d;
  cursor: default;
}
.srv-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0,212,255,0.3);
}
.srv-card:hover .card-glow {
  opacity: 1;
}
.srv-card:hover .card-border {
  opacity: 1;
}

.srv-icon {
  width: 56px; height: 56px;
  margin-bottom: 24px;
}
.srv-icon svg {
  width: 100%; height: 100%;
  filter: drop-shadow(0 0 8px rgba(0,212,255,0.3));
}

.srv-card h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.srv-card p {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--text2);
}

.card-glow {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: radial-gradient(ellipse 60% 40% at 30% 0%, rgba(0,212,255,0.06), transparent);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.card-border {
  position: absolute;
  inset: 0;
  border-radius: var(--r2);
  background: linear-gradient(135deg, rgba(0,212,255,0.15), transparent, rgba(139,92,246,0.1));
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  padding: 1px;
}

/* ══════════════════════════════════════
   NOESIS
══════════════════════════════════════ */
#noesis {
  position: relative;
  padding: 160px 0;
  overflow: hidden;
  background: var(--bg2);
}

.noesis-bg-anim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 80% at 50% 0%, rgba(0,212,255,0.04) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 0% 50%, rgba(139,92,246,0.05) 0%, transparent 50%),
    radial-gradient(ellipse 60% 60% at 100% 50%, rgba(0,255,136,0.03) 0%, transparent 50%);
  animation: noiseBgShift 12s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes noiseBgShift {
  0%   { opacity: 0.8; }
  100% { opacity: 1.2; }
}

.noesis-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.noesis-intro {
  text-align: center;
  margin-bottom: 80px;
}

.noesis-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin: 32px 0 48px;
}

/* NOESIS sphere */
.noesis-sphere {
  position: relative;
  width: 160px; height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ns-ring {
  position: absolute;
  border-radius: 50%;
  border-style: solid;
  border-color: transparent;
  animation: spin linear infinite;
}
.nr1 {
  width: 160px; height: 160px;
  border-width: 1px;
  border-top-color: rgba(0,212,255,0.4);
  border-bottom-color: rgba(0,212,255,0.15);
  animation-duration: 16s;
}
.nr2 {
  width: 124px; height: 124px;
  border-width: 1.5px;
  border-top-color: rgba(139,92,246,0.5);
  border-left-color: rgba(139,92,246,0.2);
  animation-duration: 11s;
  animation-direction: reverse;
}
.nr3 {
  width: 90px; height: 90px;
  border-width: 1px;
  border-top-color: rgba(0,255,136,0.4);
  animation-duration: 8s;
}

.ns-core {
  position: relative;
  z-index: 2;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(0,212,255,0.6) 0%, rgba(0,100,180,0.4) 40%, rgba(20,10,60,0.8) 100%);
  border: 1px solid rgba(0,212,255,0.5);
  box-shadow:
    0 0 30px rgba(0,212,255,0.4),
    0 0 60px rgba(0,212,255,0.2),
    inset 0 0 20px rgba(0,212,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ns-inner-glow {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.8), rgba(0,212,255,0.3));
  box-shadow: 0 0 20px rgba(255,255,255,0.5);
  animation: innerPulse 3s ease-in-out infinite;
}
@keyframes innerPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.3); opacity: 0.7; }
}

/* Sphere orbiting dots */
.ns-dot {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
}
.nd1 {
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: orbitDot1 16s linear infinite;
}
.nd2 {
  background: var(--purple);
  box-shadow: 0 0 8px var(--purple);
  animation: orbitDot2 11s linear infinite reverse;
}
.nd3 {
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: orbitDot3 8s linear infinite;
}
.nd4 {
  background: #fff;
  box-shadow: 0 0 6px rgba(255,255,255,0.6);
  animation: orbitDot1 11s linear infinite reverse;
  animation-delay: -4s;
}

.noesis-wordmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.noesis-name {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: 0.3em;
  color: #fff;
  text-shadow: 0 0 40px rgba(0,212,255,0.5), 0 0 80px rgba(139,92,246,0.3);
}
.noesis-sub {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text2);
}

.noesis-h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 20px;
}
.noesis-desc {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text2);
  max-width: 600px;
  margin: 0 auto;
}

/* Tech stack row */
.stack-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 80px;
}
.stack-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--text2);
}
.stack-icon {
  width: 52px; height: 52px;
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: var(--glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--cyan);
  backdrop-filter: blur(8px);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.stack-icon:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 20px rgba(0,212,255,0.2);
}
.stack-icon svg { width: 22px; height: 22px; }
.si-notion { color: #fff; font-size: 1.1rem; }
.si-n8n    { color: var(--purple); }
.si-wa     { color: var(--green); }
.si-ai     { background: linear-gradient(135deg, rgba(0,212,255,0.1), rgba(139,92,246,0.1)); }

.stack-arrow {
  font-family: 'Orbitron', sans-serif;
  color: var(--border);
  font-size: 1rem;
}

/* Area cards */
.noesis-areas {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.area-card {
  position: relative;
  padding: 32px 24px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  overflow: hidden;
  transition: transform 0.4s var(--ease-out-expo), border-color 0.4s;
}
.area-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0,212,255,0.3);
}
.area-card:hover .area-glow { opacity: 1; }

.area-num {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--cyan);
  margin-bottom: 16px;
  opacity: 0.6;
}
.area-card h4 {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.area-card p {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--text2);
}
.area-glow {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 40%;
  background: radial-gradient(ellipse at 50% 0%, rgba(0,212,255,0.08), transparent);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

/* ══════════════════════════════════════
   PACKAGES
══════════════════════════════════════ */
#packages {
  padding: 140px 0;
  position: relative;
}

.pkg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pkg-card {
  position: relative;
  padding: 40px 32px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  overflow: hidden;
  transition: transform 0.4s var(--ease-out-expo);
}
.pkg-card:hover { transform: translateY(-8px); }

.pkg-featured {
  border-color: rgba(0,212,255,0.3);
  background: rgba(0,212,255,0.04);
  transform: translateY(-16px);
}
.pkg-featured:hover { transform: translateY(-24px); }

.pkg-badge {
  position: absolute;
  top: 20px; right: 20px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  color: #000;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  padding: 4px 12px;
  border-radius: 100px;
}

.pkg-tier {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}
.pkg-ai {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pkg-tagline {
  font-size: 0.88rem;
  color: var(--text2);
  line-height: 1.6;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.pkg-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}
.pkg-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text2);
  line-height: 1.5;
}
.pkg-features li::before {
  content: '→';
  color: var(--cyan);
  font-size: 0.75rem;
  margin-top: 2px;
  flex-shrink: 0;
}
.pkg-features li.pkg-no {
  opacity: 0.35;
}
.pkg-features li.pkg-no::before {
  content: '—';
  color: var(--text3);
}

.pkg-cta {
  display: block;
  text-align: center;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 14px;
  border-radius: var(--r);
  border: 1px solid var(--border);
  color: var(--text);
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.pkg-cta:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0,212,255,0.05);
}
.pkg-cta-featured {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  border-color: transparent;
  color: #000 !important;
}
.pkg-cta-featured:hover {
  background: linear-gradient(135deg, var(--cyan2), var(--purple2));
  border-color: transparent !important;
  color: #000 !important;
  box-shadow: 0 0 32px rgba(0,212,255,0.4);
}

.featured-glow {
  position: absolute;
  top: -80px; left: 50%;
  transform: translateX(-50%);
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(0,212,255,0.12), transparent);
  pointer-events: none;
}

.pkg-note {
  text-align: center;
  margin-top: 48px;
  font-size: 0.85rem;
  color: var(--text3);
  letter-spacing: 0.05em;
}

/* ══════════════════════════════════════
   CONTACT
══════════════════════════════════════ */
#contact {
  position: relative;
  padding: 160px 0;
  overflow: hidden;
}

.contact-geo {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.cg1 {
  width: 500px; height: 500px;
  top: 50%; left: -100px;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(139,92,246,0.05), transparent 60%);
}
.cg2 {
  width: 400px; height: 400px;
  top: 50%; right: -80px;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(0,212,255,0.05), transparent 60%);
}

.contact-inner {
  text-align: center;
  position: relative;
  z-index: 2;
}
.contact-inner .section-h2 { margin-bottom: 20px; }

.contact-desc {
  font-size: 1.05rem;
  color: var(--text2);
  line-height: 1.75;
  max-width: 500px;
  margin: 0 auto 48px;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--cyan);
  border: 1px solid rgba(0,212,255,0.3);
  background: rgba(0,212,255,0.05);
  padding: 20px 40px;
  border-radius: var(--r2);
  transition: background 0.3s, box-shadow 0.3s, transform 0.3s;
  backdrop-filter: blur(8px);
}
.contact-email:hover {
  background: rgba(0,212,255,0.1);
  box-shadow: 0 0 40px rgba(0,212,255,0.2);
  transform: translateY(-4px);
}
.email-icon svg { width: 22px; height: 22px; stroke: var(--cyan); }
.email-arrow {
  font-size: 1.2rem;
  transition: transform 0.3s;
}
.contact-email:hover .email-arrow { transform: translate(4px, -4px); }

.contact-or {
  font-size: 0.8rem;
  color: var(--text3);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 40px 0;
}

.contact-cards {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}
.contact-card {
  flex: 1;
  min-width: 240px;
  max-width: 320px;
  padding: 32px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  text-align: left;
  transition: border-color 0.3s, transform 0.4s var(--ease-out-expo);
}
.contact-card:hover {
  border-color: rgba(0,212,255,0.25);
  transform: translateY(-4px);
}
.cc-icon {
  width: 40px; height: 40px;
  margin-bottom: 16px;
}
.cc-icon svg { width: 100%; height: 100%; stroke: var(--cyan); }
.contact-card h4 {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.contact-card p {
  font-size: 0.88rem;
  color: var(--text2);
  line-height: 1.7;
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
#footer {
  background: var(--bg2);
  padding: 80px 0 40px;
  position: relative;
}
.footer-top-line {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
  margin-bottom: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 64px;
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--border);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.footer-logo-text {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text);
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 16px;
}
.footer-email {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--cyan);
  transition: opacity 0.3s;
}
.footer-email:hover { opacity: 0.7; }

.footer-links h5 {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--text3);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links a {
  font-size: 0.9rem;
  color: var(--text2);
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--cyan); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  font-size: 0.8rem;
  color: var(--text3);
}
.footer-built {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--cyan);
  opacity: 0.4;
}

/* ══════════════════════════════════════
   SCROLL ANIMATIONS
══════════════════════════════════════ */
[data-animate] {
  opacity: 0;
  transform: translateY(40px);
  transition: none;
}
[data-animate="fade-right"] {
  transform: translateX(-40px);
}
[data-animate="fade-left"] {
  transform: translateX(40px);
}
[data-animate].visible {
  opacity: 1;
  transform: translate(0);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 1024px) {
  .noesis-areas { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: rgba(2,4,8,0.98);
    backdrop-filter: blur(20px);
    padding: 32px 24px;
    border-bottom: 1px solid var(--border);
    gap: 24px;
    z-index: 99;
  }
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { order: -1; }
  .srv-grid { grid-template-columns: 1fr; }
  .pkg-grid { grid-template-columns: 1fr; }
  .pkg-featured { transform: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 640px) {
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .hstat-div { display: none; }
  .noesis-areas { grid-template-columns: 1fr; }
  .stack-row { gap: 12px; }
  .contact-cards { flex-direction: column; align-items: center; }
  .hud { display: none; }
  .nav-cta { display: none; }
}

/* ══════════════════════════════════════
   PARALLAX LAYERS
══════════════════════════════════════ */
.plx-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  will-change: transform;
  z-index: 1;
}

#threeCanvas {
  position: absolute;
  right: 4%;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 2;
  opacity: 0.75;
  filter: drop-shadow(0 0 30px rgba(0,212,255,0.25));
  will-change: transform;
}

.hero-overlay  { z-index: 3; }
.hud           { z-index: 4; }
.geo           { z-index: 2; will-change: transform; }
.hero-content  { position: relative; z-index: 5; }
.scroll-cue    { z-index: 5; }

/* Section parallax bg elements */
.section-plx-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.plx-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
}

/* NOESIS section extra depth */
#noesis .plx-orb-1 {
  width: 600px; height: 600px;
  top: -200px; left: -200px;
  background: radial-gradient(circle, rgba(0,212,255,0.04), transparent 65%);
}
#noesis .plx-orb-2 {
  width: 400px; height: 400px;
  bottom: -100px; right: -100px;
  background: radial-gradient(circle, rgba(139,92,246,0.06), transparent 65%);
}

/* About section depth */
#about .plx-orb-1 {
  width: 500px; height: 500px;
  top: -100px; right: -150px;
  background: radial-gradient(circle, rgba(139,92,246,0.04), transparent 65%);
}

/* Services section depth */
#services .plx-orb-1 {
  width: 350px; height: 350px;
  bottom: 0; left: -80px;
  background: radial-gradient(circle, rgba(0,255,136,0.03), transparent 65%);
}

/* 3D floating mesh decorations */
.mesh-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(0,212,255,0.15), transparent);
  pointer-events: none;
}

.nav-logo-img {
  height: 36px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(0,212,255,0.3));
  transition: filter 0.3s ease;
}
.nav-logo:hover .nav-logo-img {
  filter: drop-shadow(0 0 12px rgba(0,212,255,0.6));
}
.footer-logo-img {
  height: 32px;
  width: auto;
  display: block;
  object-fit: contain;
  opacity: 0.85;
  filter: drop-shadow(0 0 6px rgba(0,212,255,0.25));
}

.noesis-cta-wrap {
  text-align: center;
  margin-top: 3rem;
}

/* Depth scanlines overlay */
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.03) 2px,
    rgba(0,0,0,0.03) 4px
  );
  pointer-events: none;
}
