/* Unlimited AI - Brutalist
 * Black on white, acid yellow CTA, no gradients, no shadows.
 * One typeface, two weights. Hard borders. Big.
 */

:root {
  --black: #000000;
  --white: #ffffff;
  --gray: #f4f4f4;
  --gray-2: #d4d4d4;
  --gray-3: #737373;
  --acid: #FFFF00;
  --acid-shadow: 6px 6px 0 var(--black);
  --error: #ff0033;
  --success: #00cc66;
  --border-w: 3px;
  --font: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --mono: 'JetBrains Mono', 'Courier New', monospace;
}

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

html, body {
  background: var(--white);
  color: var(--black);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  font-weight: 500;
}

a {
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}
a:hover {
  background: var(--acid);
  text-decoration: none;
}

code, pre, .mono {
  font-family: var(--mono);
  font-weight: 500;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  border-bottom: var(--border-w) solid var(--black);
}
.nav-logo {
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 800;
  color: var(--black);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav-logo:hover { background: transparent; }
.nav-logo span { background: var(--acid); padding: 0 6px; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { font-weight: 700; font-size: 15px; text-decoration: none; }
.nav-links a:hover { background: var(--acid); }

/* Hero - HUGE */
.hero {
  padding: 120px 0 0;
}
.hero h1 {
  font-size: clamp(72px, 14vw, 200px);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.05em;
  margin-bottom: 24px;
  text-transform: uppercase;
}
.hero h1 .acid {
  background: var(--acid);
  padding: 0 12px;
  display: inline-block;
}
.hero p.lead {
  font-size: 22px;
  font-weight: 600;
  max-width: 720px;
  margin: 48px 0;
  line-height: 1.35;
}

/* Marquee under main title - rotating words on a yellow strip */
.marquee {
  background: var(--acid);
  border-top: var(--border-w) solid var(--black);
  border-bottom: var(--border-w) solid var(--black);
  margin: 32px 0 0;
  overflow: hidden;
  position: relative;
  white-space: nowrap;
  font-family: var(--font);
  font-weight: 900;
  font-size: clamp(40px, 6vw, 80px);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.1;
  padding: 18px 0;
}
.marquee-track {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 22s linear infinite;
}
.marquee-track span {
  margin-right: 56px;
}
.marquee-track .dot {
  display: inline-block;
  width: 16px;
  height: 16px;
  background: var(--black);
  border-radius: 50%;
  vertical-align: middle;
  margin: 0 56px 8px 0;
}
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 36px;
  border: var(--border-w) solid var(--black);
  background: var(--white);
  color: var(--black);
  font-family: var(--font);
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.1s, box-shadow 0.1s;
  box-shadow: var(--acid-shadow);
}
.btn:hover {
  background: var(--acid);
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--black);
}
.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--black);
}
.btn-primary { background: var(--acid); }
.btn-sm { padding: 10px 18px; font-size: 14px; box-shadow: 4px 4px 0 var(--black); }
.btn-sm:hover { box-shadow: 5px 5px 0 var(--black); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* "No cap" emphasis blocks on landing */
.callouts {
  padding: 80px 0;
  border-bottom: var(--border-w) solid var(--black);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.callouts > div {
  border-right: var(--border-w) solid var(--black);
  padding: 32px;
}
.callouts > div:last-child { border-right: none; }
.callouts h3 {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-family: var(--mono);
}
.callouts .big {
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}
.callouts p {
  font-weight: 500;
  font-size: 15px;
}

@media (max-width: 800px) {
  .callouts { grid-template-columns: 1fr; }
  .callouts > div { border-right: none; border-bottom: var(--border-w) solid var(--black); }
  .callouts > div:last-child { border-bottom: none; }
}

/* Pricing - one big box */
.pricing {
  padding: 100px 0;
  border-bottom: var(--border-w) solid var(--black);
  text-align: center;
}
.pricing h2 {
  font-size: clamp(40px, 7vw, 84px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.pricing-subtitle {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 64px;
}
.plan-box {
  display: inline-block;
  border: var(--border-w) solid var(--black);
  padding: 56px 80px;
  text-align: left;
  box-shadow: 12px 12px 0 var(--black);
  background: var(--white);
}
.plan-box .price {
  font-size: 144px;
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.05em;
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
}
.plan-box .price .currency {
  font-size: 64px;
  font-weight: 800;
  margin-top: 16px;
  margin-right: 4px;
}
.plan-box .period {
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 32px;
}
.plan-box ul {
  list-style: none;
  margin-bottom: 40px;
}
.plan-box li {
  font-size: 16px;
  font-weight: 600;
  padding: 8px 0;
  border-top: 2px solid var(--black);
}
.plan-box li:last-child { border-bottom: 2px solid var(--black); }
.plan-box li::before {
  content: '→ ';
  font-weight: 900;
}

@media (max-width: 700px) {
  .plan-box { padding: 32px 24px; }
  .plan-box .price { font-size: 96px; }
  .plan-box .price .currency { font-size: 40px; margin-top: 12px; }
}

/* FAQ */
.faq {
  padding: 100px 0;
  border-bottom: var(--border-w) solid var(--black);
}
.faq h2 {
  font-size: 56px;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 48px;
  letter-spacing: -0.03em;
}
.faq-item {
  border-top: var(--border-w) solid var(--black);
  padding: 32px 0;
}
.faq-item:last-child { border-bottom: var(--border-w) solid var(--black); }
.faq-item h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 12px;
}
.faq-item p {
  font-size: 17px;
  font-weight: 500;
  max-width: 800px;
}

/* Footer */
.footer {
  padding: 48px 0;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
}

/* Auth pages */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.auth-card {
  border: var(--border-w) solid var(--black);
  background: var(--white);
  padding: 48px;
  width: 100%;
  max-width: 460px;
  box-shadow: var(--acid-shadow);
}
.auth-card h1 {
  font-size: 40px;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  line-height: 1;
}
.auth-card .subtitle {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 36px;
}
.field {
  margin-bottom: 20px;
}
.field label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  font-family: var(--mono);
}
.field input {
  width: 100%;
  padding: 14px 16px;
  background: var(--white);
  border: var(--border-w) solid var(--black);
  color: var(--black);
  font-family: var(--font);
  font-size: 17px;
  font-weight: 600;
  outline: none;
}
.field input:focus {
  background: var(--acid);
}
.field-promo input {
  text-transform: uppercase;
  font-family: var(--mono);
}
.auth-footer {
  margin-top: 32px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
}
.error-msg, .success-msg {
  border: var(--border-w) solid var(--black);
  padding: 14px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 20px;
  display: none;
}
.error-msg { background: var(--error); color: var(--white); }
.success-msg { background: var(--success); color: var(--black); }

/* Dashboard */
.dashboard {
  padding: 48px 0 80px;
}
.dash-title {
  font-size: 56px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  line-height: 1;
}
.dash-email {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 40px;
}
.dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 800px) { .dash-grid { grid-template-columns: 1fr; } }

.card {
  border: var(--border-w) solid var(--black);
  padding: 32px;
  background: var(--white);
}
.card.acid { background: var(--acid); }
.card h3 {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--mono);
  margin-bottom: 16px;
}
.card-large {
  font-size: 56px;
  font-weight: 900;
  font-family: var(--mono);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.card-sub {
  font-size: 14px;
  font-weight: 600;
  margin-top: 8px;
}

/* API key block */
.api-key-block {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  background: var(--gray);
  border: var(--border-w) solid var(--black);
  padding: 14px;
  word-break: break-all;
  margin-bottom: 12px;
}

.deposit-info {
  background: var(--gray);
  border: 2px solid var(--black);
  padding: 16px;
  margin-bottom: 12px;
}
.deposit-info .label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.deposit-info .value {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  word-break: break-all;
}

.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > .btn { flex: 1; min-width: 80px; }

.hidden { display: none !important; }
.span-full { grid-column: 1 / -1; }

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--white);
  border: var(--border-w) solid var(--black);
  box-shadow: 12px 12px 0 var(--black);
  padding: 40px;
  max-width: 500px;
  width: 100%;
}
.modal h2 {
  font-size: 32px;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  line-height: 1;
}
.modal p { font-size: 15px; font-weight: 600; margin-bottom: 24px; }
.modal .divider {
  border-top: var(--border-w) solid var(--black);
  margin: 24px 0;
  position: relative;
  text-align: center;
}
.modal .divider span {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  padding: 0 12px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
}

