/* ============================================
   Naughty Hemlock Software — Design System
   ============================================ */

:root {
  --bg:          #0a0a0d;
  --bg-2:        #10101a;
  --surface:     #16162a;
  --surface-2:   #1e1e30;
  --border:      #2c2c44;
  --text:        #ededf5;
  --muted:       #7070a0;
  --accent:      #4af77a;
  --accent-glow: rgba(74, 247, 122, 0.18);
  --accent-dim:  rgba(74, 247, 122, 0.08);
  --red:         #ff5656;
  --font:        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 Helvetica, Arial, sans-serif, "Apple Color Emoji";
  --max:         1100px;
  --r:           14px;
  --transition:  0.25s ease;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

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

/* ================================================
   HEADER
================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 0 24px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 100%;
  background: rgba(10, 10, 13, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(44, 44, 68, 0.6);
  transition: background var(--transition);
}

.nav-logo {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 210;
}

.logo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  box-shadow: 0 0 10px var(--accent);
}

/* ---- Burger Button ---- */
.burger {
  width: 36px;
  height: 22px;
  position: relative;
  background: none;
  border: none;
  padding: 0;
  z-index: 210;
  flex-shrink: 0;
}

.burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  position: absolute;
  transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1),
              opacity   0.25s ease,
              top       0.35s cubic-bezier(0.23, 1, 0.32, 1),
              bottom    0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.burger span:nth-child(3) { bottom: 0; }

.burger.active span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}
.burger.active span:nth-child(2) { opacity: 0; transform: translateX(10px); }
.burger.active span:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

/* ================================================
   MENU OVERLAY
================================================ */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: rgba(10, 10, 13, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

body.menu-open .menu-overlay {
  opacity: 1;
  pointer-events: all;
}

.overlay-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.overlay-nav a {
  font-size: clamp(2.2rem, 7vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.1;
  padding: 8px 0;
  position: relative;
  display: inline-block;
  opacity: 0;
  transform: translateY(28px);
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
              opacity   0.4s ease,
              color     0.2s ease;
}

.overlay-nav a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.overlay-nav a:hover { color: var(--accent); }
.overlay-nav a:hover::after { width: 100%; }

body.menu-open .overlay-nav a {
  opacity: 1;
  transform: translateY(0);
}
body.menu-open .overlay-nav a:nth-child(1) { transition-delay: 0.07s; }
body.menu-open .overlay-nav a:nth-child(2) { transition-delay: 0.12s; }
body.menu-open .overlay-nav a:nth-child(3) { transition-delay: 0.17s; }
body.menu-open .overlay-nav a:nth-child(4) { transition-delay: 0.22s; }

.overlay-footer {
  position: absolute;
  bottom: 36px;
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ================================================
   HERO SECTION
================================================ */
.hero {
  min-height: 100vh;
  padding: 140px 0 100px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Glow orbs */
.hero::before {
  content: '';
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 247, 122, 0.09) 0%, transparent 65%);
  top: -120px;
  right: -180px;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(100, 80, 255, 0.07) 0%, transparent 65%);
  bottom: -80px;
  left: -100px;
  pointer-events: none;
}

/* Dot grid overlay */
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-dim);
  border: 1px solid rgba(74, 247, 122, 0.2);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 28px;
  max-width: 800px;
}

