/* ============================================
   NERGETIC IDEAS — style.css
   ============================================ */

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

:root {
  --bg:           #09090b;
  --bg-2:         #111113;
  --bg-3:         #18181b;
  --border:       rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.16);
  --text-primary: #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted:   #71717a;
  --accent:       #6366f1;
  --accent-light: #818cf8;
  --accent-glow:  rgba(99,102,241,0.3);
  --green:        #10b981;
  --radius:       12px;
  --radius-lg:    20px;
  --shadow:       0 1px 3px rgba(0,0,0,0.4), 0 4px 16px rgba(0,0,0,0.3);
  --shadow-lg:    0 8px 32px rgba(0,0,0,0.5);
  --transition:   0.25s cubic-bezier(0.4,0,0.2,1);
  --font:         'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', monospace;
}

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

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background: var(--accent);
  color: #fff;
}

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

ul { list-style: none; }

img { display: block; max-width: 100%; }

/* ============================================
   UTILITIES
   ============================================ */

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-light) 0%, #a78bfa 50%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section {
  padding: 96px 0;
}

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

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent-light), #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 0 var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 0 24px var(--accent-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: rgba(255,255,255,0.04);
  transform: translateY(-1px);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ============================================
   NAVIGATION
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0;
  transition: background var(--transition), border-color var(--transition), backdrop-filter var(--transition);
}

.nav.scrolled {
  background: rgba(9,9,11,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--accent);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.nav-links a:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.06);
}

.nav-links .nav-cta {
  background: var(--accent);
  color: #fff;
  padding: 7px 18px;
  font-weight: 600;
}

.nav-links .nav-cta:hover {
  background: var(--accent-light);
  color: #fff;
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  padding: 12px 24px 20px;
}

.nav-mobile a {
  padding: 12px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}

.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { color: var(--text-primary); }

.nav-mobile.open { display: flex; }

/* ============================================
   HERO
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, #000 40%, transparent 100%);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.hero-glow-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(99,102,241,0.18) 0%, transparent 70%);
  top: -100px;
  left: 50%;
  transform: translateX(-30%);
}

.hero-glow-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(167,139,250,0.12) 0%, transparent 70%);
  top: 200px;
  right: -100px;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 760px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.25);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--green);
  margin-bottom: 28px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.hero-title {
  font-size: clamp(42px, 7vw, 80px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 40px;
  max-width: 560px;
}

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

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  padding: 0 28px;
}

.stat:first-child { padding-left: 0; }

.stat-number {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.4;
}

.scroll-dot {
  width: 4px;
  height: 4px;
  background: var(--text-primary);
  border-radius: 50%;
  animation: scroll-bounce 1.8s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(8px); opacity: 0.3; }
}

/* ============================================
   ABOUT
   ============================================ */

.about {
  background: var(--bg);
}

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

.about-text .section-eyebrow { text-align: left; }
.about-text .section-title { text-align: left; }

.about-body {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 16px;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.tag {
  padding: 6px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.tag:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  background: rgba(99,102,241,0.08);
}

.about-visual {
  display: flex;
  justify-content: center;
}

.about-card-stack {
  position: relative;
  width: 340px;
  height: 240px;
}

.about-card {
  position: absolute;
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.about-card-back {
  height: 200px;
  top: 30px;
  left: 16px;
  right: -16px;
  background: var(--bg-3);
  transform: rotate(2deg);
}

.about-card-front {
  height: 220px;
  top: 0;
  left: 0;
  right: 0;
  background: var(--bg-2);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-lg);
}

.card-icon-row {
  display: flex;
  gap: 10px;
}

.card-icon-row .card-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 8px;
  color: var(--accent-light);
}

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

.card-line {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

.card-quote {
  font-size: 14px;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.5;
}

.card-tech-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tech-badge {
  padding: 3px 10px;
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: 6px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--accent-light);
}

