/* ==========================================================================
   Stryva, global stylesheet
   ========================================================================== */

:root {
  --bg: #000000;
  --fg: #ffffff;
  --accent: #00f400;
  --muted: rgba(255, 255, 255, 0.64);
  --muted-2: rgba(255, 255, 255, 0.4);
  --border: rgba(255, 255, 255, 0.1);
  --border-soft: rgba(255, 255, 255, 0.06);
  --surface: rgba(255, 255, 255, 0.03);
  --surface-2: rgba(255, 255, 255, 0.05);
  --accent-glow: rgba(0, 244, 0, 0.14);
  --font-heading: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* Film grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
}

p {
  margin: 0;
}

.accent {
  color: var(--accent);
}

.micro-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 16px;
  font-weight: 600;
}

.section {
  padding: 120px 0;
  position: relative;
}

.section h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 16px;
}

.section-sub {
  color: var(--muted);
  max-width: 560px;
  font-size: 17px;
  margin-bottom: 56px;
}

/* Centred section intros (services / process / about / contact) */
#services .container > .micro-label,
#services .container > h2,
#services .container > .section-sub,
#how-it-works .container > .micro-label,
#how-it-works .container > h2,
#how-it-works .container > .section-sub {
  text-align: center;
}

#services .container > .section-sub,
#how-it-works .container > .section-sub {
  margin-left: auto;
  margin-right: auto;
}

.about-inner {
  text-align: center;
}

.about-inner p {
  max-width: 680px;
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #000000;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(0, 244, 0, 0.45);
}

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ==========================================================================
   Nav
   ========================================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.02em;
}

.logo img {
  height: 32px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
  margin-right: 32px;
}

.nav-links a {
  font-size: 15px;
  color: var(--muted);
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a:hover {
  color: var(--fg);
}

.nav-cta {
  padding: 11px 22px;
  font-size: 14px;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--fg);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  padding: 140px 0 120px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -220px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, var(--accent-glow) 0%, rgba(0, 244, 0, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 32px;
  background: var(--surface);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(0, 244, 0, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 244, 0, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(0, 244, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 244, 0, 0); }
}

.hero h1 {
  font-size: clamp(38px, 6vw, 68px);
  letter-spacing: -0.02em;
}

.accent-line {
  width: 72px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin: 28px auto;
}

.hero .lead {
  font-size: 19px;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 40px;
}

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

/* ==========================================================================
   Capability strip
   ========================================================================== */

.strip {
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0));
}

.strip-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 48px 24px;
}

.strip-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 244, 0, 0.1);
  border: 1px solid rgba(0, 244, 0, 0.3);
  color: var(--accent);
  font-size: 18px;
  flex-shrink: 0;
}

.strip-label {
  font-size: 14px;
  color: var(--muted);
  font-family: var(--font-heading);
  font-weight: 500;
}

/* ==========================================================================
   Services
   ========================================================================== */

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

.card {
  position: relative;
  padding: 36px 28px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 244, 0, 0.35);
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: radial-gradient(320px circle at var(--x, 50%) var(--y, 50%), rgba(0, 244, 0, 0.14), transparent 70%);
  pointer-events: none;
}

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

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 244, 0, 0.08);
  color: var(--accent);
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.card p {
  color: var(--muted);
  font-size: 15px;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   How it works
   ========================================================================== */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 780px;
  margin: 0 auto;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 26px;
  left: calc((100% - 64px) / 6);
  right: calc((100% - 64px) / 6);
  height: 1px;
  background: var(--border);
  z-index: 0;
}

.step {
  position: relative;
  z-index: 1;
  text-align: center;
}

.step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--accent);
  margin: 0 auto 24px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.step:hover .step-num {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(0, 244, 0, 0.25);
}

.step h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.step p {
  color: var(--muted);
  font-size: 15px;
}

/* ==========================================================================
   About
   ========================================================================== */

.about-inner {
  max-width: 760px;
}

.about-inner p {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.75;
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-section {
  position: relative;
  text-align: center;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  bottom: -260px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 700px;
  background: radial-gradient(circle, var(--accent-glow) 0%, rgba(0, 244, 0, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.contact-section .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-section .micro-label,
.contact-section h2,
.contact-section .section-sub {
  text-align: center;
}

.contact-section .section-sub {
  margin-left: auto;
  margin-right: auto;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.contact-email {
  color: var(--muted);
  font-size: 15px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.contact-email:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ==========================================================================
   Footer
   ========================================================================== */

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

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}

.footer-inner .logo {
  margin-right: auto;
}

.footer-inner a {
  color: var(--muted);
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-inner a:hover {
  color: var(--accent);
}

.copyright {
  width: 100%;
  color: var(--muted-2);
  font-size: 13px;
  margin-top: 16px;
}

/* ==========================================================================
   Privacy / text page
   ========================================================================== */

.legal {
  padding: 160px 0 120px;
  max-width: 760px;
  margin: 0 auto;
}

.legal .updated {
  color: var(--muted-2);
  font-size: 14px;
  margin-bottom: 48px;
}

.legal h1 {
  font-size: clamp(32px, 5vw, 46px);
  margin-bottom: 16px;
}

.legal h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  margin-top: 48px;
  margin-bottom: 14px;
  color: var(--fg);
}

.legal p, .legal li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.legal ul {
  padding-left: 20px;
  margin: 12px 0;
}

.legal li {
  margin-bottom: 8px;
}

.legal a {
  color: var(--accent);
  border-bottom: 1px solid rgba(0, 244, 0, 0.35);
}

.legal a:hover {
  border-color: var(--accent);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .cards {
    grid-template-columns: 1fr;
  }

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

  .steps::before {
    display: none;
  }

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

@media (max-width: 760px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.97);
    border-bottom: 1px solid var(--border-soft);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-links.open {
    max-height: 320px;
  }

  .nav-links a {
    width: 100%;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-soft);
  }

  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .section {
    padding: 88px 0;
  }

  .hero {
    padding: 120px 0 80px;
  }
}

@media (max-width: 520px) {
  .strip-inner {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
