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

/* ── HERO ── */
.hero {
  position: relative;
  height: calc(100vh - 107px);
  min-height: 620px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Animated gradient mesh background */
.hero-canvas {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 80% at 10% 50%, rgba(10,110,138,.6) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 80% 20%, rgba(13,149,187,.35) 0%, transparent 55%),
    radial-gradient(ellipse 70% 70% at 60% 80%, rgba(2,22,39,.9) 0%, transparent 60%),
    var(--navy);
  animation: meshShift 10s ease-in-out infinite alternate;
}
@keyframes meshShift {
  0%   { filter: hue-rotate(0deg) brightness(1); }
  50%  { filter: hue-rotate(8deg) brightness(1.06); }
  100% { filter: hue-rotate(-4deg) brightness(.97); }
}

/* Background image layer */
.hero-img-layer {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1576091160550-2173dba999ef?w=1920&q=80');
  background-size: cover;
  background-position: center;
  opacity: .18;
  animation: heroImgDrift 16s ease-in-out infinite alternate;
}
@keyframes heroImgDrift {
  from { transform: scale(1.08) translateX(-1%); }
  to   { transform: scale(1.02) translateX(1%); }
}

/* Animated grid overlay */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(13,149,187,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13,149,187,.07) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridScroll 20s linear infinite;
}
@keyframes gridScroll {
  from { background-position: 0 0; }
  to   { background-position: 60px 60px; }
}

/* Floating orbs */
.hero-orbs { position: absolute; inset: 0; pointer-events: none; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: orbFloat var(--dur, 8s) ease-in-out infinite alternate;
}
.orb-1 { width: 400px; height: 400px; background: rgba(10,110,138,.4); top: -100px; right: 10%; --dur: 9s; }
.orb-2 { width: 280px; height: 280px; background: rgba(61,189,217,.25); bottom: 5%; left: 15%; --dur: 7s; animation-delay: -3s; }
.orb-3 { width: 200px; height: 200px; background: rgba(200,16,46,.2); top: 20%; right: 35%; --dur: 11s; animation-delay: -5s; }
@keyframes orbFloat {
  from { transform: translate(0, 0) scale(1); opacity: .7; }
  to   { transform: translate(30px, -40px) scale(1.1); opacity: 1; }
}

/* Particle dots */
.hero-particles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.particle {
  position: absolute;
  width: 2px; height: 2px;
  background: rgba(255,255,255,.5);
  border-radius: 50%;
  animation: particleRise var(--d, 6s) linear infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes particleRise {
  0%   { transform: translateY(100vh) scale(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: .8; }
  100% { transform: translateY(-100px) scale(1.5); opacity: 0; }
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 5;
  padding: 0 5vw;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}
.hero-left { max-width: 580px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(13,149,187,.4);
  color: var(--teal3);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
  animation: slideUp .6s .1s var(--ease-out-expo) both;
}
.badge-pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal3);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(61,189,217,.5); }
  50%       { opacity: .7; transform: scale(.85); box-shadow: 0 0 0 6px rgba(61,189,217,0); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 600;
  color: #fff;
  line-height: 1.07;
  margin-bottom: 22px;
  animation: slideUp .7s .2s var(--ease-out-expo) both;
}
.hero h1 em { font-style: italic; color: #8dd8f0; font-weight: 400; }
.hero-line {
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--teal2));
  border-radius: 1px;
  margin-bottom: 22px;
  animation: lineExpand .8s .5s ease forwards;
}
@keyframes lineExpand { to { width: 60px; } }
.hero p {
  font-size: 16px;
  color: rgba(255,255,255,.62);
  line-height: 1.75;
  max-width: 460px;
  margin-bottom: 36px;
  animation: slideUp .7s .4s var(--ease-out-expo) both;
}
.hero-btns {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  animation: slideUp .7s .5s var(--ease-out-expo) both;
}

/* Hero Stats strip */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 52px;
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,.1);
  animation: slideUp .7s .7s var(--ease-out-expo) both;
}
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.hero-stat-num sup { font-size: 16px; vertical-align: super; }
.hero-stat-label {
  font-size: 11px;
  color: rgba(255,255,255,.42);
  font-weight: 500;
  letter-spacing: .5px;
  margin-top: 4px;
}
.hero-stat-sep { width: 1px; height: 40px; background: rgba(255,255,255,.12); }

