/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:     #07080a;
  --off-black: #0e0f12;
  --dark:      #16181c;
  --mid:       #2a2d33;
  --border:    rgba(255,255,255,0.08);
  --border-2:  rgba(255,255,255,0.16);
  --white:     #f4f1ec;
  --off-white: #c5c1b8;
  --muted:     #6a6862;
  --accent:    #e3ff4a;
  --accent-soft: rgba(227,255,74,0.12);
  --danger:    #ff5757;

  --font-display: 'Anton', 'Bebas Neue', sans-serif;
  --font-body:    'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'DM Mono', monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
strong { color: var(--white); font-weight: 600; }
::selection { background: var(--accent); color: var(--black); }

/* GRAIN */
.grain {
  position: fixed; inset: 0; z-index: 9997; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  opacity: 0.045; mix-blend-mode: overlay;
}

/* CURSOR */
.cursor-ring {
  width: 36px; height: 36px; border: 1px solid rgba(255,255,255,0.55);
  border-radius: 50%; position: fixed; top: 0; left: 0;
  transform: translate(-50%,-50%); pointer-events: none; z-index: 9999;
  opacity: 0; transition: width .3s var(--ease), height .3s var(--ease), border-color .25s, opacity .3s, background .25s; mix-blend-mode: difference;
}
.cursor-ring.active { opacity: 1; }
.cursor-dot {
  width: 4px; height: 4px; background: var(--accent); border-radius: 50%;
  position: fixed; top: 0; left: 0; transform: translate(-50%,-50%);
  pointer-events: none; z-index: 10000; opacity: 0;
  transition: opacity .3s, background .2s, width .2s, height .2s;
}
.cursor-dot.active { opacity: 1; }
body:has(a:hover) .cursor-ring, body:has(button:hover) .cursor-ring, body:has(input:hover) .cursor-ring, body:has(select:hover) .cursor-ring {
  width: 56px; height: 56px; background: rgba(227,255,74,0.06); border-color: var(--accent);
}
body:has(a:hover) .cursor-dot, body:has(button:hover) .cursor-dot {
  width: 6px; height: 6px; background: var(--accent);
}

/* TYPOGRAPHY */
.sec-h2 { font-family: var(--font-display); font-size: clamp(4rem, 8vw, 8rem); line-height: 0.92; letter-spacing: 0.005em; font-weight: 400; text-transform: uppercase; }
.stroke-title { color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,0.45); }
.label { font-family: var(--font-mono); font-size: 0.7rem; font-weight: 400; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; display: inline-flex; align-items: center; gap: 10px; }
.label::before { content: ''; display: inline-block; width: 22px; height: 1px; background: var(--accent); }
.dot-blink { display: inline-block; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; animation: blink 1.3s ease-in-out infinite; vertical-align: middle; box-shadow: 0 0 10px var(--accent); }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.2} }

/* BUTTONS */
.btn-solid {
  display: inline-flex; align-items: center; gap: 10px; cursor: none;
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; background: var(--accent); color: var(--black);
  padding: 16px 34px; border: 1px solid var(--accent); position: relative; overflow: hidden;
  transition: background .25s, color .25s, transform .35s var(--ease), box-shadow .35s;
}
.btn-solid:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(227,255,74,0.18); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px; cursor: none;
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--off-white); border-bottom: 1px solid var(--border-2); padding: 6px 2px;
  transition: color .2s, border-color .2s; background: transparent; border-top: none; border-left: none; border-right: none;
}
.btn-ghost:hover { color: var(--danger); border-color: var(--danger); }

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px 56px; border-bottom: 1px solid var(--border);
  background: rgba(7,8,10,0.78); backdrop-filter: blur(18px);
}
.logo { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: 0.08em; color: var(--white); display: inline-flex; align-items: baseline; }
.logo::before { content: ''; display: inline-block; width: 8px; height: 8px; background: var(--accent); margin-right: 12px; transform: translateY(-1px) rotate(45deg); }
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 40px; }
.nav-links a { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--off-white); }
.nav-cta { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; color: var(--muted); }

/* CHAT INTERFACE */
.chat-section {
  min-height: 100vh; display: flex; flex-direction: column;
  padding: 140px 56px 60px; max-width: 1000px; margin: 0 auto; position: relative; z-index: 2;
}
.chat-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border);
}
.chat-box {
  flex: 1; background: rgba(22, 24, 28, 0.6); border: 1px solid var(--border);
  padding: 32px; overflow-y: auto; display: flex; flex-direction: column; gap: 24px;
  margin-bottom: 24px; backdrop-filter: blur(12px);
}
.chat-input-area { display: flex; gap: 16px; }
.form-control {
  flex: 1; background: var(--off-black); border: 1px solid var(--border); color: var(--white);
  padding: 16px 24px; font-family: var(--font-body); font-size: 1rem; outline: none; transition: border-color 0.2s; cursor: none;
}
.form-control:focus { border-color: var(--accent); }

/* MESSAGE BUBBLES */
.message { max-width: 85%; display: flex; flex-direction: column; gap: 6px; }
.user-message { align-self: flex-end; align-items: flex-end; }
.ai-message { align-self: flex-start; align-items: flex-start; }

.msg-sender { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); }
.msg-text { background: var(--black); padding: 16px 24px; border: 1px solid var(--border); font-size: 0.95rem; line-height: 1.7; }
.user-message .msg-text { background: var(--accent-soft); border-color: var(--accent); color: var(--white); }

/* TYPING ANIMATION */
.typing-indicator { display: inline-flex; gap: 6px; padding: 8px 0; }
.typing-indicator span { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; animation: bounce 1.4s infinite ease-in-out both; }
.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }
@keyframes bounce { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1); } }

/* RESPONSIVE */
@media (max-width: 768px) {
  .chat-section { padding: 110px 24px 40px; }
  .chat-header { flex-direction: column; align-items: flex-start; gap: 20px; }
  .nav-links { display: none; }
}