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

:root {
  --green:     #5A9E6F;
  --green-2:   #7EBF8A;
  --orange:    #E0945A;
  --peach:     #E8B89A;
  --yellow:    #D4CC8A;
  --lavender:  #9B8ABF;
  --light:     #F0EDE5;
  --dark:      #090909;
  --dark-2:    #1C1C1C;
  --glass:     rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.1);
}

@font-face {
  font-family: 'Axiforma';
  src: local('Axiforma');
  font-display: swap;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Axiforma', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--dark);
  color: var(--light);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Three.js Canvas ────────────────────────────────── */
#attractor-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* ── EMF Pulsing Overlay ────────────────────────────── */
.emf-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(90, 158, 111, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(224, 148, 90, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 80%, rgba(155, 138, 191, 0.05) 0%, transparent 60%);
  animation: emf-pulse 8s ease-in-out infinite alternate;
}

@keyframes emf-pulse {
  0% {
    opacity: 0.4;
    filter: hue-rotate(0deg);
  }
  50% {
    opacity: 0.8;
    filter: hue-rotate(20deg);
  }
  100% {
    opacity: 0.4;
    filter: hue-rotate(0deg);
  }
}

/* ── Content Layer ──────────────────────────────────── */
.content {
  position: relative;
  z-index: 2;
}

/* ── Hero Section ───────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.hero-inner {
  max-width: 720px;
  position: relative;
  z-index: 1;
}

.hero-inner::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140%;
  height: 160%;
  background: radial-gradient(ellipse at center, rgba(9, 9, 9, 0.8) 0%, rgba(9, 9, 9, 0.5) 30%, rgba(9, 9, 9, 0.15) 55%, transparent 75%);
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}

.contact-inner {
  max-width: 600px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.contact-inner::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140%;
  height: 140%;
  background: radial-gradient(ellipse at center, rgba(9, 9, 9, 0.85) 0%, rgba(9, 9, 9, 0.5) 30%, rgba(9, 9, 9, 0.15) 55%, transparent 75%);
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}

.logo-mark {
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
}

.logo-svg {
  width: 100px;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  animation: logo-glow 6s ease-in-out infinite alternate;
}

@keyframes logo-glow {
  0% {
    filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(126, 191, 138, 0.3));
  }
  50% {
    filter: brightness(0) invert(1) drop-shadow(0 0 20px rgba(224, 148, 90, 0.5));
  }
  100% {
    filter: brightness(0) invert(1) drop-shadow(0 0 12px rgba(155, 138, 191, 0.4));
  }
}

.logo-text {
  font-family: 'Axiforma', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
  background: linear-gradient(
    90deg,
    var(--orange) 0%,
    var(--peach) 25%,
    var(--light) 50%,
    var(--green-2) 75%,
    var(--orange) 100%
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: logo-gradient 10s ease-in-out infinite;
}

@keyframes logo-gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.tagline {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: rgba(239, 231, 245, 0.75);
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-bottom: 2.5rem;
}

/* ── Services ───────────────────────────────────────── */
.services {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 3rem;
  white-space: nowrap;
}

.service-item {
  font-size: clamp(0.8rem, 1.8vw, 0.95rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(239, 231, 245, 0.75);
  transition: color 0.3s ease;
}

.service-item:hover {
  color: var(--green-2);
}

.service-sep {
  color: rgba(240, 237, 229, 0.6);
  font-weight: 300;
  margin: 0 0.4rem;
  font-size: 0.9rem;
}

/* ── CTA Button ─────────────────────────────────────── */
.cta-button {
  display: inline-block;
  position: relative;
  padding: 1rem 3rem;
  border: none;
  border-radius: 0;
  color: var(--light);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: transparent;
  transition: all 0.4s ease;
}

.cta-button::before,
.cta-button::after {
  content: '';
  position: absolute;
  transition: all 0.4s ease;
}

/* Top-left and bottom-right corner lines */
.cta-button::before {
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  border-top: 1px solid var(--green-2);
  border-left: 1px solid var(--green-2);
}

.cta-button::after {
  bottom: 0;
  right: 0;
  width: 24px;
  height: 24px;
  border-bottom: 1px solid var(--orange);
  border-right: 1px solid var(--orange);
}

.cta-button:hover {
  color: #fff;
}

.cta-button:hover::before {
  width: 100%;
  height: 100%;
  border-color: var(--green-2);
}

.cta-button:hover::after {
  width: 100%;
  height: 100%;
  border-color: var(--orange);
}

/* ── Contact Section ────────────────────────────────── */
.contact {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem;
}

.contact h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--green-2), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact-lead {
  color: rgba(239, 231, 245, 0.75);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.contact-alt {
  color: rgba(240, 237, 229, 0.45);
  font-size: 0.85rem;
  margin-bottom: 2.5rem;
}

.contact-alt a {
  color: var(--green-2);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-alt a:hover {
  color: var(--light);
}

/* ── Form ───────────────────────────────────────────── */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

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

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(239, 231, 245, 0.5);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--light);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--green-2);
  box-shadow: 0 0 16px rgba(126, 191, 138, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-button {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  border: none;
  border-radius: 100px;
  background: linear-gradient(135deg, var(--green), var(--orange));
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-button:hover {
  box-shadow: 0 0 30px rgba(224, 148, 90, 0.3);
  transform: translateY(-1px);
}

/* ── Footer ─────────────────────────────────────────── */
footer {
  text-align: center;
  padding: 3rem 2rem;
  color: rgba(239, 231, 245, 0.25);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

/* ── Fade-in animations ─────────────────────────────── */
.hero-inner > * {
  opacity: 0;
  transform: translateY(20px);
  animation: fade-up 0.8s ease forwards;
}

.hero-inner > .logo-text {
  animation: fade-up 0.8s ease forwards, logo-gradient 10s ease-in-out infinite;
  animation-delay: 0.4s, 0s;
}

.hero-inner > *:nth-child(1) { animation-delay: 0.2s; }
.hero-inner > *:nth-child(3) { animation-delay: 0.6s; }
.hero-inner > *:nth-child(4) { animation-delay: 0.8s; }
.hero-inner > *:nth-child(5) { animation-delay: 1.0s; }

@keyframes fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Mobile ─────────────────────────────────────────── */
@media (max-width: 640px) {
  .hero {
    padding: 2rem 1.25rem;
  }

  .logo-svg {
    width: 72px;
  }

  .logo-mark {
    margin-bottom: 1.5rem;
  }

  .logo-text {
    font-size: 2.2rem;
    letter-spacing: 0.02em;
    margin-bottom: 0.75rem;
  }

  .tagline {
    font-size: 0.95rem;
    margin-bottom: 2rem;
  }

  .services {
    flex-direction: column;
    white-space: normal;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
  }

  .service-item {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
  }

  .service-sep {
    display: none;
  }

  .cta-button {
    padding: 0.85rem 2rem;
    font-size: 0.7rem;
  }

  .cta-button::before,
  .cta-button::after {
    width: 18px;
    height: 18px;
  }

  .contact {
    padding: 4rem 1.25rem;
    min-height: auto;
  }

  .contact h2 {
    font-size: 1.75rem;
  }

  .contact-lead {
    font-size: 0.95rem;
  }

  .contact-alt {
    font-size: 0.8rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 0.75rem 0.85rem;
    font-size: 0.9rem;
  }

  .submit-button {
    padding: 0.8rem 2rem;
    font-size: 0.8rem;
    width: 100%;
  }

  .hero-inner::before {
    width: 120%;
    height: 130%;
  }

  .contact-inner::before {
    width: 120%;
    height: 120%;
  }

  footer {
    padding: 2rem 1.25rem;
    font-size: 0.7rem;
  }
}
