:root {
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
  --primary: #667eea;
  --primary-dark: #764ba2;
  --accent: #3b82f6;
  --accent-light: #eff6ff;
  --success: #10b981;
  --danger: #ef4444;
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  width: min(1100px, 94%);
  margin: 0 auto;
}

header {
  text-align: center;
  padding: 0 0 40px;
}
header h1 {
  margin: 0 0 16px;
  font-size: 48px;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.subtitle {
  color: rgba(255,255,255,0.95);
  margin: 0 0 32px;
  font-size: 18px;
  font-weight: 400;
  margin-left: auto;
  margin-right: auto;
}

.card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(240, 242, 255, 0.85) 100%);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(102, 126, 234, 0.6) 0%, rgba(118, 75, 162, 0.6) 100%);
}

label {
  display: block;
  margin: 0 0 10px;
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.optional { font-size: 0.85em; font-weight: normal; opacity: 0.7; }
textarea {
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  border: 2px solid rgba(226, 232, 240, 0.6);
  background: rgba(248, 250, 252, 0.5);
  color: var(--text);
  resize: vertical;
  font-size: 15px;
  transition: all 0.3s ease;
  font-family: inherit;
  line-height: 1.6;
}
textarea:focus {
  outline: none;
  border-color: rgba(102, 126, 234, 0.6);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
  transform: translateY(-1px);
}

.row { display: flex; gap: 12px; margin-top: 12px; align-items: end; }
.col { flex: 1; }
.align-end { display: flex; justify-content: flex-end; }

@media (max-width: 768px) {
  .row {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .col {
    width: 100%;
  }
}

select, input[type="text"] {
  padding: 14px 16px;
  border-radius: 10px;
  border: 2px solid rgba(226, 232, 240, 0.6);
  background: rgba(248, 250, 252, 0.5);
  color: var(--text);
  font-size: 15px;
  transition: all 0.3s ease;
  font-family: inherit;
}
input[type="text"]:focus, select:focus {
  outline: none;
  border-color: rgba(102, 126, 234, 0.6);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
  transform: translateY(-1px);
}
input[type="text"] {
  width: 100%;
}
.custom-objective {
  margin-top: 12px;
}
button {
  padding: 14px 28px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 12px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 15px;
  box-shadow: 0 4px 14px rgba(102, 126, 234, 0.4);
  position: relative;
  overflow: hidden;
}
button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}
button:hover::before {
  left: 100%;
}
button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
button:active {
  transform: translateY(0);
}

.hint { color: var(--muted); margin: 10px 0 0; }
.error {
  margin: 12px 0 0;
  color: #991b1b;
  background: #fee2e2;
  border: 1px solid #fecaca;
  padding: 12px;
  border-radius: 10px;
  font-size: 14px;
}

.results { 
  margin-top: 60px;
  padding-top: 48px;
  border-top: 2px solid rgba(255, 255, 255, 0.3);
  position: relative;
}
.results::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, rgba(102, 126, 234, 0.6) 0%, rgba(118, 75, 162, 0.6) 100%);
  border-radius: 2px;
}
.results h2 {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 32px;
  letter-spacing: -0.02em;
}
.block { margin: 14px 0; }
.block-header { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.block h3 { margin: 0; }
.box {
  white-space: pre-wrap;
  background: rgba(248, 250, 252, 0.6);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(226, 232, 240, 0.6);
  border-radius: 16px;
  padding: 24px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr; }
}

