@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg-dark: #0a2540;
  --bg-light: #f6f9fc;
  --bg-white: #ffffff;
  --border: rgba(10, 37, 64, 0.08);
  --text-dark: #0a2540;
  --text-light: #425466;
  --text-muted: #8898aa;
  --accent: #635bff;
  --accent-hover: #5851ea;
  --accent-light: rgba(99, 91, 255, 0.1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-white);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrapper { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
}

nav .wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  text-decoration: none;
  letter-spacing: -0.03em;
}

.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-dark); }

/* Hero with gradient */
.hero {
  min-height: 100vh;
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-gradient-bg {
  position: absolute;
  top: 0;
  right: -10%;
  width: 80%;
  height: 120%;
  background:
    radial-gradient(ellipse at 70% 20%, rgba(255, 107, 107, 0.4) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 50%, rgba(255, 154, 86, 0.5) 0%, transparent 40%),
    radial-gradient(ellipse at 60% 60%, rgba(168, 85, 247, 0.4) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(99, 91, 255, 0.3) 0%, transparent 40%);
  z-index: 0;
  animation: gradientShift 15s ease-in-out infinite alternate;
}

@keyframes gradientShift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-5%, 5%) scale(1.1); }
}

.hero .wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content { max-width: 540px; }

.hero-eyebrow {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 24px;
  color: var(--text-dark);
}

.hero-gradient-text {
  background: linear-gradient(135deg, #ff6b6b 0%, #a855f7 50%, #635bff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: textGradient 5s ease infinite;
}

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

.hero p {
  font-size: 1.25rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 40px;
}

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-input-group {
  display: flex;
  gap: 0;
  background: var(--bg-white);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.05);
  overflow: hidden;
  max-width: 420px;
}

.hero-input {
  flex: 1;
  padding: 16px 20px;
  border: none;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  min-width: 200px;
}

.hero-input::placeholder { color: var(--text-muted); }

/* Floating cards */
.hero-visual {
  position: relative;
  height: 500px;
  perspective: 1000px;
}

.floating-card {
  position: absolute;
  background: var(--bg-white);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.08);
  padding: 20px;
  animation: float 6s ease-in-out infinite;
}

.floating-card-1 {
  top: 10%;
  right: 10%;
  width: 280px;
  animation-delay: 0s;
}

.floating-card-2 {
  top: 35%;
  right: 25%;
  width: 260px;
  animation-delay: -2s;
}

.floating-card-3 {
  top: 60%;
  right: 5%;
  width: 240px;
  animation-delay: -4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotateX(2deg) rotateY(-2deg); }
  50% { transform: translateY(-20px) rotateX(-2deg) rotateY(2deg); }
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.card-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
}

