/* itmenace-shared.css — shared styles for all pages */
:root {
  --bg: #0a0a0b;
  --surface: #111113;
  --surface2: #18181b;
  --border: rgba(255,255,255,0.07);
  --border2: rgba(255,255,255,0.12);
  --text: #f0ede8;
  --muted: #888880;
  --accent: #c8f564;
  --accent2: #a8d44e;
  --accent-dim: rgba(200,245,100,0.1);
  --accent-dim2: rgba(200,245,100,0.06);
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Satoshi', system-ui, sans-serif;
  --radius: 14px;
  --radius-sm: 8px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none; opacity: 0.4;
}

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 40px;
  background: rgba(10,10,11,0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo-mark { width: 30px; height: 30px; background: var(--accent); border-radius: 7px; display: flex; align-items: center; justify-content: center; }
.nav-logo-mark svg { width: 16px; height: 16px; }
.nav-brand { font-family: var(--font-display); font-size: 19px; color: var(--text); letter-spacing: -0.3px; }

.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 13px; transition: color 0.15s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-badge { font-size: 11px; font-weight: 500; padding: 3px 10px; background: var(--accent-dim); color: var(--accent); border: 1px solid rgba(200,245,100,0.2); border-radius: 20px; }

/* GLOW */
.glow-orb { position: fixed; pointer-events: none; z-index: 0; border-radius: 50%; filter: blur(120px); opacity: 0.06; }
.glow-orb-1 { width: 600px; height: 600px; background: var(--accent); top: -200px; left: -100px; }
.glow-orb-2 { width: 400px; height: 400px; background: #6bf; bottom: 100px; right: -100px; }

/* FOOTER */
footer { text-align: center; padding: 48px 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; position: relative; z-index: 1; }
footer strong { color: var(--text); font-weight: 500; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 20px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 13px; transition: color 0.15s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 12px; color: #444; margin-top: 8px; }

/* PROSE PAGES */
.page { position: relative; z-index: 1; max-width: 740px; margin: 0 auto; padding: 130px 24px 100px; }
.page-wide { position: relative; z-index: 1; max-width: 1000px; margin: 0 auto; padding: 130px 24px 100px; }

.page-header { margin-bottom: 52px; padding-bottom: 28px; border-bottom: 1px solid var(--border2); }
.page-header .eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 14px; padding: 4px 12px; border: 1px solid var(--border2); border-radius: 20px; }
.page-header h1 { font-family: var(--font-display); font-size: clamp(30px,5vw,50px); font-weight: 400; letter-spacing: -1px; color: var(--text); margin-bottom: 10px; }
.page-header .meta { font-size: 13px; color: var(--muted); }

/* PROSE */
.prose h2 { font-family: var(--font-display); font-size: 24px; font-weight: 400; color: var(--text); margin: 44px 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.prose h3 { font-size: 14px; font-weight: 700; letter-spacing: 0.5px; color: var(--text); margin: 22px 0 8px; text-transform: uppercase; }
.prose p { font-size: 14px; color: var(--muted); line-height: 1.85; margin-bottom: 14px; }
.prose ul, .prose ol { padding-left: 20px; margin-bottom: 14px; }
.prose ul li, .prose ol li { font-size: 14px; color: var(--muted); line-height: 1.85; margin-bottom: 6px; }
.prose a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(200,245,100,0.3); }
.prose a:hover { border-color: var(--accent); }
.prose strong { color: var(--text); font-weight: 500; }
.prose blockquote { border-left: 2px solid var(--accent); padding: 14px 20px; background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 20px 0; }
.prose blockquote p { margin: 0; font-style: italic; color: var(--text); }

/* FORM ELEMENTS */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group.full { grid-column: 1 / -1; }
.form-label { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.form-input, .form-select, .form-textarea { background: var(--surface2); border: 1px solid var(--border2); border-radius: var(--radius-sm); padding: 12px 16px; font-family: var(--font-body); font-size: 14px; color: var(--text); width: 100%; outline: none; transition: border-color 0.2s; appearance: none; }
.form-input::placeholder { color: #444; }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: rgba(200,245,100,0.3); background: #1c1c1f; }
.form-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'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; cursor: pointer; }
.form-textarea { resize: vertical; min-height: 90px; line-height: 1.6; }

.tags-wrap { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.ftag { padding: 7px 14px; border-radius: 40px; border: 1px solid var(--border2); background: transparent; font-family: var(--font-body); font-size: 13px; color: var(--muted); cursor: pointer; transition: all 0.15s; }
.ftag:hover { color: var(--text); }
.ftag.on { background: var(--accent-dim); border-color: rgba(200,245,100,0.3); color: var(--accent); }

.tone-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.tpill { padding: 7px 16px; border-radius: 40px; border: 1px solid var(--border2); background: transparent; font-family: var(--font-body); font-size: 13px; font-weight: 500; color: var(--muted); cursor: pointer; transition: all 0.15s; }
.tpill:hover { color: var(--text); }
.tpill.on { background: var(--surface2); border-color: var(--border2); color: var(--text); }

.gen-btn { width: 100%; padding: 16px 24px; background: var(--accent); color: #0a0a0b; border: none; border-radius: var(--radius-sm); font-family: var(--font-display); font-size: 18px; font-style: italic; font-weight: 400; cursor: pointer; margin-top: 8px; display: flex; align-items: center; justify-content: center; gap: 10px; transition: all 0.2s; position: relative; overflow: hidden; }
.gen-btn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%); pointer-events: none; }
.gen-btn:hover { background: var(--accent2); transform: translateY(-1px); }
.gen-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

.output-wrap { margin-top: 24px; border: 1px solid var(--border2); border-radius: var(--radius); overflow: hidden; animation: slideUp 0.3s ease; }
@keyframes slideUp { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }
.output-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; background: var(--surface2); border-bottom: 1px solid var(--border); }
.output-tag { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); display: flex; align-items: center; gap: 8px; }
.output-tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: blink 2s ease-in-out infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }
.copy-btn { display: flex; align-items: center; gap: 6px; padding: 6px 14px; border: 1px solid var(--border2); border-radius: 6px; background: transparent; font-family: var(--font-body); font-size: 12px; font-weight: 500; color: var(--muted); cursor: pointer; transition: all 0.15s; }
.copy-btn:hover { background: var(--surface2); color: var(--text); }
.output-body { padding: 24px; font-size: 15px; line-height: 1.8; color: var(--text); white-space: pre-wrap; background: var(--surface); min-height: 80px; }
.loader { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 40px; color: var(--muted); font-size: 14px; }
.loader-dots { display: flex; gap: 5px; }
.loader-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: bounce 1.2s ease-in-out infinite; opacity: 0.4; }
.loader-dots span:nth-child(2) { animation-delay: 0.2s; }
.loader-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes bounce { 0%,80%,100%{transform:scale(0.7);opacity:0.3} 40%{transform:scale(1);opacity:1} }

.panel { display: none; }
.panel.active { display: block; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }

@media (max-width: 640px) {
  nav { padding: 14px 20px; }
  .nav-links .hide-mobile { display: none; }
  .form-grid { grid-template-columns: 1fr; }
}
