/* ═══════════════════════════════════════════════════════════════
   AGENT TARA — Constellation Intelligence System
   तारा विश्लेषण प्रणाली
   ═══════════════════════════════════════════════════════════════ */

/* ─── FONTS ─── */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400&family=Noto+Sans+Devanagari:wght@400;500&display=swap');

/* ─── CSS CUSTOM PROPERTIES ─── */
.tara-wrap {
  --tara-void: #000000;
  --tara-bg: #0A0A0A;
  --tara-surface: #141414;
  --tara-surface-elevated: #1E1E1E;
  --tara-border: rgba(255, 255, 255, 0.06);
  --tara-border-focus: rgba(255, 255, 255, 0.12);
  --tara-text: #FAFAFA;
  --tara-text-dim: #A1A1AA;
  --tara-text-ghost: #52525B;
  --tara-star: #E0F2FE;
  --tara-star-glow: rgba(224, 242, 254, 0.4);
  --tara-connection: rgba(224, 242, 254, 0.2);
  --tara-accent: #F59E0B;
  --tara-accent-glow: rgba(245, 158, 11, 0.15);
  --tara-score-critical: #DC2626;
  --tara-score-poor: #EA580C;
  --tara-score-fair: #CA8A04;
  --tara-score-good: #65A30D;
  --tara-score-strong: #16A34A;
  --tara-score-excellent: #059669;
  --tara-pass: #22C55E;
  --tara-fail: #EF4444;
  --tara-warning: #F59E0B;

  font-family: 'Inter', 'SF Pro Display', system-ui, sans-serif;
  color: var(--tara-text);
  background: var(--tara-bg);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* ─── RESET OVERRIDES ─── */
.tara-wrap * { box-sizing: border-box; }
.tara-wrap a { color: var(--tara-star); text-decoration: none; }
.tara-wrap a:hover { text-decoration: underline; }

/* ─── TYPOGRAPHY ─── */
.tara-serif { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; }
.tara-mono { font-family: 'JetBrains Mono', 'SF Mono', monospace; font-weight: 400; }
.tara-devanagari { font-family: 'Noto Sans Devanagari', sans-serif; font-weight: 400; }

.tara-subtitle {
  font-family: 'Noto Sans Devanagari', sans-serif;
  font-size: 0.8rem;
  color: var(--tara-text-ghost);
  display: block;
  margin-top: 2px;
  letter-spacing: 0.02em;
}

/* ─── LAYOUT ─── */
.tara-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 20px;
}

.tara-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--tara-border);
  margin-bottom: 40px;
}

.tara-header-left {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--tara-text-dim);
}

.tara-header-left a { color: var(--tara-text-dim); }
.tara-header-left a:hover { color: var(--tara-text); }

.tara-header-right {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--tara-text-ghost);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ─── HERO SECTION ─── */
.tara-hero {
  text-align: center;
  padding: 40px 0 50px;
}

.tara-constellation-hero {
  width: 420px;
  height: 420px;
  margin: 0 auto 40px;
  position: relative;
}

.tara-hero-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
  color: var(--tara-text);
}

.tara-hero-subtitle-hindi {
  font-family: 'Noto Sans Devanagari', sans-serif;
  font-size: 1rem;
  color: var(--tara-text-ghost);
  margin: 0 0 28px;
  letter-spacing: 0.04em;
}

.tara-hero-desc {
  font-size: 1.05rem;
  color: var(--tara-text-dim);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.65;
}

/* ─── FORM ─── */
.tara-form {
  max-width: 480px;
  margin: 0 auto;
  text-align: left;
}

.tara-field {
  margin-bottom: 16px;
}

.tara-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--tara-text-ghost);
  display: block;
  margin-bottom: 6px;
}

.tara-input {
  width: 100%;
  padding: 14px 16px;
  background: var(--tara-surface);
  border: 1px solid var(--tara-border);
  border-radius: 8px;
  color: var(--tara-text);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.tara-input:focus {
  border-color: var(--tara-border-focus);
  box-shadow: 0 0 0 3px rgba(224, 242, 254, 0.06);
}

.tara-input::placeholder {
  color: var(--tara-text-ghost);
}

/* ─── INTENSITY SELECTOR ─── */
.tara-intensity-wrap {
  margin-bottom: 20px;
}

.tara-intensity-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--tara-text-ghost);
  margin-bottom: 8px;
}

.tara-intensity-options {
  display: flex;
  gap: 8px;
}