/* ============================================
   SERVICES
   ============================================ */

.services {
  background: var(--bg-2);
}

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

.service-card {
  position: relative;
  background: var(--bg-2);
  padding: 36px 32px;
  transition: background var(--transition);
  overflow: hidden;
}

.service-card::before {
  content: attr(data-index);
  position: absolute;
  top: 24px;
  right: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.service-card:hover {
  background: var(--bg-3);
}

.service-card:hover .service-icon {
  color: var(--accent-light);
  background: rgba(99,102,241,0.12);
}

.service-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  margin-bottom: 20px;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.service-icon svg {
  width: 20px;
  height: 20px;
}

.service-card h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.service-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 16px;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.service-list li {
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  padding-left: 14px;
  position: relative;
}

.service-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 11px;
}

/* ============================================
   WORK / PORTFOLIO
   ============================================ */

.work {
  background: var(--bg);
}

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

.project-featured {
  grid-column: span 2;
}

.project-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.project-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.project-featured .project-image {
  height: 300px;
}

/* Individual project color palettes */
.project-image-soulinsider {
  background: linear-gradient(135deg, #064e3b 0%, #065f46 40%, #0f172a 100%);
}

.project-image-legaldraft { background: #f8fafc; }
.project-image-scanrise { background: #000; }
.project-image-factorypulse { background: #f0f2f7; }
.project-image-enneagram { background: rgb(2,6,23); }
.project-image-visualisai { background: #0a0f1e; }

/* ============================================
   APP MOCKUPS
   ============================================ */

.app-mockup {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-family: var(--font);
}

/* ---- SOULINSIDER ---- */
.mockup-soulinsider {
  background: linear-gradient(160deg, #f0f4fa 0%, #e8f0fb 100%);
  padding: 12px 14px;
  gap: 10px;
}

.si-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.si-topbar-left { display: flex; align-items: center; gap: 8px; }

.si-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  flex-shrink: 0;
}

.si-greeting { font-size: 9px; color: #64748b; }
.si-name { font-size: 11px; font-weight: 700; color: #0f172a; }

.si-badge-live {
  display: flex; align-items: center; gap: 4px;
  font-size: 9px; font-weight: 600; color: #16a34a;
  background: #f0fdf4; border: 1px solid #bbf7d0;
  padding: 2px 7px; border-radius: 20px;
}

.si-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: #22c55e;
  animation: pulse-dot 2s infinite;
}

.si-body { display: flex; gap: 10px; flex: 1; min-height: 0; }
.si-col-main { flex: 1.4; display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.si-col-side { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }

.si-section-label { font-size: 9px; font-weight: 700; color: #94a3b8; letter-spacing: 0.07em; text-transform: uppercase; }

.si-cal-row { display: flex; gap: 4px; }
.si-day {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  padding: 4px 2px; border-radius: 8px;
  font-size: 8px; font-weight: 600; color: #64748b; gap: 2px;
  background: #fff;
}
.si-day span { font-size: 10px; font-weight: 700; color: #334155; }
.si-day.active { background: #3b82f6; }
.si-day.active, .si-day.active span { color: #fff; }

.si-session {
  display: flex; align-items: center; gap: 7px;
  background: #fff; border-radius: 8px; padding: 6px 8px;
  border-left: 3px solid #3b82f6;
}
.si-session-time { font-size: 10px; font-weight: 700; color: #3b82f6; width: 28px; flex-shrink: 0; }
.si-session-info { flex: 1; min-width: 0; }
.si-session-name { font-size: 10px; font-weight: 600; color: #0f172a; }
.si-session-type { font-size: 8px; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.si-session-btn {
  font-size: 8px; font-weight: 700; color: #3b82f6;
  background: #eff6ff; border: 1px solid #bfdbfe;
  padding: 3px 7px; border-radius: 6px; flex-shrink: 0;
}

.si-request {
  display: flex; align-items: center; gap: 6px;
  background: #fff; border-radius: 8px; padding: 5px 7px;
}
.si-req-avatar {
  width: 20px; height: 20px; border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #ef4444); flex-shrink: 0;
}
.si-req-avatar-2 { background: linear-gradient(135deg, #8b5cf6, #3b82f6); }
.si-req-info { flex: 1; min-width: 0; }
.si-req-name { font-size: 9px; font-weight: 600; color: #0f172a; }
.si-req-time { font-size: 8px; color: #94a3b8; }
.si-badge-pending {
  font-size: 7px; font-weight: 700; color: #d97706;
  background: #fef3c7; border: 1px solid #fde68a;
  padding: 2px 5px; border-radius: 4px; flex-shrink: 0;
}

.si-ai-card {
  background: linear-gradient(135deg, #eff6ff, #f0fdf4);
  border: 1px solid #bfdbfe; border-radius: 8px; padding: 7px 8px; flex: 1;
}
.si-ai-label { font-size: 8px; font-weight: 700; color: #3b82f6; margin-bottom: 3px; }
.si-ai-text { font-size: 8px; color: #475569; line-height: 1.4; font-style: italic; }

/* ---- LEGALDRAFT ---- */
.mockup-legaldraft {
  background: #f8fafc;
  padding: 0;
  gap: 0;
}

.ld-browser-bar {
  display: flex; align-items: center; gap: 8px;
  background: #f1f5f9; padding: 6px 10px;
  border-bottom: 1px solid #e2e8f0;
}

.ld-dots { display: flex; gap: 4px; }
.ld-dots span {
  width: 7px; height: 7px; border-radius: 50%;
  background: #cbd5e1;
}
.ld-dots span:nth-child(1) { background: #fca5a5; }
.ld-dots span:nth-child(2) { background: #fcd34d; }
.ld-dots span:nth-child(3) { background: #86efac; }

.ld-url {
  font-size: 9px; color: #64748b; background: #fff;
  border: 1px solid #e2e8f0; border-radius: 4px;
  padding: 2px 10px; flex: 1; text-align: center;
}

.ld-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }

.ld-badge {
  display: inline-flex; align-items: center;
  background: #f0fdf4; border: 1px solid #bbf7d0;
  color: #16a34a; font-size: 8px; font-weight: 600;
  padding: 3px 8px; border-radius: 20px; align-self: flex-start;
}

.ld-headline { font-size: 13px; font-weight: 800; color: #1b2b4b; line-height: 1.3; }
.ld-headline span { color: #22c55e; }

.ld-cards-row { display: flex; gap: 6px; }

.ld-doc-card {
  flex: 1; background: #fff; border: 1px solid #e2e8f0;
  border-radius: 8px; padding: 7px 6px; text-align: center;
  transition: all 0.2s;
}
.ld-doc-card:first-child { border-color: #1b2b4b; box-shadow: 0 0 0 1px #1b2b4b; }
.ld-doc-icon { font-size: 14px; margin-bottom: 3px; }
.ld-doc-name { font-size: 7px; font-weight: 600; color: #334155; }

/* ---- SCANRISE ---- */
/* Home screen: warm off-white #F5F3EE, orange #F97316 */
.mockup-scanrise {
  background: #F5F3EE;
  padding: 12px 14px;
  gap: 8px;
}

.sr-header { display: flex; align-items: center; justify-content: space-between; }

.sr-streak-badge {
  display: flex; align-items: center; gap: 4px;
  background: #fff; border-radius: 20px;
  padding: 3px 10px;
  font-size: 9px; font-weight: 700; color: #1C1C1E;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.sr-bell {
  width: 24px; height: 24px; background: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.sr-greeting { font-size: 13px; font-weight: 800; color: #1C1C1E; line-height: 1.25; }
.sr-greeting span { color: #1C1C1E; }

.sr-progress-wrap { display: flex; align-items: center; gap: 8px; }
.sr-progress-track { flex: 1; height: 5px; background: #E8E4DC; border-radius: 3px; overflow: hidden; }
.sr-progress-fill { width: 66%; height: 100%; background: #F97316; border-radius: 3px; }
.sr-progress-label { font-size: 8px; color: #6B7280; white-space: nowrap; }

.sr-routine-card {
  background: #fff; border-radius: 12px; padding: 9px 10px;
  display: flex; flex-direction: column; gap: 6px;
  border: 1px solid #E8E4DC;
}
.sr-routine-title { font-size: 9px; font-weight: 700; color: #6B7280; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 2px; }

.sr-routine-item { display: flex; align-items: center; gap: 7px; }
.sr-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.sr-routine-item span { font-size: 10px; font-weight: 500; color: #1C1C1E; flex: 1; }
.sr-check { font-size: 9px; color: #22C55E; font-weight: 700; }
.sr-arrow { font-size: 14px; color: #9CA3AF; }

.sr-cta-btn {
  background: #F97316; color: #fff;
  border-radius: 20px; padding: 7px 14px;
  font-size: 9px; font-weight: 700; text-align: center;
  box-shadow: 0 4px 12px rgba(249,115,22,0.35);
  margin-top: auto;
}

/* ---- FACTORY PULSE ---- */
/* bg: #f0f2f7, sidebar alb, accent: #2563eb, font: Plus Jakarta Sans */
.mockup-factorypulse {
  background: #f0f2f7;
  padding: 0;
  flex-direction: row;
  font-family: 'Plus Jakarta Sans', var(--font);
}

.fp-sidebar {
  width: 36px; background: #fff;
  border-right: 1px solid #e2e8f0;
  display: flex; flex-direction: column;
  align-items: center;
  padding: 10px 0;
  gap: 10px;
  flex-shrink: 0;
}

.fp-logo-dot {
  width: 18px; height: 18px; border-radius: 5px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.fp-nav-icon {
  width: 16px; height: 16px; border-radius: 4px;
  background: #e2e8f0;
}
.fp-nav-icon.active { background: #2563eb; }

.fp-main { flex: 1; display: flex; flex-direction: column; padding: 10px; gap: 8px; min-width: 0; }

.fp-topbar { display: flex; align-items: center; justify-content: space-between; }
.fp-factory-name { font-size: 10px; font-weight: 700; color: #0f172a; }
.fp-live-badge {
  display: flex; align-items: center; gap: 4px;
  font-size: 8px; font-weight: 700; color: #16a34a;
  background: #f0fdf4; border: 1px solid #bbf7d0;
  padding: 2px 6px; border-radius: 20px;
}
.fp-live-badge span {
  width: 5px; height: 5px; border-radius: 50%;
  background: #22c55e; animation: pulse-dot 2s infinite;
}

.fp-machines { display: flex; flex-direction: column; gap: 5px; flex: 1; }

.fp-machine {
  display: flex; align-items: center; gap: 6px;
  background: #fff; border-radius: 6px; padding: 5px 7px;
  border-left: 3px solid #e2e8f0;
}
.fp-machine.running { border-left-color: #22c55e; }
.fp-machine.idle { border-left-color: #94a3b8; }
.fp-machine.alarm { border-left-color: #ef4444; }

.fp-machine-id { font-size: 8px; font-weight: 700; color: #334155; width: 44px; flex-shrink: 0; }
.fp-machine-status { font-size: 7px; font-weight: 600; width: 36px; flex-shrink: 0; }
.fp-machine.running .fp-machine-status { color: #16a34a; }
.fp-machine.idle .fp-machine-status { color: #64748b; }
.fp-machine.alarm .fp-machine-status { color: #ef4444; }

.fp-machine-bar { flex: 1; height: 4px; background: #f1f5f9; border-radius: 2px; overflow: hidden; }
.fp-bar-fill { height: 100%; background: #22c55e; border-radius: 2px; }
.fp-bar-fill.alarm { background: #ef4444; }

.fp-machine-pct { font-size: 8px; font-weight: 700; color: #64748b; width: 16px; text-align: right; flex-shrink: 0; }
.fp-machine.alarm .fp-machine-pct { color: #ef4444; }

/* ---- PERSOTESTS ---- */
/* Dark nightly: rgb(2,6,23)→purple→slate, glassmorphism, gradient text #667eea→#764ba2 */
.mockup-persotests {
  background: linear-gradient(160deg, rgb(2,6,23) 0%, rgb(88,28,135) 55%, rgb(30,41,59) 100%);
  justify-content: center;
  gap: 9px;
  position: relative;
  overflow: hidden;
}

/* blob effect */
.mockup-persotests::before {
  content: '';
  position: absolute;
  width: 180px; height: 180px;
  background: rgba(167,139,250,0.18);
  border-radius: 50%;
  filter: blur(40px);
  top: -40px; left: -40px;
  pointer-events: none;
}
.mockup-persotests::after {
  content: '';
  position: absolute;
  width: 120px; height: 120px;
  background: rgba(251,191,36,0.12);
  border-radius: 50%;
  filter: blur(30px);
  bottom: -20px; right: -20px;
  pointer-events: none;
}

.pt-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #c4b5fd; font-size: 9px; font-weight: 600;
  padding: 4px 10px; border-radius: 20px; align-self: center;
  backdrop-filter: blur(8px);
  position: relative; z-index: 1;
}

.pt-question {
  font-size: 12px; font-weight: 700; color: #fff;
  text-align: center; line-height: 1.4;
  position: relative; z-index: 1;
}
.pt-question em {
  font-style: normal;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.pt-scale {
  display: flex; align-items: center; gap: 8px; justify-content: center;
  position: relative; z-index: 1;
}
.pt-scale-label { font-size: 8px; color: #94a3b8; }
.pt-scale-dots { display: flex; gap: 6px; align-items: center; }
.pt-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  transition: all 0.2s;
}
.pt-dot.active {
  background: #8b5cf6; border-color: #8b5cf6;
  width: 13px; height: 13px;
  box-shadow: 0 0 10px rgba(139,92,246,0.6);
}

.pt-progress-row {
  display: flex; flex-direction: column; gap: 4px;
  position: relative; z-index: 1;
}
.pt-progress-bar { height: 3px; background: rgba(255,255,255,0.08); border-radius: 2px; overflow: hidden; }
.pt-progress-fill { height: 100%; background: linear-gradient(90deg, #667eea, #a78bfa); border-radius: 2px; }
.pt-progress-label { font-size: 8px; color: #64748b; text-align: right; }

.pt-traits { display: flex; flex-direction: column; gap: 5px; position: relative; z-index: 1; }
.pt-trait { display: flex; align-items: center; gap: 8px; font-size: 8px; color: #94a3b8; }
.pt-trait b { color: #c4b5fd; font-weight: 700; margin-left: auto; flex-shrink: 0; }
.pt-trait-bar {
  display: block; height: 3px; width: var(--w);
  background: linear-gradient(90deg, #667eea, #a78bfa);
  border-radius: 2px; flex-shrink: 0;
}

/* ---- VISUALISAI ---- */
.mockup-visualisai {
  background: #0a0f1e;
  gap: 8px;
}

.vs-topbar { display: flex; align-items: center; justify-content: space-between; }
.vs-logo { font-size: 11px; font-weight: 800; background: linear-gradient(135deg, #10b981, #6366f1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.vs-model-badge {
  font-size: 8px; font-weight: 600; color: #10b981;
  background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.25);
  padding: 2px 7px; border-radius: 20px;
}

.vs-prompt-row { display: flex; gap: 6px; align-items: center; }
.vs-prompt-input {
  flex: 1; font-size: 8px; color: #64748b;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 7px; padding: 5px 8px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vs-generate-btn {
  font-size: 8px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #10b981, #6366f1);
  padding: 5px 9px; border-radius: 7px; flex-shrink: 0;
}

.vs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; flex: 1; }
.vs-cell { border-radius: 6px; overflow: hidden; }
.vs-cell-1 { background: linear-gradient(135deg, #1e3a5f 0%, #0f4c3a 100%); }
.vs-cell-2 { background: linear-gradient(135deg, #4c1d95 0%, #1e1b4b 100%); }
.vs-cell-3 { background: linear-gradient(135deg, #7c2d12 0%, #1c1917 100%); }
.vs-cell-4 { background: linear-gradient(135deg, #064e3b 0%, #0c1a2e 100%); }

.project-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 60%);
}

.project-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.project-tag {
  padding: 4px 10px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.project-info {
  padding: 24px 28px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-info h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.project-info p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 16px;
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.project-stack span {
  padding: 3px 9px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.project-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-light);
  transition: gap var(--transition);
}

.project-info > .project-link {
  margin-top: 14px;
}

.project-link:hover { gap: 10px; }

/* ============================================
   TECH STACK
   ============================================ */

.stack {
  background: var(--bg-2);
}

.stack-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.stack-category {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color var(--transition);
}

.stack-category:hover {
  border-color: var(--border-hover);
}

.stack-category h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-light);
  font-family: var(--font-mono);
  margin-bottom: 16px;
}

.stack-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stack-item {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 8px 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 500;
  transition: all var(--transition);
  cursor: default;
}

.stack-item:hover {
  background: rgba(99,102,241,0.08);
  border-color: rgba(99,102,241,0.2);
  color: var(--text-primary);
}

/* ============================================
   CONTACT
   ============================================ */

.contact {
  background: var(--bg);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-text .section-eyebrow,
.contact-text .section-title {
  text-align: left;
}

.contact-body {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 36px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.contact-method:hover {
  border-color: var(--accent);
  background: rgba(99,102,241,0.05);
  transform: translateX(4px);
}

.contact-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99,102,241,0.12);
  border-radius: 10px;
  color: var(--accent-light);
}

.contact-icon svg {
  width: 18px;
  height: 18px;
}

.contact-method-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 2px;
}

.contact-method-value {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

/* FORM */

.contact-form {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
  padding: 12px 16px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  font-family: var(--font);
  color: var(--text-primary);
  transition: all var(--transition);
  outline: none;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: rgba(99,102,241,0.04);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}

.form-note {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: -4px;
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 9999;
  padding: 14px 22px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon {
  font-size: 18px;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  padding: 60px 24px 40px;
  align-items: start;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 12px;
  max-width: 280px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 48px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h5 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  padding-bottom: 20px;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-visual {
    order: -1;
  }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }

  .nav-links { display: none; }
  .nav-burger { display: flex; }

  .hero { min-height: 100svh; padding: 100px 0 60px; }
  .hero-title { font-size: clamp(36px, 9vw, 52px); }

  .hero-stats { gap: 16px; }
  .stat { padding: 0 16px; }
  .stat:first-child { padding-left: 0; }
  .stat-number { font-size: 18px; }

  .services-grid { grid-template-columns: 1fr; }

  .work-grid { grid-template-columns: 1fr; }
  .project-featured { grid-column: span 1; }

  .stack-categories { grid-template-columns: 1fr; }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 48px;
  }

  .footer-links { gap: 32px; }

  .footer-bottom .container {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .about-card-stack {
    width: 280px;
    height: 200px;
  }

  .about-card-front {
    height: 185px;
  }

  .about-card-back {
    height: 170px;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .contact-form { padding: 24px; }
  .hero-stats { flex-wrap: wrap; row-gap: 16px; }
  .stat-divider:nth-child(4) { display: none; }
}
