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

:root {
  --bg-primary: #050811;
  --bg-secondary: #0b1120;
  --bg-card: rgba(15, 23, 42, 0.65);
  --border-glow: rgba(6, 182, 212, 0.15);
  --cyan: #06b6d4;
  --cyan-glow: rgba(6, 182, 212, 0.4);
  --emerald: #10b981;
  --emerald-glow: rgba(16, 185, 129, 0.3);
  --violet: #8b5cf6;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --font-display: 'Outfit', sans-serif;
  --font-mono: 'Space Grotesk', monospace;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-display);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Background Gradients Emitters */
.gradient-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 900px;
  background: radial-gradient(circle at 10% 20%, rgba(6, 182, 212, 0.08) 0%, transparent 40%),
              radial-gradient(circle at 90% 60%, rgba(139, 92, 246, 0.06) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}

/* Main Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 1px;
  font-style: italic;
  color: var(--text-main);
  text-decoration: none;
}

.logo span {
  color: var(--cyan);
}

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: color 0.3s ease;
  letter-spacing: 0.5px;
}

.nav-links a:hover {
  color: var(--cyan);
}

.btn-nav {
  background: rgba(6, 182, 212, 0.1);
  color: var(--cyan) !important;
  border: 1px solid rgba(6, 182, 212, 0.3);
  padding: 8px 16px;
  border-radius: 20px;
  transition: all 0.3s ease !important;
}

.btn-nav:hover {
  background: var(--cyan);
  color: var(--bg-primary) !important;
  box-shadow: 0 0 15px var(--cyan-glow);
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 60px;
  padding: 80px 0 100px 0;
}

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

.badge-offline {
  display: inline-flex;
  align-items: center;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--emerald);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
  align-self: flex-start;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.05);
}

.badge-offline::before {
  content: '';
  width: 6px;
  height: 6px;
  background-color: var(--emerald);
  border-radius: 50px;
  margin-right: 8px;
  display: inline-block;
  box-shadow: 0 0 8px var(--emerald);
}

.hero-title {
  font-size: 56px;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-title span {
  color: var(--cyan);
  text-shadow: 0 0 20px rgba(6, 182, 212, 0.25);
}

.hero-desc {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 580px;
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.btn-primary {
  background: var(--cyan);
  color: var(--bg-primary);
  font-weight: 800;
  text-decoration: none;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 15px;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.35);
  transition: all 0.3s ease;
  border: 1px solid var(--cyan);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(6, 182, 212, 0.5);
  background: #22d3ee;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
  font-weight: 700;
  text-decoration: none;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 15px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}

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

/* Device Preview */
.hero-preview {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-preview::before {
  content: '';
  position: absolute;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.18) 0%, transparent 70%);
  z-index: -1;
}

.mockup-img {
  width: 100%;
  max-width: 360px;
  border-radius: 36px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8),
              0 0 40px rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.5s ease;
}

.mockup-img:hover {
  transform: translateY(-10px) rotate(1deg);
}

/* Features Section */
.section {
  padding: 100px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

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

.section-subtitle {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 16px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 32px;
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(6, 182, 212, 0.2);
  box-shadow: 0 10px 30px -10px rgba(6, 182, 212, 0.08);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.2);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 24px;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.2px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* How to Use Section */
.instructions-box {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 40px;
  backdrop-filter: blur(12px);
}

.tabs-container {
  display: flex;
  justify-content: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.3);
  padding: 6px;
  border-radius: 30px;
  max-width: 480px;
  margin: 0 auto 40px auto;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  padding: 12px 20px;
  border-radius: 24px;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.tab-btn.active {
  background: var(--cyan);
  color: var(--bg-primary);
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.25);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  animation: fadeIn 0.4s ease forwards;
}

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

.step-card {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  position: relative;
}

.step-number {
  position: absolute;
  top: 20px;
  right: 20px;
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 700;
  color: rgba(6, 182, 212, 0.15);
}

.step-card h4 {
  font-size: 16px;
  font-weight: 800;
  color: var(--cyan);
  margin-bottom: 12px;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.step-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Quick Start Developer Command Box */
.terminal-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.terminal-box {
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.terminal-header {
  background: #0b0f19;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #1e293b;
}

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

.terminal-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.terminal-body {
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
}

.cmd-line {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.cmd-line span.cyan {
  color: var(--cyan);
}

.cmd-line span.green {
  color: var(--emerald);
}

.cmd-copy {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 12px 16px;
  color: #fff;
  margin-top: 12px;
}

.cmd-text {
  font-size: 12px;
}

.btn-copy {
  background: transparent;
  border: none;
  color: var(--cyan);
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 1px;
  transition: all 0.2s ease;
  padding: 4px 8px;
  border-radius: 4px;
}

.btn-copy:hover {
  background: rgba(6, 182, 212, 0.1);
}

/* Call to Action */
.cta-section {
  text-align: center;
  padding: 100px 0;
  background: radial-gradient(circle at center, rgba(6, 182, 212, 0.1) 0%, transparent 60%);
  border-radius: 30px;
  border: 1px solid rgba(6, 182, 212, 0.1);
  margin: 60px 0;
}

.cta-title {
  font-size: 42px;
  font-weight: 900;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.cta-desc {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto 36px auto;
}

/* Footer */
.footer {
  padding: 48px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 12px;
}

.footer-logo {
  font-weight: 800;
  font-style: italic;
  color: #fff;
}

.footer-logo span {
  color: var(--cyan);
}

/* Responsive adjustments */
.hero-title {
  font-size: clamp(32px, 8vw, 56px);
}

.hero-desc {
  font-size: clamp(14px, 4vw, 18px);
}

.section-title {
  font-size: clamp(24px, 6vw, 36px);
}

.cta-title {
  font-size: clamp(26px, 7vw, 42px);
}

@media (max-width: 968px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
    padding: 40px 0;
  }
  .badge-offline {
    align-self: center;
  }
  .hero-desc {
    margin: 0 auto 36px auto;
  }
  .hero-buttons {
    justify-content: center;
  }
  .terminal-section {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 16px;
    padding: 16px 0;
    text-align: center;
  }
  .nav-links {
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .feature-card {
    padding: 20px;
  }
  .instructions-box {
    padding: 24px 16px;
  }
  .tabs-container {
    flex-direction: column;
    border-radius: 16px;
    max-width: 100%;
  }
  .tab-btn {
    border-radius: 12px;
    padding: 10px 16px;
    font-size: 11px;
    width: 100%;
  }
  .step-card {
    padding: 20px;
  }
  .step-number {
    font-size: 24px;
    top: 15px;
    right: 15px;
  }
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  .btn-primary, .btn-secondary {
    width: 100%;
    text-align: center;
    padding: 14px 20px;
  }
}
