/* ============================================
   GoKinetic — Styles
   Dark theme, electric green (#00E676), cyan (#00BCD4)
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --green: #00E676;
  --green-dim: rgba(0, 230, 118, 0.15);
  --green-glow: rgba(0, 230, 118, 0.4);
  --cyan: #00BCD4;
  --cyan-dim: rgba(0, 188, 212, 0.15);
  --bg: #0a0f0a;
  --bg-raised: #111a11;
  --bg-card: #0f1a0f;
  --text: #e0e8e0;
  --text-dim: #8a9a8a;
  --text-bright: #ffffff;
  --border: rgba(0, 230, 118, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Space Grotesk', 'Inter', system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: var(--green);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--cyan);
}

img {
  max-width: 100%;
  display: block;
}

/* --- Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children inside grids */
.services__grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.services__grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.services__grid .reveal:nth-child(4) { transition-delay: 0.3s; }

.impact__grid .reveal:nth-child(2) { transition-delay: 0.12s; }
.impact__grid .reveal:nth-child(3) { transition-delay: 0.24s; }
.impact__grid .reveal:nth-child(4) { transition-delay: 0.36s; }

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: background var(--transition), box-shadow var(--transition);
}

.nav.is-scrolled {
  background: rgba(10, 15, 10, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-bright);
}

.nav__logo:hover {
  color: var(--green);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__links a {
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}

.nav__links a:hover {
  color: var(--green);
}

.nav__cta {
  padding: 8px 20px;
  border: 1px solid var(--green);
  border-radius: 100px;
  color: var(--green) !important;
  font-weight: 600;
}

.nav__cta:hover {
  background: var(--green-dim);
}

.nav__mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* CSS Speed Lines */
.hero__speed-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.speed-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  opacity: 0;
  animation: speedLine 3s ease-in-out infinite;
}

.speed-line--1 { top: 15%; left: -20%; width: 40%; animation-delay: 0s; }
.speed-line--2 { top: 30%; left: -10%; width: 55%; animation-delay: 0.4s; height: 2px; }
.speed-line--3 { top: 45%; left: -30%; width: 35%; animation-delay: 0.8s; }
.speed-line--4 { top: 60%; left: -15%; width: 50%; animation-delay: 1.2s; height: 2px; }
.speed-line--5 { top: 75%; left: -25%; width: 45%; animation-delay: 1.6s; }
.speed-line--6 { top: 22%; left: -5%; width: 30%; animation-delay: 2.0s; background: linear-gradient(90deg, transparent, var(--cyan), transparent); }
.speed-line--7 { top: 52%; left: -18%; width: 38%; animation-delay: 2.4s; background: linear-gradient(90deg, transparent, var(--cyan), transparent); }
.speed-line--8 { top: 85%; left: -12%; width: 42%; animation-delay: 2.8s; }

@keyframes speedLine {
  0% {
    transform: translateX(0);
    opacity: 0;
  }
  15% {
    opacity: 0.6;
  }
  100% {
    transform: translateX(calc(100vw + 100%));
    opacity: 0;
  }
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(3.5rem, 10vw, 8rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.hero__title-go {
  color: var(--text-bright);
}

.hero__title-kinetic {
  color: var(--green);
  text-shadow: 0 0 40px var(--green-glow), 0 0 80px rgba(0, 230, 118, 0.15);
}

.hero__tagline {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--cyan);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero__description {
  max-width: 560px;
  margin: 0 auto 36px;
  font-size: 1.1rem;
  color: var(--text-dim);
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Scroll hint */
.hero__scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
}

.hero__scroll-arrow {
  width: 24px;
  height: 24px;
  border-right: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(45deg);
  animation: scrollBounce 2s ease-in-out infinite;
  opacity: 0.5;
}

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.3; }
  50% { transform: rotate(45deg) translate(6px, 6px); opacity: 0.7; }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn--primary {
  background: var(--green);
  color: #0a0f0a;
  box-shadow: 0 0 24px rgba(0, 230, 118, 0.25);
}

.btn--primary:hover {
  background: #00ff84;
  color: #0a0f0a;
  box-shadow: 0 0 40px rgba(0, 230, 118, 0.4);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--green);
  border: 1.5px solid rgba(0, 230, 118, 0.4);
}

