/* ============================================================
   DCE SYSTEMS — HOME PAGE STYLES
   home.css — loaded after main.css
   ============================================================ */

/* ─────────────────────────────────────────────
   HERO
   ───────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: clamp(500px, 80vh, 900px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.05);
  transition: transform 8s ease-out;
}

.hero.loaded .hero__bg img {
  transform: scale(1);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.45) 60%, rgba(0,0,0,0.55) 100%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
  padding-top: 72px;
}

.hero__eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.8s var(--ease) 0.3s forwards;
}

.hero__eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cyan);
  flex-shrink: 0;
}

.hero__title {
  font-family: var(--display);
  font-size: clamp(36px, 7vw, 88px);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--white);
  max-width: 800px;
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeUp 0.8s var(--ease) 0.5s forwards;
}

.hero__sub {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 44px;
  opacity: 0;
  animation: heroFadeUp 0.8s var(--ease) 0.7s forwards;
}

.hero__ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: heroFadeUp 0.8s var(--ease) 0.9s forwards;
}

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.4);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  animation: heroFadeUp 0.6s var(--ease) 1.2s forwards;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.3);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { transform: scaleY(1); opacity: 0.3; }
  50% { transform: scaleY(0.6); opacity: 0.8; }
}

@keyframes heroFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─────────────────────────────────────────────
   MARQUEE BAND
   ───────────────────────────────────────────── */
.marquee-band {
  background: var(--bg-dark);
  padding: 16px 0;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.marquee-track {
  display: flex;
  gap: 0;
  animation: marqueeScroll 30s linear infinite;
  white-space: nowrap;
  width: max-content;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  padding: 0 24px;
}

.marquee-item::after {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cyan);
  opacity: 0.6;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ─────────────────────────────────────────────
   DIVISIONS SECTION
   ───────────────────────────────────────────── */
.divisions {
  background: var(--bg);
  padding: clamp(48px, 8vw, 96px) 0;
}

.divisions__header {
  margin-bottom: 56px;
}

.divisions__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: clamp(2px, 1vw, 8px);
}

.division-card {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: pointer;
}

.division-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.division-card:hover img {
  transform: scale(1.06);
}

.division-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.2) 55%, transparent 100%);
  transition: background 0.4s;
}

.division-card:hover .division-card__overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.35) 60%, rgba(0,0,0,0.1) 100%);
}

.division-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 36px 36px 36px;
  transform: translateY(0);
}

.division-card__tag {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 10px;
  display: block;
}

.division-card__title {
  font-family: var(--display);
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 10px;
}

.division-card__desc {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  margin-bottom: 20px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s var(--ease), opacity 0.3s var(--ease);
}

.division-card:hover .division-card__desc {
  max-height: 80px;
  opacity: 1;
}

.division-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan);
  transition: gap 0.2s;
}

.division-card:hover .division-card__link {
  gap: 10px;
}

/* ─────────────────────────────────────────────
   STATS STRIP
   ───────────────────────────────────────────── */
.stats-strip {
  background: var(--bg-dark);
  padding: clamp(48px, 8vw, 80px) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: clamp(2px, 1vw, 8px);
}

.stat-item {
  padding: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 40px);
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.07);
  position: relative;
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-family: var(--display);
  font-size: clamp(36px, 5vw, 68px);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 10px;
  display: block;
}

.stat-number .stat-accent {
  color: var(--cyan);
}

.stat-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}

.stat-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  margin-top: 6px;
}

/* ─────────────────────────────────────────────
   SYSTEM OVERVIEW
   ───────────────────────────────────────────── */
.system-overview {
  padding: clamp(48px, 8vw, 96px) 0;
  background: var(--bg);
}

.system-overview__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
}

.system-diagram {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 40px;
  overflow: hidden;
}

.system-diagram svg {
  width: 100%;
  height: auto;
}

/* Loop node styles */
.loop-node {
  fill: var(--white);
  stroke: var(--line);
  stroke-width: 1.5;
  rx: 8;
  ry: 8;
}

.loop-node--primary {
  fill: var(--cyan-light);
  stroke: rgba(8,145,178,0.3);
}

.loop-node--cdu {
  fill: #111;
  stroke: #111;
}

.loop-label {
  font-family: 'Archivo', sans-serif;
  font-size: 12px;
  font-weight: 600;
  fill: #111;
}

.loop-label--white {
  fill: #fff;
}

.loop-label--small {
  font-size: 10px;
  font-weight: 400;
  fill: #888;
}

.loop-arrow {
  stroke: var(--cyan);
  stroke-width: 2;
  fill: none;
  stroke-dasharray: 8 4;
  animation: dashFlow 2s linear infinite;
}

.loop-arrow--return {
  stroke: #0369a1;
  stroke-dasharray: 8 4;
  animation: dashFlowReverse 2.5s linear infinite;
}

@keyframes dashFlow {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -48; }
}

@keyframes dashFlowReverse {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: 48; }
}

.system-overview__text {
  max-width: 520px;
}

.system-overview__text p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-dim);
  margin-bottom: 16px;
}

.system-spec-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 32px;
}

.system-spec-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--ink-dim);
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.system-spec-list li::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  margin-top: 6px;
  flex-shrink: 0;
}

/* ─────────────────────────────────────────────
   MANUFACTURING PREVIEW
   ───────────────────────────────────────────── */