.tara-intensity-btn {
  flex: 1;
  padding: 10px 12px;
  background: var(--tara-surface);
  border: 1px solid var(--tara-border);
  border-radius: 6px;
  color: var(--tara-text-dim);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.tara-intensity-btn:hover {
  border-color: var(--tara-border-focus);
  color: var(--tara-text);
}

.tara-intensity-btn.active {
  border-color: var(--tara-star);
  color: var(--tara-text);
  background: rgba(224, 242, 254, 0.04);
  box-shadow: 0 0 8px rgba(224, 242, 254, 0.06);
}

/* ─── SUBMIT BUTTON ─── */
.tara-submit-btn {
  width: 100%;
  padding: 16px;
  background: var(--tara-text);
  color: var(--tara-void);
  border: none;
  border-radius: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 8px;
  position: relative;
  overflow: hidden;
}

.tara-submit-btn:hover {
  background: var(--tara-star);
  box-shadow: 0 0 20px rgba(224, 242, 254, 0.15);
}

.tara-submit-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.tara-submit-hindi {
  display: block;
  font-family: 'Noto Sans Devanagari', sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  opacity: 0.6;
  margin-top: 2px;
  letter-spacing: 0;
  text-transform: none;
}

/* ─── CAPABILITIES CONSTELLATION ─── */
.tara-capabilities {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 32px auto 24px;
  max-width: 480px;
}

.tara-cap-node {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--tara-text-ghost);
  letter-spacing: 0.04em;
}

.tara-cap-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--tara-connection);
}

.tara-hero-stats {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--tara-text-ghost);
  letter-spacing: 0.04em;
  margin-top: 28px;
}

/* ─── ANALYZING STATE ─── */
.tara-analyzing {
  text-align: center;
  padding: 40px 0;
}

.tara-analyzing-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--tara-text-dim);
  margin-bottom: 4px;
}

.tara-analyzing-domain {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.8rem;
  margin-bottom: 32px;
  color: var(--tara-text);
}

.tara-screenshot-preview {
  max-width: 600px;
  margin: 0 auto 32px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--tara-border);
  background: var(--tara-surface);
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tara-screenshot-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tara-screenshot-placeholder {
  color: var(--tara-text-ghost);
  font-size: 0.8rem;
  font-family: 'JetBrains Mono', monospace;
}

.tara-progress-list {
  max-width: 420px;
  margin: 0 auto;
  text-align: left;
}

.tara-progress-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-size: 0.85rem;
  color: var(--tara-text-ghost);
  transition: color 0.3s ease;
}

.tara-progress-item.completed {
  color: var(--tara-text-dim);
}

.tara-progress-item.active {
  color: var(--tara-text);
}

.tara-progress-icon {
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.tara-progress-item.completed .tara-progress-icon { color: var(--tara-pass); }
.tara-progress-item.active .tara-progress-icon { color: var(--tara-accent); }

.tara-progress-hindi {
  font-family: 'Noto Sans Devanagari', sans-serif;
  font-size: 0.75rem;
  color: var(--tara-text-ghost);
  margin-left: auto;
}

.tara-progress-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--tara-text-ghost);
  margin-left: auto;
  min-width: 48px;
  text-align: right;
}

/* ─── RESULTS ─── */
.tara-results {
  padding: 20px 0 60px;
}

/* Score Card */
.tara-score-card {
  background: var(--tara-surface);
  border: 1px solid var(--tara-border);
  border-radius: 12px;
  padding: 48px 40px;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.tara-score-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cpath d='M100 10L120 80L190 100L120 120L100 190L80 120L10 100L80 80Z' stroke='%23ffffff' stroke-width='0.3' fill='none' opacity='0.03'/%3E%3C/svg%3E") center/200px repeat;
  pointer-events: none;
}

.tara-score-header {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--tara-text-ghost);
  margin-bottom: 4px;
}

.tara-score-header-hindi {
  font-family: 'Noto Sans Devanagari', sans-serif;
  font-size: 0.7rem;
  color: var(--tara-text-ghost);
  opacity: 0.6;
  margin-bottom: 20px;
}

.tara-score-domain {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.4rem;
  color: var(--tara-text-dim);
  margin-bottom: 4px;
}

.tara-score-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--tara-text-ghost);
  margin-bottom: 32px;
}

/* Score Ring */
.tara-score-ring-wrap {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto 20px;
}

.tara-score-ring-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.tara-score-ring-bg {
  fill: none;
  stroke: var(--tara-border);
  stroke-width: 6;
}

