/* Component-Specific Styles */

/* Header / Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: var(--space-4) 0;
  transition: background var(--transition-normal), backdrop-filter var(--transition-normal);
}

.site-header.scrolled {
  background: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

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

.logo {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-links {
  display: flex;
  gap: var(--space-8);
  align-items: center;
}

.nav-links a {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--text-primary);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--space-24);
  text-align: center;
  overflow: hidden;
}

/* Abstract Background Elements */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.glow-orb-1 {
  position: absolute;
  top: -20%;
  left: 10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(0,0,0,0) 70%);
  border-radius: 50%;
  filter: blur(60px);
}

.glow-orb-2 {
  position: absolute;
  bottom: -10%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(0,0,0,0) 70%);
  border-radius: 50%;
  filter: blur(60px);
}

.hero-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: 50px 50px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
  z-index: -1;
}

.hero h1 {
  font-size: clamp(var(--text-4xl), 5vw, var(--text-7xl));
  margin-bottom: var(--space-6);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  font-size: var(--text-xl);
  max-width: 700px;
  margin: 0 auto var(--space-8);
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
}

.hero-stats {
  display: flex;
  gap: var(--space-12);
  justify-content: center;
  margin-top: var(--space-16);
  padding-top: var(--space-8);
  border-top: 1px solid var(--border-subtle);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--text-primary);
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: var(--space-2);
}

/* Services (Build, Run, Support) */
.section-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.section-tag {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  background: var(--bg-accent);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-4);
}

.section-header h2 {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-4);
}

.section-header p {
  font-size: var(--text-lg);
  max-width: 600px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-8);
}

.service-card {
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-6);
  color: var(--accent-primary);
}

.service-icon svg {
  width: 24px;
  height: 24px;
}

.service-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
}

.service-card p {
  margin-bottom: var(--space-6);
  flex-grow: 1;
}

.service-features {
  list-style: none;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.service-features li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent-primary);
  border-radius: 50%;
}

/* Platform Section */
.platform-section {
  position: relative;
}

.platform-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.platform-content h2 {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-6);
}

.platform-content p {
  font-size: var(--text-lg);
  margin-bottom: var(--space-8);
}

.platform-visual {
  position: relative;
  /* Make a sleek dashboard mockup visualization */
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-4);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.code-window {
  background: #000;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.code-header {
  padding: var(--space-2) var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  gap: var(--space-2);
}

.mac-btn {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mac-btn.close { background: #ff5f56; }
.mac-btn.min { background: #ffbd2e; }
.mac-btn.max { background: #27c93f; }

.code-body {
  padding: var(--space-4);
  font-family: monospace;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  white-space: pre-wrap;
  line-height: 1.5;
}

.code-comment { color: var(--text-muted); }
.code-keyword { color: var(--accent-secondary); }
.code-string { color: #10b981; }

.platform-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}

.p-feature-item h4 {
  font-size: var(--text-base);
  margin-bottom: var(--space-2);
  color: var(--text-primary);
}

.p-feature-item p {
  font-size: var(--text-sm);
}

/* Engagement Models */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.pricing-card {
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
}

.pricing-card-popular {
  border-color: var(--accent-primary);
  box-shadow: inset 0 0 0 1px var(--accent-primary), 0 10px 30px -10px var(--accent-glow);
  position: relative;
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  color: white;
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pricing-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

.pricing-subtitle {
  font-size: var(--text-sm);
  margin-bottom: var(--space-6);
}

.pricing-features {
  margin: var(--space-6) 0;
  flex-grow: 1;
}

.pricing-card .btn {
  width: 100%;
}

/* CTA Section */
.cta-section {
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: var(--space-32) 0;
}

.cta-box {
  padding: var(--space-16);
  border: 1px solid var(--border-active);
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at center, rgba(99,102,241,0.1) 0%, transparent 60%);
  z-index: 0;
}

.cta-box > * {
  position: relative;
  z-index: 1;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-12) 0 var(--space-6);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-12);
}

.footer-brand p {
  margin-top: var(--space-4);
  max-width: 300px;
  font-size: var(--text-sm);
}

.footer-links {
  display: flex;
  gap: var(--space-16);
}

.link-group h4 {
  font-size: var(--text-sm);
  color: var(--text-primary);
  margin-bottom: var(--space-4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.link-group ul {
  list-style: none;
}

.link-group li {
  margin-bottom: var(--space-2);
}

.link-group a {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.link-group a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .platform-grid {
    grid-template-columns: 1fr;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none; /* simple mobile hide for now */
  }
  .hero-stats {
    flex-direction: column;
    gap: var(--space-6);
  }
  .hero h1 {
    font-size: var(--text-4xl);
  }
  .footer-top {
    flex-direction: column;
    gap: var(--space-8);
  }
}