/* Hero right — animated cards */
.hero-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.hero-prod-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: all .35s var(--ease-out-expo);
  animation: scaleIn .6s both;
}
.hero-prod-card:nth-child(1) { animation-delay: .3s; }
.hero-prod-card:nth-child(2) { animation-delay: .4s; }
.hero-prod-card:nth-child(3) { animation-delay: .5s; }
.hero-prod-card:nth-child(4) { animation-delay: .6s; }
.hero-prod-card:hover {
  background: rgba(255,255,255,.1);
  transform: translateY(-5px) scale(1.02);
  border-color: rgba(61,189,217,.4);
  box-shadow: 0 16px 40px rgba(0,0,0,.3);
}
.hero-card-img { height: 110px; overflow: hidden; }
.hero-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.hero-prod-card:hover .hero-card-img img { transform: scale(1.1); }
.hero-card-body { padding: 14px 16px 16px; }
.hero-card-tag {
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--teal3);
  margin-bottom: 5px;
}
.hero-card-body h4 { color: #fff; font-size: 12.5px; font-weight: 600; margin-bottom: 4px; }
.hero-card-body p { color: rgba(255,255,255,.42); font-size: 11px; line-height: 1.5; }

/* Scroll indicator */
.hero-scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fadeIn 1s 1.2s both;
}
.scroll-text {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
}
.scroll-mouse {
  width: 22px; height: 34px;
  border: 1.5px solid rgba(255,255,255,.2);
  border-radius: 11px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.scroll-wheel {
  width: 3px; height: 6px;
  background: rgba(255,255,255,.5);
  border-radius: 2px;
  animation: scrollWheel 1.8s ease-in-out infinite;
}
@keyframes scrollWheel {
  0%, 100% { transform: translateY(0); opacity: 1; }
  80%       { transform: translateY(8px); opacity: 0; }
}

/* ── MARQUEE BAND ── */
.marquee-band {
  background: var(--red);
  padding: 13px 0;
  overflow: hidden;
  position: relative;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 22s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 32px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  white-space: nowrap;
}
.marquee-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── INTRO SECTION ── */
.home-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: 520px;
}
.intro-img-side { position: relative; overflow: hidden; }
.intro-img-side img {
  width: 100%; height: 100%;
  object-fit: cover;
  min-height: 500px;
  transition: transform .6s ease;
}
.intro-img-side:hover img { transform: scale(1.04); }
.intro-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(2,22,39,.2), rgba(10,110,138,.15));
}
.intro-text-side {
  padding: 88px 5vw 88px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--offwhite);
}
.intro-text-side .section-desc { max-width: 100%; }

/* ── PRODUCTS GRID ── */
.home-products { padding: 96px 5vw; background: #fff; }
.products-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 52px;
  flex-wrap: wrap;
  gap: 20px;
}
.prod-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  overflow: hidden;
  border-radius: 4px;
}
.prod-card {
  position: relative;
  cursor: pointer;
  border-right: 1px solid var(--border);
  overflow: hidden;
  transition: all .35s var(--ease-out-expo);
}
.prod-card:last-child { border-right: none; }
.prod-card-img { height: 210px; overflow: hidden; position: relative; }
.prod-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease-out-expo);
}
.prod-card:hover .prod-card-img img { transform: scale(1.08); }
.prod-card-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(2,22,39,.55) 0%, transparent 50%);
  transition: opacity .35s;
}
.prod-card:hover .prod-card-img-overlay { opacity: .4; }
.prod-cat-label {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
  z-index: 2;
}
.prod-card-body { padding: 26px 24px 30px; }
.prod-card-body h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 9px;
  line-height: 1.3;
}
.prod-card-body p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 18px;
}
.prod-card-arrow {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  font-size: 15px;
  transition: all .3s;
}
.prod-card:hover .prod-card-arrow {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
  transform: rotate(-45deg);
}

/* ── FEATURED / WHY US ── */
.home-featured { padding: 96px 5vw; background: var(--offwhite); }
.feat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 28px;
  margin-top: 52px;
}
.feat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: all .35s var(--ease-out-expo);
}
.feat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(2,22,39,.1);
  border-color: rgba(10,110,138,.3);
}
.feat-card-img { height: 200px; overflow: hidden; }
.feat-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.feat-card:hover .feat-card-img img { transform: scale(1.08); }
.feat-card-body { padding: 24px 26px 28px; }
.feat-eyebrow {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}
.feat-card-body h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: 10px;
}
.feat-card-body p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

/* ── CTA BANNER ── */
.home-cta {
  position: relative;
  overflow: hidden;
  padding: 108px 5vw;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}
