/* ============================================================
   Zenlerk.com — shared stylesheet
   Dark theme + smooth canvas parallax starfield.
   ============================================================ */

:root{
  --bg: #12141c;
  --card: rgba(30,33,42,0.72);
  --card-solid: #1e212b;
  --card-hover: rgba(40,44,58,0.85);
  --text: #f2f3f5;
  --muted: #aeb4c2;
  --accent: #6d7cff;
  --accent-2: #38bdf8;
  --border: rgba(255,255,255,0.08);
  --nav-bg: rgba(18,20,28,0.72);
  --nav-hover: rgba(255,255,255,0.07);
  --accent-soft: rgba(109,124,255,0.16);
  --shadow: 0 14px 40px rgba(0,0,0,0.4);
  --grad: linear-gradient(135deg, var(--accent), var(--accent-2));
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  color: var(--text);
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  background:
    radial-gradient(circle at 15% 15%, rgba(109,124,255,0.10), transparent 38%),
    radial-gradient(circle at 85% 20%, rgba(56,189,248,0.08), transparent 30%),
    linear-gradient(180deg, #080a12 0%, #10131d 50%, #0a0d16 100%);
}

a{ color: inherit; }

/* ---------- Canvas parallax starfield (GPU-friendly, smooth) ---------- */
#stars{
  position: fixed;
  top: 0;
  left: 0;
  display: block;
  pointer-events: none;
  z-index: -1;
  will-change: transform;
}

