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

/* --- DESIGN SYSTEM & SYSTEM VARIABLES --- */
:root {
  /* Colors */
  --bg-base: #06080F;
  --bg-surface: #0B0F19;
  --bg-surface-elevated: #111827;
  
  --primary: #8B5CF6; /* Violet */
  --primary-glow: rgba(139, 92, 246, 0.4);
  --secondary: #06B6D4; /* Cyan */
  --secondary-glow: rgba(6, 182, 212, 0.4);
  --accent: #6366F1; /* Indigo */
  
  --text-primary: #F9FAFB;
  --text-secondary: #9CA3AF;
  --text-muted: #6B7280;
  
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-glow: rgba(139, 92, 246, 0.2);
  --border-glow-secondary: rgba(6, 182, 212, 0.25);
  
  /* Glassmorphism */
  --glass-bg: rgba(11, 15, 25, 0.65);
  --glass-border: rgba(255, 255, 255, 0.07);
  --glass-blur: blur(16px);
  
  /* Fonts */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Outfit', sans-serif;
  --font-mono: 'Fira Code', monospace;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  
  /* Widths */
  --max-width: 1280px;
}

/* --- RESET & BASIC STYLES --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  background-image: 
    radial-gradient(at 0% 0%, rgba(139, 92, 246, 0.12) 0px, transparent 45%),
    radial-gradient(at 100% 100%, rgba(6, 182, 212, 0.08) 0px, transparent 45%),
    radial-gradient(at 50% 50%, rgba(99, 102, 241, 0.03) 0px, transparent 60%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

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

/* Selection */
::selection {
  background: var(--primary);
  color: var(--text-primary);
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 600;
}

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

/* --- GRADIENT TEXT --- */
.text-gradient-purple {
  background: linear-gradient(135deg, #A78BFA 0%, #EC4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #22D3EE 0%, #3B82F6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-dual {
  background: linear-gradient(135deg, #8B5CF6 0%, #06B6D4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- STRUCTURE / LAYOUT --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 8rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem auto;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.15rem;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  border-radius: 9999px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-normal);
  border: 1px solid transparent;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #6366F1 100%);
  color: var(--text-primary);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.45);
}

.btn-secondary {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  backdrop-filter: var(--glass-blur);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-cyan {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
  color: var(--text-primary);
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.25);
}

.btn-cyan:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(6, 182, 212, 0.45);
}

/* Arrow transition */
.btn svg {
  transition: transform var(--transition-fast);
}
.btn:hover svg {
  transform: translateX(4px);
}

/* --- NAVIGATION BAR --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;
  display: flex;
  align-items: center;
  z-index: 1000;
  transition: all var(--transition-normal);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  height: 70px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
  position: relative;
}

.logo-icon::before {
  content: '';
  position: absolute;
  inset: 2px;
  background: var(--bg-base);
  border-radius: 8px;
  z-index: 1;
}

.logo-icon svg {
  z-index: 2;
  width: 18px;
  height: 18px;
  fill: var(--text-primary);
}

/* Nav links */
.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2.5rem;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-secondary);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-normal);
}

.nav-link:hover::after, .nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  display: flex;
  align-items: center;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: var(--transition-fast);
}

/* --- GLASS CARD --- */
.card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  border-radius: 24px;
  padding: 2.5rem;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(6, 182, 212, 0) 100%);
  opacity: 0;
  transition: opacity var(--transition-normal);
  z-index: 0;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--border-glow);
  box-shadow: 0 10px 40px rgba(139, 92, 246, 0.08);
}

.card:hover::before {
  opacity: 1;
}

.card * {
  position: relative;
  z-index: 1;
}

/* --- HERO SECTION --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 150px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 1rem;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #A78BFA;
  width: fit-content;
  gap: 0.5rem;
}

.badge-glow-dot {
  width: 6px;
  height: 6px;
  background-color: #A78BFA;
  border-radius: 50%;
  animation: pulse-glow-dot 2s infinite;
}

.hero-content h1 {
  margin-bottom: 0.5rem;
}

.hero-content p {
  font-size: 1.2rem;
  max-width: 600px;
  margin-bottom: 1rem;
}

.hero-btns {
  display: flex;
  gap: 1rem;
}

/* Hero Graphic / Sandbox Preview */
.hero-graphic {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-glow-back {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.25) 0%, transparent 70%);
  filter: blur(40px);
  z-index: 0;
  animation: float 8s ease-in-out infinite alternate;
}

