/* ── BASE & RESET ── */
:root {
  --bg-color: #0d1117;
  --panel-bg: rgba(22, 27, 34, 0.65);
  --glass-border: rgba(255, 255, 255, 0.08);
  --text-main: #c9d1d9;
  --text-light: #8b949e;
  --primary: #25D366;
  --primary-hover: #1da851;
  --accent-1: rgba(37, 211, 102, 0.15);
  --accent-2: rgba(0, 168, 255, 0.15);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3 {
  color: #fff;
  line-height: 1.2;
}

.gradient-text {
  background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.badge {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  vertical-align: super;
  margin-left: 4px;
}

/* ── BUTTONS ── */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--primary);
  color: #111;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border-color: var(--glass-border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }

/* ── BACKGROUND GLOWS ── */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  opacity: 0.5;
  animation: float 10s infinite ease-in-out alternate;
}
.orb-1 {
  top: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: var(--accent-1);
}
.orb-2 {
  top: 40%;
  right: -150px;
  width: 500px;
  height: 500px;
  background: var(--accent-2);
  animation-delay: -5s;
}
.orb-3 {
  bottom: -200px;
  left: 20%;
  width: 600px;
  height: 300px;
  background: rgba(168, 85, 247, 0.1);
  animation-delay: -2s;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, 50px) scale(1.1); }
}

/* ── NAVBAR ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(13, 17, 23, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 100;
  padding: 16px 0;
}

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

.nav-content .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  color: #fff;
}

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

.nav-links a:not(.btn-primary) {
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:not(.btn-primary):hover {
  color: #fff;
}

/* ── HERO SECTION ── */
.hero {
  padding: 160px 24px 100px;
  display: flex;
  align-items: center;
  gap: 60px;
  min-height: 90vh;
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-size: clamp(40px, 5vw, 64px);
  letter-spacing: -1px;
  margin-bottom: 24px;
}

.hero-text p {
  font-size: 18px;
  color: var(--text-light);
  margin-bottom: 40px;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Pulse animation for primary button */
.pulse-anim {
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Hero Visual / Mockup */
.hero-visual {
  flex: 1;
  position: relative;
}

.glass-mockup {
  background: var(--panel-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
  overflow: hidden;
  transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
  transition: transform 0.5s ease;
}

.glass-mockup:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg) translateY(-10px);
}

.mockup-header {
  background: rgba(0,0,0,0.2);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--glass-border);
}

.mockup-header .dots {
  display: flex;
  gap: 6px;
}
.mockup-header .dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: #ff5f56;
}
.mockup-header .dots span:nth-child(2) { background: #ffbd2e; }
.mockup-header .dots span:nth-child(3) { background: #27c93f; }

.mockup-header .title {
  margin: 0 auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-light);
  transform: translateX(-14px); /* offset for dots */
}

.mockup-body {
  padding: 30px;
}

.mockup-progress .track {
  height: 8px; background: rgba(255,255,255,0.1);
  border-radius: 4px; overflow: hidden; margin-bottom: 8px;
}
.mockup-progress .fill {
  height: 100%; background: var(--primary);
  border-radius: 4px; box-shadow: 0 0 10px var(--primary);
}
.mockup-progress span { font-size: 13px; color: var(--text-light); }

.mockup-row {
  display: flex; gap: 16px; margin-top: 24px;
}
.stat-card {
  flex: 1;
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid rgba(37, 211, 102, 0.2);
  padding: 16px;
  border-radius: 12px;
  text-align: center;
}
.stat-card.alert {
  background: rgba(244, 63, 94, 0.1);
  border-color: rgba(244, 63, 94, 0.2);
}
.stat-card h3 { font-size: 28px; margin-bottom: 4px; }
.stat-card span { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; }


/* ── FEATURES SECTION ── */
.features {
  padding: 100px 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 36px;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-light);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
}

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

.glass-panel {
  background: var(--panel-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 32px;
  transition: transform 0.3s, border-color 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255,255,255,0.2);
}

.feature-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.bg-green { background: linear-gradient(135deg, #10b981, #059669); }
.bg-blue { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.bg-purple { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.bg-orange { background: linear-gradient(135deg, #f59e0b, #d97706); }
.bg-teal { background: linear-gradient(135deg, #14b8a6, #0d9488); }
.bg-pink { background: linear-gradient(135deg, #ec4899, #db2777); }

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-light);
}

/* ── INSTALLATION SECTION ── */
.installation {
  padding: 100px 24px 140px;
}

.install-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.install-card {
  position: relative;
  overflow: hidden;
}

.install-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
}
.install-card:nth-child(1)::before { background: #4285F4; }
.install-card:nth-child(2)::before { background: #FF4724; }

.browser-icon { margin-bottom: 20px; }

.install-card h3 {
  font-size: 24px;
  margin-bottom: 24px;
}

.steps-list {
  padding-left: 20px;
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.steps-list li {
  padding-left: 8px;
}

.steps-list li a {
  color: var(--primary);
  text-decoration: underline;
}

.steps-list code {
  background: rgba(255,255,255,0.1);
  padding: 2px 6px;
  border-radius: 4px;
  color: #fff;
  font-family: monospace;
}


/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--glass-border);
  background: #090c10;
  padding: 40px 24px;
}

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

.footer-content .logo {
  font-weight: 700;
  color: #fff;
}

.footer-content p {
  font-size: 14px;
  color: var(--text-light);
}


/* ── ANIMATIONS (JS triggered) ── */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 120px;
    gap: 40px;
  }
  .hero-text p { margin: 0 auto 30px; }
  .hero-actions { justify-content: center; }
  
  .nav-links { display: none; } /* Simplified mobile nav for landing page */
  .glass-mockup { transform: none; }
  .glass-mockup:hover { transform: translateY(-10px); }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .hero { padding: 100px 16px 40px; min-height: auto; }
  .hero-text h1 { font-size: 32px; line-height: 1.2; margin-bottom: 16px; }
  .hero-text p { font-size: 16px; margin-bottom: 24px; }
  .hero-actions { flex-direction: column; width: 100%; gap: 12px; }
  .hero-actions a { width: 100%; justify-content: center; }
  
  .hero-visual { width: 100%; margin-top: 20px; }
  .glass-mockup { width: 100%; max-width: 100%; box-sizing: border-box; }
  
  .mockup-body { padding: 20px; }
  .mockup-row { flex-direction: column; gap: 12px; }
  .stat-card { padding: 12px; }
  .stat-card h3 { font-size: 24px; }
  
  .features, .installation { padding: 60px 16px; }
  .section-header { margin-bottom: 40px; }
  .section-header h2 { font-size: 28px; }
  .feature-card { padding: 24px; }
  
  .install-grid { grid-template-columns: 1fr; margin-top: 30px; gap: 20px; }
  
  .footer-content { flex-direction: column; text-align: center; gap: 16px; }
}
