/* ZHH URL Locker — Premium dark theme
   Brand: violet/electric on near-black with glassmorphism
   Author: Zeeshan Haider
*/

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

:root {
  --bg: #07070d;
  --bg-2: #0d0d18;
  --surface: rgba(20, 20, 32, 0.65);
  --surface-2: rgba(28, 28, 44, 0.55);
  --border: rgba(167, 139, 250, 0.18);
  --border-strong: rgba(167, 139, 250, 0.4);
  --text: #f3f0ff;
  --muted: #9b97b8;
  --accent: #a78bfa;       /* violet */
  --accent-2: #6ee7ff;     /* cyan */
  --accent-3: #f472b6;     /* pink */
  --success: #34d399;
  --danger: #f87171;
  --whatsapp: #25d366;
  --grad: linear-gradient(135deg, #a78bfa 0%, #6ee7ff 50%, #f472b6 100%);
  --grad-soft: linear-gradient(135deg, rgba(167,139,250,.18), rgba(110,231,255,.12));
  --shadow-lg: 0 30px 80px -20px rgba(167, 139, 250, 0.35);
  --shadow-card: 0 20px 60px -15px rgba(0,0,0,0.6), 0 0 0 1px rgba(167,139,250,.12) inset;
  --radius: 16px;
  --radius-lg: 24px;
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
}

input, button, textarea { max-width: 100%; }

a { color: inherit; text-decoration: none; }

img, svg { display: block; max-width: 100%; }

/* Background effects */
.bg-grid {
  position: fixed; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(167,139,250,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(167,139,250,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at top, black 30%, transparent 75%);
}
.bg-glow {
  position: fixed; z-index: -1; border-radius: 50%;
  filter: blur(120px); opacity: 0.5; pointer-events: none;
  animation: float 18s ease-in-out infinite;
}
.glow-1 { background: #a78bfa; width: 480px; height: 480px; top: -120px; left: -120px; }
.glow-2 { background: #6ee7ff; width: 420px; height: 420px; top: 30%; right: -120px; animation-delay: -9s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 60px) scale(1.1); }
}

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; width: 100%; }
main, section, .hero, .container, .hero-grid, .app-card, .form, .field { min-width: 0; }
.field, .field input { width: 100%; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  background: rgba(7,7,13,0.6);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--grad);
  color: #0a0a12; font-weight: 900; font-size: 20px;
  box-shadow: 0 8px 24px -6px rgba(167,139,250,0.6);
}
.brand-text { font-size: 18px; letter-spacing: 0.5px; }
.brand-accent { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px;
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.4);
  color: var(--whatsapp) !important; font-weight: 600;
  transition: all .2s;
}
.nav-cta:hover { background: rgba(37, 211, 102, 0.22); transform: translateY(-1px); }

/* Hero */
.hero { padding: 60px 0 100px; }
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  align-items: center;
  min-width: 0;
}
.hero-copy { min-width: 0; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--grad-soft);
  border: 1px solid var(--border);
  font-size: 12px; font-weight: 600; letter-spacing: 0.5px;
  color: var(--text); text-transform: uppercase;
  margin-bottom: 24px;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success); box-shadow: 0 0 12px var(--success);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:.4;} }

