/* ==========================================================================
   Home Page Styles
   ========================================================================== */

/* === Hero Section === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 8rem 0 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.hero-bg svg {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0.4;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1.25rem;
  background: rgba(232, 33, 39, 0.08);
  border: 1px solid rgba(232, 33, 39, 0.3);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent-2);
  margin-bottom: 2rem;
  font-family: var(--font-mono);
  animation: fadeInDown 0.8s ease-out;
}

.hero-tag .dot {
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
  animation: heartbeat 1.5s infinite;
  box-shadow: 0 0 10px var(--color-accent);
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 900;
  line-height: 0.95;
  margin-bottom: 2rem;
  letter-spacing: -0.04em;
  animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero h1 .line {
  display: block;
  background: linear-gradient(180deg, #ffffff 0%, #888888 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero h1 .accent {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  position: relative;
}

.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: var(--color-text-2);
  max-width: 700px;
  margin: 0 auto 3rem;
  line-height: 1.6;
  animation: fadeInUp 1s ease-out 0.4s backwards;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease-out 0.6s backwards;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--color-text-3);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  z-index: 2;
  animation: fadeIn 1.5s ease-out 1s backwards;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--color-accent), transparent);
  position: relative;
  overflow: hidden;
}

.hero-scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background: var(--color-accent);
  animation: scanDown 2s ease-in-out infinite;
}

@keyframes scanDown {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(500%); }
}

/* === Stats Bar === */
.stats-bar {
  background: linear-gradient(180deg, transparent, rgba(232, 33, 39, 0.04) 50%, transparent);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 3rem 0;
  position: relative;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat-item {
  text-align: center;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--color-border);
}

.stat-number {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  font-family: var(--font-mono);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 0.5rem;
  display: block;
}

.stat-number .suffix {
  font-size: 0.6em;
  margin-left: 0.1em;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--color-text-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

/* === Marquee === */
.marquee-section {
  padding: 2rem 0;
  background: var(--color-bg-1);
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 3rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text-3);
  white-space: nowrap;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.marquee-item .dot {
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-accent);
}

/* === Services Preview === */
.services-preview {
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  position: relative;
  padding: 2.5rem 2rem;
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-bg-2) 100%);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  transition: all var(--transition-base);
  cursor: pointer;
  min-height: 360px;
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.service-card:hover::before { transform: translateX(0); }

.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(232, 33, 39, 0.15), transparent 50%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-accent);
  box-shadow: 0 20px 60px rgba(232, 33, 39, 0.2);
}

.service-card:hover::after { opacity: 1; }

.service-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(232, 33, 39, 0.1);
  border: 1px solid rgba(232, 33, 39, 0.3);
  border-radius: 8px;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
  transition: all var(--transition-base);
}

.service-card:hover .service-icon {
  background: var(--color-accent);
  transform: rotate(-5deg) scale(1.05);
  box-shadow: 0 0 30px var(--color-accent-glow);
}

.service-icon svg {
  width: 32px;
  height: 32px;
  color: var(--color-accent-2);
  transition: color var(--transition-base);
}

.service-card:hover .service-icon svg { color: #fff; }

.service-card h3 {
  font-size: 1.375rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.service-card p {
  color: var(--color-text-2);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  flex-grow: 1;
  position: relative;
  z-index: 1;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-accent-2);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--font-mono);
  position: relative;
  z-index: 1;
  transition: gap var(--transition-base);
}

.service-card:hover .service-link { gap: 1rem; }

.service-link svg { width: 16px; height: 16px; }

/* === Philosophy Section === */
.philosophy {
  position: relative;
  overflow: hidden;
  text-align: center;
}

.philosophy-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
  gap: 3rem;
}

.philosophy-content {
  text-align: center;
}
.philosophy-content .eyebrow { justify-content: center; }

.philosophy-content .eyebrow { margin-bottom: 1.5rem; }

.philosophy-content h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 2rem;
  font-weight: 800;
  line-height: 1.1;
}

.philosophy-content p {
  font-size: 1.0625rem;
  margin-bottom: 1.5rem;
  color: var(--color-text-2);
}

.philosophy-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

.pillar {
  padding: 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent);
  border-radius: 4px;
  transition: all var(--transition-base);
  text-align: center;
}

.pillar:hover {
  border-left-color: var(--color-accent-2);
  background: var(--color-surface-2);
  transform: translateX(4px);
}

.pillar h4 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.pillar p {
  font-size: 0.875rem;
  color: var(--color-text-2);
  margin: 0;
  line-height: 1.6;
}

