/* Shared N27 frontier surfaces for Nullxre, Ask, Search, and Enigma pages. */
::selection {
  background: rgba(176, 38, 255, 0.7);
  color: #fff;
}

:root {
  --n27-f-surface: rgba(12, 17, 24, 0.84);
  --n27-f-surface-strong: rgba(16, 22, 30, 0.94);
  --n27-f-line: rgba(255, 255, 255, 0.1);
  --n27-f-line-bright: rgba(255, 255, 255, 0.18);
  --n27-f-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  color-scheme: dark;
}

body.n27-nullstate-page,
body.n27-search-page,
body.n27-ask-page,
body.n27-enigma-page {
  background:
    radial-gradient(ellipse 70% 45% at 50% -10%, rgba(0, 208, 245, 0.09), transparent 60%),
    radial-gradient(ellipse 42% 34% at 94% 20%, rgba(168, 68, 176, 0.08), transparent 56%),
    linear-gradient(rgba(255, 255, 255, 0.013) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.013) 1px, transparent 1px),
    #020406;
  background-size: auto, auto, 64px 64px, 64px 64px, auto;
  background-attachment: fixed;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 1px solid rgba(0, 208, 245, 0.72);
  outline-offset: 3px;
}

/* Nullxre root / platform console */
.n27-nullstate-page .landing-nav,
.n27-search-page .top-nav,
.n27-ask-page .top-nav,
.n27-enigma-page .topnav {
  border-bottom-color: var(--n27-f-line);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.n27-nullstate-page .hero-console {
  min-height: 92vh;
  padding-top: 124px;
  padding-bottom: 88px;
}

.n27-nullstate-page .hero-brand {
  font-size: clamp(48px, 10vw, 92px);
  text-shadow: 0 0 34px rgba(0, 208, 245, 0.2);
}

.n27-nullstate-page .nx-dual,
.n27-nullstate-page .mesh-map {
  border: 1px solid var(--n27-f-line);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(15, 21, 29, 0.84), rgba(6, 9, 13, 0.86));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 24px 56px rgba(0, 0, 0, 0.24);
}

.n27-nullstate-page .nx-dual {
  padding: 10px;
}

.n27-nullstate-page .mesh-map {
  padding: 24px;
}

.n27-nullstate-page .mesh-node {
  transition: transform 0.2s var(--n27-f-ease), color 0.2s ease, opacity 0.2s ease;
}

.n27-nullstate-page .mesh-node:hover {
  transform: translateY(-3px);
}

.n27-nullstate-page #landing-page > section {
  max-width: 1180px;
  margin-inline: auto;
}

/* Search engine */
.n27-search-page #landing,
.n27-search-page #results-page {
  position: relative;
}

.n27-search-page .search-box input,
.n27-search-page .results-header .search-box input {
  border-radius: 14px;
  border-color: var(--n27-f-line);
  background: linear-gradient(145deg, rgba(15, 21, 29, 0.9), rgba(6, 9, 13, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 16px 42px rgba(0, 0, 0, 0.26);
}

.n27-search-page .search-box input:focus,
.n27-search-page .results-header .search-box input:focus {
  border-color: rgba(0, 208, 245, 0.56);
  box-shadow: 0 0 0 3px rgba(0, 208, 245, 0.07), 0 18px 44px rgba(0, 0, 0, 0.3);
}

.n27-search-page .stats-panel .stat-box,
.n27-search-page .result-item {
  border-color: var(--n27-f-line);
  background: rgba(12, 17, 24, 0.56);
  border-radius: 12px;
}

.n27-search-page .stats-panel .stat-box {
  transition: transform 0.2s var(--n27-f-ease), border-color 0.2s ease, background 0.2s ease;
}

.n27-search-page .stats-panel .stat-box:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 208, 245, 0.34);
  background: rgba(0, 208, 245, 0.045);
}

