/* ============================================================
   Vyrel Labs — core styles
   Dark, premium, "labs" aesthetic. Zero external dependencies.
   ============================================================ */

:root {
  --bg: #07080d;
  --bg-2: #0c0e16;
  --panel: #12141f;
  --panel-2: #171a27;
  --border: #23273a;
  --text: #eef0f7;
  --muted: #9aa0b8;
  --faint: #6b7191;
  --violet: #7c5cff;
  --cyan: #22d3ee;
  --grad: linear-gradient(120deg, #7c5cff 0%, #22d3ee 100%);
  --radius: 16px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", "Fira Code", ui-monospace, Menlo, Consolas, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

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

/* ---------- Ambient background ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(124, 92, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 92, 255, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}
.bg-glow {
  position: fixed; top: -30vh; left: 50%; transform: translateX(-50%);
  width: 90vw; height: 80vh; z-index: -1;
  background: radial-gradient(circle at 50% 50%, rgba(124, 92, 255, 0.22), transparent 60%);
  filter: blur(40px); pointer-events: none;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 64px);
  backdrop-filter: blur(12px);
  background: rgba(7, 8, 13, 0.6);
  border-bottom: 1px solid rgba(35, 39, 58, 0.6);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand-mark {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  color: transparent; font-size: 1.3rem;
}
.brand-labs { color: var(--cyan); }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 0.92rem; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  padding: 8px 16px; border: 1px solid var(--border); border-radius: 999px;
  color: var(--text) !important; transition: all 0.2s;
}
.nav-cta:hover { border-color: var(--violet); background: rgba(124, 92, 255, 0.1); }

/* ---------- Hero ---------- */
.hero { padding: clamp(60px, 12vh, 130px) clamp(20px, 5vw, 64px) 70px; }
.hero-inner { max-width: 860px; margin: 0 auto; text-align: center; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.74rem;
  font-weight: 600; color: var(--cyan); margin-bottom: 18px;
}
.hero-title {
  font-size: clamp(2.4rem, 6.5vw, 4.6rem); line-height: 1.02;
  letter-spacing: -0.035em; font-weight: 800; margin-bottom: 22px;
}
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.22rem); color: var(--muted);
  max-width: 620px; margin: 0 auto 40px;
}

/* ---------- Access code box ---------- */
.access { max-width: 560px; margin: 0 auto; }
.access-row {
  display: flex; gap: 8px; padding: 8px;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 999px; transition: border-color 0.2s, box-shadow 0.2s;
}
.access-row:focus-within {
  border-color: var(--violet);
  box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.15);
}
.access-input {
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--text); font-size: 1.02rem; padding: 12px 18px;
  font-family: var(--mono); letter-spacing: 0.05em;
}
.access-input::placeholder { color: var(--faint); font-family: var(--font); letter-spacing: normal; }
.access-btn {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  background: var(--grad); color: #07080d; font-weight: 700; font-size: 0.98rem;
  border: none; border-radius: 999px; padding: 12px 24px; cursor: pointer;
  transition: transform 0.15s, filter 0.2s;
}
.access-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.access-btn:active { transform: translateY(0); }
.access-btn .arrow { transition: transform 0.2s; }
.access-btn:hover .arrow { transform: translateX(3px); }

