/* Logic Target — Premium Design System */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Space+Mono:wght@400;700&display=swap');

:root {
  /* Core palette */
  --bg-deep: #050508;
  --bg-primary: #0a0c12;
  --bg-elevated: #11141f;
  --bg-card: rgba(17, 20, 31, 0.7);
  
  /* Text hierarchy */
  --text-primary: #f0f4fc;
  --text-secondary: #9ba3b8;
  --text-muted: #6b7280;
  
  /* Accent colors */
  --accent-lime: #a3ff50;
  --accent-cyan: #00d4ff;
  --accent-purple: #9d5cff;
  --accent-pink: #ff5cf4;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--accent-lime), var(--accent-cyan));
  --gradient-secondary: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
  --gradient-card: linear-gradient(145deg, rgba(163, 255, 80, 0.03), rgba(0, 212, 255, 0.02));
  
  /* Borders & shadows */
  --border-subtle: rgba(163, 255, 80, 0.08);
  --border-glow: rgba(163, 255, 80, 0.25);
  --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 60px rgba(163, 255, 80, 0.15);
  
  /* Spacing & sizing */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-full: 100px;
  --max-width: 1120px;
  
  /* Typography */
  --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Space Mono', monospace;
  
  /* Animation */
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
}

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

/* Background effects */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(163, 255, 80, 0.12), transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(0, 212, 255, 0.1), transparent 50%),
    radial-gradient(ellipse 50% 50% at 50% 100%, rgba(157, 92, 255, 0.08), transparent 40%);
  pointer-events: none;
  z-index: -1;
}

/* Noise texture overlay */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: -1;
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s var(--ease-out-expo);
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* =================== HEADER =================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.4s var(--ease-out-expo);
}

header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 8, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
  opacity: 0;
  transition: opacity 0.4s ease;
}

header.scrolled::before {
  opacity: 1;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  z-index: 1;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.logo {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--gradient-primary);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-glow);
}

.logo::before {
  content: '';
  position: absolute;
  inset: 2px;
  background: var(--bg-deep);
  border-radius: calc(var(--radius-sm) - 2px);
}

.logo::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  background: var(--gradient-primary);
  border-radius: 4px;
  transform: translate(-50%, -50%) rotate(45deg);
}

.menu {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

.menu a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 10px 16px;
  border-radius: var(--radius-full);
  position: relative;
  transition: all 0.3s var(--ease-out-expo);
}

.menu a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.menu a:hover::before {
  opacity: 0.08;
}

.menu a.active {
  color: var(--bg-deep);
  background: var(--gradient-primary);
}

/* =================== HERO =================== */
.hero {
  padding: 160px 0 80px;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 100px;
  left: 50%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(163, 255, 80, 0.15), transparent 60%);
  transform: translateX(-50%);
  filter: blur(80px);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
  position: relative;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(163, 255, 80, 0.08);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-lime);
  margin-bottom: 24px;
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.1s both;
}

.badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent-lime);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* Headings */
.h1 {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.2s both;
}

.h1 span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.lead {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 32px;
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.3s both;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Buttons */
.btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.4s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-primary);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease-out-expo);
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: var(--border-glow);
  box-shadow: 0 12px 40px rgba(163, 255, 80, 0.15);
}

.btn:hover::before {
  opacity: 0.1;
}

.btn.primary {
  background: var(--gradient-primary);
  color: var(--bg-deep);
  border: none;
  box-shadow: 0 8px 32px rgba(163, 255, 80, 0.25);
}

.btn.primary:hover {
  box-shadow: 0 16px 48px rgba(163, 255, 80, 0.35);
  transform: translateY(-3px);
}

.btn.primary::before {
  background: white;
}

.btn small {
  font-weight: 500;
  opacity: 0.7;
}

/* Cards */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  transition: all 0.5s var(--ease-out-expo);
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-card);
  pointer-events: none;
}

.card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow), var(--shadow-soft);
}

.card.pad {
  padding: 32px;
}

/* KPI Grid */
.kpi {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  position: relative;
}

.kpi .item {
  padding: 20px;
  background: rgba(163, 255, 80, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all 0.3s var(--ease-out-expo);
}

.kpi .item:hover {
  background: rgba(163, 255, 80, 0.06);
  border-color: var(--border-glow);
}

.kpi .item b {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.kpi .item span {
  font-size: 13px;
  color: var(--text-muted);
}

/* Small text */
.small {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 16px;
  animation: fadeIn 1s ease 0.5s both;
}

.small a {
  color: var(--accent-lime);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.small a:hover {
  text-decoration-color: transparent;
}

/* =================== SECTIONS =================== */
.section {
  padding: 80px 0;
  position: relative;
}

.section:nth-child(even)::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(163, 255, 80, 0.02), transparent);
  pointer-events: none;
}

/* 3-column grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* Step cards */
.step {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease-out-expo);
}

