/* ================================
   CARLYTICS - STYLE GITBOOK-INSPIRED
   ================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #00FF88;
  --primary-dark: #00CC6A;
  --secondary: #8b5cf6;
  --accent: #06b6d4;
  --bg: #0B1120;
  --bg-alt: #0F172A;
  --bg-dark: #050810;
  --bg-card: #1A2230;
  --text: #ffffff;
  --text-light: #94a3b8;
  --text-muted: #64748b;
  --border: rgba(255, 255, 255, 0.1);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(0, 255, 136, 0.2);
  --radius: 16px;
  --radius-lg: 24px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ================================
   NAVIGATION
   ================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(11, 17, 32, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  text-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.logo-icon {
  font-size: 1.5rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--primary);
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ================================
   HERO
   ================================ */

.hero {
  min-height: 100vh;
  padding: 120px 24px 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  background: radial-gradient(ellipse at top, rgba(0, 255, 136, 0.05) 0%, transparent 50%),
              radial-gradient(ellipse at bottom right, rgba(139, 92, 246, 0.05) 0%, transparent 50%),
              var(--bg);
}

.hero-content {
  flex: 1;
  max-width: 550px;
}

.hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), #00CC6A);
  color: #0B1120;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 24px;
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
  color: var(--text);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-light);
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-subtitle strong {
  color: var(--primary);
  font-weight: 600;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #0B1120;
  box-shadow: 0 4px 20px rgba(0, 255, 136, 0.4), 0 0 30px rgba(0, 255, 136, 0.1);
  font-weight: 700;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(0, 255, 136, 0.5), 0 0 40px rgba(0, 255, 136, 0.2);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(0, 255, 136, 0.05);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Phone Frame for Real Screenshot */
.hero-visual {
  flex: 0 0 auto;
}

.phone-frame {
  width: 300px;
  background: #0f172a;
  border-radius: 40px;
  padding: 12px;
  box-shadow: 
    0 50px 100px -20px rgba(0, 0, 0, 0.35),
    0 30px 60px -30px rgba(0, 0, 0, 0.4),
    inset 0 0 0 2px rgba(255, 255, 255, 0.1);
  position: relative;
}

.phone-frame::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background: #0f172a;
  border-radius: 20px;
  z-index: 10;
}

.app-screenshot {
  width: 100%;
  height: auto;
  border-radius: 32px;
  display: block;
}

/* Hide old phone mockup styles that are no longer used */
.phone-mockup,
.phone-screen,
.app-header,
.app-stats,
.stat-item,
.stat-value,
.stat-label,
.app-alerts,
.alert-item {
  display: none;
}

/* ================================
   SECTIONS
   ================================ */

.section {
  padding: 100px 24px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
  color: var(--text);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Why Section */
.why-section {
  background: var(--bg-alt);
}

.feature-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
  border-color: rgba(0, 255, 136, 0.3);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
}

.audience-section .section-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

/* Audience Section */
.audience-section {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #1e293b 100%);
  color: white;
}

.audience-section .section-title {
  color: white;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 60px;
}

.audience-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  transition: all 0.3s;
}

.audience-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-4px);
}

.audience-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.audience-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: white;
}

.audience-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Download Section */
.download-section {
  background: var(--bg-alt);
  text-align: center;
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.download-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 16px 28px;
  border-radius: var(--radius);
  transition: all 0.2s;
}

.download-btn:hover {
  transform: scale(1.02);
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.download-icon {
  font-size: 1.75rem;
}

.download-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.download-text small {
  font-size: 0.75rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.download-text strong {
  font-size: 1.15rem;
  font-weight: 600;
}

.beta-notice {
  margin-top: 48px;
  padding: 32px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(0, 255, 136, 0.3);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.beta-notice p {
  margin-bottom: 16px;
  color: var(--text-light);
}

/* ================================
   FOOTER
   ================================ */

.footer {
  background: var(--bg-dark);
  color: white;
  padding: 60px 24px 40px;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 700;
}

.footer-tagline {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
}

.footer-links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

.footer-credits {
  margin-top: 20px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
}

.footer-credits p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

/* ================================
   RESPONSIVE
   ================================ */

@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 100px;
    gap: 40px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-cta {
    justify-content: center;
  }

  .phone-frame {
    width: 260px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-container {
    padding: 0 16px;
    height: 56px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: rgba(11, 17, 32, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-link {
    padding: 12px 16px;
    border-radius: 8px;
    transition: background 0.2s;
  }

  .nav-link:hover {
    background: rgba(0, 255, 136, 0.1);
  }

  .nav-logo {
    font-size: 1.1rem;
  }

  .hero {
    padding: 90px 16px 60px;
    min-height: auto;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-badge {
    font-size: 0.8rem;
    padding: 6px 12px;
  }

  .btn {
    padding: 12px 20px;
    font-size: 0.9rem;
  }

  .phone-frame {
    width: 220px;
    padding: 10px;
    border-radius: 32px;
  }

  .phone-frame::before {
    width: 100px;
    height: 24px;
    top: 16px;
  }

  .app-screenshot {
    border-radius: 26px;
  }

  .section {
    padding: 60px 16px;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 40px;
  }

  .feature-card {
    padding: 24px;
  }

  .feature-icon {
    font-size: 2rem;
  }

  .feature-card h3 {
    font-size: 1.15rem;
  }

  .audience-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 40px;
  }

  .audience-card {
    padding: 28px 24px;
  }

  .audience-icon {
    font-size: 2.5rem;
  }

  .download-buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .download-btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .beta-notice {
    padding: 24px;
    margin-top: 32px;
  }

  .footer {
    padding: 40px 16px 32px;
  }

  .footer-links {
    gap: 20px;
  }

  .footer-links a {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.6rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .btn {
    padding: 10px 18px;
    font-size: 0.85rem;
  }

  .hero-cta {
    gap: 12px;
  }

  .phone-frame {
    width: 180px;
    padding: 8px;
    border-radius: 24px;
  }

  .phone-frame::before {
    width: 80px;
    height: 20px;
    top: 12px;
  }

  .app-screenshot {
    border-radius: 20px;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .feature-card {
    padding: 20px;
  }

  .feature-icon {
    font-size: 1.75rem;
    margin-bottom: 12px;
  }

  .feature-card h3 {
    font-size: 1.1rem;
  }

  .feature-card p {
    font-size: 0.9rem;
  }

  .audience-card {
    padding: 24px 20px;
  }

  .audience-icon {
    font-size: 2rem;
  }

  .audience-card h3 {
    font-size: 1.1rem;
  }

  .audience-card p {
    font-size: 0.9rem;
  }

  .beta-notice {
    padding: 20px;
  }

  .beta-notice p {
    font-size: 0.9rem;
  }

  .footer-brand {
    font-size: 1.25rem;
  }

  .footer-links {
    gap: 16px;
  }

  .footer-credits p {
    font-size: 0.8rem;
  }
}

@media (max-width: 360px) {
  .hero {
    padding: 80px 12px 40px;
  }

  .hero-title {
    font-size: 1.4rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .btn {
    padding: 10px 16px;
    font-size: 0.8rem;
  }

  .phone-frame {
    width: 160px;
  }

  .section {
    padding: 40px 12px;
  }

  .section-title {
    font-size: 1.35rem;
  }

  .feature-card {
    padding: 16px;
  }

  .audience-card {
    padding: 20px 16px;
  }

  .download-btn {
    padding: 12px 20px;
  }

  .download-text strong {
    font-size: 1rem;
  }
}
