/* Enhanced styles for new homepage sections */

/* Hero Section */
.hero {
  padding: 60px 40px;
  background: linear-gradient(135deg, rgba(8, 15, 31, 0.9), rgba(15, 23, 42, 0.8));
  border: 1px solid var(--line);
  border-radius: var(--panel-radius);
  margin-bottom: 40px;
  text-align: center;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  font-family: var(--heading-font);
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 20px 0;
  background: linear-gradient(135deg, var(--accent-a), var(--accent-c));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-copy {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 30px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 40px;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-a), var(--accent-c));
  color: #03111d;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(125, 211, 252, 0.3);
}

.btn-secondary {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--accent-a);
  color: var(--text);
}

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

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-a);
  font-family: var(--heading-font);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Navigation */
.topnav {
  display: flex;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(125, 211, 252, 0.1);
}

/* App Grid */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.app-card {
  background: linear-gradient(180deg, rgba(8, 15, 31, 0.82), rgba(6, 11, 24, 0.94));
  border: 1px solid var(--line);
  border-radius: var(--panel-radius);
  padding: 24px;
  transition: all 0.3s ease;
}

.app-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-a);
  box-shadow: 0 12px 40px rgba(125, 211, 252, 0.15);
}

.app-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.app-card h3 {
  font-family: var(--heading-font);
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--text);
}

.app-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.btn-mini {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(125, 211, 252, 0.15);
  color: var(--accent-a);
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-mini:hover {
  background: rgba(125, 211, 252, 0.25);
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.product-card {
  background: linear-gradient(180deg, rgba(8, 15, 31, 0.82), rgba(6, 11, 24, 0.94));
  border: 1px solid var(--line);
  border-radius: calc(var(--panel-radius) - 8px);
  padding: 20px;
  transition: all 0.3s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  border-color: rgba(192, 132, 252, 0.5);
}

.product-card h3 {
  font-family: var(--heading-font);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.product-card .price {
  color: var(--accent-a);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 8px;
}

.product-card p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.section-note {
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.9rem;
}

.section-note a {
  color: var(--accent-a);
  text-decoration: underline;
}

/* Service Grid */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.service-category {
  background: rgba(5, 10, 23, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: calc(var(--panel-radius) - 10px);
  padding: 20px;
}

.service-category h3 {
  font-family: var(--heading-font);
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: var(--accent-b);
}

.service-category ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-category li {
  color: var(--muted);
  padding: 8px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.service-category li:last-child {
  border-bottom: none;
}

/* About Section */
.section-light {
  background: rgba(8, 15, 31, 0.5);
  border-radius: var(--panel-radius);
  padding: 30px;
  border: 1px solid var(--line);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.about-text h3 {
  font-family: var(--heading-font);
  color: var(--accent-a);
  margin: 20px 0 10px;
}

.about-text p {
  color: var(--muted);
  line-height: 1.7;
}

.about-text ul {
  list-style: none;
  padding: 0;
}

.about-text li {
  color: var(--muted);
  padding: 6px 0;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.stat-box {
  background: rgba(5, 10, 23, 0.7);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.stat-box .stat-value {
  font-size: 2rem;
}

/* Contact Section */
.contact-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.contact-card {
  background: rgba(5, 10, 23, 0.7);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
}

.contact-card h3 {
  font-family: var(--heading-font);
  color: var(--accent-a);
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.contact-card p {
  color: var(--muted);
  font-size: 0.9rem;
  padding: 4px 0;
}

/* Footer */
.site-footer {
  background: rgba(5, 10, 23, 0.9);
  border-top: 1px solid var(--line);
  margin-top: 60px;
  padding: 40px 0 20px;
}

.footer-content {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.footer-section h4 {
  font-family: var(--heading-font);
  color: var(--text);
  margin-bottom: 16px;
  font-size: 1rem;
}

.footer-section p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.footer-section a {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.footer-section a:hover {
  color: var(--accent-a);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-stats {
    gap: 20px;
  }
  
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .topnav {
    flex-wrap: wrap;
  }
  
  .hero-actions {
    flex-direction: column;
  }
}