@import "tailwindcss";
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;700&display=swap');
@import url('https://cdn.jsdelivr.net/npm/@tabler/icons-webfont/tabler-icons.min.css');

@layer base {
  html {
    scroll-behavior: smooth;
  }
}

@layer components {
  /* --- PRECISION TECH UTILITIES --- */
  .blueprint-bg {
    background-image: linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
  }

  .glass-panel {
    background: rgba(15, 23, 23, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .cyan-glow {
    box-shadow: 0 0 30px rgba(0, 204, 204, 0.1);
  }

  .corner-mark::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 10px;
    height: 10px;
    border-top: 2px solid #00cccc;
    border-left: 2px solid #00cccc;
  }
}


/* Mobile navigation and custom HU/EN switch */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  z-index: 9999;
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 300ms ease, visibility 300ms ease;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mobile-nav-overlay.is-open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.language-switcher {
  align-items: center;
  gap: 0.4rem;
  color: rgba(148, 163, 184, 0.75);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.lang-btn {
  padding: 0.35rem 0.4rem;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: color 160ms ease, text-shadow 160ms ease;
}

.lang-btn:hover,
.lang-btn.is-active {
  color: #00cccc;
  text-shadow: 0 0 14px rgba(0, 204, 204, 0.35);
}

.mobile-language-switcher {
  display: flex;
  margin-top: 0.5rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(0, 204, 204, 0.28);
  background: rgba(0, 204, 204, 0.05);
}

@media (min-width: 768px) {
  .mobile-nav-overlay { display: none !important; }
}


html.menu-is-open,
body.menu-is-open {
  overflow: hidden !important;
  touch-action: none;
}

.menu-close {
  pointer-events: auto !important;
  touch-action: manipulation;
}

/* Prevent tap-through from the close button to the hamburger underneath. */
html.menu-is-open .menu-open,
body.menu-is-open .menu-open {
  pointer-events: none !important;
  visibility: hidden;
}


/* Privacy policy content */
.privacy-card {
  padding: 1.5rem;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(15,23,23,0.45);
}
.privacy-card h2 {
  margin-bottom: 1rem;
  color: #00cccc;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.privacy-card p { margin-top: 0.75rem; color: rgb(148 163 184); line-height: 1.75; font-size: 0.9rem; }
.privacy-card a { color: #00cccc; text-decoration: underline; }
.privacy-card code { color: #f8fafc; }
@media (min-width: 768px) { .privacy-card { padding: 2rem; } }

/* Keep the reCAPTCHA widget inside the form on narrow phones. */
.recaptcha-container {
  width: 100%;
  min-height: 78px;
  overflow: hidden;
}

.privacy-checkbox {
  appearance: auto;
  -webkit-appearance: checkbox;
  accent-color: #00cccc;
}

.privacy-checkbox:focus-visible {
  outline: 2px solid #00cccc;
  outline-offset: 3px;
}

@media (max-width: 360px) {
  .recaptcha-container .g-recaptcha {
    transform: scale(0.88);
    transform-origin: left top;
  }
}