.manufacturing-preview {
  background: var(--bg-dark);
  overflow: hidden;
}

.manufacturing-preview__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  min-height: 600px;
}

.manufacturing-preview__image {
  position: relative;
  overflow: hidden;
}

.manufacturing-preview__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 8s ease-out;
}

.manufacturing-preview__image:hover img {
  transform: scale(1.04);
}

.manufacturing-preview__content {
  padding: clamp(40px, 6vw, 80px) clamp(28px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.manufacturing-preview__content p {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255,255,255,0.65);
  margin-bottom: 16px;
  max-width: 460px;
}

.mfg-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: clamp(8px, 2vw, 16px);
  margin: 32px 0;
}

.mfg-spec-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: 16px 20px;
}

.mfg-spec-item span {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 6px;
}

.mfg-spec-item p {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin: 0 !important;
}

/* ─────────────────────────────────────────────
   WHY DCE SECTION
   ───────────────────────────────────────────── */
.why-dce {
  background: var(--bg);
  padding: clamp(48px, 8vw, 96px) 0;
}

.why-dce__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(2px, 1vw, 8px);
  margin-top: 56px;
}

.why-card {
  padding: clamp(28px, 4vw, 48px) clamp(24px, 3vw, 40px);
  border: 1px solid var(--line);
  background: var(--bg);
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}

.why-card:hover {
  background: var(--panel);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  z-index: 1;
}

.why-card__icon {
  width: 48px;
  height: 48px;
  background: var(--cyan-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.why-card__icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--cyan-deep);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.why-card h3 {
  font-family: var(--display);
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.why-card p {
  font-size: 15px;
  color: var(--ink-dim);
  line-height: 1.7;
}

/* ─────────────────────────────────────────────
   STANDARDS BAND
   ───────────────────────────────────────────── */
.standards-band {
  background: var(--bg-2);
  padding: clamp(32px, 5vw, 48px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.standards-band__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.standards-band__label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-right: 8px;
  white-space: nowrap;
}

.standard-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  transition: border-color 0.2s, color 0.2s;
}

.standard-badge::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  flex-shrink: 0;
}

.standard-badge:hover {
  border-color: var(--cyan);
  color: var(--cyan-deep);
}

/* ─────────────────────────────────────────────
   EXPLORE PREVIEW
   ───────────────────────────────────────────── */
.explore-preview {
  background: var(--bg);
  padding: clamp(48px, 8vw, 96px) 0;
}

.explore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(12px, 2vw, 24px);
  margin-top: 48px;
}

.explore-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  background: var(--white);
  display: flex;
  flex-direction: column;
}

.explore-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.explore-card__img {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.explore-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.explore-card:hover .explore-card__img img {
  transform: scale(1.05);
}

.explore-card__body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.explore-card__body h3 {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  margin: 12px 0 10px;
  line-height: 1.3;
}

.explore-card__body p {
  font-size: 14px;
  color: var(--ink-dim);
  line-height: 1.6;
  flex: 1;
}

.explore-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-top: 20px;
  transition: gap 0.2s;
}

.explore-card:hover .explore-card__link {
  gap: 10px;
}

/* ─────────────────────────────────────────────
   CTA BAND
   ───────────────────────────────────────────── */
.cta-band {
  background: var(--bg-dark);
  padding: clamp(64px, 10vw, 100px) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(8,145,178,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-band h2 {
  font-family: var(--display);
  font-size: clamp(24px, 5vw, 56px);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 20px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-band p {
  font-size: clamp(15px, 1.5vw, 18px);
  color: rgba(255,255,255,0.55);
  max-width: 480px;
  margin: 0 auto 44px;
  line-height: 1.7;
}

.cta-band .btn-group {
  justify-content: center;
}

/* ─────────────────────────────────────────────
   CONTACT SECTION (Homepage)
   ───────────────────────────────────────────── */
.home-contact {
  background: var(--bg-2);
  padding: clamp(48px, 8vw, 96px) 0;
}

.home-contact__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}

.contact-info__item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
  align-items: flex-start;
}

.contact-info__icon {
  width: 40px;
  height: 40px;
  background: var(--cyan-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info__icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--cyan-deep);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-info__label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 4px;
}

.contact-info__value {
  font-size: 15px;
  color: var(--ink);
  font-weight: 500;
}

.contact-form-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(24px, 4vw, 48px);
}

/* ─────────────────────────────────────────────
   RESPONSIVE — Minimal breakpoints
   ───────────────────────────────────────────── */

/* Hero: fix on landscape phones */
@media (max-height: 520px) and (orientation: landscape) {
  .hero {
    height: auto;
    min-height: 0;
    padding: 90px 0 56px;
  }
  .hero__scroll { display: none; }
}

/* Hide scroll indicator on short screens */
@media (max-height: 640px) {
  .hero__scroll { display: none; }
}

/* Stat borders: stack vertically on small screens */
@media (max-width: 640px) {
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.07); }
  .stat-item:last-child { border-bottom: none; }

  .hero__ctas {
    flex-direction: column;
    align-items: stretch;
  }
  .hero__ctas .btn--primary,
  .hero__ctas .btn--ghost {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

/* Very small phones */
@media (max-width: 360px) {
  .division-card__content { padding: 18px; }
  .division-card__title   { font-size: 20px; }
}