.hero-interactive-dashboard {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-glow);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border-radius: 20px;
  width: 100%;
  aspect-ratio: 1.25;
  padding: 1.5rem;
  backdrop-filter: var(--glass-blur);
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
  transition: transform var(--transition-slow);
}

.hero-interactive-dashboard:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
  border-color: rgba(6, 182, 212, 0.5);
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.75rem;
}

.dashboard-dots {
  display: flex;
  gap: 6px;
}

.dashboard-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.dashboard-dots span:nth-child(1) { background: #EF4444; }
.dashboard-dots span:nth-child(2) { background: #F59E0B; }
.dashboard-dots span:nth-child(3) { background: #10B981; }

.dashboard-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.dashboard-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-grow: 1;
  justify-content: center;
}

.dashboard-code-line {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-left: 2px solid var(--primary);
  padding-left: 0.75rem;
}

.dashboard-bar-chart {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chart-bar-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.chart-bar-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
}

.chart-bar-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
}

.chart-bar-fill {
  height: 100%;
  border-radius: 4px;
  width: 0;
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.chart-bar-fill.purple {
  background: linear-gradient(90deg, var(--primary), #EC4899);
}

.chart-bar-fill.cyan {
  background: linear-gradient(90deg, var(--secondary), var(--accent));
}

/* --- FEATURE GRID --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.feature-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--primary);
  transition: all var(--transition-normal);
}

.feature-card:hover .feature-icon-wrapper {
  background: var(--primary);
  color: var(--text-primary);
  box-shadow: 0 0 20px var(--primary-glow);
  transform: scale(1.1);
}

.feature-card h3 {
  margin-bottom: 0.75rem;
}

.feature-card p {
  font-size: 0.95rem;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.feature-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: var(--text-secondary);
}

/* --- CALCULATOR SECTION --- */
.calc-card {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 3.5rem;
}

.calc-controls {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.calc-title {
  margin-bottom: 0.5rem;
}

.calc-slider-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.calc-slider-header {
  display: flex;
  justify-content: space-between;
  font-weight: 500;
  font-size: 0.9rem;
}

.calc-slider-val {
  color: var(--secondary);
  font-family: var(--font-mono);
  font-weight: 600;
}

.calc-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--secondary);
  cursor: pointer;
  box-shadow: 0 0 10px var(--secondary-glow);
  transition: transform var(--transition-fast);
}

.calc-slider::-webkit-slider-thumb:hover {
  transform: scale(1.25);
}

.calc-results {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.calc-result-item {
  display: flex;
  flex-direction: column;
}

.calc-result-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.calc-result-num {
  font-size: 2.75rem;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--text-primary);
}

.calc-result-num.cyan {
  color: var(--secondary);
  text-shadow: 0 0 20px rgba(6, 182, 212, 0.2);
}

.calc-result-num.purple {
  color: var(--primary);
  text-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

/* --- SERVICES PAGE SPECIFICS --- */
.services-tabs-container {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 4rem;
  align-items: start;
}

.services-tabs-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tab-btn {
  background: none;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  color: var(--text-secondary);
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 600;
  font-family: var(--font-display);
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tab-btn.active {
  background: rgba(139, 92, 246, 0.08);
  border-color: var(--primary);
  color: var(--text-primary);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.1);
}

.tab-btn-icon {
  opacity: 0.3;
  transition: opacity var(--transition-fast);
}

.tab-btn.active .tab-btn-icon {
  opacity: 1;
  color: var(--primary);
}

.tab-content {
  display: none;
  animation: tabFadeIn var(--transition-slow) forwards;
}

.tab-content.active {
  display: block;
}

.service-detail-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.service-features-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.service-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.service-feature-icon {
  color: var(--secondary);
  flex-shrink: 0;
  margin-top: 2px;
}

.service-feature-item h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.service-feature-item p {
  font-size: 0.85rem;
}

/* --- PLAYGROUND PAGE SPECIFICS --- */
.playground-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2rem;
}

.playground-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.playground-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.playground-group label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
}

.playground-select, .playground-input, .contact-input {
  width: 100%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  color: var(--text-primary);
  padding: 0.85rem 1.25rem;
  font-family: var(--font-sans);
  outline: none;
  transition: all var(--transition-normal);
}

.playground-select:focus, .playground-input:focus, .contact-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.15);
}

