/* ========================================
   Modern AI App Theme - Based on v0 Template
   ======================================== */

:root {
  --background: #f6f1ea;
  --surface: #ffffff;
  --foreground: #1b1a17;
  --card: #ffffff;
  --card-foreground: #1b1a17;
  --primary: #1b1a17;
  --primary-foreground: #fff7ee;
  --secondary: #f7f1ea;
  --secondary-foreground: #1b1a17;
  --muted: #efe8df;
  --muted-foreground: #6b645f;
  --accent: #ffe9ee;
  --accent-foreground: #b91c1c;
  --border: #e3d8cc;
  --ring: #e11d48;
  --radius: 0.85rem;

  --accent-red: #e11d48;
  --accent-sun: #f97316;
  --accent-teal: #0f766e;
  --gradient-purple: #f97316;
  --gradient-pink: #e11d48;
  --gradient-blue: #0f766e;

  --success: #16a34a;
  --warning: #f59e0b;
  --error: #dc2626;

  --font-display: 'Space Grotesk', 'Manrope', sans-serif;
  --font-body: 'Manrope', 'Space Grotesk', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--background);
  background-image:
    radial-gradient(1100px 520px at 10% -10%, rgba(225, 29, 72, 0.16), transparent 60%),
    radial-gradient(900px 520px at 95% 0%, rgba(15, 118, 110, 0.12), transparent 55%),
    linear-gradient(rgba(27, 26, 23, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 26, 23, 0.025) 1px, transparent 1px);
  background-size: auto, auto, 40px 40px, 40px 40px;
  background-position: 0 0, 0 0, -1px -1px, -1px -1px;
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
}

/* ========================================
   Main Container with Dotted Border
   ======================================== */

.min-h-screen {
  min-height: 100vh;
}

.bg-background {
  background: transparent;
}

.main-container {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  background: var(--surface);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  box-shadow: 0 40px 120px rgba(16, 24, 40, 0.08);
  min-height: 100vh;
}

/* ========================================
   Header
   ======================================== */

.header {
  border-bottom: 1px solid var(--border);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2.5rem;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  width: 1rem;
  height: 1rem;
  background: linear-gradient(135deg, var(--accent-red), var(--accent-sun));
  border-radius: 6px;
  box-shadow: 0 6px 16px rgba(225, 29, 72, 0.25);
}

.logo-text {
  font-size: 0.875rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.875rem;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--foreground);
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.2s;
  position: relative;
}

.nav-links a:hover {
  opacity: 1;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-red), var(--accent-sun));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-ghost {
  font-size: 0.875rem;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--foreground);
  background: transparent;
  border: 1px solid transparent;
  padding: 0.45rem 0.85rem;
  border-radius: 9999px;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.2s, border-color 0.2s, background 0.2s;
  min-height: 44px;
}

.btn-ghost:hover {
  opacity: 1;
  border-color: var(--border);
  background: var(--muted);
}

.btn-primary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--primary-foreground);
  background: linear-gradient(135deg, var(--accent-red), var(--accent-sun));
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  min-height: 44px;
  box-shadow: 0 12px 24px rgba(225, 29, 72, 0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 16px 32px rgba(225, 29, 72, 0.3);
}

.btn-primary svg {
  width: 16px;
  height: 16px;
}

/* ========================================
   Hero Section
   ======================================== */

.hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5.5rem 3rem 6rem;
  min-height: calc(100vh - 96px);
  text-align: center;
  background:
    radial-gradient(70% 80% at 0% 0%, rgba(225, 29, 72, 0.14), transparent 55%),
    radial-gradient(60% 60% at 90% 10%, rgba(15, 118, 110, 0.14), transparent 60%);
  overflow: hidden;
}

/* Badge */
.hero-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.badge-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.badge-text {
  font-size: 0.875rem;
  font-family: var(--font-mono);
  color: var(--accent-foreground);
}

.badge-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  color: var(--foreground);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  font-size: 0.875rem;
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.badge-cta:hover {
  background: var(--muted);
}

/* Headline */
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 4.8rem);
  font-weight: 700;
  line-height: 1.02;
  margin-bottom: 1.2rem;
  max-width: 760px;
  letter-spacing: -0.04em;
  animation: hero-rise 0.7s ease both;
}

.text-accent {
  background: linear-gradient(120deg, var(--accent-red), var(--accent-sun));
  -webkit-background-clip: text;
  color: transparent;
}

/* Subheading */
.hero-subheading {
  font-size: 1.15rem;
  color: #4e4742;
  max-width: 680px;
  margin: 0 auto 3.25rem;
  line-height: 1.7;
  font-family: var(--font-body);
  font-weight: 500;
  animation: hero-rise 0.7s ease 0.08s both;
}