.tara-score-ring-fill {
  fill: none;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 440;
  stroke-dashoffset: 440;
  transition: stroke-dashoffset 2s cubic-bezier(0.16, 1, 0.3, 1);
}

.tara-score-number {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 3.5rem;
  color: var(--tara-text);
  line-height: 1;
}

.tara-score-of {
  font-family: 'Noto Sans Devanagari', sans-serif;
  font-size: 0.75rem;
  color: var(--tara-text-ghost);
  margin-bottom: 24px;
}

.tara-verdict {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.3rem;
  font-style: italic;
  color: var(--tara-text-dim);
  max-width: 400px;
  margin: 0 auto 8px;
  line-height: 1.4;
}

.tara-verdict-hindi {
  font-family: 'Noto Sans Devanagari', sans-serif;
  font-size: 0.85rem;
  color: var(--tara-text-ghost);
  opacity: 0.5;
  max-width: 400px;
  margin: 0 auto 32px;
}

/* Category bars in score card */
.tara-score-bars {
  text-align: left;
  max-width: 480px;
  margin: 0 auto;
}

.tara-score-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
}

.tara-score-bar-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--tara-text-dim);
  min-width: 140px;
}

.tara-score-bar-track {
  flex: 1;
  height: 6px;
  background: var(--tara-border);
  border-radius: 3px;
  overflow: hidden;
}

.tara-score-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
  width: 0;
}

.tara-score-bar-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--tara-text-ghost);
  min-width: 28px;
  text-align: right;
}

/* Share buttons */
.tara-share-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.tara-share-btn {
  padding: 8px 20px;
  background: transparent;
  border: 1px solid var(--tara-border);
  border-radius: 6px;
  color: var(--tara-text-dim);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.04em;
}

.tara-share-btn:hover {
  border-color: var(--tara-border-focus);
  color: var(--tara-text);
}

/* ─── SYNTHESIS SECTION ─── */
.tara-synthesis {
  background: var(--tara-surface);
  border: 1px solid var(--tara-border);
  border-radius: 12px;
  padding: 36px 32px;
  margin-bottom: 32px;
}

.tara-synthesis-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.tara-synthesis h3 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 400;
  margin: 0;
}

.tara-synthesis-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #D4D4D8;
  margin-bottom: 24px;
}

.tara-pattern-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.tara-highlight-box {
  padding: 16px;
  border-radius: 8px;
  border: 1px solid var(--tara-border);
  background: rgba(255, 255, 255, 0.01);
}

.tara-highlight-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--tara-text-ghost);
  margin-bottom: 2px;
}

.tara-highlight-label-hindi {
  font-family: 'Noto Sans Devanagari', sans-serif;
  font-size: 0.6rem;
  color: var(--tara-text-ghost);
  opacity: 0.5;
  margin-bottom: 8px;
}

.tara-highlight-value {
  font-size: 0.85rem;
  color: #D4D4D8;
  line-height: 1.5;
}

/* ─── CATEGORY CARDS ─── */
.tara-categories {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 32px;
}

.tara-category-card {
  background: var(--tara-surface);
  border: 1px solid var(--tara-border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.tara-category-card:hover {
  border-color: var(--tara-border-focus);
}

.tara-category-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  cursor: pointer;
  user-select: none;
}

.tara-node-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--tara-void);
  position: relative;
}

.tara-node-icon::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid currentColor;
  opacity: 0.2;
}

.tara-category-info {
  flex: 1;
  min-width: 0;
}

.tara-category-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--tara-text);
  margin-bottom: 1px;
}

.tara-category-hindi {
  font-family: 'Noto Sans Devanagari', sans-serif;
  font-size: 0.7rem;
  color: var(--tara-text-ghost);
}

.tara-category-bar {
  width: 100px;
  height: 4px;
  background: var(--tara-border);
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
}

.tara-category-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.tara-category-score {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--tara-text-dim);
  min-width: 24px;
  text-align: right;
}