.hero h1 .g {
  background: linear-gradient(135deg, #4af77a 0%, #a0fabd 60%, #d4fde3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--muted);
  max-width: 580px;
  line-height: 1.7;
  margin-bottom: 44px;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #0a0a0d;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 100px;
  border: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  letter-spacing: 0.01em;
}
.btn-primary:hover {
  background: #6ffb94;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(74, 247, 122, 0.35);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 28px;
  border-radius: 100px;
  border: 1px solid var(--border);
  transition: border-color var(--transition), color var(--transition), transform var(--transition);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ================================================
   STATS STRIP
================================================ */
.stats {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: 8px 24px;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }

.stat-number {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-number span {
  color: var(--accent);
}

.stat-label {
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ================================================
   SHARED SECTION
================================================ */
.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--bg-2);
}

.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
  max-width: 600px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 56px;
}

/* ================================================
   SERVICES GRID
================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}

.service-card {
  background: var(--surface);
  padding: 36px 32px;
  transition: background var(--transition);
}

.service-card:hover {
  background: var(--surface-2);
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-dim);
  border: 1px solid rgba(74, 247, 122, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ================================================
   PROCESS STEPS
================================================ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.process-grid::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(12.5% + 12px);
  right: calc(12.5% + 12px);
  height: 1px;
  background: linear-gradient(to right, var(--accent), var(--border));
  z-index: 0;
}

.process-step {
  position: relative;
  z-index: 1;
}

.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 24px;
  transition: background var(--transition), border-color var(--transition);
}

.process-step:first-child .step-num {
  background: var(--accent-dim);
  border-color: rgba(74, 247, 122, 0.3);
  box-shadow: 0 0 20px rgba(74, 247, 122, 0.15);
}

.process-step h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.process-step p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ================================================
   VALUES
================================================ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.value-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.value-card:hover {
  border-color: rgba(74, 247, 122, 0.25);
  transform: translateY(-4px);
}

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

.value-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.value-card p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ================================================
   CTA STRIP
================================================ */
.cta-strip {
  padding: 100px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  text-align: center;
}

.cta-strip h2 {
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.cta-strip h2 .g {
  background: linear-gradient(135deg, #4af77a, #a0fabd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-strip p {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 40px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* ================================================
   FOOTER
================================================ */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--muted);
  transition: color var(--transition);
}

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

.footer-copy {
  font-size: 0.8rem;
  color: var(--muted);
  opacity: 0.6;
}

/* ================================================
   CONTACT PAGE
================================================ */
.contact-hero {
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
}

.contact-hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 247, 122, 0.07) 0%, transparent 65%);
  top: 0;
  right: -200px;
  pointer-events: none;
}

.contact-hero-inner {
  position: relative;
  z-index: 1;
}

.contact-hero h1 {
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 20px;
}

.contact-hero .g {
  background: linear-gradient(135deg, #4af77a, #a0fabd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-hero p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.7;
}

.contact-body {
  padding: 20px 0 100px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.contact-email-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition);
}

.contact-email-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), rgba(74, 247, 122, 0.1));
}

.contact-email-card:hover {
  border-color: rgba(74, 247, 122, 0.3);
}

.contact-email-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-email-label::before {
  content: '';
  width: 18px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.contact-email-card h2 {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 12px;
}

.contact-email-link {
  display: block;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  word-break: break-all;
  transition: color var(--transition);
  margin-bottom: 28px;
}

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

.contact-email-card .note {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.65;
}

.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 28px 32px;
  transition: border-color var(--transition), transform var(--transition);
}

.info-card:hover {
  border-color: rgba(74, 247, 122, 0.2);
  transform: translateX(4px);
}

.info-card-icon {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.info-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.info-card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ================================================
   LEGAL PAGES
================================================ */
.legal-hero {
  padding: 130px 0 56px;
}

.legal-hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 12px;
}

.legal-hero .effective-date {
  font-size: 0.85rem;
  color: var(--muted);
}

.legal-body {
  padding: 0 0 100px;
}

.legal-content {
  max-width: 740px;
}

.legal-content p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

.legal-content h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 36px 0 12px;
  letter-spacing: -0.01em;
}

.legal-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 20px;
}

.legal-content ul li {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 4px;
}

.legal-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content strong {
  color: var(--text);
  font-weight: 600;
}

/* ================================================
   RESPONSIVE
================================================ */
@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-grid::before { display: none; }
  .values-grid {
    grid-template-columns: 1fr;
  }
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-right: 1px solid var(--border); }
  .stat-item:nth-child(3),
  .stat-item:nth-child(4) {
    border-top: 1px solid var(--border);
  }
}

@media (max-width: 640px) {
  .hero { padding: 110px 0 80px; }
  .hero h1 { font-size: 2.4rem; }
  .services-grid { grid-template-columns: 1fr; }
  .process-grid  { grid-template-columns: 1fr; }
  .stats-grid    { grid-template-columns: repeat(2, 1fr); }
  .section       { padding: 72px 0; }
  .contact-hero  { padding: 120px 0 56px; }
  .service-card  { padding: 28px 24px; }
  .value-card    { padding: 32px 24px; }
  .contact-email-card { padding: 36px 28px; }
  .hero-actions  { flex-direction: column; align-items: flex-start; }
}
