/* Base and Variables */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
  --bg-color: #090a0d;
  /* Deep dark background #0b0c10 */
  --bg-light: #0b0c10;
  /* Lighter dark  #1f2833*/
  --accent-color: #3ddd77;
  --accent-hover: #32ba61;
  --text-main: #e2e8f0;
  --text-muted: #94a3b8;
  --border-color: rgba(255, 255, 255, 0.1);
  --font-main: 'Space Grotesk', sans-serif;
  --nav-height: 80px;

  /* Glow effects */
  --glow-accent: 0 0 20px rgba(61, 221, 119, 0.3);
  --glow-accent-strong: 0 0 30px rgba(61, 221, 119, 0.5);
}

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

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: #ffffff;
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: var(--text-main);
  text-decoration: none;
  transition: all 0.3s ease;
}

p {
  color: var(--text-muted);
}

/* Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-accent {
  color: var(--accent-color);
}

.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-8 {
  margin-top: 2rem;
}

.mt-12 {
  margin-top: 3rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  gap: 8px;
}

.btn-primary {
  background-color: #ffffff;
  color: #000000;
}

.btn-primary:hover {
  background-color: var(--accent-color);
  color: #0b0c10;
  box-shadow: var(--glow-accent);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--border-color);
  color: #ffffff;
}

.btn-outline:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
  box-shadow: var(--glow-accent);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--nav-height);
  background: rgba(11, 12, 16, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: background 0.3s ease;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.nav-logo img {
  height: 32px;
  width: auto;
}

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

.nav-links a.nav-item {
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}

.nav-links a.nav-item::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

.nav-links a.nav-item:hover::after,
.nav-links a.nav-item.active::after {
  width: 100%;
}

.nav-links a.nav-item:hover {
  color: #ffffff;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  padding: calc(var(--nav-height) + 80px) 0 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-bg-gradient {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(61, 221, 119, 0.15) 0%, rgba(11, 12, 16, 0) 70%);
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(61, 221, 119, 0.1);
  border: 1px solid rgba(61, 221, 119, 0.2);
  border-radius: 20px;
  color: var(--accent-color);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.hero h1 {
  font-size: 4.5rem;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}

.hero p.lead {
  font-size: 1.25rem;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* Features Grid */
.section {
  padding: 100px 0;
}

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

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

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

.bento-card {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.bento-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
  z-index: 1;
  pointer-events: none;
}

.bento-card:hover {
  transform: translateY(-5px);
  border-color: rgba(61, 221, 119, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.bento-card-icon {
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: 20px;
  display: inline-block;
  padding: 12px;
  background: rgba(61, 221, 119, 0.1);
  border-radius: 12px;
}

.bento-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
}

.bento-card p {
  font-size: 0.95rem;
  position: relative;
  z-index: 2;
}

.bento-col-span-2 {
  grid-column: span 2;
}

/* FAQ Accordion */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
  padding: 20px 0;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
}

.faq-question i {
  color: var(--accent-color);
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  opacity: 0;
}

.faq-item.active .faq-answer {
  padding-top: 16px;
  opacity: 1;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

/* Terminal Mockup */
.terminal-window {
  width: 100%;
  max-width: 800px;
  margin: 60px auto 0;
  background: #000;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  text-align: left;
}

.terminal-header {
  background: #1a1a1a;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}

.terminal-buttons {
  display: flex;
  gap: 8px;
}

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

.term-close {
  background: #ff5f56;
}

.term-min {
  background: #ffbd2e;
}

.term-max {
  background: #27c93f;
}

.terminal-body {
  padding: 24px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9rem;
  color: #a3b8cc;
  line-height: 1.5;
  min-height: 200px;
}

.terminal-command {
  color: var(--accent-color);
}

.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: var(--accent-color);
  animation: blink 1s step-end infinite;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px;
  background: linear-gradient(to bottom, transparent, rgba(31, 40, 51, 0.5));
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand img {
  height: 28px;
  margin-bottom: 16px;
}

.footer-brand p {
  max-width: 300px;
}

.footer-links h4 {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
}

/* Animations */
@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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

/* Responsive */
@media (max-width: 900px) {
  .hero h1 {
    font-size: 3.5rem;
  }

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

  .bento-col-span-2 {
    grid-column: span 1;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: var(--bg-color);
    flex-direction: column;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-links.show {
    display: flex;
  }

  .hamburger {
    display: block;
  }

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

  .hero-actions {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 12px;
  }

  .hero-actions .btn {
    padding: 10px 14px;
    font-size: 0.9rem;
    white-space: nowrap;
  }
}