/* Prompt Box */
.prompt-box {
  width: 100%;
  max-width: 720px;
  position: relative;
  background: linear-gradient(120deg, rgba(225, 29, 72, 0.24), rgba(249, 115, 22, 0.2));
  border-radius: 9999px;
  border: 1px solid transparent;
  padding: 0.5rem;
  margin: 0 auto 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  cursor: pointer;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.12);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  animation: hero-rise 0.7s ease 0.16s both;
}

.prompt-box:hover {
  box-shadow: 0 24px 45px rgba(15, 23, 42, 0.12);
  transform: translateY(-1px);
}

.prompt-box::before {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px rgba(227, 216, 204, 0.8);
}

.prompt-box > * {
  position: relative;
  z-index: 1;
}

.prompt-caret {
  color: var(--accent-red);
  font-weight: 700;
  font-size: 1.1rem;
  font-family: var(--font-mono);
  margin-left: 0.5rem;
}

.prompt-placeholder {
  flex: 1;
  font-size: 1rem;
  color: #80766f;
  font-family: var(--font-body);
  font-weight: 500;
  text-align: left;
}

.prompt-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.prompt-action-btn {
  background: transparent;
  border: none;
  color: var(--muted-foreground);
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.2s;
}

.prompt-action-btn:hover {
  color: var(--foreground);
}

.prompt-divider {
  width: 1px;
  height: 1.25rem;
  background: linear-gradient(to bottom, var(--gradient-purple), var(--gradient-pink));
}

.prompt-send-btn {
  background: linear-gradient(135deg, var(--accent-red), var(--accent-sun));
  border: none;
  color: #ffffff;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.prompt-send-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.2);
}

.prompt-send-btn svg {
  width: 18px;
  height: 18px;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.6rem;
  width: 100%;
  max-width: 720px;
  margin: 0 auto 3rem;
  justify-items: center;
  animation: hero-rise 0.7s ease 0.24s both;
}

.feature-card {
  padding: 0.35rem 0.75rem;
  min-width: 140px;
  border: 1px solid rgba(227, 216, 204, 0.6);
  border-radius: 9999px;
  text-align: center;
  background: rgba(255, 255, 255, 0.7);
  transition: border-color 0.2s, background 0.2s, transform 0.2s ease;
  cursor: default;
}

.feature-card:hover {
  border-color: var(--accent-red);
  background: var(--accent);
  transform: translateY(-2px);
}

.feature-label {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: #5f5852;
  font-weight: 500;
}

/* Trusted / Experience Section */
.trusted-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  animation: hero-rise 0.7s ease 0.32s both;
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.trusted-label {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-foreground);
}

.trusted-logos {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.trusted-company {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
}

.trusted-divider {
  color: var(--muted-foreground);
}

/* ========================================
   Sections
   ======================================== */

.section {
  border-top: 1px solid var(--border);
  padding: 6rem 0;
}

.section-dark {
  background: linear-gradient(180deg, rgba(255, 241, 242, 0.6), transparent 60%), var(--secondary);
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.section-header {
  text-align: left;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.section-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-foreground);
  background: var(--accent);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.03em;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--muted-foreground);
  max-width: 600px;
  margin: 0;
}

/* ========================================
   Experience Cards
   ======================================== */

.experience-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .experience-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.exp-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s ease, box-shadow 0.2s ease;
}

