/* ============================================
   TeamSense Landing Page — styles.css
   ============================================ */

/* --- Custom Properties --- */
:root {
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --red-600: #dc2626;
  --red-700: #b91c1c;
  --red-800: #991b1b;
  --red-500: #ef4444;
  --black: #000000;
  --white: #ffffff;
  --emerald-400: #34d399;
  --radius: 0.5rem;
  --container-max: 1400px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--gray-900);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* --- Container --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- Badge --- */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.badge-red {
  background-color: var(--red-600);
  color: var(--white);
}

.badge-dark-red {
  background-color: var(--red-700);
  color: var(--white);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background-color 0.2s, opacity 0.2s;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--red-600);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--red-700);
}

.btn-outline {
  background-color: var(--gray-800);
  color: var(--white);
  border: 1px solid var(--gray-700);
}

.btn-outline:hover {
  background-color: var(--gray-700);
}

.btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  background-color: rgba(17, 24, 39, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-800);
}

.navbar .container {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

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

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--red-600);
}

.navbar-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

.navbar-links a {
  color: var(--gray-300);
  transition: color 0.2s;
}

.navbar-links a:hover {
  color: var(--red-500);
}

.navbar-download {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

/* Hamburger */
.hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0.5rem;
  border-radius: 0.375rem;
  color: var(--gray-300);
  cursor: pointer;
}

.hamburger:hover {
  background-color: var(--gray-800);
}

.hamburger svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 0;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  color: var(--gray-300);
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 1.125rem;
  transition: color 0.2s;
}

.mobile-menu a:hover {
  color: var(--red-500);
}

.mobile-menu .btn {
  width: 100%;
  text-align: center;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  padding: 5rem 1rem;
  overflow: hidden;
  background: linear-gradient(to bottom right, var(--gray-900), var(--black));
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--gray-200) 1px, transparent 1px),
    linear-gradient(to bottom, var(--gray-200) 1px, transparent 1px);
  background-size: 24px 24px;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

.hero-text {
  max-width: 36rem;
  text-align: center;
}

.hero-text .badge {
  margin-bottom: 1rem;
}

.hero-text h1 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero-text h1 span {
  color: var(--red-500);
}

.hero-text p {
  font-size: 1.125rem;
  color: var(--gray-300);
  margin-bottom: 1.5rem;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

.hero-image {
  width: 100%;
  max-width: 300px;
}

.hero-image img {
  width: 100%;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 2px solid var(--gray-800);
}

/* ============================================
   FEATURES GRID
   ============================================ */
.features {
  padding: 5rem 1rem;
  background-color: var(--gray-900);
}

.section-header {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 4rem;
}

.section-header .badge {
  margin-bottom: 0.5rem;
}

.section-header h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--gray-400);
  font-size: 1.125rem;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background-color: var(--gray-900);
  padding: 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid var(--gray-800);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.2s;
}

.feature-card:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.feature-icon {
  width: 4rem;
  height: 4rem;
  background-color: var(--red-600);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.feature-icon svg {
  width: 2rem;
  height: 2rem;
  color: var(--white);
  stroke: var(--white);
  fill: none;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--gray-400);
}

/* ============================================
   APP SCREENSHOTS
   ============================================ */
.screenshots {
  padding: 5rem 1rem;
  background-color: var(--black);
}

.screenshots-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.screenshots-grid img {
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--gray-800);
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}

/* ============================================
   APP STORE CTA
   ============================================ */
.cta-banner {
  padding: 5rem 1rem;
  background-color: var(--red-600);
  color: var(--white);
  text-align: center;
}

.cta-banner .container {
  max-width: 56rem;
}

.cta-logo {
  width: 6rem;
  height: 6rem;
  border-radius: 0.75rem;
  margin: 0 auto 1.5rem;
}

.cta-banner h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.cta-banner p {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.app-store-badge {
  height: 4rem;
  margin: 0 auto;
  transition: opacity 0.2s;
}

.app-store-badge:hover {
  opacity: 0.9;
}

/* ============================================
   FEATURE DETAILS
   ============================================ */
.feature-details {
  padding: 5rem 1rem;
  background-color: var(--gray-900);
}

.feature-details-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

.detail-section h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-left: 1rem;
  border-left: 4px solid var(--red-600);
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--gray-300);
}

.check-icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  background-color: var(--red-600);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.15rem;
}

.check-icon svg {
  width: 0.875rem;
  height: 0.875rem;
  fill: var(--white);
}

/* ============================================
   TESTIMONIALS (heading only)
   ============================================ */
.testimonials {
  padding: 5rem 1rem;
  background-color: var(--black);
}

/* ============================================
   FAQ
   ============================================ */
.faq {
  padding: 5rem 1rem;
  background-color: var(--gray-900);
}

.faq .container {
  max-width: 56rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.faq-card {
  background-color: var(--gray-800);
  border-radius: 0.5rem;
  padding: 1.5rem;
}

.faq-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.faq-card p {
  color: var(--gray-300);
}

/* ============================================
   FINAL CTA
   ============================================ */
.final-cta {
  padding: 5rem 1rem;
  background-color: var(--red-600);
  color: var(--white);
  text-align: center;
}

.final-cta .container {
  max-width: 48rem;
}

.final-cta h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.final-cta p {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background-color: var(--gray-900);
  color: var(--gray-300);
  padding: 3rem 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.footer-brand h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--gray-400);
}

.footer-col h4 {
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col a {
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--emerald-400);
}

.footer-bottom {
  border-top: 1px solid var(--gray-800);
  margin-top: 3rem;
  padding-top: 2rem;
  text-align: center;
  color: var(--gray-500);
}

/* ============================================
   RESPONSIVE — md (768px+)
   ============================================ */
@media (min-width: 768px) {
  .navbar-links {
    display: flex;
  }

  .hamburger {
    display: none;
  }

  .hero {
    padding: 8rem 1rem;
  }

  .hero-content {
    flex-direction: row;
    justify-content: space-between;
  }

  .hero-text {
    text-align: left;
  }

  .hero-text h1 {
    font-size: 3rem;
  }

  .hero-text p {
    font-size: 1.25rem;
  }

  .hero-buttons {
    flex-direction: row;
    justify-content: flex-start;
  }

  .hero-image {
    max-width: 400px;
  }

  .section-header h2 {
    font-size: 2.25rem;
  }

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

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

  .cta-banner h2,
  .final-cta h2 {
    font-size: 2.25rem;
  }

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

  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================
   RESPONSIVE — lg (1024px+)
   ============================================ */
@media (min-width: 1024px) {
  .hero-text h1 {
    font-size: 3.75rem;
  }

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

  .screenshots-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================
   Scrollbar
   ============================================ */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-900);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-700);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-600);
}
