/* ============================================================
   Landing Page CSS
   ============================================================ */

/* ---- Hero ---- */
.hero {
  padding-top: calc(var(--navbar-height) + var(--space-20));
  padding-bottom: var(--space-16);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}

.hero-glow.g1 {
  width: 600px;
  height: 600px;
  background: rgba(108,99,255,0.18);
  top: -100px;
  right: -100px;
}

.hero-glow.g2 {
  width: 400px;
  height: 400px;
  background: rgba(78,205,196,0.15);
  bottom: 0;
  left: -50px;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border-subtle) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 8px 18px;
  background: var(--bg-glass);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
  animation: fadeDown 0.6s ease-out;
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1.05;
  margin-bottom: var(--space-6);
  animation: fadeUp 0.6s ease-out 0.1s both;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto var(--space-10);
  animation: fadeUp 0.6s ease-out 0.2s both;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-12);
  animation: fadeUp 0.6s ease-out 0.3s both;
}

.hero-cta-primary {
  font-size: 1.05rem;
  padding: 16px 36px;
  border-radius: var(--radius-xl);
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  animation: fadeUp 0.6s ease-out 0.4s both;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.stat-num {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border-default);
}

/* Hero Preview Card */
.hero-preview-wrap {
  display: flex;
  justify-content: center;
  margin-top: var(--space-20);
  padding: 0 var(--space-4);
  position: relative;
  z-index: 1;
  animation: fadeUp 0.8s ease-out 0.5s both;
}

.hero-preview {
  width: 100%;
  max-width: 820px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl), 0 0 80px rgba(108,99,255,0.12);
  overflow: hidden;
}

.preview-toolbar {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-surface-2);
  border-bottom: 1px solid var(--border-subtle);
}

.preview-dots {
  display: flex;
  gap: 6px;
}

.preview-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border-strong);
}

.preview-dots span:nth-child(1) { background: #ff6b6b; }
.preview-dots span:nth-child(2) { background: #ffd93d; }
.preview-dots span:nth-child(3) { background: #6bcb77; }

.preview-toolbar-title {
  flex: 1;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.preview-toolbar-actions {
  display: flex;
  gap: var(--space-2);
}

.preview-btn {
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-3);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
}

.preview-btn.primary {
  background: var(--brand-primary);
  color: white;
}

.preview-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 260px;
}

.preview-editor {
  padding: var(--space-4);
  border-right: 1px solid var(--border-subtle);
}

.preview-editor-header {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.preview-tag {
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: rgba(108,99,255,0.1);
  color: var(--brand-primary);
  font-size: 0.7rem;
  font-weight: 600;
}

.preview-lines {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.pl {
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--border-default);
  width: 100%;
}

.pl.thick { height: 11px; background: var(--brand-primary); opacity: 0.4; width: 70%; }
.pl.short { width: 55%; }
.pl.medium { width: 75%; }

.preview-paper {
  padding: var(--space-4);
  background: var(--bg-surface-2);
  position: relative;
}

.paper-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-3);
  height: 100%;
}

.paper-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.paper-line {
  height: 5px;
  border-radius: 2px;
  background: var(--border-strong);
}

.paper-line.s1 { width: 100%; }
.paper-line.s2 { width: 80%; }
.paper-line.s3 { width: 60%; }

.paper-badge {
  position: absolute;
  bottom: var(--space-3);
  right: var(--space-3);
  background: rgba(107,203,119,0.15);
  color: var(--brand-success);
  border: 1px solid rgba(107,203,119,0.3);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
}

/* ---- Trust Section ---- */
.trust-section {
  padding: var(--space-12) 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface-2);
}

.trust-label {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-5);
}

.trust-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-10);
  flex-wrap: wrap;
}

.trust-logos span {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: -0.02em;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}

.trust-logos span:hover { opacity: 1; }

