:root {
  --bg: #0a0a0b;
  --fg: #ebebeb;
  --muted: #a1a1a8;
  --green: #22e04b;
  --green-glow: rgba(34, 224, 75, 0.35);
  --mark: #ebebeb;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.65rem 1rem;
  background: var(--green);
  color: #06210d;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 8px;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 1rem;
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}

.nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  padding: 2rem 3rem;
  z-index: 10;
}

.brand {
  display: inline-flex;
  border-radius: 6px;
}
.brand img {
  display: block;
  width: 180px;
  height: auto;
}
.brand:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 6px;
}

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: safe center;
  gap: 3rem;
  padding: 5.5rem 3rem 2rem;
  max-width: 1500px;
  margin: 0 auto;
}

.hero__text { max-width: 34rem; }

.headline {
  font-size: clamp(2.1rem, 3.6vw + 0.5rem, 3.4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.subhead {
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 28rem;
}

.cta {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.85rem 1.6rem;
  background: var(--green);
  color: #06210d;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: box-shadow 0.25s ease, transform 0.15s ease;
}

.cta:hover {
  box-shadow: 0 0 0 1px var(--green), 0 8px 30px var(--green-glow);
  transform: translateY(-1px);
}

.cta:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.cta[disabled] {
  opacity: 0.6;
  cursor: default;
  transform: none;
  box-shadow: none;
}

/* Contact form */
.contact {
  margin-top: 1.75rem;
  max-width: 26rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.field label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--fg);
}

.field input,
.field textarea {
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--fg);
  background: #141416;
  border: 1px solid #2a2a2e;
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea { resize: vertical; min-height: 76px; }

.field input::placeholder,
.field textarea::placeholder { color: #6a6a70; }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-glow);
}

.form-status {
  margin-top: 1rem;
  font-size: 0.9rem;
  min-height: 1.2rem;
}
.form-status.success { color: var(--green); }
.form-status.error { color: #ff6b6b; }

/* Honeypot — visually hidden but present for bots */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
  min-height: 100vh;
}

/* Green glow bloom behind the mark */
.hero__visual::before {
  content: "";
  position: absolute;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--green-glow) 0%, rgba(34,224,75,0.08) 38%, transparent 68%);
  filter: blur(20px);
  z-index: 0;
  animation: glow-pulse 6s ease-in-out infinite;
}

/* Black gradient the mark emerges from — darkens the lower half */
.hero__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, transparent 45%, rgba(10,10,11,0.7) 72%, var(--bg) 100%);
  z-index: 2;
  pointer-events: none;
}

.stage {
  position: relative;
  z-index: 1;
  width: 480px;
  height: 480px;
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  animation: rise 1.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(60px) rotateX(4deg) rotateY(-8deg); }
  to   { opacity: 1; transform: translateY(0)    rotateX(4deg) rotateY(-8deg); }
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.06); }
}

.mark {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.mark svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: left;
    padding: 6rem 2rem 4rem;
    gap: 1rem;
  }
  .hero__visual { order: -1; min-height: 28vh; }
  .hero__visual::before { width: 300px; height: 300px; }
  .stage { width: 220px; height: 220px; }
  .nav { padding: 1.75rem 1.5rem; }
  .brand img { width: 150px; }
}

@media (prefers-reduced-motion: reduce) {
  .stage {
    transition: none !important;
    transform: rotateX(4deg) rotateY(-8deg) !important;
    animation: none !important;
    opacity: 1 !important;
  }
  .hero__visual::before { animation: none !important; }
}
