/* ===================================
   Joni - Dark Terminal Theme
   Inspired by Eli AI
   =================================== */

/* CSS Variables - Colors from Eli AI */
:root {
  /* Dark Background */
  --bg: #0a0a0a;
  --bg-secondary: #141414;
  --border: #1f1f1f;

  /* Text Colors */
  --text-primary: #ffffff;
  --text-muted: #a1a1a1;

  /* Accent Colors (from Eli AI) */
  --eli-green: #10b981;
  --eli-neon-green: #00ff00;
  --eli-purple: #a855f7;
  --eli-orange: #f97316;
  --eli-cyan: #06b6d4;
  --eli-red: #ef4444;
  --eli-yellow: #eab308;

  /* Gradients */
  --gradient-green-purple: linear-gradient(135deg, var(--eli-purple), var(--eli-green));
  --gradient-multi: linear-gradient(135deg, var(--eli-green), var(--eli-cyan), var(--eli-purple), var(--eli-orange));
}

/* ===================================
   Global Styles
   =================================== */

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

body {
  font-family: 'JetBrains Mono', monospace;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

.antialiased {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container */
.page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Text Colors */
.text-green { color: var(--eli-green); }
.text-purple { color: var(--eli-purple); }
.text-orange { color: var(--eli-orange); }
.text-cyan { color: var(--eli-cyan); }

/* ===================================
   Hero Section
   =================================== */

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

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(16, 185, 129, 0.05), transparent);
  pointer-events: none;
}

.hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  transform: translateX(20px);
}

/* Terminal Header */
.hero-terminal {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 1.5rem;
  margin-bottom: 2rem;
}

.terminal-dots {
  display: flex;
  gap: 0.375rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-red { background: var(--eli-red); }
.dot-yellow { background: var(--eli-yellow); }
.dot-green { background: var(--eli-green); }

.terminal-text {
  font-size: 1.25rem;
  font-weight: 600;
}

.cursor {
  width: 12px;
  height: 24px;
  background: var(--eli-green);
  animation: blink 1s infinite;
  display: inline-block;
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* Beta Badge */
.hero-badge {
  margin-bottom: 2rem;
}

.badge {
  display: inline-block;
  background: var(--gradient-green-purple);
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Headline */
.hero-headline {
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-w: 700px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

/* Buttons */
.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  font-size: 1rem;
}

.btn-primary {
  background: var(--eli-green);
  color: var(--bg);
  border: 2px solid var(--eli-green);
}

.btn-primary:hover {
  background: transparent;
  color: var(--eli-green);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

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

.btn-secondary:hover {
  border-color: var(--eli-green);
  color: var(--eli-green);
}

/* ===================================
   Features Section
   =================================== */

.features-section {
  width: 100%;
  border-top: 1px solid var(--border);
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.125rem);
  max-w: 700px;
  margin: 0 auto;
  line-height: 1.8;
  transform: translateX(10px);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Card */
.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s;
}

.card:hover {
  border-color: var(--eli-green);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.1);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1rem;
}

.icon-green { background: rgba(16, 185, 129, 0.1); }
.icon-purple { background: rgba(168, 85, 247, 0.1); }
.icon-orange { background: rgba(249, 115, 22, 0.1); }
.icon-cyan { background: rgba(6, 182, 212, 0.1); }

.card-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.card-text {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ===================================
   Demo Section
   =================================== */

.demo-section {
  width: 100%;
  padding: 80px 0;
}

.demo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .demo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
  }
}

.demo-description {
  color: var(--text-muted);
  font-size: 1.125rem;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.demo-list {
  list-style: none;
  padding: 0;
}

.demo-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.check-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--eli-green);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  flex-shrink: 0;
}