/* Chat page - full layout: sidebar + main + bottom controls */
.chat-app {
  display: grid;
  grid-template-columns: 280px 1fr;
  height: 100vh;
  overflow: hidden;
}
@media (max-width: 800px) {
  .chat-app { grid-template-columns: 1fr; }
  .chat-sidebar { display: none; }
  .chat-app.show-sidebar .chat-sidebar { display: flex; }
  .chat-app.show-sidebar .chat-main { display: none; }
}

/* Sidebar */
.chat-sidebar {
  border-right: var(--border-w) solid var(--black);
  display: flex;
  flex-direction: column;
  background: var(--white);
  overflow: hidden;
}
.chat-sidebar-header {
  padding: 16px;
  border-bottom: var(--border-w) solid var(--black);
}
.chat-sidebar-header .logo {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
  color: var(--black);
  display: block;
  margin-bottom: 12px;
}
.chat-sidebar-header .logo span { background: var(--acid); padding: 0 6px; }
.chat-sidebar-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}
.chat-list-item {
  padding: 10px 12px;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.chat-list-item:hover { background: var(--gray); border: 2px solid var(--black); }
.chat-list-item.active { background: var(--acid); border: 2px solid var(--black); font-weight: 800; }
.chat-list-item .delete-x {
  font-family: var(--mono);
  font-weight: 800;
  opacity: 0;
  cursor: pointer;
  padding: 0 4px;
}
.chat-list-item:hover .delete-x { opacity: 0.5; }
.chat-list-item .delete-x:hover { opacity: 1; background: var(--error); color: var(--white); }

/* Main */
.chat-main {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.chat-header {
  padding: 14px 24px;
  border-bottom: var(--border-w) solid var(--black);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.chat-header .title {
  font-weight: 800;
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-header .header-actions {
  display: flex;
  gap: 8px;
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
}
.chat-messages-inner {
  max-width: 820px;
  width: 100%;
  margin: 0 auto;
}
.msg {
  margin-bottom: 20px;
  padding: 16px 20px;
  border: var(--border-w) solid var(--black);
}
.msg.user {
  background: var(--acid);
  margin-left: 60px;
}
.msg.assistant {
  background: var(--white);
  margin-right: 60px;
}
.msg .role {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.msg .role .tokens {
  font-weight: 600;
  opacity: 0.6;
}
.msg .content {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.55;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.msg .content code:not(pre code) {
  background: var(--gray);
  padding: 2px 6px;
  font-family: var(--mono);
  font-size: 13px;
  border: 1px solid var(--black);
}
.msg .content pre {
  background: var(--gray);
  border: 2px solid var(--black);
  padding: 14px;
  font-family: var(--mono);
  font-size: 13px;
  overflow-x: auto;
  margin: 12px 0;
}
.tool-card {
  margin: 12px 0;
  padding: 12px 14px;
  border: 2px solid var(--black);
  background: var(--gray);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
}
.tool-card .tool-title { font-weight: 800; text-transform: uppercase; margin-bottom: 4px; }
.tool-card a { font-weight: 600; }

/* Empty state */
.chat-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px;
}
.chat-empty h2 {
  font-size: 56px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  line-height: 1;
}
.chat-empty p { font-weight: 600; max-width: 400px; }

/* Context bar */
.context-bar {
  border-top: var(--border-w) solid var(--black);
  padding: 8px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.context-bar .label {
  white-space: nowrap;
}
.context-bar .bar {
  flex: 1;
  height: 8px;
  border: 2px solid var(--black);
  background: var(--white);
  position: relative;
}
.context-bar .bar-fill {
  position: absolute;
  inset: 0;
  background: var(--acid);
  width: 0%;
  transition: width 0.3s;
}
.context-bar .bar-fill.warning { background: #ff8800; }
.context-bar .bar-fill.full { background: var(--error); }

/* Bottom input + controls */
.chat-input-wrap {
  border-top: var(--border-w) solid var(--black);
  padding: 16px 24px;
  background: var(--white);
}
.chat-input-form {
  max-width: 820px;
  margin: 0 auto;
}
.chat-input-form textarea {
  width: 100%;
  border: var(--border-w) solid var(--black);
  padding: 14px 16px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  resize: none;
  min-height: 56px;
  max-height: 240px;
  outline: none;
  margin-bottom: 12px;
}
.chat-input-form textarea:focus { background: #fffce0; }

.chat-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.chat-controls .spacer { flex: 1; }
.chat-controls select {
  border: var(--border-w) solid var(--black);
  padding: 8px 14px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  background: var(--white);
  cursor: pointer;
}
.chat-toggle {
  border: var(--border-w) solid var(--black);
  background: var(--white);
  padding: 8px 14px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}
.chat-toggle.active { background: var(--acid); }
.chat-toggle:hover { background: var(--acid); }
.upload-btn {
  border: var(--border-w) solid var(--black);
  background: var(--white);
  padding: 8px 12px;
  cursor: pointer;
  font-size: 16px;
}
.upload-btn:hover { background: var(--acid); }
.attachment-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 2px solid var(--black);
  background: var(--gray);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 8px;
  margin-right: 6px;
}
.attachment-pill button {
  border: none;
  background: none;
  cursor: pointer;
  font-weight: 800;
  padding: 0 0 0 6px;
}

/* Docs page */
.docs {
  padding: 48px 0 80px;
  max-width: 800px;
}
.docs h1 { font-size: 64px; font-weight: 900; text-transform: uppercase; letter-spacing: -0.03em; margin-bottom: 32px; }
.docs h2 { font-size: 32px; font-weight: 900; margin: 48px 0 16px; text-transform: uppercase; }
.docs h3 { font-size: 20px; font-weight: 800; margin: 24px 0 8px; }
.docs p { margin-bottom: 16px; font-weight: 500; }
.docs ul, .docs ol { margin: 16px 0 16px 28px; }
.docs li { margin-bottom: 8px; font-weight: 500; }
.docs pre {
  background: var(--gray);
  border: var(--border-w) solid var(--black);
  padding: 20px;
  margin-bottom: 16px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
}
.docs code:not(pre code) {
  background: var(--acid);
  padding: 1px 6px;
  font-family: var(--mono);
  font-size: 14px;
  border: 1px solid var(--black);
  font-weight: 600;
}
.docs table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.docs th, .docs td {
  border: 2px solid var(--black);
  padding: 10px 14px;
  text-align: left;
  font-weight: 500;
}
.docs th {
  background: var(--gray);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 12px;
  font-family: var(--mono);
}