.presets-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

.preset-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--text-secondary);
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-fast);
}

.preset-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
}

.playground-console {
  background: #04060A;
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  height: 600px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.console-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.console-status-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10B981;
}

.status-dot.processing {
  background-color: var(--secondary);
  animation: pulse-glow-dot 1.5s infinite;
}

.console-body {
  display: grid;
  grid-template-rows: 1fr auto;
  flex-grow: 1;
  overflow: hidden;
}

.console-display-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  overflow: hidden;
  height: 100%;
}

.console-editor {
  border-right: 1px solid var(--border-subtle);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.01);
}

.console-textarea {
  width: 100%;
  flex-grow: 1;
  background: transparent;
  border: none;
  resize: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.5;
}

.console-output-panel {
  background: #020305;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  gap: 1rem;
}

.output-header {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
}

.output-text {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
  white-space: pre-wrap;
  line-height: 1.6;
}

/* Shimmer Loading */
.shimmer-text {
  background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.05) 75%);
  background-size: 200% 100%;
  animation: shimmer-anim 1.5s infinite;
  height: 14px;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.console-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.console-metrics {
  display: flex;
  gap: 2rem;
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-lbl {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.metric-val {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
}

/* --- ABOUT PAGE SPECIFICS --- */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--border-subtle);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 4rem;
  width: 50%;
  padding-right: 3rem;
}

.timeline-item:nth-child(even) {
  margin-left: 50%;
  padding-right: 0;
  padding-left: 3rem;
}

.timeline-dot {
  position: absolute;
  top: 5px;
  left: 100%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-base);
  border: 4px solid var(--primary);
  transform: translateX(-50%);
  z-index: 5;
  box-shadow: 0 0 10px var(--primary-glow);
}

.timeline-item:nth-child(even) .timeline-dot {
  left: 0;
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.timeline-item h3 {
  margin-bottom: 0.5rem;
}

/* --- CONTACT PAGE SPECIFICS --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.contact-textarea {
  min-height: 150px;
  resize: vertical;
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.01);
  transition: all var(--transition-normal);
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.faq-trigger {
  width: 100%;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  text-align: left;
}

.faq-trigger h3 {
  font-size: 1.1rem;
}

.faq-icon {
  transition: transform var(--transition-normal);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal) ease-out;
  padding: 0 1.5rem;
}

.faq-item.active .faq-content {
  padding-bottom: 1.5rem;
}

/* --- FOOTER --- */
.footer {
  border-top: 1px solid var(--border-subtle);
  background: #04060A;
  padding: 5rem 0 3rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-brand p {
  font-size: 0.95rem;
  max-width: 320px;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.social-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.footer-col h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-col a {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 2rem;
}

/* --- ANIMATIONS --- */
@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
  100% { transform: translateY(0px) rotate(-1deg); }
}

@keyframes pulse-glow-dot {
  0% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(139, 92, 246, 0); }
  100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0); }
}

@keyframes shimmer-anim {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll entry reveal effect */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
    padding-bottom: 4rem;
  }
  
  .hero-content {
    align-items: center;
  }
  
  .hero-btns {
    justify-content: center;
  }
  
  .hero-interactive-dashboard {
    transform: none;
    max-width: 600px;
    margin: 0 auto;
  }
  
  .calc-card {
    grid-template-columns: 1fr;
    padding: 2rem;
  }
  
  .services-tabs-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .services-tabs-nav {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }
  
  .tab-btn {
    white-space: nowrap;
    padding: 0.85rem 1.25rem;
  }
  
  .playground-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .timeline::before {
    left: 1rem;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 3rem;
    padding-right: 0;
  }
  
  .timeline-item:nth-child(even) {
    margin-left: 0;
    padding-left: 3rem;
  }
  
  .timeline-dot {
    left: 1rem !important;
  }
}

@media (max-width: 768px) {
  .navbar {
    height: 70px;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--bg-base);
    flex-direction: column;
    padding: 3rem 2rem;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform var(--transition-normal);
    z-index: 999;
    border-top: 1px solid var(--border-subtle);
  }
  
  .nav-menu.open {
    transform: translateX(0);
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .nav-cta {
    display: none; /* Hide top CTA inside nav menu */
  }
  
  .mobile-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  
  .mobile-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .console-display-split {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1.2fr;
  }
  
  .console-editor {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }
}