.tara-category-expand {
  color: var(--tara-text-ghost);
  font-size: 0.8rem;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.tara-category-card.expanded .tara-category-expand {
  transform: rotate(90deg);
}

/* Category Body (expandable) */
.tara-category-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.tara-category-card.expanded .tara-category-body {
  max-height: 2000px;
}

.tara-category-content {
  padding: 0 20px 20px;
  border-top: 1px solid var(--tara-border);
}

.tara-roast-text {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #D4D4D8;
  margin: 16px 0;
  font-style: italic;
}

/* Findings list */
.tara-findings {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.tara-finding {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.85rem;
  color: #D4D4D8;
  line-height: 1.5;
}

.tara-finding-icon {
  flex-shrink: 0;
  width: 18px;
  text-align: center;
  font-size: 0.8rem;
}

.tara-finding.pass .tara-finding-icon { color: var(--tara-pass); }
.tara-finding.fail .tara-finding-icon { color: var(--tara-fail); }
.tara-finding.warning .tara-finding-icon { color: var(--tara-warning); }

/* Fix box */
.tara-fix-box {
  background: rgba(224, 242, 254, 0.03);
  border: 1px solid var(--tara-border);
  border-radius: 8px;
  padding: 14px 16px;
  margin-top: 12px;
}

.tara-fix-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--tara-accent);
  margin-bottom: 6px;
}

.tara-fix-text {
  font-size: 0.85rem;
  color: #D4D4D8;
  line-height: 1.6;
}

/* ─── COMPETITIVE SECTION ─── */
.tara-competitive {
  background: var(--tara-surface);
  border: 1px solid var(--tara-border);
  border-radius: 12px;
  padding: 36px 32px;
  margin-bottom: 32px;
}

.tara-competitive h3 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 400;
  margin: 0 0 4px;
}

.tara-competitive-desc {
  font-size: 0.9rem;
  color: var(--tara-text-dim);
  margin-bottom: 24px;
  line-height: 1.5;
}

.tara-competitor-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tara-competitor-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--tara-border);
}

.tara-competitor-row.is-user {
  border-color: var(--tara-accent);
  background: var(--tara-accent-glow);
}

.tara-competitor-rank {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--tara-text-ghost);
  min-width: 20px;
}

.tara-competitor-name {
  flex: 1;
  font-size: 0.85rem;
  color: var(--tara-text-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tara-competitor-row.is-user .tara-competitor-name {
  color: var(--tara-text);
  font-weight: 500;
}

.tara-competitor-score {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  min-width: 32px;
  text-align: right;
}

.tara-competitor-bar {
  width: 80px;
  height: 4px;
  background: var(--tara-border);
  border-radius: 2px;
  overflow: hidden;
}

.tara-competitor-bar-fill {
  height: 100%;
  border-radius: 2px;
}

/* ─── CTA SECTION ─── */
.tara-cta {
  background: var(--tara-surface);
  border: 1px solid var(--tara-border);
  border-radius: 12px;
  padding: 40px 32px;
  text-align: center;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}

.tara-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(245, 158, 11, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.tara-cta-score-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--tara-accent);
  margin-bottom: 16px;
}

.tara-cta h3 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 400;
  margin: 0 0 12px;
  font-style: italic;
}

.tara-cta-desc {
  font-size: 0.9rem;
  color: #E4E4E7;
  margin-bottom: 24px;
  line-height: 1.6;
}

.tara-cta-btn {
  display: inline-block;
  padding: 16px 40px;
  background: var(--tara-accent);
  color: var(--tara-void);
  border: none;
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.25), 0 0 60px rgba(245, 158, 11, 0.08);
  border-radius: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.tara-cta-btn:hover {
  background: #FBBF24;
  box-shadow: 0 0 32px rgba(245, 158, 11, 0.35), 0 0 80px rgba(245, 158, 11, 0.12);
  text-decoration: none;
  transform: translateY(-1px);
}

/* ─── FOOTER ─── */
.tara-footer {
  border-top: 1px solid var(--tara-border);
  padding: 24px 0;
  text-align: center;
}

.tara-footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.tara-footer-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--tara-text-ghost);
  letter-spacing: 0.04em;
}

.tara-footer-link:hover { color: var(--tara-text-dim); }

.tara-powered {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--tara-text-ghost);
}

/* ─── ERROR STATE ─── */
.tara-error {
  text-align: center;
  padding: 60px 20px;
}