.variants-section {
  margin: 24px 0;
  padding: 16px;
  background: rgba(91, 140, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.variants-section h3 {
  margin: 0 0 6px;
  font-size: 16px;
}
.variant-hint {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--muted);
  opacity: 0.8;
}
.variant-input-wrapper {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.variant-input-wrapper input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
}
.variant-input-wrapper button {
  padding: 10px 20px;
  white-space: nowrap;
}
.suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.suggestion-label {
  font-size: 12px;
  color: var(--muted);
  opacity: 0.7;
  margin-right: 4px;
}
.suggestion-chip {
  padding: 6px 12px;
  background: rgba(91, 140, 255, 0.1);
  border: 1px solid rgba(91, 140, 255, 0.3);
  color: var(--accent-2);
  border-radius: 16px;
  cursor: pointer;
  transition: all .15s ease;
  font-size: 12px;
}
.suggestion-chip:hover {
  background: rgba(91, 140, 255, 0.2);
  border-color: var(--accent);
}
.suggestion-chip:active {
  transform: scale(0.95);
}

.copy {
  background: var(--accent-2);
}
.copy:hover {
  background: #0284c7;
}

/* How it works section */
.how-it-works {
  margin-top: 24px;
  padding: 24px 28px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}
.how-it-works p {
  margin: 0 0 16px;
  color: white;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.how-it-works ol {
  margin: 0;
  padding-left: 28px;
  color: rgba(255,255,255,0.95);
}
.how-it-works li {
  margin: 10px 0;
  font-size: 15px;
  line-height: 1.7;
}

/* Copywriting guide */
.copywriting-guide {
  margin: 24px 0;
  padding: 20px 24px;
  background: rgba(102, 126, 234, 0.1);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(102, 126, 234, 0.3);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}
.copywriting-guide:hover {
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.2);
  transform: translateY(-2px);
  background: rgba(102, 126, 234, 0.15);
}
.copywriting-guide summary {
  font-size: 16px;
  font-weight: 700;
  color: #667eea;
  list-style: none;
  user-select: none;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.copywriting-guide summary::-webkit-details-marker {
  display: none;
}
.copywriting-guide summary::before {
  content: '▶';
  display: inline-block;
  transition: transform 0.3s ease;
  margin-right: 12px;
  font-size: 14px;
}
.copywriting-guide[open] summary::before {
  transform: rotate(90deg);
}
.guide-content {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 2px solid rgba(59, 130, 246, 0.2);
}
.guide-section {
  margin-bottom: 28px;
}
.guide-section h4 {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.guide-section ul {
  margin: 0;
  padding-left: 28px;
  color: var(--text);
}
.guide-section li {
  margin: 10px 0;
  font-size: 15px;
  line-height: 1.7;
}

/* Form sections */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 40px 0;
}
.section-title {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
.section-note {
  margin: 0 0 24px;
  padding: 16px 20px;
  font-size: 15px;
  color: #667eea;
  background: rgba(102, 126, 234, 0.1);
  backdrop-filter: blur(10px);
  border-left: 4px solid #667eea;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.full-width {
  margin: 14px 0;
}
.optional-label {
  font-size: 0.85em;
  font-weight: normal;
  opacity: 0.6;
}
.helper-text {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
  opacity: 0.7;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 56px;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 24px;
  margin-bottom: 32px;
  opacity: 0.95;
  font-weight: 400;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hero-note {
  font-size: 14px;
  opacity: 0.8;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: white;
  color: #667eea;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.btn-secondary {
  background: rgba(255,255,255,0.15);
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.25);
}

.btn-large {
  padding: 18px 48px;
  font-size: 18px;
}

/* Extension Preview Section */
.extension-preview {
  padding: 80px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.extension-preview .section-heading {
  color: white;
}

.section-subtitle {
  text-align: center;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 48px;
}

.preview-showcase {
  max-width: 500px;
  margin: 0 auto;
}

.preview-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.preview-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.preview-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}

.preview-title {
  margin-left: auto;
  color: white;
  font-weight: 600;
  font-size: 14px;
}

.preview-content {
  background: white;
}

.preview-tabs {
  display: flex;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.preview-tab {
  flex: 1;
  padding: 12px 8px;
  text-align: center;
  font-size: 12px;
  color: #64748b;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.preview-tab.active {
  color: #667eea;
  border-bottom-color: #667eea;
  background: white;
  font-weight: 600;
}

.preview-body {
  padding: 20px;
  color: #1e293b;
}

.preview-section {
  margin-bottom: 16px;
}

.preview-label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 8px;
}

.preview-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #f8fafc;
  border-radius: 8px;
  border: 2px solid #e2e8f0;
}

.preview-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.preview-info {
  flex: 1;
}

.preview-name {
  font-weight: 600;
  font-size: 14px;
  color: #1e293b;
}

.preview-job {
  font-size: 12px;
  color: #64748b;
}

.preview-input {
  padding: 10px 12px;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 13px;
  color: #1e293b;
}

.preview-button {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 16px;
  cursor: pointer;
}

.preview-result {
  border-top: 1px solid #e2e8f0;
  padding-top: 16px;
}

.preview-checks {
  background: #f8fafc;
  padding: 12px;
  border-radius: 8px;
  border: 2px solid #e2e8f0;
  margin-bottom: 12px;
}

.check-item {
  font-size: 12px;
  color: #10b981;
  margin-bottom: 4px;
}

.check-item:last-child {
  margin-bottom: 0;
}

.preview-message {
  padding: 12px;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: #1e293b;
}

/* Features Section */
.features {
  padding: 80px 20px;
  background: white;
}

.section-heading {
  text-align: center;
  font-size: 36px;
  margin-bottom: 48px;
  font-weight: 700;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-card {
  text-align: center;
  padding: 32px 24px;
  border-radius: 12px;
  background: var(--bg);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  font-weight: 600;
}

.feature-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

/* Demo Section */
.demo-title {
  text-align: center;
  font-size: 32px;
  margin-bottom: 12px;
  font-weight: 700;
}

.demo-subtitle {
  text-align: center;
  color: var(--muted);
  margin-bottom: 32px;
  font-size: 16px;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 80px 20px;
  text-align: center;
}

.cta-section h2 {
  font-size: 36px;
  margin-bottom: 16px;
  font-weight: 700;
}

.cta-section p {
  font-size: 18px;
  margin-bottom: 32px;
  opacity: 0.95;
}

/* Footer */
.footer {
  background: #1e293b;
  color: rgba(255,255,255,0.7);
  padding: 32px 20px;
  text-align: center;
  font-size: 14px;
}

.footer a {
  color: white;
  text-decoration: none;
  margin: 0 8px;
}

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