/* =========================================================
   Keviqn Technology — landing page
   Dedicated stylesheet (separate from styles.css so the
   legacy /dragonwilder etc. styling is never affected).
   ========================================================= */

:root {
  --bg: #000000;
  --fg: #f5f5f5;
  --fg-muted: #8a8a8a;
  --fg-dim: #5a5a5a;
  --accent: #ffffff;
  --line: rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.06);
  --panel-card: #0a0a0a;
  --header-h: 132px;
  --switch-ease: transform 0.55s cubic-bezier(0.65, 0, 0.35, 1);
}

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

html,
body {
  height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow: hidden; /* the categories own their own scrolling */
}

/* ===================== Masthead / tabs ===================== */

.masthead {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 22px 16px 16px;
  text-align: center;
  background: linear-gradient(to bottom, #000 55%, rgba(0, 0, 0, 0));
  pointer-events: none; /* let the gradient pass clicks; children re-enable */
}

.brand,
.tabs {
  pointer-events: auto;
}

.brand-name {
  display: block;
  font-size: clamp(1.5rem, 4.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent);
}

.brand-tagline {
  display: block;
  margin-top: 2px;
  font-size: clamp(0.7rem, 2.2vw, 0.85rem);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--fg-muted);
}

.tabs {
  display: inline-flex;
  gap: clamp(0.5rem, 3vw, 1.5rem);
  flex-wrap: wrap;
  justify-content: center;
}

.tab {
  appearance: none;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 6px 2px 4px;
  font: inherit;
  font-size: clamp(0.78rem, 2.6vw, 0.95rem);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--fg-muted);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.tab:hover {
  color: var(--fg);
}

.tab.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* ===================== Horizontal track ===================== */

.track {
  display: flex;
  width: 300vw;
  height: 100dvh;
  will-change: transform;
  transition: var(--switch-ease);
}

.category {
  width: 100vw;
  height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scrollbar-width: none; /* Firefox */
}

.category::-webkit-scrollbar {
  display: none;
}

/* ===================== Panels ===================== */

.panel {
  position: relative;
  min-height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-h) + 24px) 24px 48px;
}

/* Intro panel */
.eyebrow {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.34em;
  color: var(--fg-dim);
  margin-bottom: 18px;
}

.panel-title {
  font-size: clamp(2.4rem, 9vw, 5.5rem);
  line-height: 0.98;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.panel-lede {
  max-width: 38ch;
  margin: 22px auto 0;
  font-size: clamp(0.95rem, 2.6vw, 1.15rem);
  line-height: 1.6;
  color: var(--fg-muted);
}

.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--fg-dim);
  animation: bob 1.8s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 6px); }
}

/* ===================== Example layout ===================== */

.example {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  width: 100%;
  max-width: 680px;
}

.example-meta h2 {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.example-meta p {
  margin-top: 8px;
  max-width: 46ch;
  font-size: clamp(0.9rem, 2.4vw, 1.05rem);
  line-height: 1.6;
  color: var(--fg-muted);
}

/* ===== Mock: browser window (websites) ===== */
.mock {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel-card);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

.mock-browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-soft);
  background: #050505;
}

.mock-browser-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2a2a2a;
}

