/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

body {
  background: #0b1a12;
  color: #fff;
  overflow-x: hidden;
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== BACKGROUND IMAGE with Ken Burns effect ===== */
.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('https://cdn.codia.ai/projects/16acd679-d703-4719-9ec6-10d8300a2dd2/resource/gemini.jpg');
  background-size: cover;
  background-position: center 60%;
  transform-origin: center center;
  animation: kenBurns 18s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes kenBurns {
  0%   { transform: scale(1)    translate(0, 0); }
  33%  { transform: scale(1.08) translate(-1%, 1%); }
  66%  { transform: scale(1.12) translate(1.5%, -0.5%); }
  100% { transform: scale(1.06) translate(-0.5%, 0.5%); }
}

/* ===== OVERLAY LAYERS ===== */
.hero__overlay-dark {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(0, 15, 6, 0.55) 0%,
    rgba(5, 20, 10, 0.35) 40%,
    rgba(0, 10, 4, 0.65) 100%
  );
}

.hero__overlay-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(0,12,5,0.85) 0%, transparent 100%);
}

.hero__overlay-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 20%;
  background: linear-gradient(to bottom, rgba(0,10,4,0.5) 0%, transparent 100%);
}

/* ===== ANIMATED ENERGY LINES ===== */
.hero__lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.eline {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 200, 60, 0.6), transparent);
  animation: lineSlide 4s linear infinite;
  opacity: 0;
}

.eline:nth-child(1) { top: 30%; width: 60%; left: -60%; animation-delay: 0s; animation-duration: 3.5s; }
.eline:nth-child(2) { top: 55%; width: 80%; left: -80%; animation-delay: 1.2s; animation-duration: 4.2s; }
.eline:nth-child(3) { top: 70%; width: 50%; left: -50%; animation-delay: 2.4s; animation-duration: 3.8s; }
.eline:nth-child(4) { top: 42%; width: 70%; left: -70%; animation-delay: 0.8s; animation-duration: 5s; }
.eline:nth-child(5) { top: 18%; width: 45%; left: -45%; animation-delay: 3s; animation-duration: 4.5s; }

@keyframes lineSlide {
  0%   { left: -80%; opacity: 0; }
  10%  { opacity: 1; }
  80%  { opacity: 0.8; }
  100% { left: 110%; opacity: 0; }
}

/* ===== PARTICLE DOTS ===== */
.hero__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 210, 80, 0.5);
  animation: particleFloat linear infinite;
}

/* ===== CONTENT ===== */
.hero__content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 24px;
  max-width: 860px;
}

/* Tag line above */
.hero__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #f5c842;
  border: 1px solid rgba(245, 200, 66, 0.4);
  padding: 6px 18px;
  border-radius: 2px;
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.8s ease forwards 0.4s;
}

/* Brand logos */
.hero__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.9s ease forwards 0.7s;
}

.logo-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 28px;
}

.logo-block + .logo-block {
  border-left: none;
}

.logo-abbr {
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1;
  color: #fff;
  font-style: italic;
}

.logo-leaf {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-left: 3px;
  vertical-align: super;
  position: relative;
  top: -4px;
}

.logo-leaf svg {
  width: 100%;
  height: 100%;
}

.logo-sub {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  margin-top: 4px;
  font-weight: 500;
}

/* Main headline */
.hero__headline {
  font-size: clamp(30px, 5.5vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 1s ease forwards 1s;
}

.hero__headline .accent {
  color: #f5c842;
  display: block;
}

/* Sub text */
.hero__sub {
  font-size: clamp(14px, 1.8vw, 18px);
  color: rgba(255,255,255,0.75);
  line-height: 1.65;
  max-width: 580px;
  margin: 0 auto 36px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.9s ease forwards 1.3s;
}

/* CTAs */
.hero__cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.9s ease forwards 1.6s;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: #f5c842;
  color: #0b1a12;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.btn-primary:hover {
  background: #ffd95a;
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: transparent;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.btn-secondary:hover {
  border-color: #f5c842;
  color: #f5c842;
  transform: translateY(-2px);
}

/* ===== STATS BAR ===== */
.hero__stats {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 0;
  opacity: 0;
  animation: fadeUp 0.9s ease forwards 2s;
}

.stat-item {
  padding: 12px 32px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.15);
}

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

