/*! Draftingware Confidential. Copyright (c) 2024–2026 Draftingware Technologies Pvt. Ltd. All rights reserved. */

/* ─── Hero section ───────────────────────────────────────── */
.hero {
  display: block;
  height: 100vh;
  padding: 74px 20px 10px;
  box-sizing: border-box;
}

/* ─── Hero box ───────────────────────────────────────────── */
.hero-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  height: 100%;
  min-height: unset;
  border-radius: var(--hero-box-radius);
  padding-top: 0;
  padding-left: 60px;
  padding-right: 60px;
  padding-bottom: 0;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  background: var(--color-bg-base);
}

/* Subtle inner glow */
.hero-box::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    to top right,
    rgba(75, 97, 221, 0.04) 0%,
    rgba(0, 0, 0, 0) 100%
  );
  pointer-events: none;
  z-index: 0;
}

/* ─── Content row ────────────────────────────────────────── */
.hero-content {
  flex: 0 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  position: relative;
  z-index: 1;
  width: 100%;
}

/* ─── Left column ────────────────────────────────────────── */
.hero-left {
  width: auto;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: 0;
}

/* "Built" — FIX 5: explicit px values, gradient fill */
.hero-built {
  font-size:   clamp(72px, 10.8vw, 156px);
  line-height: clamp(68px, 10.4vw, 150px);
  letter-spacing: -0.04em;
  font-weight: 700;
  width: 100%;
  background: linear-gradient(
    140deg,
    #1D1D1F 0%,
    #6E6E73 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0;
}

.hero-subtext {
  font-size: 18px;
  line-height: 31px;
  color: var(--color-text-secondary);
  max-width: none;
  width: 100%;
  margin-top: 12px;
  margin-bottom: 0;
  padding-top: 0;
}

/* ─── Mobile fallback word ──────────────────────────────── */
.hero-word-fallback {
  display:             none;
  font-family:         "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size:           clamp(56px, 18vw, 96px);
  font-weight:         700;
  letter-spacing:      -0.04em;
  line-height:         1;
  color:               transparent;
  -webkit-text-stroke: 1px rgba(0, 0, 0, 0.25);
  margin-top:          24px;
  opacity:             1;
  transition:          opacity 0.5s ease;
  user-select:         none;
}

.hero-word-fallback.is-fading {
  opacity: 0;
}

/* ─── Right column ───────────────────────────────────────── */
.hero-right {
  flex: 0 0 560px;
  width: 560px;
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#hero-particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  pointer-events: none;
}


/* ─── Scroll mouse — pinned to bottom centre ─────────────── */
.scroll-mouse {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  justify-content: center;
}

/* 23×36px pill */
.scroll-mouse__dot {
  display: block;
  width: 23px;
  height: 36px;
  border-radius: 10px;
  background: var(--color-bg-base);
  border: 1.5px solid rgba(0, 0, 0, 0.35);
  position: relative;
}

/* Dot inside the pill */
.scroll-mouse__dot::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 6px;
  border-radius: 2px;
  background: #1D1D1F;
  opacity: 0.5;
  animation: scrollDotDrop 1.6s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

@keyframes scrollDotDrop {
  0%   { opacity: 1; transform: translateX(-50%) translateY(0); }
  80%  { opacity: 0; transform: translateX(-50%) translateY(14px); }
  100% { opacity: 0; transform: translateX(-50%) translateY(14px); }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-mouse__dot::before {
    animation: none;
    opacity: 0.5;
  }
  #hero-particle-canvas { display: none; }
}