/* Terminal Window */
.terminal-window {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.terminal-header {
  background: #1a1a1a;
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.terminal-title {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-left: 0.5rem;
}

.terminal-body {
  padding: 1.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  line-height: 1.8;
}

.terminal-line {
  margin-bottom: 0.25rem;
}

.terminal-line.comment {
  color: var(--text-muted);
}

.terminal-line.command {
  color: var(--eli-green);
}

.terminal-spacer {
  height: 0.5rem;
}

/* ===================================
   CTA Section
   =================================== */

.cta-section {
  width: 100%;
  border-top: 1px solid var(--border);
  padding: 80px 0;
}

.cta-content {
  text-align: center;
  max-w: 800px;
  margin: 0 auto;
  transform: translateX(20px);
}

.cta-subtitle {
  color: var(--text-muted);
  font-size: 1.125rem;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

@media (min-width: 640px) {
  .cta-buttons {
    flex-direction: row;
  }
}

/* ===================================
   Footer
   =================================== */

.footer {
  width: 100%;
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 3rem 0;
}

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

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-brand {
  grid-column: span 2;
}

@media (min-width: 1024px) {
  .footer-brand {
    grid-column: span 2;
  }
}

.footer-logo {
  display: inline-flex;
  margin-bottom: 1rem;
  text-decoration: none;
}

.logo-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 1rem;
}

.logo-text {
  font-weight: 600;
  font-size: 0.875rem;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.875rem;
  max-w: 300px;
}

.footer-title {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--eli-green);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-credit {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-copyright {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-version {
  color: var(--eli-green);
  font-size: 0.875rem;
  font-weight: 600;
}

/* ===================================
   Octopus Hero - Professional Integration
   =================================== */

.hero-octopus-container {
  position: relative;
  width: 400px;
  max-width: 90%;
  margin: 2rem auto;
  transform-style: preserve-3d;
}

/* Gradient glow effect behind octopus */
.octopus-glow {
  position: absolute;
  width: 120%;
  height: 120%;
  left: -10%;
  top: -10%;
  background: radial-gradient(
    circle at center, 
    rgba(124, 58, 237, 0.4) 0%, 
    rgba(16, 185, 129, 0.3) 40%,
    transparent 70%
  );
  filter: blur(50px);
  z-index: -1;
  animation: pulse-glow 4s ease-in-out infinite;
}

/* The octopus image itself */
.octopus-hero {
  width: 100%;
  height: auto;
  display: block;
  /* Remove white background using blend mode */
  mix-blend-mode: screen;
  /* Add drop shadow for depth */
  filter: drop-shadow(0 0 30px rgba(16, 185, 129, 0.6))
          drop-shadow(0 10px 40px rgba(124, 58, 237, 0.4));
  /* Floating animation */
  animation: float-octopus 4s ease-in-out infinite;
  /* Smooth rendering */
  image-rendering: -webkit-optimize-contrast;
  border-radius: 20px;
}

/* Floating animation - like swimming in water */
@keyframes float-octopus {
  0%, 100% { 
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-15px) rotate(-1deg);
  }
  50% { 
    transform: translateY(-20px) rotate(0deg);
  }
  75% {
    transform: translateY(-15px) rotate(1deg);
  }
}

/* Pulsing glow animation */
@keyframes pulse-glow {
  0%, 100% { 
    opacity: 0.8;
    transform: scale(1);
  }
  50% { 
    opacity: 1;
    transform: scale(1.1);
  }
}

/* Hover effect for extra interactivity */
.hero-octopus-container:hover .octopus-hero {
  filter: drop-shadow(0 0 40px rgba(16, 185, 129, 0.8))
          drop-shadow(0 10px 50px rgba(124, 58, 237, 0.6));
  animation-duration: 3s;
}

.hero-octopus-container:hover .octopus-glow {
  animation-duration: 3s;
  opacity: 1.2;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-octopus-container {
    width: 300px;
  }
  
  .octopus-hero {
    filter: drop-shadow(0 0 20px rgba(16, 185, 129, 0.5))
            drop-shadow(0 5px 30px rgba(124, 58, 237, 0.3));
  }
}

/* ===================================
   Animations
   =================================== */

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

.hero-content {
  animation: fadeIn 1s ease-out;
}

/* ===================================
   Responsive
   =================================== */

@media (max-width: 768px) {
  .page-container {
    padding: 0 1rem;
  }

  .hero-section {
    padding: 60px 0 40px;
  }

  .features-section,
  .demo-section,
  .cta-section {
    padding: 60px 0;
  }

  .hero-content,
  .section-subtitle,
  .cta-content {
    transform: translateX(0);
  }
}