.title {
  font-size: clamp(48px, 7.5vw, 88px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
  text-transform: uppercase;
}
.title-sub {
  display: inline-block;
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-top: 4px;
}
.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
.lede { color: var(--muted); font-size: 18px; max-width: 520px; margin-bottom: 28px; }
.checks { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.checks li { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.checks svg { color: var(--accent); flex-shrink: 0; }

/* App card */
.app-card {
  background: var(--surface);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 8px;
  box-shadow: var(--shadow-card), var(--shadow-lg);
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}
.app-card::before {
  content: ''; position: absolute; inset: -1px;
  border-radius: var(--radius-lg);
  background: var(--grad);
  z-index: -1; opacity: .35; filter: blur(20px);
}

.card-tabs {
  display: flex; gap: 4px; padding: 6px;
  background: rgba(0,0,0,0.3);
  border-radius: 14px; margin-bottom: 8px;
}
.tab {
  flex: 1; padding: 12px 16px;
  background: transparent; border: 0; color: var(--muted);
  font-weight: 600; font-size: 14px; cursor: pointer;
  border-radius: 10px; transition: all .2s;
  font-family: inherit;
}
.tab.active { background: var(--grad); color: #0a0a12; box-shadow: 0 6px 20px -6px rgba(167,139,250,.5); }
.tab:not(.active):hover { color: var(--text); background: rgba(255,255,255,0.04); }

.form { padding: 18px; display: flex; flex-direction: column; gap: 14px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field span { font-size: 13px; font-weight: 600; color: var(--text); }
.field em { color: var(--muted); font-style: normal; font-weight: 400; }
.field input, .field select {
  width: 100%; padding: 13px 16px;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text); font-size: 15px;
  font-family: inherit;
  transition: all .2s;
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23a78bfa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
  cursor: pointer;
}
.field select option { background: #141422; color: var(--text); }
.field input::placeholder { color: #5b576f; }
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  background-color: rgba(0,0,0,0.5);
  box-shadow: 0 0 0 4px rgba(167,139,250,0.15);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 20px; border-radius: 12px; border: 0;
  font-family: inherit; font-weight: 700; font-size: 15px;
  cursor: pointer; transition: all .2s;
  letter-spacing: 0.2px;
}
.btn-primary {
  background: var(--grad); color: #0a0a12;
  box-shadow: 0 10px 30px -8px rgba(167,139,250,0.55);
  margin-top: 4px;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(167,139,250,0.7); }
.btn-primary:active { transform: translateY(0); }

.btn-whatsapp {
  background: var(--whatsapp); color: #0a0a12;
  padding: 16px 32px; font-size: 16px;
  box-shadow: 0 12px 32px -8px rgba(37,211,102,0.5);
}
.btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -10px rgba(37,211,102,0.7); }

.result { margin-top: 12px; animation: fadeUp .4s ease; }
@keyframes fadeUp { from { opacity:0; transform: translateY(10px);} to {opacity:1; transform:none;} }
.result-label { font-size: 12px; font-weight: 700; letter-spacing: 1px; color: var(--accent); text-transform: uppercase; margin-bottom: 8px; }
.result-box {
  display: flex; gap: 6px;
  background: rgba(0,0,0,0.4); border: 1px solid var(--border-strong);
  border-radius: 12px; padding: 8px;
  margin-bottom: 10px;
}
.result-box input {
  flex: 1; background: transparent; border: 0; color: var(--text);
  padding: 8px 10px; font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px; min-width: 0;
}
.result-box input:focus { outline: none; }

/* BIG primary copy button — main CTA after locking */
.btn-copy-big {
  width: 100%;
  background: var(--grad);
  color: #0a0a12;
  padding: 15px 20px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.3px;
  box-shadow: 0 12px 32px -8px rgba(167,139,250,0.55);
  margin-top: 4px;
}
.btn-copy-big:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(167,139,250,0.7); }
.btn-copy-big.copied { background: var(--success); color: #042818; }
.btn-copy-big.copied svg { display: none; }

.result-meta {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(244, 114, 182, 0.08);
  border: 1px solid rgba(244, 114, 182, 0.3);
  color: var(--accent-3);
  font-size: 13px; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
}
.result-meta::before { content: '⏱'; font-size: 16px; }

.result-actions { display: flex; gap: 8px; margin-top: 10px; }
.btn-ghost {
  flex: 1; padding: 10px; border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text); font-family: inherit; font-weight: 600; font-size: 13px;
  cursor: pointer; transition: all .2s;
}
.btn-ghost:hover { background: rgba(167,139,250,0.12); border-color: var(--border-strong); }

.hint-box {
  padding: 12px 14px; border-radius: 10px;
  background: rgba(110, 231, 255, 0.08);
  border: 1px solid rgba(110, 231, 255, 0.25);
  font-size: 14px; color: var(--accent-2);
}
.hint-box strong { color: #fff; margin-right: 6px; }

.error {
  padding: 12px 14px; border-radius: 10px;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: var(--danger); font-size: 14px; font-weight: 500;
  animation: shake .4s;
}
@keyframes shake {
  10%,90% { transform: translateX(-2px); }
  20%,80% { transform: translateX(3px); }
  30%,50%,70% { transform: translateX(-5px); }
  40%,60% { transform: translateX(5px); }
}

/* Sections */
.section { padding: 100px 0; }
.section-alt { background: rgba(13, 13, 24, 0.5); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800; letter-spacing: -0.02em;
  text-align: center; margin-bottom: 12px;
}
.sub { text-align: center; color: var(--muted); font-size: 17px; margin-bottom: 56px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all .3s;
  position: relative; overflow: hidden;
}
.step:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px; font-weight: 700; letter-spacing: 2px;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
}
.step h3 { font-size: 20px; margin-bottom: 8px; font-weight: 700; }
.step p { color: var(--muted); font-size: 15px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  padding: 28px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all .3s;
}
.feature:hover { transform: translateY(-4px); border-color: var(--border-strong); background: var(--surface); }
.feat-icon { font-size: 32px; margin-bottom: 14px; }
.feature h3 { font-size: 18px; margin-bottom: 6px; font-weight: 700; }
.feature p { color: var(--muted); font-size: 14px; }

.cta-section { padding: 80px 0; }
.cta-inner { text-align: center; }
.cta-inner .sub { margin-bottom: 32px; }

/* Footer */
.footer { padding: 48px 0 32px; border-top: 1px solid var(--border); }
.footer-inner {
  display: flex; justify-content: space-between; gap: 24px;
  flex-wrap: wrap;
}
.footer-meta { text-align: right; }
.footer-meta p { font-size: 14px; }
.muted { color: var(--muted); font-size: 14px; margin-top: 6px; }

/* Toast */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--text); color: #0a0a12;
  padding: 12px 20px; border-radius: 999px;
  font-weight: 600; font-size: 14px;
  box-shadow: 0 12px 40px -8px rgba(0,0,0,0.5);
  opacity: 0; transition: all .3s; z-index: 100;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .steps, .feature-grid { grid-template-columns: 1fr; }
  .nav { padding: 14px 16px; }
  .nav-links { gap: 12px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .footer-inner { flex-direction: column; }
  .footer-meta { text-align: left; }
  .hero { padding: 32px 0 56px; }
  .section { padding: 56px 0; }
  .title { font-size: clamp(32px, 9vw, 48px); }
  .lede { font-size: 16px; }
}

@media (max-width: 560px) {
  .container { padding: 0 14px; }
  .nav { padding: 12px 14px; gap: 8px; }
  .brand-text { font-size: 15px; }
  .brand-mark { width: 30px; height: 30px; font-size: 16px; border-radius: 8px; }
  .nav-cta { padding: 7px 11px; font-size: 12px; gap: 6px; }
  .nav-cta svg { width: 13px; height: 13px; }
  .form { padding: 12px; gap: 12px; }
  .field input { padding: 11px 13px; font-size: 14px; }
  .btn { padding: 13px 14px; font-size: 14px; }
  .btn-whatsapp { width: 100%; padding: 14px 20px; }
  .app-card { padding: 5px; }
  .card-tabs { padding: 4px; gap: 3px; }
  .tab { padding: 10px 8px; font-size: 12px; }
  .result-box { padding: 4px; }
  .result-box input { font-size: 11px; padding: 8px 8px; min-width: 0; }
  .btn-copy-big { padding: 13px 16px; font-size: 14px; }
  .result-actions { flex-direction: row; }
  .btn-ghost { font-size: 12px; padding: 9px 4px; }
  .h2 { font-size: clamp(24px, 7vw, 34px); }
  .sub { font-size: 14px; margin-bottom: 36px; }
  .step, .feature { padding: 22px; }
  .glow-1, .glow-2 { width: 240px; height: 240px; filter: blur(70px); opacity: 0.35; }
  .title { font-size: clamp(30px, 8.5vw, 42px); }
  .checks li { font-size: 13px; }
  .lede { font-size: 15px; }
}
