/* ObjectionIQ — stylesheet
   Aesthetic: dark industrial, sharp type, high contrast */

:root {
  --bg: #0c0c0b;
  --bg2: #141413;
  --bg3: #1c1c1a;
  --bg4: #242422;
  --line: rgba(255,255,255,0.08);
  --line2: rgba(255,255,255,0.14);
  --text: #f0ede8;
  --text2: #a09d97;
  --text3: #6a6762;
  --accent: #e8c547;
  --accent2: #c9a82e;
  --green: #4caf7d;
  --blue: #5b9cf6;
  --coral: #e8745a;
  --radius: 6px;
  --radius-lg: 12px;
  --font-display: 'Syne', sans-serif;
  --font-body: 'Instrument Sans', sans-serif;
}

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- NAV ---- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2rem;
}
.nav-brand { display: flex; align-items: center; gap: 10px; }
.brand-icon {
  font-family: var(--font-display);
  font-size: 13px; font-weight: 700;
  background: var(--accent);
  color: var(--bg);
  padding: 4px 8px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}
.brand-icon span { font-size: 10px; }
.brand-name { font-family: var(--font-display); font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.nav-gh { font-size: 13px; color: var(--text2); }
.nav-gh:hover { color: var(--accent); text-decoration: none; }

/* ---- HERO ---- */
.hero {
  max-width: 1100px; margin: 0 auto;
  padding: 5rem 2rem 4rem;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
}
@media (max-width: 768px) { .hero { grid-template-columns: 1fr; padding: 3rem 1.25rem 2rem; gap: 2.5rem; } }

.eyebrow {
  font-size: 11px; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero-sub { font-size: 16px; color: var(--text2); line-height: 1.7; max-width: 400px; margin-bottom: 1.5rem; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.htag {
  font-size: 12px; padding: 4px 10px;
  border: 1px solid var(--line2);
  border-radius: 20px; color: var(--text3);
}

/* hero demo */
.hero-demo { display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 768px) { .hero-demo { display: none; } }

.demo-bubble {
  background: var(--bg3);
  border: 1px solid var(--line2);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  font-size: 14px; color: var(--text2);
  font-style: italic;
  animation: fadeIn 0.6s ease both;
}
.demo-arrow { color: var(--accent); font-size: 18px; text-align: center; }
.demo-responses { display: flex; flex-direction: column; gap: 8px; }
.demo-resp {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  font-size: 13px; color: var(--text2);
  line-height: 1.55;
  animation: fadeIn 0.5s ease both;
}
.r1 { animation-delay: 0.1s; }
.r2 { animation-delay: 0.2s; }
.r3 { animation-delay: 0.3s; }
.resp-label {
  display: inline-block;
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-right: 6px; margin-bottom: 4px;
  padding: 2px 7px; border-radius: 3px;
}
.r1 .resp-label { background: rgba(91,156,246,0.15); color: var(--blue); }
.r2 .resp-label { background: rgba(76,175,125,0.15); color: var(--green); }
.r3 .resp-label { background: rgba(232,197,71,0.15); color: var(--accent); }

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

/* ---- APP SECTION ---- */
.app-section { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 3rem 0; }
.app-inner { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }

/* setup */
.setup-screen { display: flex; justify-content: center; padding: 2rem 0; }
.setup-card {
  background: var(--bg3); border: 1px solid var(--line2);
  border-radius: var(--radius-lg); padding: 2rem;
  max-width: 520px; width: 100%; text-align: center;
}
.setup-icon { font-size: 1.8rem; margin-bottom: 1rem; }
.setup-card h3 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 0.75rem; }
.setup-card p { font-size: 14px; color: var(--text2); margin-bottom: 1.25rem; line-height: 1.6; }
.setup-row { display: flex; gap: 8px; margin-bottom: 0.75rem; }
.setup-note { font-size: 12px; color: var(--text3); }

/* tool layout */
.tool-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  min-height: 480px;
}
@media (max-width: 768px) { .tool-layout { grid-template-columns: 1fr; } }

/* input panel */
.input-panel {
  background: var(--bg3);
  border: 1px solid var(--line2);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex; flex-direction: column; gap: 1rem;
}
.panel-label {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text3);
}
textarea#objection-input {
  background: var(--bg4);
  border: 1px solid var(--line2);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px; line-height: 1.6;
  padding: 12px 14px;
  resize: vertical; min-height: 120px;
  width: 100%;
  transition: border-color 0.15s;
  outline: none;
}
textarea#objection-input::placeholder { color: var(--text3); }
textarea#objection-input:focus { border-color: var(--accent); }

.context-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.context-group { display: flex; flex-direction: column; gap: 5px; }
.context-group label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text3);
}

select {
  background: var(--bg4); border: 1px solid var(--line2);
  border-radius: var(--radius); color: var(--text);
  font-family: var(--font-body); font-size: 13px;
  padding: 8px 10px; cursor: pointer; outline: none;
  width: 100%;
  transition: border-color 0.15s;
}
select:focus { border-color: var(--accent); }