.card-icon-purple { background: linear-gradient(135deg, #a855f7, #635bff); color: white; }
.card-icon-orange { background: linear-gradient(135deg, #ff9a56, #ff6b6b); color: white; }
.card-icon-blue { background: linear-gradient(135deg, #635bff, #80e9ff); color: white; }

.card-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-dark);
}

.card-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.card-content {
  font-size: 0.8125rem;
  color: var(--text-light);
  line-height: 1.6;
}

.card-metric {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 12px;
}

.card-metric-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
}

.card-metric-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.card-metric-change {
  font-size: 0.75rem;
  font-weight: 600;
  color: #10b981;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2), 0 2px 8px rgba(0, 0, 0, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4), 0 4px 12px rgba(99, 91, 255, 0.4);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-secondary {
  background: var(--bg-white);
  color: var(--text-dark);
  box-shadow: 0 0 0 1px var(--border);
}
.btn-secondary:hover {
  box-shadow: 0 0 0 1px var(--text-muted);
}

.btn-arrow { transition: transform 0.2s; }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* Logos */
.logos-section {
  padding: 80px 0;
  background: var(--bg-white);
  border-top: 1px solid var(--border);
}

.logos-title {
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.logos-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 64px;
  flex-wrap: wrap;
  opacity: 0.6;
}

.logo-item {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

/* Features */
.features {
  padding: 120px 0;
  background: var(--bg-light);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.section-desc {
  font-size: 1.125rem;
  color: var(--text-light);
  line-height: 1.7;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  padding: 40px 32px;
  background: var(--bg-white);
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: all 0.3s;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.feature-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), #a855f7);
  border-radius: 12px;
  margin-bottom: 24px;
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.feature-card p {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* How it works */
.how-it-works {
  padding: 120px 0;
  background: var(--bg-dark);
  color: white;
  position: relative;
  overflow: hidden;
}

.how-it-works::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 80%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(99, 91, 255, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.how-it-works .section-eyebrow { color: #80e9ff; }
.how-it-works .section-title { color: white; }
.how-it-works .section-desc { color: rgba(255, 255, 255, 0.7); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 64px;
  position: relative;
}

.step {
  position: relative;
  text-align: center;
}

.step-number {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, #635bff 0%, #a855f7 50%, #ff6b6b 100%);
  border-radius: 50%;
  font-size: 1.75rem;
  font-weight: 700;
  color: white;
  box-shadow: 0 8px 24px rgba(99, 91, 255, 0.4);
}

.step h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: white;
}

.step p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}

/* App Section */
.app-section {
  padding: 120px 0;
  background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-white) 100%);
}

.app-container {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-white);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.08);
  overflow: hidden;
}

.app-header {
  padding: 16px 24px;
  background: linear-gradient(135deg, var(--bg-dark) 0%, #1a365d 100%);
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-dots { display: flex; gap: 8px; }
.app-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.app-dot:nth-child(1) { background: #ff5f57; }
.app-dot:nth-child(2) { background: #febc2e; }
.app-dot:nth-child(3) { background: #28c840; }

.app-title {
  flex: 1;
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.app-content { padding: 48px; }

/* Form Elements */
.form-section { margin-bottom: 40px; }

.form-label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.form-sublabel {
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 8px;
}

.topic-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.topic-btn {
  padding: 10px 18px;
  background: var(--bg-white);
  border: 1px solid #e4e8ee;
  border-radius: 8px;
  color: var(--text-light);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.topic-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.topic-btn.selected {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

.text-input {
  width: 100%;
  padding: 16px 20px;
  background: var(--bg-white);
  border: 2px solid #e4e8ee;
  border-radius: 10px;
  color: var(--text-dark);
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.2s;
}

.text-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-light);
}

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

.upload-area {
  border: 2px dashed #d0d5dd;
  border-radius: 12px;
  padding: 48px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--bg-light);
}

.upload-area:hover {
  border-color: var(--accent);
  background: var(--accent-light);
}

.upload-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  background: var(--bg-white);
  border-radius: 12px;
  color: var(--accent);
  font-size: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.upload-area h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-dark);
}

.upload-area p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.upload-link {
  color: var(--accent);
  font-weight: 600;
}

.sample-style-option {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 16px 20px;
  background: var(--bg-light);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
}

.sample-style-option:hover {
  background: var(--accent-light);
  border-color: var(--accent);
}

.sample-style-option input {
  accent-color: var(--accent);
  width: 20px;
  height: 20px;
}

.sample-style-option label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-dark);
  cursor: pointer;
}

.sample-style-option span {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.file-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.file-tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  background: var(--accent-light);
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--accent);
  font-weight: 500;
}

.submit-btn {
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, var(--accent) 0%, #a855f7 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 91, 255, 0.4);
}

.submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.free-note {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 12px;
}

/* Loading */
.loading-state { text-align: center; padding: 60px 0; }

.loading-visual {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 32px;
}

.loading-orb {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  background: linear-gradient(135deg, var(--accent) 0%, #a855f7 50%, #ff6b6b 100%);
  border-radius: 50%;
  animation: orbPulse 2s ease-in-out infinite;
  box-shadow: 0 0 40px rgba(99, 91, 255, 0.5);
}

@keyframes orbPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 40px rgba(99, 91, 255, 0.5); }
  50% { transform: scale(1.1); box-shadow: 0 0 60px rgba(168, 85, 247, 0.6); }
}

.loading-rings {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 2px solid transparent;
  border-radius: 50%;
  animation: ringExpand 3s ease-out infinite;
}

.ring-1 {
  width: 60px;
  height: 60px;
  margin: -30px 0 0 -30px;
  border-color: rgba(99, 91, 255, 0.4);
  animation-delay: 0s;
}

.ring-2 {
  width: 80px;
  height: 80px;
  margin: -40px 0 0 -40px;
  border-color: rgba(168, 85, 247, 0.3);
  animation-delay: 0.5s;
}

.ring-3 {
  width: 100px;
  height: 100px;
  margin: -50px 0 0 -50px;
  border-color: rgba(255, 107, 107, 0.2);
  animation-delay: 1s;
}

@keyframes ringExpand {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

.loading-state h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dark);
  transition: all 0.3s;
}

.loading-state p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  transition: all 0.3s;
}

/* Progress steps */
.progress-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 24px;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.4;
  transition: all 0.4s ease;
}

.progress-step.active {
  opacity: 1;
}

.progress-step.active .step-icon {
  background: linear-gradient(135deg, var(--accent) 0%, #a855f7 100%);
  color: white;
  animation: stepPulse 1.5s ease-in-out infinite;
}

.progress-step.completed {
  opacity: 1;
}

.progress-step.completed .step-icon {
  background: #10b981;
  color: white;
}

.progress-step.completed .step-icon::after {
  content: '✓';
  position: absolute;
  font-size: 0.75rem;
}

.step-icon {
  position: relative;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light);
  border-radius: 50%;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.4s ease;
}

