/* TrackZen Software House - Main Stylesheet */

/* CSS Variables */
:root {
  --brand-blue: #005dff;
  --brand-blue-hover: #0047cc;
  --brand-blue-light: #e6f0ff;
  --text-dark: #1a1a1a;
  --text-gray: #555555;
  --bg-light: #f8f9fa;
  --white: #FFFFFF;
  --border-color: #E0E0E0;
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Accessibility: Focus indicators */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 3px solid var(--brand-blue);
  outline-offset: 2px;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--brand-blue);
  outline-offset: 2px;
}

/* Navigation */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 5%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.3s ease;
}

nav.scrolled {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0;
}

.logo img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 30px;
  font-weight: 600;
  font-size: 15px;
}

.nav-links a:hover {
  color: var(--brand-blue);
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 101;
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background-color: var(--text-dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Buttons */
.btn {
  padding: 12px 28px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  display: inline-block;
}

.btn-primary {
  background-color: var(--brand-blue);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--brand-blue-hover);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--text-dark);
  color: var(--text-dark);
}

.btn-outline:hover {
  background-color: var(--text-dark);
  color: var(--white);
}

.btn-white {
  background-color: var(--white);
  color: var(--brand-blue);
}

.btn-white:hover {
  background-color: var(--brand-blue-light);
  transform: translateY(-1px);
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 5%;
  min-height: 75vh;
  background-color: var(--white);
  background-image:
    radial-gradient(circle at 85% 10%, rgba(0, 93, 255, 0.05) 0%, transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(0, 93, 255, 0.03) 0%, transparent 45%);
}

.hero-content {
  max-width: 50%;
}

.hero h1 {
  font-size: 64px;
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 24px;
  letter-spacing: -2px;
}

.hero p {
  font-size: 20px;
  color: var(--text-gray);
  margin-bottom: 40px;
  max-width: 90%;
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

.hero-image {
  max-width: 45%;
  background: #EBEBEB;
  border-radius: 12px;
  height: 450px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-weight: 600;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  background-image: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
  overflow: hidden;
}

/* Trust Bar */
.trust-bar {
  text-align: center;
  padding: 40px 5%;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-light);
}

.trust-bar p {
  font-weight: 600;
  color: var(--text-gray);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 13px;
  margin-bottom: 30px;
}

.trust-logos-container {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.trust-logos-row {
  overflow: hidden;
  display: flex;
  width: 100%;
}

.trust-logos-track {
  display: flex;
  gap: 60px;
  animation: marquee 60s linear infinite;
  white-space: nowrap;
}

.trust-logos-row-reverse .trust-logos-track {
  animation: marquee-reverse 60s linear infinite;
}

.trust-logos-track span {
  font-size: 18px;
  font-weight: 700;
  color: #999;
  display: inline-block;
  padding: 0 20px;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes marquee-reverse {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

/* Features & Products Section */
.features {
  padding: 120px 5%;
  background: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 70px;
}

.section-header h2 {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 20px;
  color: var(--text-gray);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.feature-card {
  padding: 35px;
  background: var(--bg-light);
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid transparent;
}

.feature-card:hover {
  transform: translateY(-5px);
  background: var(--white);
  border-color: var(--border-color);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

.feature-icon {
  font-size: 36px;
  margin-bottom: 24px;
}

.feature-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-gray);
  font-size: 16px;
  line-height: 1.5;
}

.product-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-blue);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

/* Product Sections */
.products-section {
  padding: 120px 5% 60px;
  background: var(--white);
}

.product-subsection {
  margin-bottom: 80px;
}

.product-subsection:last-child {
  margin-bottom: 0;
}

.subsection-header {
  text-align: center;
  margin-bottom: 50px;
}

.subsection-header h3 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.subsection-header p {
  font-size: 18px;
  color: var(--text-gray);
}

.coming-soon {
  text-align: center;
  padding: 40px;
  background: var(--brand-blue-light);
  border-radius: 8px;
  margin-top: 40px;
}

.coming-soon h4 {
  font-size: 20px;
  font-weight: 700;
  color: var(--brand-blue);
  margin-bottom: 8px;
}

.coming-soon p {
  color: var(--text-gray);
  font-size: 16px;
}

/* CTA Section */
.cta-section {
  padding: 100px 5%;
  text-align: center;
  background-color: var(--brand-blue);
  color: var(--white);
  background-image:
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.15) 0%, transparent 60%),
    radial-gradient(circle at 0% 100%, rgba(0, 0, 0, 0.2) 0%, transparent 60%);
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.cta-section h2 {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 24px;
}

.cta-section p {
  font-size: 20px;
  margin-bottom: 40px;
  opacity: 0.9;
}

/* Contact Info */
.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-item h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  opacity: 0.9;
}

.contact-item a,
.contact-item p {
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  transition: opacity 0.2s ease;
}

.contact-item a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.contact-item p {
  margin: 0;
}

/* Footer */
footer {
  background-color: var(--text-dark);
  color: var(--white);
  padding: 80px 5% 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-logo {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.footer-logo img {
  height: 36px;
  width: auto;
}

.footer-col h4 {
  font-size: 16px;
  margin-bottom: 24px;
  color: #888;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 14px;
}

.footer-col ul li a {
  color: #ccc;
  font-size: 15px;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid #444;
  padding-top: 30px;
  text-align: center;
  font-size: 14px;
  color: #888;
}

/* Responsive Design */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 60px 5%;
  }

  .hero-content {
    max-width: 100%;
    margin-bottom: 50px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image {
    max-width: 100%;
    height: 300px;
  }

  /* Mobile Navigation */
  .mobile-menu-toggle {
    display: flex;
  }

  #navCTA {
    display: none;
  }

  .nav-links {
    position: fixed;
    top: 81px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 81px);
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: flex-start;
    padding: 40px 5%;
    gap: 30px;
    transition: left 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 99;
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links a {
    font-size: 20px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cta-section h2 {
    font-size: 36px;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 16px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
}
