/* ntxt.ai Landing — Extension style (dark theme, purple accents) */

:root {
  --bg: #0d0f14;
  --bg-elevated: #13161e;
  --bg-card: #1a1e28;
  --border: rgba(255, 255, 255, 0.07);
  --border-glow: rgba(124, 111, 255, 0.35);
  --text: #e8eaf0;
  --text-muted: #8b90a4;
  --text-dim: #565c70;
  --accent: #6c63ff;
  --accent-2: #8b63ff;
  --accent-light: #a89fff;
  --accent-glow: rgba(108, 99, 255, 0.25);
  --title-gradient: linear-gradient(135deg, #fff 30%, #a89fff);
  --btn-gradient: linear-gradient(135deg, #6c63ff, #9363ff);
  --radius: 10px;
  --radius-sm: 7px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 15, 20, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: "Syne", sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
  background: var(--title-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

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

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

.nav-links a:hover {
  color: var(--accent-light);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-primary {
  background: var(--btn-gradient);
  color: white;
  box-shadow: 0 4px 14px rgba(108, 99, 255, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 4px 20px rgba(108, 99, 255, 0.45);
  color: white;
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--bg-elevated);
  color: var(--accent-light);
  border-color: rgba(124, 111, 255, 0.3);
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

/* Hero */
.hero {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(108, 99, 255, 0.12);
  border: 1px solid rgba(108, 99, 255, 0.25);
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent-light);
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.hero-badge-dot {
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent);
  animation: pulse 2s infinite;
}

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

.hero-title {
  font-family: "Syne", sans-serif;
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 1.5rem;
  letter-spacing: 0.02em;
}

.hero-title-line {
  display: block;
}

.hero-title-line.accent {
  background: var(--title-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.hero-note {
  font-size: 0.875rem;
  color: var(--text-dim);
  margin: 0 0 4rem;
}

/* Hero preview mock (extension panel style) */
.hero-preview {
  display: flex;
  justify-content: center;
}

.preview-mock {
  width: 100%;
  max-width: 340px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2);
}

.preview-mock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.preview-mock-title {
  font-family: "Syne", sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: var(--title-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.preview-mock-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  background: rgba(108, 99, 255, 0.12);
  border: 1px solid rgba(108, 99, 255, 0.25);
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
  color: var(--accent-light);
  letter-spacing: 0.04em;
}

.preview-mock-badge::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent);
}

.preview-mock-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.preview-mock-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.preview-mock-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.preview-mock-value {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.preview-mock-tones {
  display: flex;
  width: 100%;
}

.preview-tone {
  flex: 1;
  padding: 6px 0;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  color: var(--text-dim);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-right-width: 0;
}

.preview-tone:first-child {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.preview-tone:last-child {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  border-right-width: 1px;
}

.preview-tone.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  z-index: 1;
}

.preview-mock-btn {
  width: 100%;
  padding: 10px 14px;
  background: var(--btn-gradient);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(108, 99, 255, 0.35);
}

/* Sections */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.section-title {
  font-family: "Syne", sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.section-title.serif {
  font-weight: 600;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin: 0 0 3rem;
}

/* How it works */
.how-it-works {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.step {
  padding: 1.5rem;
  background: var(--bg-elevated);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.step-num {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-light);
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.step h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.step p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature {
  padding: 2rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.feature:hover {
  box-shadow: 0 0 0 1px rgba(124, 111, 255, 0.2);
  border-color: rgba(124, 111, 255, 0.3);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.feature h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.feature p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* CTA section */
.cta-section {
  text-align: center;
  padding: 5rem 1.5rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0 1rem;
}

.cta-note {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin: 0 0 1.5rem;
}

.cta-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.cta-benefits span::before {
  content: "✓ ";
  color: var(--accent-light);
  font-weight: 600;
}

/* Footer */
.footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  color: var(--text);
  padding: 3rem 1.5rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.footer .logo {
  display: inline-block;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

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

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin: 0;
}

/* Responsive */
@media (max-width: 640px) {
  .nav-links {
    gap: 1rem;
  }

  .nav-links a:not(.btn) {
    display: none;
  }

  .hero {
    padding: 3rem 1rem 4rem;
  }

  .section {
    padding: 3rem 1rem;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .preview-mock {
    max-width: 100%;
  }
}
