/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base */
html, body {
  height: 100%;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #0A1B2A;
  color: #ffffff;
}

/* HERO */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Diagonal technical background */
.tech-bg {
  position: absolute;
  inset: 0;
  background-color: #0A1B2A;
  background-image:
    repeating-linear-gradient(
      135deg,
      rgba(137,182,84,0.08) 0px,
      rgba(137,182,84,0.08) 1px,
      transparent 1px,
      transparent 80px
    ),
    repeating-linear-gradient(
      45deg,
      rgba(255,255,255,0.035) 0px,
      rgba(255,255,255,0.035) 1px,
      transparent 1px,
      transparent 120px
    );
  animation: drift 40s linear infinite;
}

/* Background movement */
@keyframes drift {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 600px 600px, -600px 600px; }
}

/* Content */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 2rem;
  text-align: center;
}

/* Brand */
.brand {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #89B654;
  margin-bottom: 2rem;
}

/* Title */
.hero-content h1 {
  font-size: clamp(3rem, 8vw, 4.5rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  margin-bottom: 1.8rem;
}

/* Paragraph */
.hero-content p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #cfd8dc;
  margin-bottom: 3rem;
}

/* Actions */
.actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

/* Buttons */
.btn {
  padding: 0.85rem 1.8rem;
  border-radius: 4px;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.25s ease;
}

/* Primary */
.btn.primary {
  background: #89B654;
  color: #0A1B2A;
  font-weight: 600;
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(137,182,84,0.35);
}

/* Ghost */
.btn.ghost {
  border: 1px solid rgba(255,255,255,0.35);
  color: #ffffff;
}

.btn.ghost:hover {
  background: rgba(255,255,255,0.08);
}

/* Launch */
.launch {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

/* ----------------------------- */
/* TYPEWRITER TEXT ANIMATION */
/* ----------------------------- */

.typewriter {
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid rgba(137,182,84,0.8);
  width: 0;
  animation:
    typing 1.8s steps(20, end) forwards,
    blink 0.8s step-end infinite;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  animation: revealText 0.9s ease forwards;
}

.delay-2 {
  animation-delay: 2.2s;
}

@keyframes revealText {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.delay-text {
  white-space: normal;
  border-right: none;
  animation:
    typingText 3.2s steps(60, end) forwards;
}

/* Typing animations */
@keyframes typing {
  from { width: 0; }
  to   { width: 100%; }
}

@keyframes typingText {
  from { max-height: 0; opacity: 0; }
  to   { max-height: 200px; opacity: 1; }
}

@keyframes blink {
  50% { border-color: transparent; }
}

/* Fade elements */
.fade-in {
  opacity: 0;
  animation: fadeUp 1s ease forwards;
  animation-delay: 3.6s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile */
@media (max-width: 600px) {
  .actions {
    flex-direction: column;
  }
}
