/* ==========================================================================
   СТИЛІ ГОЛОВНОГО ЕКРАНУ (css/hero.css) - $1M ARCHITECTURAL TECH-BRUTALISM
   ========================================================================== */

.hero-brutal {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background-color: #05080A; /* Глибокий інженерний чорний */
  overflow: hidden;
  padding-top: 80px;
  font-family: 'Inter', sans-serif;
}

/* --- ФОН ТА ІНЖЕНЕРНІ ЕФЕКТИ --- */
.hero-brutal__bg {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1;
}

.hero-brutal__img {
  width: 100%; height: 100%; 
  object-fit: cover; object-position: center;
  animation: brutalZoom 25s ease-out forwards;
  filter: contrast(1.1) brightness(0.85);
}

/* Жорсткий віньєтний градієнт + М'ЯКЕ РОЗЧИНЕННЯ ЗНИЗУ (Gradient Melt) */
.hero-brutal__overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: 
    linear-gradient(to bottom, rgba(5, 8, 10, 0) 70%, #05080A 100%), /* Розчинення в наступний блок */
    radial-gradient(circle at 40% 50%, rgba(5, 8, 10, 0.4) 0%, rgba(5, 8, 10, 0.95) 80%),
    linear-gradient(to right, rgba(5, 8, 10, 0.95) 0%, rgba(5, 8, 10, 0.3) 100%);
}

/* Шум для кінематографічності */
.hero-brutal::after {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");
  z-index: 2; pointer-events: none;
}

/* Інженерна креслярська сітка (Blueprint Grid) */
.blueprint-grid {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px; /* Розмір квадрата креслення */
  z-index: 3; pointer-events: none;
}

/* --- ГІГАНТСЬКА ФОНОВА ТИПОГРАФІКА --- */
.hero-brutal__huge-text {
  position: absolute; top: 50%; left: 5%; transform: translateY(-50%);
  font-size: 24vw; font-weight: 800; line-height: 0.8;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.03); 
  z-index: 5; pointer-events: none; white-space: nowrap;
  letter-spacing: -0.05em; user-select: none;
}

/* --- ВЕРТИКАЛЬНА ВІСЬ ЗЛІВА --- */
.hero-brutal__axis-left {
  position: absolute; top: 0; left: 40px; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 40px;
  z-index: 10; border-left: 1px solid rgba(255, 255, 255, 0.1); padding-left: 15px;
}

.hero-brutal__axis-left span {
  writing-mode: vertical-rl; transform: rotate(180deg);
  color: #64748B; font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; white-space: nowrap;
}

.axis-line { width: 1px; height: 100px; background-color: var(--primary-green); }

/* Архітектурний масштаб */
.architectural-scale {
  position: absolute; bottom: 40px; left: 40px; z-index: 10;
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
}
.scale-line { width: 120px; height: 1px; background: rgba(255, 255, 255, 0.3); position: relative; }
.scale-line::before, .scale-line::after {
  content: ''; position: absolute; top: -4px; width: 1px; height: 9px; background: rgba(255, 255, 255, 0.3);
}
.scale-line::before { left: 0; } .scale-line::after { right: 0; }
.architectural-scale span { font-family: monospace; font-size: 0.65rem; color: #64748B; letter-spacing: 0.1em; }

/* --- КОНТЕЙНЕР --- */
.hero-brutal__container {
  position: relative; z-index: 10; width: 100%;
  display: flex; justify-content: space-between; align-items: flex-end;
  padding-left: 80px; 
}

/* --- ГОЛОВНА ТИПОГРАФІКА --- */
.hero-brutal__content { max-width: 800px; padding-bottom: 20px; }

.hero-brutal__label {
  display: inline-block; color: #fff; background-color: var(--primary-green);
  padding: 6px 16px; font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 25px; 
}

.focus-bracket { color: rgba(255,255,255,0.5); font-weight: 400; margin: 0 4px; }

.hero-brutal__title {
  font-size: clamp(3.5rem, 6.5vw, 6.5rem); font-weight: 800; line-height: 1.1;
  color: #F8FAFC; letter-spacing: -0.04em; margin: 0 0 25px 0; text-transform: uppercase;
}

.title-line { display: block; overflow: hidden; padding: 15px; margin: -15px; }
.title-text { display: block; transform: translateY(110%); }

/* Чистий, брутальний зелений текст без багів */
.text-accent { color: var(--primary-green); text-shadow: 0 0 40px rgba(99, 175, 56, 0.2); }

.hero-brutal__subtitle {
  font-size: clamp(1rem, 1.4vw, 1.2rem); line-height: 1.6;
  color: #94A3B8; max-width: 500px; margin: 0; font-weight: 400; position: relative; z-index: 2;
}

/* --- ІНЖЕНЕРНА ПАНЕЛЬ (Tech-Card) --- */
.hero-brutal__tech-card {
  position: relative; width: 440px; 
  background: rgba(5, 8, 10, 0.65); 
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px; margin-bottom: 40px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s;
}

/* Ефект "левітації" при наведенні мишки */
.hero-brutal__tech-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(99, 175, 56, 0.3);
}

.tech-cross { position: absolute; width: 11px; height: 11px; }
.tech-cross::before, .tech-cross::after { content: ''; position: absolute; background: var(--primary-green); }
.tech-cross::before { top: 5px; left: 0; width: 11px; height: 1px; }
.tech-cross::after { top: 0; left: 5px; width: 1px; height: 11px; }

