:root {
  --bg-color: #09090b; /* Zinc 950 */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent-green: #10b981;
  --accent-green-rgb: 16, 185, 129;
  --accent-red: #ef4444;
  --accent-red-rgb: 239, 68, 68;
  --border-color: #27272a; /* Zinc 800 */
  --card-bg: rgba(24, 24, 27, 0.4); /* Zinc 900 */
  --btn-bg: #e4e4e7;
  --btn-text: #09090b;
  --btn-hover: #ffffff;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent-green);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.8;
}

header {
  border-bottom: 1px solid var(--border-color);
  padding: 20px 0;
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-main);
}

.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9rem;
}

.nav-links a:hover {
  color: var(--text-main);
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  flex-grow: 1;
  width: 100%;
}

.hero {
  text-align: center;
  margin-bottom: 60px;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.1;
  background: linear-gradient(to right, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--btn-bg);
  color: var(--btn-text);
}

.btn-primary:hover {
  background-color: var(--btn-hover);
  transform: translateY(-2px);
}

.sentiment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(10px);
}

.feature-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.score-display {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 12px;
}

.score-green { color: var(--accent-green); }
.score-red { color: var(--accent-red); }

.summary-box {
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--border-color);
  padding: 16px;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--text-muted);
  margin-top: 16px;
  flex-grow: 1;
}

.summary-box.green { border-left-color: var(--accent-green); }
.summary-box.red { border-left-color: var(--accent-red); }

.upsell-section {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(to bottom, transparent, rgba(16, 185, 129, 0.05));
  border-radius: 24px;
  border: 1px solid var(--border-color);
  margin-top: 60px;
}

.upsell-section h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.upsell-section ul {
  list-style: none;
  max-width: 400px;
  margin: 0 auto 30px;
  text-align: left;
}

.upsell-section li {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.upsell-section li::before {
  content: '✓';
  color: var(--accent-green);
  font-weight: bold;
}

.auth-container {
  max-width: 400px;
  margin: 60px auto;
  background: var(--card-bg);
  padding: 32px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
}

.auth-container h2 {
  text-align: center;
  margin-bottom: 24px;
  font-size: 1.8rem;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-muted);
}

.form-group input {
  width: 100%;
  padding: 12px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-main);
  font-size: 1rem;
  font-family: inherit;
}

.form-group input:focus {
  outline: none;
  border-color: var(--text-muted);
}

.btn-block {
  width: 100%;
}

.footer {
  border-top: 1px solid var(--border-color);
  padding: 40px 20px;
  margin-top: auto;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--text-main);
}

.hidden {
  display: none !important;
}

/* Animations */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}

.skeleton {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  background: var(--border-color);
  border-radius: 4px;
  color: transparent !important;
  user-select: none;
}

.skeleton * {
  visibility: hidden;
}

.fade-in {
  animation: fadeIn 0.5s ease-in forwards;
}

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

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(239, 68, 68, 0.2);
  background: rgba(239, 68, 68, 0.05);
  color: var(--accent-red);
}