.n27-search-page .result-item {
  padding: 20px;
  margin-bottom: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.n27-search-page .result-title {
  color: var(--cyan);
  font-size: 19px;
}

.n27-search-page .results-header {
  background: rgba(3, 5, 7, 0.8);
  border-bottom-color: var(--n27-f-line);
}

/* Ask Nullxre */
.n27-ask-page .ask-shell {
  max-width: 920px;
}

.n27-ask-page .ask-head {
  padding-top: 34px;
}

.n27-ask-page .ask-head h1 {
  font-size: clamp(28px, 5vw, 48px);
  letter-spacing: 0.12em;
}

.n27-ask-page .messages {
  padding-inline: 12px;
}

.n27-ask-page .msg-bubble,
.n27-ask-page .composer-wrap {
  border-radius: 14px;
  border-color: var(--n27-f-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 14px 34px rgba(0, 0, 0, 0.18);
}

.n27-ask-page .msg-bubble {
  background: linear-gradient(145deg, rgba(15, 21, 29, 0.88), rgba(7, 10, 14, 0.88));
}

.n27-ask-page .msg.user .msg-bubble {
  border-color: rgba(0, 208, 245, 0.36);
}

.n27-ask-page .msg.assistant .msg-bubble {
  border-color: rgba(168, 68, 176, 0.36);
}

.n27-ask-page .composer-wrap:focus-within {
  border-color: rgba(0, 208, 245, 0.56);
  box-shadow: 0 0 0 3px rgba(0, 208, 245, 0.07), 0 20px 48px rgba(0, 0, 0, 0.3);
}

.n27-ask-page .composer-row button {
  border-radius: 9px;
  background: linear-gradient(135deg, var(--green), #1aad7b);
  color: #03100b;
  box-shadow: 0 8px 20px rgba(62, 224, 154, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.n27-ask-page .composer-row button:hover:not(:disabled) {
  transform: translateY(-1px);
  color: #03100b;
  background: linear-gradient(135deg, #71f3b9, var(--green));
}

/* Enigma 48B */
.n27-enigma-page .shell {
  max-width: 1240px;
}

.n27-enigma-page .hero {
  min-height: 78vh;
  padding-top: 72px;
}

.n27-enigma-page .hero h1 {
  font-size: clamp(42px, 7vw, 82px);
  letter-spacing: -0.045em;
  background: linear-gradient(135deg, #fff 18%, var(--cyan) 56%, var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.n27-enigma-page .metric-card,
.n27-enigma-page .orbit-panel,
.n27-enigma-page .telemetry-console,
.n27-enigma-page .lobe-chip,
.n27-enigma-page section[id="pro"],
.n27-enigma-page section[id="flash"],
.n27-enigma-page section[id="nano"] {
  border-color: var(--n27-f-line) !important;
  border-radius: 16px !important;
  background: linear-gradient(145deg, rgba(15, 21, 29, 0.88), rgba(7, 10, 14, 0.86)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 16px 34px rgba(0, 0, 0, 0.16);
}

.n27-enigma-page .metric-card,
.n27-enigma-page .lobe-chip {
  transition: transform 0.2s var(--n27-f-ease), border-color 0.2s ease, background 0.2s ease;
}

.n27-enigma-page .metric-card:hover,
.n27-enigma-page .lobe-chip:hover,
.n27-enigma-page .lobe-chip.is-active {
  transform: translateY(-3px);
  border-color: rgba(0, 196, 235, 0.36) !important;
  background: rgba(0, 196, 235, 0.055) !important;
}

.n27-enigma-page .telemetry-console {
  background: linear-gradient(145deg, rgba(5, 9, 13, 0.96), rgba(2, 4, 6, 0.96)) !important;
}

.n27-enigma-page .section-title {
  font-size: clamp(26px, 4vw, 42px);
  letter-spacing: -0.035em;
}

.n27-enigma-page .btn {
  border-radius: 10px;
  transition: transform 0.2s var(--n27-f-ease), border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.n27-enigma-page .btn-primary {
  background: linear-gradient(135deg, #a94bb0, var(--violet));
  box-shadow: 0 12px 26px rgba(154, 58, 160, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.n27-enigma-page .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(154, 58, 160, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

@media (max-width: 720px) {
  .n27-nullstate-page .hero-console { min-height: auto; padding-top: 108px; }
  .n27-nullstate-page .mesh-map { padding: 16px 14px; }
  .n27-ask-page .ask-head { padding-top: 22px; }
  .n27-enigma-page .hero { min-height: auto; padding-top: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* ═══ LUXURY POLISH — Deep Obsidian Navy (search.nullxre.com only) ═══ */
body.n27-search-page {
  background:
    radial-gradient(ellipse 70% 45% at 50% -10%, rgba(37, 99, 235, 0.11), transparent 60%),
    radial-gradient(ellipse 42% 34% at 94% 20%, rgba(126, 166, 255, 0.05), transparent 56%),
    linear-gradient(rgba(255, 255, 255, 0.013) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.013) 1px, transparent 1px),
    #05070D;
  background-size: auto, auto, 64px 64px, 64px 64px, auto;
  background-attachment: fixed;
}

body.n27-search-page {
  --n27-f-surface: rgba(17, 23, 38, 0.78);
  --n27-f-surface-strong: rgba(10, 14, 23, 0.92);
  --n27-f-line: rgba(255, 255, 255, 0.07);
  --n27-f-line-bright: rgba(255, 255, 255, 0.15);
}

body.n27-search-page ::selection {
  background: rgba(37, 99, 235, 0.38);
  color: #fff;
}

body.n27-search-page button:focus-visible,
body.n27-search-page input:focus-visible,
body.n27-search-page textarea:focus-visible,
body.n27-search-page a:focus-visible {
  outline: 1px solid rgba(126, 166, 255, 0.72);
  outline-offset: 3px;
}

.n27-search-page .search-box input,
.n27-search-page .results-header .search-box input {
  border-radius: 14px;
  border-color: var(--n27-f-line);
  background: linear-gradient(145deg, rgba(17, 23, 38, 0.9), rgba(10, 14, 23, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 16px 42px rgba(0, 0, 0, 0.3);
}

.n27-search-page .search-box input:focus,
.n27-search-page .results-header .search-box input:focus {
  border-color: rgba(37, 99, 235, 0.6);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15), 0 18px 44px rgba(0, 0, 0, 0.3);
}

.n27-search-page .stats-panel .stat-box,
.n27-search-page .result-item {
  border-color: var(--n27-f-line);
  background: linear-gradient(145deg, rgba(17, 23, 38, 0.56), rgba(10, 14, 23, 0.52));
  border-radius: 12px;
}

.n27-search-page .stats-panel .stat-box:hover {
  transform: translateY(-2px);
  border-color: rgba(126, 166, 255, 0.34);
  background: rgba(37, 99, 235, 0.06);
}

.n27-search-page .results-header {
  background: rgba(5, 7, 13, 0.82);
  border-bottom-color: var(--n27-f-line);
}

/* ═══ LUXURY POLISH — Deep Obsidian Navy (nullxre.com/ask only) ═══ */
body.n27-ask-page {
  background:
    radial-gradient(ellipse 70% 45% at 50% -10%, rgba(37, 99, 235, 0.11), transparent 60%),
    radial-gradient(ellipse 42% 34% at 94% 20%, rgba(126, 166, 255, 0.05), transparent 56%),
    linear-gradient(rgba(255, 255, 255, 0.013) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.013) 1px, transparent 1px),
    #05070D;
  background-size: auto, auto, 64px 64px, 64px 64px, auto;
  background-attachment: fixed;
}

body.n27-ask-page {
  --n27-f-surface: rgba(17, 23, 38, 0.78);
  --n27-f-surface-strong: rgba(10, 14, 23, 0.92);
  --n27-f-line: rgba(255, 255, 255, 0.07);
  --n27-f-line-bright: rgba(255, 255, 255, 0.15);
}

body.n27-ask-page ::selection {
  background: rgba(37, 99, 235, 0.38);
  color: #fff;
}

body.n27-ask-page button:focus-visible,
body.n27-ask-page input:focus-visible,
body.n27-ask-page textarea:focus-visible,
body.n27-ask-page a:focus-visible {
  outline: 1px solid rgba(126, 166, 255, 0.72);
  outline-offset: 3px;
}

.n27-ask-page .msg-bubble,
.n27-ask-page .composer-wrap {
  border-radius: 14px;
  border-color: var(--n27-f-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 14px 34px rgba(0, 0, 0, 0.18);
}

.n27-ask-page .msg.user .msg-bubble {
  border-color: rgba(37, 99, 235, 0.4);
}

.n27-ask-page .msg.assistant .msg-bubble {
  border-color: rgba(168, 68, 176, 0.36);
}

.n27-ask-page .composer-wrap:focus-within {
  border-color: rgba(37, 99, 235, 0.6);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15), 0 20px 48px rgba(0, 0, 0, 0.3);
}

.n27-ask-page .composer-row button {
  border-radius: 10px;
  border-color: transparent;
  background: linear-gradient(135deg, #3b82f6, var(--glow-accent));
  color: #fff;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.n27-ask-page .composer-row button:hover:not(:disabled) {
  transform: translateY(-1px);
  color: #fff;
  background: linear-gradient(135deg, #60a5fa, #2563eb);
}

/* ═══ LUXURY POLISH — Deep Obsidian Navy (nullxre.com root only) ═══ */
body.n27-nullstate-page {
  background:
    radial-gradient(ellipse 70% 45% at 50% -10%, rgba(37, 99, 235, 0.11), transparent 60%),
    radial-gradient(ellipse 42% 34% at 94% 20%, rgba(126, 166, 255, 0.05), transparent 56%),
    linear-gradient(rgba(255, 255, 255, 0.013) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.013) 1px, transparent 1px),
    #05070D;
  background-size: auto, auto, 64px 64px, 64px 64px, auto;
  background-attachment: fixed;
}

body.n27-nullstate-page {
  --n27-f-surface: rgba(17, 23, 38, 0.78);
  --n27-f-surface-strong: rgba(10, 14, 23, 0.92);
  --n27-f-line: rgba(255, 255, 255, 0.07);
  --n27-f-line-bright: rgba(255, 255, 255, 0.15);
}

body.n27-nullstate-page ::selection {
  background: rgba(37, 99, 235, 0.38);
  color: #fff;
}

body.n27-nullstate-page button:focus-visible,
body.n27-nullstate-page input:focus-visible,
body.n27-nullstate-page textarea:focus-visible,
body.n27-nullstate-page a:focus-visible {
  outline: 1px solid rgba(126, 166, 255, 0.72);
  outline-offset: 3px;
}

.n27-nullstate-page .landing-nav {
  border-bottom-color: var(--n27-f-line);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.n27-nullstate-page .hero-brand {
  text-shadow: 0 0 34px rgba(37, 99, 235, 0.22);
}

.n27-nullstate-page .nx-dual,
.n27-nullstate-page .mesh-map {
  border: 1px solid var(--n27-f-line);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(17, 23, 38, 0.84), rgba(10, 14, 23, 0.86));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 24px 56px rgba(0, 0, 0, 0.24);
}