::selection{ background: var(--accent-soft); color: #fff; }

/* subtle custom scrollbar */
::-webkit-scrollbar{ width: 11px; }
::-webkit-scrollbar-track{ background: #0a0c14; }
::-webkit-scrollbar-thumb{ background: #2a2e3c; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover{ background: var(--accent); }

/* ---------- Responsive navigation ---------- */
.navbar{
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--nav-bg);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 30px rgba(0,0,0,0.35);
}

.nav-inner{
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.brand{
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
}
.brand .g{
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.brand-logo{
  display: block;
  width: auto;
  height: 34px;
  object-fit: contain;
}
.footer-brand .brand-logo{
  height: 42px;
}

.nav-links{
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a{
  position: relative;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-links a:hover{ color: #fff; background: var(--nav-hover); }
.nav-links a.active{
  color: #fff;
  background: var(--accent-soft);
}
.nav-links a.active::after{
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}

/* existing nav pill divider on hover is subtle on purpose */
.nav-links a:not(.active)::before{
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  transform: translateX(-50%);
  transition: width 0.25s ease;
}
.nav-links a:not(.active):hover::before{ width: 20px; }

.hamburger{
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger span{
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
  border-radius: 2px;
  transition: 0.2s ease;
}

/* ---------- Page container ---------- */
.page{
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 18px 60px;
  position: relative;
  z-index: 2;
}

.eyebrow{
  display: inline-block;
  background: var(--accent-soft);
  color: #c7ccff;
  border: 1px solid rgba(109,124,255,0.35);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
  box-shadow: 0 0 20px rgba(109,124,255,0.15);
}

h1.page-title{
  margin: 0 0 12px;
  font-size: clamp(34px, 6vw, 54px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #fff 0%, #d7dbff 70%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.lead{
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 720px;
}

/* ---------- Cards ---------- */
.card{
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: 0.25s ease;
  overflow: hidden;
}
.card::before{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.card:hover{
  background: var(--card-hover);
  transform: translateY(-4px);
  box-shadow: 0 0 22px rgba(109,124,255,0.25);
}
.card:hover::before{ opacity: 1; }

/* ---------- Contact channels ---------- */
.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 28px;
}
@media (max-width: 760px){
  .contact-grid{ grid-template-columns: 1fr; }
}

.channel .ic{
  font-size: 26px;
  margin-bottom: 10px;
}
.channel h4{
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
}
.channel p{
  color: var(--muted);
  margin: 0 0 10px;
  line-height: 1.5;
}
.channel .hl{
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  word-break: break-all;
}
.channel .hl:hover{ text-decoration: underline; }

/* ---------- Legal pages ---------- */
.legal{
  max-width: 760px;
  margin: 0 auto;
}
.legal h2{
  font-size: 22px;
  margin: 26px 0 10px;
  font-weight: 800;
}
.legal p, .legal ul, .legal li{
  color: var(--muted);
  line-height: 1.65;
}
.legal a{ color: var(--accent); }
.legal-meta{
  display: inline-block;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 20px;
}

/* ---------- Footer (like Narox) ---------- */
.site-footer{
  width: 100%;
  background: var(--nav-bg);
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.35);
  margin-top: 40px;
  position: relative;
  z-index: 5;
  padding: 40px 18px 20px;
}
.site-footer::before{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad);
  opacity: 0.5;
}

.footer-grid{
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 30px;
}
@media (max-width: 860px){
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px){
  .footer-grid{ grid-template-columns: 1fr; }
}

.footer-brand p{
  color: var(--muted);
  line-height: 1.6;
  margin: 12px 0;
  font-size: 14px;
}
.footer-brand .by{
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}
.footer-brand .by b{ color: var(--text); }
.footer-brand .by:hover b{ color: var(--accent); }

.footer-col h4{
  margin: 0 0 12px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
}
.footer-col ul{
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-col li{ margin-bottom: 8px; }
.footer-col a{
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}
.footer-col a:hover{ color: var(--text); text-decoration: underline; }

.footer-bottom{
  max-width: 1100px;
  margin: 26px auto 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}
.footer-bottom a{ color: var(--muted); text-decoration: none; }
.footer-bottom a:hover{ color: var(--text); text-decoration: underline; }

.footer-logo .g{
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 800;
}
.footer-brand .logo-link{
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  display: inline-block;
}

/* ---------- Mobile responsive ---------- */
@media (max-width: 640px){
  .hamburger{ display: block; }
  .nav-links{
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 14px 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 20px rgba(0,0,0,0.35);
  }
  .nav-links.open{ display: flex; }
  .nav-links a{ padding: 12px; }
}

/* ---------- Cursor glow ---------- */
.cursor-glow{
  position: fixed;
  top: 0;
  left: 0;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  display: none;
  mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(109,124,255,0.16) 0%, rgba(56,189,248,0.07) 40%, transparent 70%);
  will-change: transform;
}
/* only show above backgrounds but below content */
.navbar, .site-footer{ z-index: 30; }

/* ---------- Scroll reveal (added via effects.js) ---------- */
.reveal{
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1);
  will-change: opacity, transform;
}
.reveal.in{
  opacity: 1;
  transform: none;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity: 1 !important; transform: none !important; transition: none; }
  .cursor-glow{ display: none !important; }
  .card:hover{ transform: none; }
  html{ scroll-behavior: auto; }
}

/* ---------- Contact form (like Narox) ---------- */
.contact-layout{
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  margin-top: 28px;
  align-items: start;
}
@media (max-width: 820px){
  .contact-layout{ grid-template-columns: 1fr; }
}

.form-card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.form-card h3{ margin: 0 0 6px; font-size: 20px; font-weight: 800; }
.form-card > p{ color: var(--muted); margin: 0 0 20px; font-size: 14px; line-height: 1.6; }

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

.field{ margin-bottom: 16px; }
.field label{
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
}
.field input,
.field select,
.field textarea{
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.25);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea{ min-height: 120px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus{
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field input::placeholder,
.field textarea::placeholder{ color: #6b7280; }
.field select{
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23aeb4c2' stroke-width='2'><path d='m6 9 6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
select option{ background: #1e212b; }

.btn-submit{
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: var(--grad);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: 0 8px 24px rgba(109,124,255,0.35);
}
.btn-submit:hover{ filter: brightness(1.1); transform: translateY(-2px); }
.btn-submit:active{ transform: translateY(0); }

.form-status{ margin-top: 14px; font-size: 14px; line-height: 1.5; min-height: 20px; }
.form-status.ok{ color: #7ee2a8; }
.form-status.err{ color: #ff9c9c; }
.form-status.info{ color: var(--muted); }