.btn-generate {
  width: 100%;
  background: var(--accent); color: var(--bg);
  border: none; border-radius: var(--radius);
  font-family: var(--font-display); font-size: 15px; font-weight: 700;
  letter-spacing: -0.01em;
  padding: 14px 20px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.15s, transform 0.1s;
}
.btn-generate:hover { background: var(--accent2); }
.btn-generate:active { transform: scale(0.99); }
.btn-generate:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* history */
.history-section { border-top: 1px solid var(--line); padding-top: 1rem; }
.history-label { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text3); margin-bottom: 8px; }
.history-item {
  padding: 7px 10px; border-radius: var(--radius);
  font-size: 13px; color: var(--text2);
  cursor: pointer; border: 1px solid transparent;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: all 0.1s;
}
.history-item:hover { background: var(--bg4); border-color: var(--line2); color: var(--text); }

/* output panel */
.output-panel {
  background: var(--bg3);
  border: 1px solid var(--line2);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex; flex-direction: column;
}
.output-empty {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px; color: var(--text3);
  text-align: center; padding: 2rem;
}
.output-empty p { font-size: 14px; }
.output-empty .muted { font-size: 13px; color: var(--text3); }

/* equalizer animation */
.empty-graphic { display: flex; align-items: flex-end; gap: 5px; height: 60px; margin-bottom: 8px; }
.eq-bar {
  width: 6px; border-radius: 3px;
  background: var(--bg4);
  animation: eq 1.4s ease-in-out infinite alternate;
}
@keyframes eq { from { height: 8px; } to { height: var(--h, 40px); } }

/* response cards */
.response-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 10px;
  animation: fadeIn 0.4s ease both;
}
.response-card:last-child { margin-bottom: 0; }
.rc-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.rc-type {
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 3px 8px;
  border-radius: 3px;
}
.rc-direct  { background: rgba(91,156,246,0.15); color: var(--blue); }
.rc-reframe { background: rgba(76,175,125,0.15); color: var(--green); }
.rc-question { background: rgba(232,197,71,0.15); color: var(--accent); }

.rc-copy {
  font-size: 12px; padding: 4px 10px;
  background: none; border: 1px solid var(--line2);
  border-radius: var(--radius); color: var(--text3);
  cursor: pointer; font-family: var(--font-body);
  transition: all 0.12s;
}
.rc-copy:hover { border-color: var(--text2); color: var(--text); }
.rc-copy.copied { border-color: var(--green); color: var(--green); }
.rc-text { font-size: 14px; color: var(--text2); line-height: 1.65; }

.output-meta {
  font-size: 12px; color: var(--text3);
  padding-top: 10px; border-top: 1px solid var(--line);
  margin-top: 4px;
}

/* loading state */
.loading-wrap { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1; gap: 12px; padding: 2rem; }
.loading-text { font-size: 13px; color: var(--text3); }
.dots { display: flex; gap: 5px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 1.2s ease-in-out infinite; }
.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes pulse { 0%,80%,100% { opacity: 0.2; transform: scale(0.8); } 40% { opacity: 1; transform: scale(1); } }

/* error */
.error-msg { font-size: 13px; color: var(--coral); padding: 12px; background: rgba(232,116,90,0.08); border: 1px solid rgba(232,116,90,0.2); border-radius: var(--radius); }

/* ---- HOW SECTION ---- */
.how-section { padding: 5rem 2rem; }
.how-inner { max-width: 1100px; margin: 0 auto; }
.how-inner h2 {
  font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700; letter-spacing: -0.02em;
  margin-bottom: 2.5rem; color: var(--text);
}
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 600px) { .how-grid { grid-template-columns: 1fr; } }
.how-card {
  background: var(--bg2); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.5rem;
}
.how-num {
  font-family: var(--font-display); font-size: 2rem;
  font-weight: 700; color: var(--accent); opacity: 0.4;
  margin-bottom: 0.75rem; line-height: 1;
}
.how-card strong { display: block; font-size: 15px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.how-card p { font-size: 13px; color: var(--text3); line-height: 1.6; }

/* ---- FOOTER ---- */
.footer { border-top: 1px solid var(--line); padding: 2rem; text-align: center; }
.footer-inner { max-width: 700px; margin: 0 auto; }
.footer p { font-size: 13px; color: var(--text3); margin-bottom: 6px; }
.footer strong { color: var(--text2); }
.footer a { color: var(--text2); }
.footer a:hover { color: var(--accent); text-decoration: none; }

/* ---- SHARED ---- */
input[type="url"], input[type="text"] {
  background: var(--bg4); border: 1px solid var(--line2);
  border-radius: var(--radius); color: var(--text);
  font-family: var(--font-body); font-size: 14px;
  padding: 9px 12px; width: 100%; outline: none;
  transition: border-color 0.15s;
}
input:focus { border-color: var(--accent); }
.btn-primary {
  background: var(--accent); color: var(--bg);
  border: none; border-radius: var(--radius);
  font-family: var(--font-display); font-size: 14px; font-weight: 700;
  padding: 9px 20px; cursor: pointer; white-space: nowrap;
  transition: background 0.12s;
}
.btn-primary:hover { background: var(--accent2); }