.top-left { top: -5px; left: -5px; } .top-right { top: -5px; right: -5px; }
.bottom-left { bottom: -5px; left: -5px; } .bottom-right { bottom: -5px; right: -5px; }

.tech-card__header {
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 15px; margin-bottom: 25px;
}

.tech-status {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.7rem; color: #fff; font-weight: 600; letter-spacing: 0.1em;
}

.blink-dot {
  width: 6px; height: 6px; background-color: var(--primary-green);
  border-radius: 50%; animation: blink 1s infinite;
}

.tech-code { font-family: monospace; font-size: 0.75rem; color: #64748B; }

.tech-card__body { height: 60px; position: relative; margin-bottom: 20px; }
.tech-rotator { position: absolute; width: 100%; height: 100%; }

.badge-text {
  position: absolute; top: 0; left: 0; width: 100%;
  font-size: 1.35rem; font-weight: 500; color: #E2E8F0; line-height: 1.4;
  opacity: 0; transform: translateY(15px); transition: all 0.4s ease;
}

.badge-text.is-active { opacity: 1; transform: translateY(0); }

/* Блок телеметрії */
.tech-telemetry {
  display: flex; justify-content: space-between;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  padding-top: 15px; margin-bottom: 30px;
}
.telemetry-item { font-family: monospace; font-size: 0.6rem; color: #64748B; letter-spacing: 0.05em; }
.align-right { text-align: right; }

/* Сувора кнопка (Brutal Button) зі сканером */
.btn-brutal {
  position: relative; width: 100%; background: #fff; color: #0A0D14; border: none; padding: 18px 24px;
  font-size: 0.85rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em;
  display: flex; justify-content: space-between; align-items: center; cursor: pointer; overflow: hidden;
}

/* Ефект сканування на кнопці */
.btn-scan-line {
  position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(99, 175, 56, 0.3), transparent);
  transform: skewX(-20deg); transition: none;
}
.btn-brutal:hover .btn-scan-line { animation: btnScan 0.8s ease; }
.btn-brutal:hover { background: var(--primary-green); color: #fff; }
.btn-brutal .arrow { transition: transform 0.3s ease; }
.btn-brutal:hover .arrow { transform: translateX(5px); }

/* --- СКРОЛ-ІНДИКАТОР ВНИЗУ СПРАВА --- */
.hero-brutal__scroll {
  position: absolute; bottom: 0; right: 60px;
  display: flex; flex-direction: column; align-items: center; gap: 15px;
  text-decoration: none; z-index: 10; padding-bottom: 40px;
}

.scroll-text-vertical {
  writing-mode: vertical-rl; color: var(--text-light);
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.2em; opacity: 0.5;
}

.scroll-line-vertical {
  width: 1px; height: 60px; background-color: rgba(255, 255, 255, 0.1); position: relative; overflow: hidden;
}
.scroll-line-vertical::after {
  content: ''; position: absolute; top: -100%; left: 0; width: 1px; height: 100%;
  background-color: var(--primary-green); animation: scrollDown 2s infinite ease-in-out;
}

/* --- АНІМАЦІЇ ВИЯВУ --- */
.reveal-fade { opacity: 0; animation: fade 1s forwards 0.3s; }
.reveal-up { display: block; transform: translateY(110%); animation: slideUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.5s; }
.title-line:nth-child(2) .reveal-up { animation-delay: 0.65s; }
.reveal-fade-delay { opacity: 0; animation: fade 1s forwards 1.2s; }
.reveal-slide-left { opacity: 0; transform: translateX(50px); animation: slideLeft 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 1.2s; }

@keyframes slideUp { to { transform: translateY(0); } }
@keyframes slideLeft { to { opacity: 1; transform: translateX(0); } }
@keyframes fade { to { opacity: 1; } }
@keyframes brutalZoom { from { transform: scale(1.1); } to { transform: scale(1); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
@keyframes scrollDown { 0% { top: -100%; } 100% { top: 100%; } }
@keyframes btnScan { 0% { left: -100%; } 100% { left: 200%; } }

/* --- АДАПТИВНІСТЬ --- */
@media screen and (max-width: 1200px) {
  .hero-brutal__huge-text { font-size: 30vw; top: 40%; }
  .hero-brutal__container { flex-direction: column; align-items: flex-start; padding-left: 40px; gap: 40px; }
  .hero-brutal__tech-card { width: 100%; max-width: 500px; margin-bottom: 0; }
  .hero-brutal__scroll, .architectural-scale { display: none; }
}

@media screen and (max-width: 768px) {
  .hero-brutal { padding-top: 100px; min-height: 85vh; }
  .hero-brutal__axis-left, .hero-brutal__huge-text { display: none; }
  .blueprint-grid { background-size: 40px 40px; }
  .hero-brutal__container { padding-left: 20px; padding-right: 20px; }
  .hero-brutal__title { font-size: 3rem; }
  .hero-brutal__tech-card { width: 100%; padding: 25px; }
  .badge-text { font-size: 1.1rem; white-space: normal; }
  .tech-telemetry { flex-direction: column; gap: 10px; }
  .telemetry-item.align-right { text-align: left; }
}