.progress-step.completed .step-icon {
  font-size: 0;
}

@keyframes stepPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(99, 91, 255, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(99, 91, 255, 0); }
}

.progress-step span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.3s;
}

.progress-step.active span,
.progress-step.completed span {
  color: var(--text-dark);
}

.progress-connector {
  width: 40px;
  height: 2px;
  background: var(--bg-light);
  margin: 0 8px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.progress-connector.active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--accent), #a855f7);
  animation: connectorFill 0.5s ease forwards;
}

@keyframes connectorFill {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

/* Skeleton loading */
.article-skeleton {
  background: var(--bg-light);
  border-radius: 16px;
  margin-bottom: 24px;
  overflow: hidden;
  animation: skeletonFade 1.5s ease-in-out infinite;
}

@keyframes skeletonFade {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.skeleton-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
}

.skeleton-label {
  width: 80px;
  height: 16px;
  background: linear-gradient(90deg, #e4e8ee 25%, #f0f2f5 50%, #e4e8ee 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
}

.skeleton-btn {
  width: 60px;
  height: 32px;
  background: linear-gradient(90deg, #e4e8ee 25%, #f0f2f5 50%, #e4e8ee 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
}

.skeleton-body {
  padding: 24px;
}

.skeleton-line {
  height: 16px;
  background: linear-gradient(90deg, #e4e8ee 25%, #f0f2f5 50%, #e4e8ee 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
  margin-bottom: 12px;
}

.skeleton-line:last-child { margin-bottom: 0; }
.skeleton-line.short { width: 60%; }
.skeleton-line.medium { width: 80%; }

.skeleton-footer {
  padding: 16px 24px;
  background: var(--bg-white);
  border-top: 1px solid var(--border);
}

.skeleton-link {
  width: 200px;
  height: 14px;
  background: linear-gradient(90deg, #e4e8ee 25%, #f0f2f5 50%, #e4e8ee 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Writing indicator in results */
.writing-indicator {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--accent-light) 0%, rgba(168, 85, 247, 0.1) 100%);
  border-radius: 10px;
  margin-bottom: 24px;
  font-size: 0.9375rem;
  color: var(--accent);
  font-weight: 500;
  transition: opacity 0.3s ease;
  animation: fadeIn 0.3s ease;
}

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

.writing-dots {
  display: flex;
  gap: 4px;
}

.writing-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: writingBounce 1.4s ease-in-out infinite;
}

.writing-dot:nth-child(2) { animation-delay: 0.2s; }
.writing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes writingBounce {
  0%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-6px); }
}

/* Results */
.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.results-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
}

.reset-btn {
  padding: 10px 20px;
  background: var(--bg-light);
  border: none;
  border-radius: 8px;
  color: var(--text-light);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.reset-btn:hover {
  background: var(--accent-light);
  color: var(--accent);
}

.article-card {
  background: var(--bg-light);
  border-radius: 16px;
  margin-bottom: 24px;
  overflow: hidden;
}

.article-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
}

.article-label {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
}

.copy-btn {
  padding: 8px 16px;
  background: var(--accent);
  border: none;
  border-radius: 6px;
  color: white;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.copy-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.copy-btn.copied {
  background: #10b981;
}

.article-body {
  padding: 24px;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-dark);
  white-space: pre-wrap;
}

.article-footer {
  padding: 16px 24px;
  background: var(--bg-white);
  border-top: 1px solid var(--border);
}

.article-footer a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
}

.article-footer a:hover { text-decoration: underline; }

/* Error */
.error-msg {
  padding: 20px 24px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 12px;
  color: #dc2626;
  font-size: 0.9375rem;
}

/* Footer */
footer {
  padding: 80px 0;
  background: var(--bg-dark);
  text-align: center;
}

footer p {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.5);
}


/* Article animation */
.article-animate {
  animation: slideIn 0.4s ease-out forwards;
  opacity: 0;
  transform: translateY(20px);
}

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

/* Utilities */
.hidden { display: none !important; }

/* Responsive */
@media (max-width: 900px) {
  .hero .wrapper { grid-template-columns: 1fr; text-align: center; }
  .hero-content { max-width: 100%; margin: 0 auto; }
  .hero-cta { justify-content: center; }
  .hero-visual { display: none; }
  .hero-gradient-bg { width: 150%; right: -25%; }
  .feature-grid, .steps { grid-template-columns: 1fr; gap: 24px; }
  .logos-grid { gap: 32px; }
}

@media (max-width: 768px) {
  .hero { padding: 120px 0 60px; min-height: auto; }
  .hero h1 { font-size: 2.5rem; }
  .features, .how-it-works, .app-section { padding: 80px 0; }
  .nav-links a:not(.btn) { display: none; }
  .app-content { padding: 24px; }
}