.exp-card:hover {
  border-color: rgba(225, 29, 72, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(16, 24, 40, 0.12);
}

.exp-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.exp-company-badge {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.exp-company-badge.current {
  background: rgba(34, 197, 94, 0.2);
  color: var(--success);
}

.exp-company-badge.startup {
  background: rgba(249, 115, 22, 0.18);
  color: var(--accent-sun);
}

.exp-date {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--muted-foreground);
}

.exp-company {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.exp-title {
  font-size: 0.875rem;
  color: #6a625d;
  margin-bottom: 1rem;
}

.exp-highlights {
  list-style: none;
  margin-bottom: 1rem;
}

.exp-highlights li {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  padding: 0.25rem 0;
  padding-left: 1rem;
  position: relative;
}

.exp-highlights li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 4px;
  height: 4px;
  background: var(--accent-red);
  border-radius: 50%;
}

.exp-highlights strong {
  color: var(--foreground);
  font-weight: 600;
}

.btn-context {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 600;
  color: #5f5852;
  background: var(--muted);
  border: 1px solid var(--border);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
  justify-content: center;
  min-height: 44px;
}

.btn-context:hover {
  border-color: var(--accent-red);
  color: var(--foreground);
  background: var(--accent);
}

.ai-context {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.context-block {
  margin-bottom: 1rem;
}

.context-block h4 {
  font-size: 0.625rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-foreground);
  margin-bottom: 0.25rem;
}

.context-block p {
  font-size: 0.875rem;
  color: var(--foreground);
  line-height: 1.6;
}

/* ========================================
   Skills Grid
   ======================================== */

.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.skill-category {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.skill-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.skill-header h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
}

.skill-strong .skill-header svg {
  color: var(--success);
}

.skill-moderate .skill-header svg {
  color: var(--warning);
}

.skill-gaps .skill-header svg {
  color: var(--error);
}

.skill-category ul {
  list-style: none;
}

.skill-category li {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  padding: 0.375rem 0;
  border-bottom: 1px solid var(--border);
}

.skill-category li:last-child {
  border-bottom: none;
}

/* ========================================
   Fit Check
   ======================================== */

.fit-container {
  max-width: 700px;
  margin: 0 auto;
}

.fit-examples {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.fit-examples span {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.btn-example {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--foreground);
  background: var(--muted);
  border: 1px solid var(--border);
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s;
  min-height: 44px;
}

.btn-example:hover {
  background: var(--accent);
}

.fit-input-wrapper {
  position: relative;
}

.field-label {
  display: inline-block;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
}

#jd-input {
  width: 100%;
  min-height: 200px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  font-size: 0.875rem;
  font-family: var(--font-body);
  color: var(--foreground);
  resize: vertical;
  margin-bottom: 1rem;
}

#jd-input:focus {
  border-color: var(--foreground);
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.2);
}

#jd-input::placeholder {
  color: var(--muted-foreground);
}

.btn-analyze {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  font-size: 0.875rem;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--primary-foreground);
  background: linear-gradient(135deg, var(--accent-red), var(--accent-sun));
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  min-height: 48px;
  box-shadow: 0 14px 26px rgba(225, 29, 72, 0.22);
}

.btn-analyze:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 16px 30px rgba(225, 29, 72, 0.28);
}

.fit-result {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.fit-note {
  text-align: center;
  margin-top: 2rem;
  padding: 1rem;
  background: var(--accent);
  border-radius: var(--radius);
}

.fit-note p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  font-style: italic;
}

.fit-note em {
  color: var(--foreground);
}

/* ========================================
   Projects
   ======================================== */

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.project-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.project-card:hover {
  border-color: rgba(225, 29, 72, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(16, 24, 40, 0.12);
}

.project-lang {
  display: inline-block;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--accent-red);
  background: rgba(225, 29, 72, 0.18);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.project-card h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.project-card p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.github-stats {
  text-align: center;
}

.github-stats a {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  text-decoration: none;
}

.github-stats span {
  font-size: 0.875rem;
  font-family: var(--font-mono);
  color: var(--muted-foreground);
  transition: color 0.2s;
}

.github-stats a:hover span {
  color: var(--accent-red);
}

/* ========================================
   Footer
   ======================================== */

.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 2.5rem;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto 2rem;
    text-align: left;
  }
}

.footer-info h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.footer-info p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.footer-email {
  font-family: var(--font-mono);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent-red);
}

.footer-note {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  max-width: 500px;
  margin: 0 auto;
}

/* ========================================
   Chat Modal (Dark Theme)
   ======================================== */

.chat-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: 90%;
  max-width: 600px;
  max-height: 85vh;
  background: #191715;
  border: 1px solid #2f2925;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  box-shadow: 0 28px 60px -12px rgba(0, 0, 0, 0.45);
}

.chat-modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.chat-modal-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 85vh;
}

.chat-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #2f2925;
}

.chat-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chat-avatar {
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, #f27d88, #f5b878);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 600;
  color: white;
  font-size: 1rem;
}

.chat-header-info h3 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: #f7f1eb;
  margin-bottom: 0.125rem;
}

.chat-status {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: #c8beb6;
}

.chat-status .status-dot {
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
}

.chat-modal .btn-close {
  background: transparent;
  border: none;
  color: #c8beb6;
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.2s;
}

.chat-modal .btn-close:hover {
  color: #f7f1eb;
}

.chat-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-reset {
  background: transparent;
  border: 1px solid #2f2925;
  color: #c8beb6;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.6rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  min-height: 36px;
}

.btn-reset:hover {
  background: #24201d;
  border-color: #3a332e;
  color: #f7f1eb;
}

.chat-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

/* Welcome State */
.chat-welcome {
  text-align: center;
  padding: 2rem 1rem;
}