.philosophy-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 500px;
  margin: 0 auto;
}

.philosophy-visual::before {
  content: '';
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle, rgba(232, 33, 39, 0.2) 0%, transparent 60%);
  animation: pulseGlow 4s ease-in-out infinite;
}

.philosophy-visual svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  animation: spinSlow 60s linear infinite;
}

/* === Products Section === */
.products {
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-1) 50%, var(--color-bg) 100%);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.product-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  transition: all var(--transition-base);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-accent);
  box-shadow: 0 30px 60px rgba(232, 33, 39, 0.2);
}

.product-image {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(232, 33, 39, 0.2), transparent 70%);
  z-index: 0;
}

.product-image svg, .product-image img {
  width: 32%;
  height: auto;
  min-width: 64px;
  max-width: 120px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 6px 20px rgba(232, 33, 39, 0.4));
  transition: transform 0.5s ease;
}

.product-card:hover .product-image svg {
  transform: scale(1.1) rotate(-3deg);
}

.product-image .badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.25rem 0.75rem;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-accent);
  border-radius: 100px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent-2);
  font-family: var(--font-mono);
  z-index: 2;
}

.product-content {
  padding: 1.75rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-category {
  font-size: 0.75rem;
  color: var(--color-accent-2);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  margin-bottom: 0.75rem;
}

.product-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.product-content p {
  color: var(--color-text-2);
  font-size: 0.9375rem;
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 1.25rem;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.8125rem;
  color: var(--color-text-3);
  font-family: var(--font-mono);
}

.product-meta .platform {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.product-meta svg { width: 16px; height: 16px; }

/* === Tech Showcase === */
.tech-showcase {
  position: relative;
  padding: 8rem 0;
  background: radial-gradient(ellipse at center, rgba(232, 33, 39, 0.05) 0%, transparent 60%);
  overflow: hidden;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}

.tech-item {
  position: relative;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-bg-2) 100%);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: all var(--transition-base);
  cursor: pointer;
}

.tech-item::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(232, 33, 39, 0.15), transparent 70%);
  border-radius: 50%;
  transform: translate(30%, -30%);
  transition: all 0.4s;
}

.tech-item:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px) scale(1.02);
}

.tech-item:hover::before {
  transform: translate(0%, 0%) scale(2);
}

.tech-item .tech-num {
  font-size: 0.875rem;
  font-family: var(--font-mono);
  color: var(--color-text-3);
  letter-spacing: 0.1em;
}

.tech-item h4 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.tech-item p {
  font-size: 0.8125rem;
  color: var(--color-text-2);
  margin: 0;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}

.tech-item .tech-icon {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 36px;
  height: 36px;
  color: var(--color-accent);
  opacity: 0.6;
  transition: all var(--transition-base);
}

.tech-item:hover .tech-icon {
  opacity: 1;
  transform: rotate(15deg) scale(1.1);
  color: var(--color-accent-2);
}

/* === Process Section === */
.process {
  background: var(--color-bg-1);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 4rem;
  position: relative;
}

.process-grid::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}

.process-step {
  text-align: center;
  position: relative;
}

.step-num {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  background: var(--color-bg);
  border: 2px solid var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--color-accent-2);
  position: relative;
  z-index: 2;
  box-shadow: 0 0 20px rgba(232, 33, 39, 0.3);
  transition: all var(--transition-base);
}

.process-step:hover .step-num {
  background: var(--color-accent);
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 0 40px var(--color-accent);
}

.process-step h4 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.process-step p {
  font-size: 0.9375rem;
  color: var(--color-text-2);
  line-height: 1.6;
  max-width: 220px;
  margin: 0 auto;
}

/* === CTA Section === */
.cta-section {
  position: relative;
  padding: 8rem 0;
  text-align: center;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(232, 33, 39, 0.15) 0%, transparent 60%);
  z-index: 0;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: 1.5rem;
  font-weight: 900;
  background: linear-gradient(180deg, #ffffff 0%, #b8b8b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.05;
}

.cta-content p {
  font-size: 1.125rem;
  color: var(--color-text-2);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* === Responsive === */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 3rem 1rem; }
  .stat-item:nth-child(2)::after { display: none; }

  .services-grid, .products-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid::before { display: none; }
}

@media (max-width: 768px) {
  .hero { padding: 7rem 0 3rem; }
  .hero h1 { font-size: clamp(2.5rem, 9vw, 4rem); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid, .products-grid { grid-template-columns: 1fr; }
  .philosophy-grid { grid-template-columns: 1fr; gap: 3rem; }
  .philosophy-pillars { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item::after { display: none !important; }
}