.stat-num {
  font-size: 26px;
  font-weight: 900;
  color: #f5c842;
  line-height: 1;
  display: block;
}

.stat-label {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-top: 4px;
  display: block;
}

/* ===== SCROLL INDICATOR ===== */
.scroll-hint {
  position: absolute;
  bottom: 100px;
  right: 36px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0;
  animation: fadeIn 1s ease forwards 2.4s;
}

.scroll-hint__label {
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  writing-mode: vertical-rl;
}

.scroll-hint__line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(245,200,66,0.7), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.15); }
}

/* ===== PULSE RING on energy tower area ===== */
.hero__pulse {
  position: absolute;
  top: 42%;
  right: 30%;
  z-index: 5;
  pointer-events: none;
}

.pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  width: 60px;
  height: 60px;
  border: 1px solid rgba(245,200,66,0.6);
  border-radius: 50%;
  animation: pulseRing 2.5s ease-out infinite;
}

.pulse-ring:nth-child(2) { animation-delay: 0.8s; }
.pulse-ring:nth-child(3) { animation-delay: 1.6s; }

@keyframes pulseRing {
  0%   { width: 20px; height: 20px; opacity: 0.9; }
  100% { width: 120px; height: 120px; opacity: 0; }
}

/* ===== KEYFRAMES ===== */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  to { opacity: 1; }
}

@keyframes particleFloat {
  0%   { transform: translateY(0) scale(1); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.6; }
  100% { transform: translateY(-100vh) scale(0.5); opacity: 0; }
}

/* ===== LEGAL SECTION ===== */
.legal {
  background: #0d1f14;
  padding: 80px 24px 88px;
  position: relative;
}

.legal__container {
  max-width: 1100px;
  margin: 0 auto;
}

.legal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 24px;
}

.legal__title {
  font-family: 'Bebas Neue', 'Inter', sans-serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 400;
  color: #fff;
  line-height: 1.0;
  letter-spacing: 1px;
}

.legal__title span {
  color: #f5c842;
}

.legal__icon {
  flex-shrink: 0;
  opacity: 0.85;
  margin-top: 4px;
}

.legal__list-title {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(245,200,66,0.75);
  margin-bottom: 20px;
  padding-left: 2px;
}

.legal__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 36px;
}

.legal__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 4px;
  text-decoration: none;
  color: rgba(255,255,255,0.85);
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}

.legal__card:hover {
  background: rgba(245,200,66,0.09);
  border-color: rgba(245,200,66,0.45);
  color: #f5c842;
  transform: translateY(-2px);
}

.legal__card:hover .legal__arrow {
  transform: translateX(5px);
  color: #f5c842;
}

.legal__card-text {
  flex: 1;
}

.legal__arrow {
  color: rgba(245,200,66,0.6);
  font-size: 18px;
  flex-shrink: 0;
  transition: transform 0.2s, color 0.2s;
}

/* Safety notice */
.legal__safety {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  background: rgba(245,200,66,0.06);
  border: 1px solid rgba(245,200,66,0.2);
  border-radius: 5px;
  padding: 20px 24px;
}

.legal__safety-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  background: #f5c842;
  color: #0d1f14;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1px;
  text-decoration: none;
  text-transform: uppercase;
  border-radius: 3px;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s;
  flex-shrink: 0;
}

.legal__safety-btn:hover {
  background: #ffd95a;
  transform: translateY(-2px);
}

.legal__safety-text {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-size: 15px;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
}

.legal__safety-text strong {
  color: #fff;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .hero__logos { gap: 0; }
  .logo-block { padding: 0 16px; }
  .logo-abbr { font-size: 28px; }
  .stat-item { padding: 10px 18px; }
  .stat-num { font-size: 20px; }
  .scroll-hint { display: none; }
  .hero__stats { flex-wrap: wrap; justify-content: center; }
  .legal__grid { grid-template-columns: 1fr; }
  .legal__header { flex-direction: column; gap: 12px; }
  .legal__icon { display: none; }
  .legal__safety { flex-direction: column; align-items: flex-start; }
}