/* ---- Features Section ---- */
.features-section {
  padding: var(--space-24) 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.feature-card {
  padding: var(--space-6);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.feature-card:hover {
  border-color: var(--border-brand);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.feature-card:hover::before { transform: scaleX(1); }

.feature-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: var(--space-4);
  background: linear-gradient(135deg, rgba(108,99,255,0.05) 0%, rgba(78,205,196,0.05) 100%);
  border-color: var(--border-brand);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: var(--space-3);
  line-height: 1;
}

.feature-card.featured .feature-icon {
  font-size: 2.5rem;
  margin-bottom: 0;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--space-2);
  letter-spacing: -0.02em;
}

.feature-card.featured h3 {
  font-size: 1.2rem;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.feature-tags span {
  padding: 3px 10px;
  background: rgba(108,99,255,0.08);
  color: var(--brand-primary);
  border: 1px solid rgba(108,99,255,0.15);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
}

/* ---- How It Works ---- */
.how-section {
  padding: var(--space-24) 0;
  background: var(--bg-surface-2);
}

.steps-grid {
  display: flex;
  align-items: stretch;
  gap: var(--space-4);
}

.step-card {
  flex: 1;
  padding: var(--space-8);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: all var(--transition-base);
}

.step-card:hover {
  border-color: var(--border-brand);
  box-shadow: var(--shadow-md);
}

.step-num {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -0.06em;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.step-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--space-2);
  letter-spacing: -0.02em;
}

.step-content p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.step-arrow {
  font-size: 1.5rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* ---- Templates Section ---- */
.templates-section {
  padding: var(--space-24) 0;
}

.template-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.template-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-6) var(--space-4);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  text-decoration: none;
  color: var(--text-primary);
  transition: all var(--transition-base);
  text-align: center;
}

.template-card:hover {
  border-color: var(--border-brand);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(108,99,255,0.1);
  transform: translateY(-3px);
  color: var(--text-primary);
}

.tc-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(108,99,255,0.1), rgba(78,205,196,0.1));
  border: 1px solid rgba(108,99,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--brand-primary);
}

.tc-name {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tc-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.tc-cta { text-align: center; }

/* ---- Final CTA Section ---- */
.final-cta-section {
  padding: var(--space-24) 0;
  background: var(--bg-surface-2);
}

.final-cta-card {
  position: relative;
  text-align: center;
  padding: var(--space-16) var(--space-8);
  background: var(--bg-surface);
  border: 1px solid var(--border-brand);
  border-radius: var(--radius-2xl);
  overflow: hidden;
}

.final-cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: var(--gradient-brand);
  filter: blur(100px);
  opacity: 0.08;
  pointer-events: none;
}

.final-cta-card h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  margin-bottom: var(--space-4);
}

.final-cta-card p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
}

.final-cta-note {
  margin-top: var(--space-5);
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ---- Footer ---- */
.footer {
  padding: var(--space-16) 0 var(--space-8);
  border-top: 1px solid var(--border-subtle);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: var(--space-16);
  margin-bottom: var(--space-12);
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: var(--space-3);
  line-height: 1.6;
  max-width: 280px;
}

.footer-links-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-4);
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: var(--space-2);
  transition: color var(--transition-fast);
}

.footer-col a:hover { color: var(--text-primary); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-badges {
  display: flex;
  gap: var(--space-2);
}

.footer-badge {
  padding: 4px 10px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ---- Animations ---- */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
  .feature-card.featured {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
  }
  .template-cards { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: var(--space-8); }
  .footer-links-group { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .steps-grid {
    flex-direction: column;
  }

  .step-arrow {
    transform: rotate(90deg);
    justify-content: center;
  }

  .preview-body { grid-template-columns: 1fr; }
  .preview-paper { display: none; }

  .hero-stats { gap: var(--space-4); }
  .stat-divider { display: none; }
}

@media (max-width: 540px) {
  .features-grid { grid-template-columns: 1fr; }
  .template-cards { grid-template-columns: 1fr 1fr; }
  .hero-cta-group { flex-direction: column; width: 100%; }
  .hero-cta-group .btn { width: 100%; justify-content: center; }
  .footer-links-group { grid-template-columns: 1fr 1fr; }
}
