/* =========================================================================
   HOME PAGE
   ========================================================================= */

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 60px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -10%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  max-width: 900px;
  max-height: 900px;
  background: radial-gradient(circle, var(--blue-glow-soft), transparent 65%);
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; text-align: center; } }

.hero-copy .label { margin-bottom: 22px; }
@media (max-width: 980px) { .hero-copy .label { justify-content: center; } .hero-copy .label::before { display:none; } }

.hero-heading { font-size: clamp(2.6rem, 6vw, 4.8rem); margin-bottom: 26px; }
.hero-heading .line { display: block; }

.hero-desc { max-width: 480px; margin-bottom: 38px; color: var(--text-1); font-size: 1.05rem; line-height: 1.75; }
@media (max-width: 980px) { .hero-desc { margin-left: auto; margin-right: auto; } }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
@media (max-width: 980px) { .hero-actions { justify-content: center; } }

.hero-meta { display: flex; gap: 36px; margin-top: 56px; }
@media (max-width: 980px) { .hero-meta { justify-content: center; flex-wrap: wrap; } }
.hero-meta .num { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; color: var(--text-0); }
.hero-meta .lbl { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); margin-top: 4px; }

/* 3D frame stage */
.hero-stage {
  position: relative;
  height: min(620px, 68vw);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.hero-stage .frame-stage { width: 100%; height: 100%; }
.hero-stage .frame-3d { max-width: 360px; }

.hero-logo-badge {
  position: absolute;
  bottom: 6%;
  right: 4%;
  width: 54px;
  height: 54px;
  padding: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border-bright);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(16,24,40,.12), 0 0 30px var(--blue-glow-soft);
  z-index: 2;
}
@media (max-width: 640px) { .hero-logo-badge { width: 42px; height: 42px; padding: 8px; } }

.hero-ring {
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(79,195,255,.14);
  pointer-events: none;
}
.hero-ring.ring-2 { width: 100%; border-color: rgba(79,195,255,.08); }

.hero-scroll {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-3);
  z-index: 1;
}
.hero-scroll .line { width: 1px; height: 34px; background: linear-gradient(180deg, var(--blue-300), transparent); animation: scrollpulse 2.2s ease-in-out infinite; }
@keyframes scrollpulse { 0%,100% { opacity:.3; } 50% { opacity:1; } }

/* ---------------- About preview ---------------- */
.about-preview-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; }
@media (max-width: 900px) { .about-preview-grid { grid-template-columns: 1fr; } }

.about-visual {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 48px;
  background: linear-gradient(160deg, #ffffff, var(--bg-1));
  border: 1px solid var(--border);
  overflow: hidden;
  min-height: 360px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-card);
}
.about-visual::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(280px 280px at 30% 20%, rgba(47,107,255,.10), transparent 70%);
}
.about-visual img { position: relative; width: 55%; filter: drop-shadow(0 20px 40px rgba(16,24,40,.18)); }

.about-copy p + p { margin-top: 18px; }
.about-copy .btn-ghost-link { margin-top: 28px; }

/* ---------------- Services / Products / Why grids ---------------- */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 1100px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services-grid { grid-template-columns: 1fr; } }

.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 1100px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .products-grid { grid-template-columns: 1fr; } }

.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--border); border-left: none; border-right:none; }
@media (max-width: 860px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }
.why-grid .feature-block:nth-child(4n) { border-right: none; }
.why-grid .feature-block { border-right: 1px solid var(--border); }
@media (max-width: 860px) { .why-grid .feature-block:nth-child(2n) { border-right: none; } }
@media (max-width: 560px) { .why-grid .feature-block { border-right: none !important; } }

/* ---------------- Project showcase ---------------- */
.showcase-track { display: flex; flex-direction: column; gap: 24px; }
.showcase-item {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 40px;
  padding: 40px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}
.showcase-item:hover { border-color: var(--border-bright); }
.showcase-item:nth-child(even) { grid-template-columns: 1fr 1.2fr; }
.showcase-item:nth-child(even) .showcase-media { order: 2; }
@media (max-width: 860px) {
  .showcase-item, .showcase-item:nth-child(even) { grid-template-columns: 1fr; padding: 24px; }
  .showcase-item:nth-child(even) .showcase-media { order: 0; }
}

.showcase-media { border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 16/10; }
.showcase-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease-premium); }
.showcase-item:hover .showcase-media img { transform: scale(1.05); }

.showcase-copy .g-cat { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-300); margin-bottom: 12px; display:block; }
.showcase-copy h3 { font-size: 1.6rem; margin-bottom: 14px; }
.showcase-copy p { color: var(--text-2); font-size: 14px; margin-bottom: 18px; }
.tech-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tech-pill { font-size: 11px; padding: 5px 12px; border-radius: var(--radius-pill); border: 1px solid var(--border-bright); color: var(--text-2); }

/* ---------------- CTA ---------------- */
.cta-section {
  position: relative;
  margin: 0 24px;
  max-width: calc(var(--container-w) + 48px);
  margin-left: auto; margin-right: auto;
  border-radius: 32px;
  padding: 100px 40px;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(160deg, var(--blue-700), var(--blue-500) 75%);
  box-shadow: 0 30px 70px rgba(47, 107, 255, 0.28);
}
.cta-watermark {
  position: absolute;
  top: 50%; left: 50%;
  width: 780px; max-width: 120%;
  transform: translate(-50%, -50%);
  opacity: 0.12;
  pointer-events: none;
}
.cta-section .label { color: rgba(255,255,255,.85); }
.cta-section .label::before { background: linear-gradient(90deg, rgba(255,255,255,.85), transparent); }
.cta-section .h-lg { margin-bottom: 30px; color: #fff; -webkit-text-fill-color: #fff; background: none; }
.cta-actions { position: relative; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.cta-section .btn-outline { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.4); color: #fff; }
.cta-section .btn-outline:hover { background: rgba(255,255,255,.22); border-color: #fff; color: #fff; }
.cta-section .btn-primary { background: #fff; color: var(--blue-700); box-shadow: 0 10px 30px rgba(0,0,0,.15); }
.cta-section .btn-primary:hover { background: #fff; box-shadow: 0 16px 36px rgba(0,0,0,.2); }

@media (max-width: 640px) { .cta-section { padding: 64px 24px; margin: 0 12px; border-radius: 24px; } }