.tara-error-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.tara-error-text {
  color: var(--tara-text-dim);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.tara-retry-btn {
  padding: 12px 28px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: var(--tara-text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tara-retry-btn:hover {
  border-color: var(--tara-text);
  background: rgba(255, 255, 255, 0.05);
}

/* ═══════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */

/* Stagger fade-in */
.tara-stagger > * {
  opacity: 0;
  animation: taraFadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.tara-stagger > *:nth-child(1) { animation-delay: 0.1s; }
.tara-stagger > *:nth-child(2) { animation-delay: 0.2s; }
.tara-stagger > *:nth-child(3) { animation-delay: 0.3s; }
.tara-stagger > *:nth-child(4) { animation-delay: 0.4s; }
.tara-stagger > *:nth-child(5) { animation-delay: 0.5s; }
.tara-stagger > *:nth-child(6) { animation-delay: 0.6s; }

/* Hero-specific animation: title/subtitle visible immediately, decorative elements fade fast */
.tara-hero-animate > * {
  opacity: 1;
}
.tara-hero-animate > .tara-particle-canvas {
  opacity: 0;
  animation: taraFadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}
.tara-hero-animate > .tara-constellation-hero {
  opacity: 0;
  animation: taraFadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.05s forwards;
}
.tara-hero-animate > .tara-form {
  opacity: 0;
  animation: taraFadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}

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

/* Star pulse for constellation nodes */
@keyframes taraStarPulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

/* Node active during analysis */
@keyframes taraNodeActive {
  0%, 100% { filter: drop-shadow(0 0 4px var(--tara-accent)) brightness(1); }
  50% { filter: drop-shadow(0 0 12px var(--tara-accent)) brightness(1.3); }
}

/* Connection line drawing */
@keyframes taraDrawLine {
  to { stroke-dashoffset: 0; }
}

/* Score ring reveal */
@keyframes taraScoreReveal {
  to { stroke-dashoffset: var(--target-offset); }
}

/* Shimmer text */
.tara-shimmer {
  background: linear-gradient(90deg, var(--tara-text) 0%, var(--tara-star) 50%, var(--tara-text) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: taraShimmer 3s ease-in-out infinite;
}

@keyframes taraShimmer {
  0%, 100% { background-position: 200% 0; }
  50% { background-position: -200% 0; }
}

/* Glow */
.tara-glow {
  filter: drop-shadow(0 0 8px var(--tara-star-glow));
  transition: filter 0.3s ease;
}
.tara-glow:hover {
  filter: drop-shadow(0 0 16px var(--tara-star-glow));
}

/* Analyzing dots animation */
@keyframes taraDots {
  0% { content: ''; }
  25% { content: '.'; }
  50% { content: '..'; }
  75% { content: '...'; }
}

.tara-dots::after {
  content: '';
  animation: taraDots 1.5s steps(4, end) infinite;
}

/* Category card reveal with stagger */
.tara-card-reveal {
  opacity: 0;
  transform: translateY(30px);
  animation: taraCardReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes taraCardReveal {
  to { opacity: 1; transform: translateY(0); }
}

/* ─── PARTICLE CANVAS ─── */
.tara-particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ─── CONSTELLATION SVG ─── */
.tara-constellation-svg {
  width: 100%;
  height: 100%;
}

.tara-constellation-svg .node {
  animation: taraStarPulse 3s ease-in-out infinite;
}

.tara-constellation-svg .node.active {
  animation: none;
  opacity: 1;
}

.tara-constellation-svg .node.analyzing {
  animation: taraNodeActive 1s ease-in-out infinite;
}

.tara-constellation-svg .conn-line {
  stroke: var(--tara-connection);
  stroke-width: 0.5;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
}

.tara-constellation-svg .conn-line.drawn {
  animation: taraDrawLine 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.tara-constellation-svg .sanskrit-char {
  font-family: 'Noto Sans Devanagari', sans-serif;
  font-size: 10px;
  fill: rgba(224, 242, 254, 0.15);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .tara-constellation-hero {
    width: 280px;
    height: 280px;
  }

  .tara-hero-title { font-size: 2.2rem; }

  .tara-score-card { padding: 32px 20px; }

  .tara-pattern-highlights {
    grid-template-columns: 1fr;
  }

  .tara-category-header { padding: 14px 16px; gap: 10px; }
  .tara-category-bar { width: 60px; }

  .tara-synthesis,
  .tara-competitive,
  .tara-cta { padding: 28px 20px; }

  .tara-subtitle { font-size: 0.7rem; }

  .tara-intensity-options { flex-direction: column; }

  .tara-competitor-bar { display: none; }
}

@media (max-width: 480px) {
  .tara-constellation-hero {
    width: 220px;
    height: 220px;
  }

  .tara-hero { padding: 20px 0 30px; }
  .tara-hero-title { font-size: 1.8rem; }
  .tara-hero-desc { font-size: 0.9rem; }

  .tara-score-bar-label { min-width: 100px; font-size: 0.6rem; }
  .tara-category-name { font-size: 0.8rem; }
  .tara-category-hindi { display: none; }
}
