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

:root {
  --bg-primary: #07070a;
  --bg-secondary: #0d0d14;
  --bg-card: rgba(18, 18, 26, 0.7);
  --bg-card-hover: rgba(26, 26, 38, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(207, 34, 34, 0.4);
  --brand-primary: #cf2222;
  --brand-hover: #e02a2a;
  --brand-glow: rgba(207, 34, 34, 0.45);
  --text-main: #f4f4f7;
  --text-muted: #8e8ea0;
  --text-dim: #5c5c6e;
  --online-green: #23a55a;
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 50% -10%, rgba(179, 25, 25, 0.22) 0%, transparent 60%),
    radial-gradient(circle at 10% 40%, rgba(139, 17, 17, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 90% 80%, rgba(179, 25, 25, 0.1) 0%, transparent 50%);
  background-attachment: fixed;
}

/* Background grid effect */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

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

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(7, 7, 10, 0.75);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 0;
  transition: all 0.3s ease;
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.nav-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 0 16px rgba(207, 34, 34, 0.4);
}

.nav-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 40%, #ff8a8a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  background: rgba(207, 34, 34, 0.2);
  color: #ff5252;
  border: 1px solid rgba(207, 34, 34, 0.4);
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

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

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  font-family: var(--font-body);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-primary), #9e1414);
  color: #ffffff;
  box-shadow: 0 4px 20px var(--brand-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--brand-hover), #b81616);
  transform: translateY(-2px);
  box-shadow: 0 6px 26px rgba(207, 34, 34, 0.6);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
  border-radius: 10px;
}

/* Hero Section */
.hero {
  padding: 100px 0 60px 0;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(207, 34, 34, 0.12);
  border: 1px solid rgba(207, 34, 34, 0.35);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  color: #ff6666;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 24px;
}

.hero-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff3333;
  box-shadow: 0 0 8px #ff3333;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -1.5px;
  max-width: 900px;
  margin: 0 auto 20px auto;
  background: linear-gradient(180deg, #ffffff 30%, #ffaaaa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 36px auto;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero-meta {
  font-size: 13px;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.hero-meta span {
  color: var(--text-muted);
}

/* App Showcase Mockup */
.mockup-wrapper {
  margin: 50px auto 100px auto;
  max-width: 1040px;
  border-radius: 14px;
  padding: 4px;
  background: linear-gradient(135deg, rgba(207, 34, 34, 0.4), rgba(255, 255, 255, 0.05) 50%, rgba(207, 34, 34, 0.2));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 50px rgba(207, 34, 34, 0.15);
}

.mockup-window {
  background: #0d0d13;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.mockup-titlebar {
  height: 38px;
  background: #07070a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-weight: 600;
}

.mockup-controls {
  display: flex;
  gap: 8px;
}

.mockup-control {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.mc-red { background: #ff5f56; }
.mc-yellow { background: #ffbd2e; }
.mc-green { background: #27c93f; }

.mockup-body {
  height: 480px;
  display: flex;
  background: #09090e;
}

.mockup-sidebar-servers {
  width: 64px;
  background: #060608;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  padding: 12px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.mock-server-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #171722;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mock-server-icon.active {
  background: #cf2222;
  box-shadow: 0 0 16px rgba(207, 34, 34, 0.5);
  border-radius: 12px;
}

.mockup-sidebar-channels {
  width: 200px;
  background: #0b0b10;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}

.mock-chan-head {
  font-size: 10px;
  font-weight: 800;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 6px;
}

.mock-chan-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 6px;
  color: var(--text-muted);
  font-weight: 600;
}

.mock-chan-item.active {
  background: rgba(207, 34, 34, 0.15);
  color: #ffffff;
  border-left: 2px solid #cf2222;
}

.mockup-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #0e0e16;
}

.mockup-chat-header {
  height: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  font-weight: 700;
  font-size: 14px;
}

.mockup-chat-feed {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
}

.mock-msg {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.mock-msg-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #cf2222;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.mock-msg-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.mock-msg-author {
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mock-role-badge {
  font-size: 10px;
  background: #cf2222;
  color: #fff;
  padding: 1px 5px;
  border-radius: 3px;
}

.mock-msg-text {
  font-size: 13px;
  color: var(--text-main);
}

.mockup-chat-input {
  margin: 12px 16px;
  background: #14141f;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-dim);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
}

/* Features Grid */
.features-section {
  padding: 80px 0;
}

.section-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #ff4d4d;
  background: rgba(207, 34, 34, 0.1);
  border: 1px solid rgba(207, 34, 34, 0.3);
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 48px;
}

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

.feature-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 28px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-primary), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(207, 34, 34, 0.12);
}

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

.feature-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(207, 34, 34, 0.15);
  border: 1px solid rgba(207, 34, 34, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff4d4d;
  font-size: 22px;
}

.feature-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
}

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

/* Stats Ribbon */
.stats-ribbon {
  margin: 60px 0;
  padding: 32px 40px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(20, 20, 28, 0.7), rgba(12, 12, 18, 0.9));
  border: 1px solid var(--border-subtle);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.stat-item h3 {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 4px;
  background: linear-gradient(180deg, #ffffff 40%, #ff8a8a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-item p {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Download CTA Box */
.cta-box {
  margin: 80px 0;
  padding: 60px 40px;
  border-radius: 20px;
  background: radial-gradient(circle at 50% 0%, rgba(207, 34, 34, 0.3) 0%, rgba(13, 13, 20, 0.9) 70%);
  border: 1px solid rgba(207, 34, 34, 0.4);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(207, 34, 34, 0.15);
  text-align: center;
}

.cta-box h2 {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 900;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.cta-box p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 32px auto;
}

.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-subtle);
  background: #050508;
  padding: 40px 0 30px 0;
  font-size: 13px;
  color: var(--text-dim);
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
  font-weight: 700;
  font-family: var(--font-display);
}

.footer-links {
  display: flex;
  gap: 24px;
}

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

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 20px;
  font-size: 12px;
}

/* Responsive */
@media (max-width: 992px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-ribbon {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-title {
    font-size: 42px;
  }
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  .stats-ribbon {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
  .mockup-body {
    height: 360px;
  }
  .mockup-sidebar-channels {
    display: none;
  }
  .hero-title {
    font-size: 34px;
  }
}