.sparkle-icon {
  color: #f4a873;
  margin-bottom: 1rem;
}

.sparkle-icon svg {
  width: 48px;
  height: 48px;
}

.chat-welcome h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: #f7f1eb;
  margin-bottom: 0.5rem;
}

.chat-welcome > p {
  font-size: 0.875rem;
  color: #c8beb6;
  max-width: 400px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

/* Suggestion Cards */
.suggestion-cards {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.suggestion-card {
  width: 100%;
  text-align: left;
  padding: 1rem 1.25rem;
  background: #24201d;
  border: 1px solid #332c27;
  border-radius: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: #f1e9e1;
  cursor: pointer;
  transition: all 0.2s;
  line-height: 1.5;
}

.suggestion-card:hover {
  background: #2c2622;
  border-color: #3f3731;
}

/* Chat Messages */
.chat-messages {
  display: none;
  flex-direction: column;
  gap: 1rem;
}

.chat-messages.active {
  display: flex;
}

.message {
  padding: 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.7;
}

.message.assistant {
  background: #24201d;
  color: #f1e9e1;
}

.message.user {
  background: #f4b88a;
  color: #2a2420;
  margin-left: 2rem;
}

.message.loading {
  color: #c8beb6;
}

/* Chat Input Footer */
.chat-modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid #2f2925;
}

.chat-input-label {
  display: block;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #c8beb6;
  margin-bottom: 0.5rem;
}

.chat-input-wrapper {
  display: flex;
  gap: 0.5rem;
  background: #24201d;
  border: 1px solid #332c27;
  border-radius: 0.5rem;
  padding: 0.25rem;
}

.chat-modal #chat-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-family: var(--font-body);
  color: #f7f1eb;
}

.chat-modal #chat-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(245, 168, 128, 0.35);
}

.chat-modal #chat-input::placeholder {
  color: #a79c95;
}

.chat-modal .btn-send {
  background: linear-gradient(135deg, #f29a88, #f5c07d);
  border: none;
  color: #2a2420;
  padding: 0.75rem;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background 0.2s;
}

.chat-modal .btn-send:hover {
  background: linear-gradient(135deg, #f6aa95, #f7c98a);
}

.chat-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.chat-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ========================================
   Fit Result Styles
   ======================================== */

.fit-verdict {
  text-align: center;
  margin-bottom: 1.5rem;
}

.verdict-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
}

.verdict-badge.strong {
  background: rgba(34, 197, 94, 0.2);
  color: var(--success);
}

.verdict-badge.moderate {
  background: rgba(234, 179, 8, 0.2);
  color: var(--warning);
}

.verdict-badge.weak {
  background: rgba(239, 68, 68, 0.2);
  color: var(--error);
}

.verdict-headline {
  font-size: 1.25rem;
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.verdict-opening {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.fit-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.fit-section h4 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
}

.fit-item {
  margin-bottom: 1rem;
  padding-left: 1rem;
  border-left: 2px solid var(--border);
}

.fit-item-title {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.fit-item-text {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.fit-recommendation {
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--muted);
  border-radius: var(--radius);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ========================================
   Loading States
   ======================================== */

.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem;
  color: var(--muted-foreground);
}

.loading::after {
  content: '';
  width: 1rem;
  height: 1rem;
  border: 2px solid var(--border);
  border-top-color: var(--foreground);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

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

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 768px) {
  .header-content {
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0.85rem 1.25rem;
  }

  .nav-links {
    display: flex;
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
  }

  .hero-badge {
    flex-direction: column;
  }

  .hero-section {
    align-items: center;
    text-align: center;
    padding: 4.5rem 1.5rem 5rem;
    min-height: auto;
  }

  .prompt-box {
    padding: 0.45rem 0.55rem 0.45rem 0.8rem;
  }

  .prompt-placeholder {
    font-size: 0.95rem;
  }

  .trusted-section {
    align-items: center;
    text-align: center;
  }

  .section-header {
    text-align: center;
  }

  .section-subtitle {
    margin: 0 auto;
  }

  .section-container {
    padding: 0 1.5rem;
  }

  .logo-icon {
    width: 0.85rem;
    height: 0.85rem;
  }

  .logo-text {
    font-size: 0.8rem;
  }

  .header-actions {
    display: none;
  }

  .nav-links a {
    display: none;
  }

  .nav-links a[href="#fit-check"] {
    display: inline-flex;
  }

  .features-grid {
    margin: 0 auto 2.25rem;
  }

  .feature-card {
    min-width: 130px;
  }

  .companies-section {
    flex-direction: column;
    gap: 1rem;
  }

  .chat-drawer {
    width: 100%;
    right: -100%;
  }
}