.access-msg { min-height: 22px; margin-top: 14px; font-size: 0.9rem; font-weight: 500; }
.access-msg.error { color: #ff6b8a; }
.access-msg.success { color: var(--cyan); }
.access-hint { margin-top: 6px; font-size: 0.88rem; color: var(--faint); }
.access-hint a { color: var(--muted); }
.access-hint a:hover { color: var(--cyan); }

/* shake animation on invalid code */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-7px); }
  40%, 80% { transform: translateX(7px); }
}
.access-row.shake { animation: shake 0.4s; border-color: #ff6b8a; }

/* ---------- Trust strip ---------- */
.strip {
  display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(24px, 6vw, 80px);
  max-width: 900px; margin: 0 auto; padding: 30px clamp(20px, 5vw, 64px) 60px;
  border-bottom: 1px solid var(--border);
}
.strip-item { text-align: center; }
.strip-item strong {
  display: block; font-size: 2.2rem; font-weight: 800; letter-spacing: -0.03em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.strip-item span { font-size: 0.86rem; color: var(--muted); }

/* ---------- Sections ---------- */
.section { max-width: 1120px; margin: 0 auto; padding: clamp(60px, 10vh, 100px) clamp(20px, 5vw, 64px); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.7rem); letter-spacing: -0.03em; font-weight: 800; line-height: 1.1; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.step {
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 24px;
}
.step-num {
  font-family: var(--mono); font-size: 0.85rem; color: var(--cyan);
  border: 1px solid var(--border); border-radius: 8px; padding: 4px 9px; display: inline-block; margin-bottom: 16px;
}
.step h3 { font-size: 1.08rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Hero sub emphasis ---------- */
.hero-sub em { font-style: normal; color: var(--text); font-weight: 600; }

/* ---------- Pricing ---------- */
.section-head.center { max-width: 720px; margin-left: auto; margin-right: auto; text-align: center; }
.section-lead { color: var(--muted); font-size: 1.05rem; margin-top: 16px; }

.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px; max-width: 860px; margin: 0 auto; align-items: stretch;
}
.price-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--border); border-radius: 20px;
  padding: 34px 30px;
}
.price-card.featured {
  border-color: transparent;
  background:
    linear-gradient(var(--panel), var(--panel)) padding-box,
    var(--grad) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 20px 60px -20px rgba(124, 92, 255, 0.4);
}
.price-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  white-space: nowrap; background: var(--grad); color: #07080d; font-weight: 700;
  font-size: 0.74rem; letter-spacing: 0.02em; padding: 6px 16px; border-radius: 999px;
}
.price-name {
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem;
  font-weight: 700; color: var(--muted); margin-bottom: 14px;
}
.featured .price-name { color: var(--cyan); }
.price-from { font-size: 0.82rem; color: var(--faint); margin-bottom: 4px; letter-spacing: 0.02em; }
.price-tag { font-size: 3.2rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.price-cur { font-size: 1.6rem; font-weight: 700; vertical-align: super; margin-right: 2px; color: var(--muted); }
.price-per { font-size: 1rem; font-weight: 500; color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.price-setup { margin-top: 10px; font-size: 0.95rem; color: var(--muted); }
.price-setup strong { color: var(--text); }
.price-blurb { color: var(--muted); font-size: 0.95rem; margin: 14px 0 22px; }
.price-list { list-style: none; margin-bottom: 26px; flex: 1; }
.price-list li { padding: 9px 0 9px 28px; position: relative; font-size: 0.95rem; border-bottom: 1px solid rgba(35,39,58,0.5); }
.price-list li:last-child { border-bottom: none; }
.price-list li::before { content: "✓"; position: absolute; left: 0; color: var(--cyan); font-weight: 700; }
.price-list li.off { color: var(--faint); }
.price-list li.off::before { content: "✕"; color: var(--faint); }
.price-btn {
  display: block; text-align: center; padding: 14px 24px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; transition: all 0.2s;
}
.price-btn.solid { background: var(--grad); color: #07080d; }
.price-btn.solid:hover { filter: brightness(1.08); transform: translateY(-2px); }
.price-btn.ghost { border: 1px solid var(--border); color: var(--text); }
.price-btn.ghost:hover { border-color: var(--muted); }
.price-foot { text-align: center; color: var(--faint); font-size: 0.85rem; margin-top: 14px; }
.price-note { text-align: center; color: var(--faint); font-size: 0.82rem; margin-top: 26px; font-style: italic; }

/* ---------- CTA ---------- */
.cta { padding: clamp(60px, 10vh, 110px) clamp(20px, 5vw, 64px); }
.cta-inner {
  max-width: 760px; margin: 0 auto; text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(124,92,255,0.16), transparent 70%), var(--panel);
  border: 1px solid var(--border); border-radius: 24px; padding: clamp(40px, 7vw, 72px);
}
.cta-inner h2 { font-size: clamp(1.6rem, 4vw, 2.6rem); letter-spacing: -0.03em; margin-bottom: 14px; }
.cta-inner h2 em { font-style: italic; color: var(--cyan); }
.cta-inner p { color: var(--muted); margin-bottom: 30px; font-size: 1.05rem; }
.cta-btn {
  display: inline-block; background: var(--grad); color: #07080d; font-weight: 700;
  padding: 15px 34px; border-radius: 999px; font-size: 1.02rem; transition: transform 0.15s, filter 0.2s;
}
.cta-btn:hover { filter: brightness(1.08); transform: translateY(-2px); }

/* ---------- Contact form ---------- */
.contact-form { max-width: 460px; margin: 0 auto; text-align: left; }
.contact-form .field { margin-bottom: 14px; }
.contact-form label { display: block; font-size: 0.82rem; color: var(--muted); font-weight: 500; margin-bottom: 6px; }
.contact-form label .opt { color: var(--faint); font-weight: 400; }
.contact-input, .contact-textarea {
  width: 100%; background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px;
  color: var(--text); font-family: var(--font); font-size: 1rem; padding: 12px 14px; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-input:focus, .contact-textarea:focus {
  border-color: var(--violet); box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.15);
}
.contact-textarea { resize: vertical; min-height: 110px; }
.contact-btn {
  width: 100%; margin-top: 4px; display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; border: none; cursor: pointer;
}
.contact-btn:disabled { opacity: 0.6; cursor: default; transform: none; filter: none; }
.contact-btn .arrow { transition: transform 0.2s; }
.contact-btn:hover:not(:disabled) .arrow { transform: translateX(3px); }
.contact-msg { min-height: 20px; margin-top: 12px; font-size: 0.9rem; font-weight: 500; text-align: center; }
.contact-msg.error { color: #ff6b8a; }
.contact-msg.success { color: var(--cyan); }
.contact-alt { margin-top: 20px; font-size: 0.9rem; color: var(--faint); }
.contact-alt a { color: var(--muted); }
.contact-alt a:hover { color: var(--cyan); }

/* ---------- Footer ---------- */
.footer {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 40px 20px; border-top: 1px solid var(--border); color: var(--faint); font-size: 0.88rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .access-row { flex-direction: column; border-radius: 20px; }
  .access-btn { justify-content: center; }
  .access-input { text-align: center; }
}