.btn--outline:hover {
  background: var(--green-dim);
  color: var(--green);
  border-color: var(--green);
  transform: translateY(-2px);
}

.btn--full {
  width: 100%;
  justify-content: center;
}

/* --- Section Header --- */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header__label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
  padding: 4px 14px;
  border: 1px solid rgba(0, 230, 118, 0.2);
  border-radius: 100px;
  background: var(--green-dim);
}

.section-header__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-header__subtitle {
  max-width: 560px;
  margin: 0 auto;
  color: var(--text-dim);
  font-size: 1.05rem;
}

/* --- Services --- */
.services {
  padding: 100px 0;
  position: relative;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: all var(--transition);
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: radial-gradient(circle at 50% 0%, var(--green-dim), transparent 70%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.service-card:hover {
  border-color: rgba(0, 230, 118, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(0, 230, 118, 0.08), 0 0 0 1px rgba(0, 230, 118, 0.1);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card__icon {
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.service-card__title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.service-card__text {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.service-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  position: relative;
  z-index: 1;
}

.service-card__tags li {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  background: rgba(0, 230, 118, 0.04);
}

/* --- Impact / Metrics --- */
.impact {
  padding: 100px 0;
  background: var(--bg-raised);
  position: relative;
}

.impact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  opacity: 0.3;
}

.impact__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.metric {
  padding: 32px 16px;
}

.metric__number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  display: inline;
}

.metric__suffix {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--green);
}

.metric__label {
  margin-top: 12px;
  font-size: 0.95rem;
  color: var(--text-dim);
  font-weight: 500;
}

/* --- Tech Stack --- */
.stack {
  padding: 100px 0;
}

.stack__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dim);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  cursor: default;
}

.tech-badge:hover {
  color: var(--green);
  border-color: rgba(0, 230, 118, 0.3);
  background: var(--green-dim);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 230, 118, 0.1);
}

/* --- Contact --- */
.contact {
  padding: 100px 0;
  background: var(--bg-raised);
  position: relative;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.3;
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact__text {
  color: var(--text-dim);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.contact__email {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--green);
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 230, 118, 0.2);
  margin-bottom: 24px;
  transition: all var(--transition);
}

.contact__email:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}

.contact__hub-link {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.contact__hub-link a {
  color: var(--cyan);
  font-weight: 500;
}

/* Form */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-bright);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input::placeholder {
  color: rgba(138, 154, 138, 0.5);
}

.form-input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-dim);
}

.form-input--textarea {
  resize: vertical;
  min-height: 100px;
}

.contact__form-status {
  margin-top: 16px;
  font-size: 0.9rem;
  font-weight: 500;
  min-height: 24px;
}

.contact__form-status.success {
  color: var(--green);
}

.contact__form-status.error {
  color: #ff5252;
}

/* --- Footer --- */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer__tagline {
  color: var(--text-dim);
  font-size: 0.85rem;
  padding-left: 20px;
  border-left: 1px solid var(--border);
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__links a {
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 500;
}

.footer__links a:hover {
  color: var(--green);
}

.footer__copy {
  width: 100%;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.8rem;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .impact__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .contact__inner {
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .nav__links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 15, 10, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 999;
  }

  .nav__links.is-open {
    display: flex;
  }

  .nav__links a {
    font-size: 1.2rem;
  }

  .nav__mobile-toggle {
    display: flex;
    z-index: 1001;
  }

  .nav__mobile-toggle.is-open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav__mobile-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .nav__mobile-toggle.is-open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .impact__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .footer__brand {
    flex-direction: column;
  }

  .footer__tagline {
    padding-left: 0;
    border-left: none;
  }

  .footer__links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 3rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .impact__grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    padding: 28px 24px;
  }
}