.mock-browser-bar span:nth-child(1) { background: #ff5f57; }
.mock-browser-bar span:nth-child(2) { background: #febc2e; }
.mock-browser-bar span:nth-child(3) { background: #28c840; }

.mock-browser-bar em {
  margin-left: 12px;
  font-style: normal;
  font-size: 0.74rem;
  color: var(--fg-dim);
  letter-spacing: 0.05em;
}

.mock-browser-body {
  padding: 22px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ===== Interactive site demos (Websites examples) =====
   Each demo is a self-contained "website" with its own theme,
   so scrolling between examples feels like visiting a new site. */
.mock-browser-body.demo {
  padding: 0;
  min-height: 0;
  height: 360px;
  display: block;
  overflow: hidden;
  position: relative;
  text-align: left;
}

.demo h3 { font-weight: 700; }
.demo button { font-family: inherit; cursor: pointer; }

.cafe-view,
.app-view { display: none; }
.cafe-view.is-active,
.app-view.is-active { display: block; animation: demoFade 0.35s ease; }

@keyframes demoFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* ---- Demo 1: Bloom café (Simple Pages) ---- */
.demo-cafe {
  background: #fbf6ee;
  color: #3a2c20;
  font-family: Georgia, "Times New Roman", serif;
  display: flex;
  flex-direction: column;
}
.cafe-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 13px 18px;
  background: #fff7ec;
  border-bottom: 1px solid #ecdfcd;
}
.cafe-logo { font-size: 1.1rem; font-weight: 700; }
.cafe-logo b { color: #c2693f; }
.cafe-links { display: flex; gap: 4px; }
.cafe-link {
  border: 0;
  background: none;
  color: #9a8773;
  font-size: 0.78rem;
  padding: 5px 11px;
  border-radius: 999px;
  transition: background 0.18s ease, color 0.18s ease;
}
.cafe-link:hover { color: #c2693f; }
.cafe-link.is-active { background: #c2693f; color: #fff7ec; }

.cafe-stage { flex: 1; padding: 22px; position: relative; overflow: hidden; }
.cafe-eyebrow {
  font-family: system-ui, sans-serif;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #c2693f;
  margin-bottom: 8px;
}
.cafe-stage h3 { font-size: 1.7rem; line-height: 1.08; }
.cafe-h { font-size: 1.3rem; margin-bottom: 12px; }
.cafe-copy { color: #6b5a49; font-size: 0.9rem; line-height: 1.5; margin: 12px 0 18px; max-width: 34ch; }
.cafe-btn {
  background: #c2693f;
  color: #fff7ec;
  border: 0;
  padding: 11px 20px;
  border-radius: 999px;
  font-family: system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  transition: transform 0.12s ease, background 0.18s ease;
}
.cafe-btn:hover { background: #aa5832; transform: translateY(-1px); }

.cafe-menu { list-style: none; }
.cafe-menu li {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px dashed #e3d4be;
  font-size: 0.95rem;
}
.cafe-menu b { color: #c2693f; }
.cafe-map {
  margin-top: 14px;
  height: 92px;
  border-radius: 10px;
  border: 1px solid #e3d4be;
  background:
    repeating-linear-gradient(45deg, #f1e7d6 0 10px, #efe3cf 10px 20px);
  display: grid;
  place-items: center;
  font-family: system-ui, sans-serif;
  font-size: 0.78rem;
  color: #8a7a66;
}

.cafe-toast {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #3a2c20;
  color: #fff7ec;
  padding: 9px 16px;
  border-radius: 999px;
  font-family: system-ui, sans-serif;
  font-size: 0.8rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.cafe-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---- Demo 2: Pulse dashboard (Full Featured Web Apps) ---- */
.demo-app {
  display: flex;
  background: #0e1220;
  color: #e6e9f2;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
.app-side {
  width: 124px;
  flex-shrink: 0;
  padding: 16px 12px;
  background: #11162a;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.app-logo { font-size: 0.85rem; font-weight: 700; color: #7c5cff; margin-bottom: 12px; }
.app-nav {
  text-align: left;
  border: 0;
  background: none;
  color: #9aa3c0;
  font-size: 0.8rem;
  padding: 8px 10px;
  border-radius: 8px;
  transition: background 0.18s ease, color 0.18s ease;
}
.app-nav:hover { color: #fff; }
.app-nav.is-active { background: rgba(124, 92, 255, 0.16); color: #fff; }

.app-main { flex: 1; padding: 16px 18px; overflow: hidden; }
.app-toprow { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.app-toprow h3 { font-size: 1.05rem; }
.app-view h3 { font-size: 1.05rem; margin-bottom: 14px; }

.app-seg { display: inline-flex; background: #1a2036; border-radius: 999px; padding: 3px; }
.seg {
  border: 0;
  background: none;
  color: #9aa3c0;
  font-size: 0.72rem;
  padding: 5px 12px;
  border-radius: 999px;
  transition: background 0.18s ease, color 0.18s ease;
}
.seg.is-active { background: #7c5cff; color: #fff; }

.app-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.app-stat {
  background: #151a2e;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 10px 12px;
}
.app-stat span { display: block; font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.08em; color: #8089a8; }
.app-stat b { display: block; font-size: 1.02rem; margin-top: 5px; color: #fff; }

.app-chart { display: flex; align-items: flex-end; gap: 8px; height: 92px; padding-top: 8px; }
.app-chart i {
  flex: 1;
  height: var(--h, 50%);
  border-radius: 4px 4px 0 0;
  background: linear-gradient(to top, #3a2f7a, #7c5cff);
  transition: height 0.45s cubic-bezier(0.65, 0, 0.35, 1);
}

.app-tasks { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.app-tasks label { display: flex; align-items: center; gap: 10px; font-size: 0.86rem; color: #cfd4e6; cursor: pointer; }
.app-tasks input[type="checkbox"] { accent-color: #7c5cff; width: 16px; height: 16px; }
.app-tasks label:has(input:checked) { color: #707a99; text-decoration: line-through; }
.app-hint { margin-top: 14px; font-size: 0.75rem; color: #8089a8; }

.app-team { display: flex; flex-direction: column; gap: 11px; }
.app-member { display: flex; align-items: center; gap: 11px; font-size: 0.86rem; color: #cfd4e6; }
.av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 0.78rem; font-weight: 700; color: #fff; }
.av1 { background: #e0667f; }
.av2 { background: #4f9bff; }
.av3 { background: #57c98b; }

@media (max-width: 520px) {
  .app-side { width: 96px; padding: 14px 8px; }
  .app-stats { gap: 6px; }
  .app-stat { padding: 8px 9px; }
  .app-stat b { font-size: 0.92rem; }
  .app-main { padding: 14px 12px; }
  .cafe-stage { padding: 18px; }
  .cafe-stage h3 { font-size: 1.5rem; }
}

/* ===== Mock: business cards ===== */
.mock-card {
  aspect-ratio: 1.75 / 1;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 6px;
  padding: 28px 30px;
  position: relative;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
}

.card-name { font-size: 1.4rem; font-weight: 700; letter-spacing: 0.01em; }
.card-sub { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.22em; color: var(--fg-muted); }

.mock-card-nfc {
  background: radial-gradient(circle at 80% 20%, #16243d 0, #000 70%);
}
.nfc-glyph {
  position: absolute;
  top: 22px;
  right: 26px;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -2px;
  color: #4f9bff;
  transform: rotate(90deg);
  transform-origin: center;
}

.mock-card-wood {
  background:
    repeating-linear-gradient(92deg, #5a3a1e, #6b4423 6px, #5a3a1e 12px);
  color: #f3e6d2;
}
.mock-card-wood .card-sub { color: #e0c9a6; }

/* ===== Mock: testing reports ===== */
.mock-report {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  padding: 18px 20px 22px;
  font-family: "SF Mono", "JetBrains Mono", "Fira Code", "Courier New", monospace;
  text-align: left;
}

.report-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.82rem;
}
.report-head span { flex: 1; color: var(--fg-muted); letter-spacing: 0.1em; text-transform: uppercase; }
.report-head b { font-size: 0.72rem; padding: 2px 8px; border-radius: 999px; }
.report-head .pass { color: #28c840; border: 1px solid rgba(40, 200, 64, 0.4); }
.report-head .fail { color: #ff5f57; border: 1px solid rgba(255, 95, 87, 0.4); }

.report-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.report-list li {
  font-size: 0.86rem;
  padding-left: 24px;
  position: relative;
  color: #cfcfcf;
}
.report-list li::before {
  position: absolute;
  left: 0;
  top: 0;
}
.report-list li.ok::before { content: "✓"; color: #28c840; }
.report-list li.bad::before { content: "✕"; color: #ff5f57; }
.report-list li.warn::before { content: "!"; color: #febc2e; font-weight: 700; }

/* ===================== CTA panel ===================== */

.panel-cta { gap: 0; }

.cta-title {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.cta-lede {
  margin: 12px auto 26px;
  max-width: 40ch;
  color: var(--fg-muted);
  font-size: clamp(0.9rem, 2.4vw, 1.05rem);
  line-height: 1.6;
}

.cta-form {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cta-form input,
.cta-form textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel-card);
  color: var(--fg);
  font: inherit;
  font-size: 0.95rem;
  resize: vertical;
}

.cta-form input::placeholder,
.cta-form textarea::placeholder { color: var(--fg-dim); }

.cta-form input:focus-visible,
.cta-form textarea:focus-visible {
  outline: none;
  border-color: var(--accent);
}

.cta-form button {
  margin-top: 4px;
  padding: 14px 18px;
  border-radius: 10px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #000;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.2s ease;
}

.cta-form button:hover { transform: translateY(-1px); opacity: 0.9; }
.cta-form button:active { transform: translateY(0); }

.cta-direct {
  display: flex;
  gap: 22px;
  justify-content: center;
  margin-top: 22px;
  flex-wrap: wrap;
}

.cta-direct a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.cta-direct a:hover {
  color: var(--fg);
  border-bottom-color: var(--fg);
}

.site-footer {
  margin-top: 40px;
  font-size: 0.72rem;
  color: var(--fg-dim);
  letter-spacing: 0.08em;
}

/* ===================== Swipe hint ===================== */

.swipe-hint {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-muted);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.swipe-hint.show { opacity: 1; }

/* ===================== Responsive ===================== */

@media (max-width: 720px) {
  :root { --header-h: 120px; }
  .masthead { padding-top: 16px; }
  .example { gap: 22px; }
}

@media (max-width: 420px) {
  .brand-tagline { letter-spacing: 0.2em; }
  .tabs { gap: 0.75rem; }
}

/* Taller mock spacing on big screens */
@media (min-height: 900px) {
  .mock-browser-body { min-height: 260px; }
}

/* ===================== Reduced motion ===================== */

@media (prefers-reduced-motion: reduce) {
  .track { transition: none; }
  .category { scroll-snap-type: none; scroll-behavior: auto; }
  .scroll-hint { animation: none; }
  .cafe-view.is-active,
  .app-view.is-active { animation: none; }
  .app-chart i { transition: none; }
}