.step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out-expo);
}

.step:hover {
  border-color: var(--border-glow);
  transform: translateY(-6px);
}

.step:hover::before {
  transform: scaleX(1);
}

.step h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.step p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Counter for steps */
.grid-3 .step {
  counter-increment: step;
}

.grid-3 .step h3::before {
  content: counter(step, decimal-leading-zero) '.';
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-lime);
  margin-bottom: 12px;
}

/* Reset counter at section start */
.grid-3 {
  counter-reset: step;
}

/* Lists */
.list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list li {
  position: relative;
  padding: 12px 0 12px 32px;
  font-size: 15px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

.list li:last-child {
  border-bottom: none;
}

.list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background: var(--gradient-primary);
  border-radius: 50%;
  opacity: 0.8;
}

.list li::after {
  content: '✓';
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  font-weight: 700;
  color: var(--bg-deep);
}

.list li:hover {
  color: var(--text-primary);
  padding-left: 36px;
}

/* Divider */
.hr {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-glow), transparent);
  margin: 32px 0;
  border: none;
}

/* =================== PAGE CONTENT =================== */
.page {
  padding: 140px 0 60px;
}

.page .content {
  padding: 40px;
  position: relative;
}

.page .content h1 {
  font-size: clamp(32px, 5vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page .content p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.page .content h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 40px 0 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.page .content h2:first-of-type {
  margin-top: 24px;
  border-top: none;
  padding-top: 0;
}

.page .content h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 28px 0 12px;
}

.page .content a {
  color: var(--accent-lime);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(163, 255, 80, 0.4);
}

.page .content a:hover {
  text-decoration-color: var(--accent-lime);
}

.page .content strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* =================== FOOTER =================== */
.footer {
  margin-top: 40px;
  padding: 40px 0;
  border-top: 1px solid var(--border-subtle);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: var(--gradient-primary);
}

.footer-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.footer-row > div:first-child {
  font-size: 14px;
  color: var(--text-muted);
}

.legal-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.legal-links a {
  font-size: 14px;
  color: var(--text-secondary);
  position: relative;
}

.legal-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent-lime);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease-out-expo);
}

.legal-links a:hover {
  color: var(--text-primary);
}

.legal-links a:hover::after {
  transform: scaleX(1);
}

/* =================== CTA SECTION =================== */
#cta .card {
  background: linear-gradient(145deg, rgba(163, 255, 80, 0.05), rgba(0, 212, 255, 0.03));
  border-color: var(--border-glow);
}

/* =================== UTILITIES =================== */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glow {
  box-shadow: var(--shadow-glow);
}

/* =================== SCROLL REVEAL =================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s var(--ease-out-expo);
}

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

/* =================== RESPONSIVE =================== */
@media (max-width: 768px) {
  header {
    padding: 12px 0;
  }
  
  .nav {
    flex-direction: column;
    gap: 16px;
  }
  
  .menu {
    justify-content: center;
    gap: 4px;
  }
  
  .menu a {
    padding: 8px 12px;
    font-size: 13px;
  }
  
  .hero {
    padding: 120px 0 60px;
  }
  
  .card.pad {
    padding: 24px;
  }
  
  .page .content {
    padding: 24px;
  }
  
  .kpi {
    grid-template-columns: 1fr;
  }
  
  .section {
    padding: 60px 0;
  }
}

/* =================== CUSTOM SCROLLBAR =================== */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-elevated);
  border-radius: 5px;
  border: 2px solid var(--bg-deep);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* =================== SELECTION =================== */
::selection {
  background: rgba(163, 255, 80, 0.3);
  color: var(--text-primary);
}

/* =================== FOCUS STATES =================== */
:focus-visible {
  outline: 2px solid var(--accent-lime);
  outline-offset: 2px;
}

/* =================== ANIMATED BACKGROUND ORBS =================== */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: -1;
  animation: float 20s ease-in-out infinite;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: rgba(163, 255, 80, 0.08);
  top: -200px;
  left: -100px;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: rgba(0, 212, 255, 0.06);
  top: 50%;
  right: -150px;
  animation-delay: -10s;
}

.orb-3 {
  width: 350px;
  height: 350px;
  background: rgba(157, 92, 255, 0.05);
  bottom: -100px;
  left: 30%;
  animation-delay: -5s;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(30px, -30px) scale(1.05);
  }
  50% {
    transform: translate(-20px, 20px) scale(0.95);
  }
  75% {
    transform: translate(-30px, -20px) scale(1.02);
  }
}