.home-cta-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1582719471384-894fbb16e074?w=1600&q=80');
  background-size: cover;
  background-position: center;
  animation: slowZoom 15s ease-in-out infinite alternate;
}
@keyframes slowZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.05); }
}
.home-cta-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(2,22,39,.94) 35%, rgba(10,110,138,.7) 100%);
}
.home-cta-txt { position: relative; z-index: 2; }
.home-cta-txt .section-eyebrow { color: rgba(255,255,255,.45); }
.home-cta-txt h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 46px);
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
  margin-top: 10px;
}
.home-cta-txt h2 em { font-style: italic; color: #8dd8f0; font-weight: 400; }
.home-cta-txt p {
  font-size: 15px;
  color: rgba(255,255,255,.6);
  line-height: 1.78;
  margin-top: 14px;
  max-width: 520px;
}
.home-cta-action {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

/* ── RESPONSIVE ── */

/* Tablet landscape (≤ 1100px) */
@media (max-width: 1100px) {
  .hero-right { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: clamp(36px, 5vw, 58px); }
}

/* Tablet (≤ 1024px) */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; gap: 0; }
  .hero-right { display: none; }
  .hero { height: auto; min-height: 560px; padding: 70px 0 80px; }
  .hero-content { padding: 0 5vw; }
  .hero-left { max-width: 100%; }
  .hero p { max-width: 100%; }

  .prod-cards-grid { grid-template-columns: 1fr 1fr; }
  .prod-card:nth-child(2) { border-right: none; }
  .prod-card:nth-child(1),
  .prod-card:nth-child(2) { border-bottom: 1px solid var(--border); }

  .feat-grid { grid-template-columns: 1fr 1fr; }
  .home-intro { grid-template-columns: 1fr; }
  .home-intro .intro-img-side { min-height: 320px; }
  .home-intro .intro-img-side::after { display: none; }
  .intro-text-side { padding: 56px 5vw; }

  .home-cta { grid-template-columns: 1fr; gap: 32px; padding: 72px 5vw; }
  .home-cta-action { flex-direction: row; align-items: center; flex-wrap: wrap; }

  .hero-stats { gap: 22px; }
  .stats-band { grid-template-columns: 1fr 1fr; }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(1),
  .stat-item:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,.08); }
}

/* Tablet portrait (≤ 768px) */
@media (max-width: 768px) {
  .hero { min-height: 500px; padding: 56px 0 72px; }
  .hero h1 { font-size: clamp(34px, 8vw, 52px); }
  .hero p { font-size: 15px; }
  .hero-badge { font-size: 9px; padding: 6px 12px; }
  .hero-stats { gap: 16px; padding-top: 28px; margin-top: 36px; }
  .hero-stat-num { font-size: 28px; }
  .hero-stat-label { font-size: 10px; }
  .hero-btns { gap: 10px; }

  .marquee-item { font-size: 10px; padding: 0 22px; }

  .home-products { padding: 64px 5vw; }
  .home-featured { padding: 64px 5vw; }
  .home-cta { padding: 60px 5vw; }

  .feat-grid { grid-template-columns: 1fr; gap: 20px; }

  .stats-band { padding: 0 5vw; }
  .stat-item { padding: 24px 16px; }
  .stat-num { font-size: 36px; }

  .hero-scroll-hint { display: none; }
}

/* Mobile (≤ 480px) */
@media (max-width: 480px) {
  .hero { padding: 48px 0 60px; min-height: 460px; }
  .hero h1 { font-size: clamp(30px, 9vw, 44px); }
  .hero-content { padding: 0 18px; }
  .hero-stats { flex-wrap: wrap; gap: 18px; }
  .hero-stat-sep { display: none; }

  .prod-cards-grid { grid-template-columns: 1fr; }
  .prod-card { border-right: none !important; border-bottom: 1px solid var(--border); }
  .prod-card-img { height: 170px; }

  .products-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .home-products { padding: 52px 18px; }
  .home-featured { padding: 52px 18px; }

  .marquee-band { padding: 11px 0; }

  .home-cta { padding: 52px 18px; }
  .home-cta-action { flex-direction: column; align-items: stretch; }
  .home-cta-action .btn-white,
  .home-cta-action .btn-ghost { text-align: center; justify-content: center; }

  .stats-band { grid-template-columns: 1fr 1fr; }
  .stat-num { font-size: 32px; }
  .stat-item { padding: 20px 12px; }
}
