/* Variables */
:root {
  --primary-color: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary-color: #64748b;
  --accent-color: #10b981;
  --warning-color: #f59e0b;
  --error-color: #ef4444;

  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-card: #ffffff;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  --border-color: #e2e8f0;
  --border-light: #f1f5f9;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px 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);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1),
    0 8px 10px -6px rgb(0 0 0 / 0.1);

  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;

  --font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
}

/* Dark Theme */
[data-theme="dark"] {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --bg-card: #1e293b;

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;

  --border-color: #334155;
  --border-light: #475569;
}

/* Dark mode specific overrides for template section */
[data-theme="dark"] .template {
  background: linear-gradient(
    135deg,
    var(--bg-primary) 0%,
    var(--bg-secondary) 100%
  ) !important;
}

[data-theme="dark"] .template::before {
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23334155" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>') !important;
  opacity: 0.1 !important;
}

[data-theme="dark"] .section-title {
  color: var(--text-primary);
}

[data-theme="dark"] .section-subtitle {
  color: var(--text-secondary);
}

[data-theme="dark"] .section-description {
  color: var(--text-secondary);
}

[data-theme="dark"] .template-section-title {
  color: var(--text-primary);
}

[data-theme="dark"] .prerequisite-item {
  background-color: var(--bg-card);
  border-color: var(--border-color);
}

[data-theme="dark"] .prerequisite-icon {
  background-color: var(--bg-secondary);
}

[data-theme="dark"] .prerequisite-content h4 {
  color: var(--text-primary);
}

[data-theme="dark"] .prerequisite-content p {
  color: var(--text-secondary);
}

[data-theme="dark"] .prerequisite-list {
  color: var(--text-muted);
}

[data-theme="dark"] .prerequisite-list li {
  color: var(--text-secondary);
}

[data-theme="dark"] .warning-box {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
}

[data-theme="dark"] .warning-box-content p {
  color: var(--text-primary);
}

[data-theme="dark"] .download-card {
  background: var(--bg-card);
  border-color: var(--border-color);
}

[data-theme="dark"] .download-card-content {
  background: transparent;
}

[data-theme="dark"] .download-icon {
  background: var(--bg-secondary);
  color: var(--primary-color);
}

[data-theme="dark"] .download-details h4 {
  color: var(--text-primary);
}

[data-theme="dark"] .download-details p {
  color: var(--text-secondary);
}

[data-theme="dark"] .feature-item {
  color: var(--text-secondary);
}

[data-theme="dark"] .download-author {
  background: var(--bg-secondary);
}

[data-theme="dark"] .download-author p {
  color: var(--text-secondary);
}

[data-theme="dark"] .download-security {
  color: var(--text-muted);
}

[data-theme="dark"] .step-item {
  background: var(--bg-card);
  border-color: var(--border-color);
}

[data-theme="dark"] .step-content h4 {
  color: var(--text-primary);
}

[data-theme="dark"] .step-content p {
  color: var(--text-secondary);
}

[data-theme="dark"] .code-block {
  background: var(--bg-secondary);
  border-color: var(--border-color);
}

[data-theme="dark"] .code-block code {
  color: var(--text-primary);
}

[data-theme="dark"] .validation-list li {
  color: var(--text-secondary);
}

[data-theme="dark"] .stack-card {
  background: var(--bg-card);
  border-color: var(--border-color);
}

[data-theme="dark"] .stack-icon {
  background: var(--bg-secondary);
  color: var(--primary-color);
}

[data-theme="dark"] .stack-card h4 {
  color: var(--text-primary);
}

[data-theme="dark"] .stack-card p {
  color: var(--text-secondary);
}

[data-theme="dark"] .benefit-card {
  background: var(--bg-card);
  border-color: var(--border-color);
}

[data-theme="dark"] .benefit-card h4 {
  color: var(--text-primary);
}

[data-theme="dark"] .benefit-card p {
  color: var(--text-secondary);
}

[data-theme="dark"] .trouble-item {
  background: var(--bg-card);
  border-color: var(--border-color);
}

[data-theme="dark"] .trouble-item h4 {
  color: var(--text-primary);
}

[data-theme="dark"] .trouble-solution {
  color: var(--text-secondary);
}

[data-theme="dark"] .faq-item {
  background: var(--bg-card);
  border-color: var(--border-color);
}

[data-theme="dark"] .faq-item h4 {
  color: var(--text-primary);
}

[data-theme="dark"] .faq-item p {
  color: var(--text-secondary);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary-color);
}

.logo i {
  font-size: 1.5rem;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -1.5rem;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--primary-color);
}

.theme-toggle {
  display: flex;
  align-items: center;
}

.theme-btn {
  background: none;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.theme-btn:hover {
  background-color: var(--bg-secondary);
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  padding: 8rem 0 4rem;
  background: linear-gradient(
    135deg,
    var(--bg-primary) 0%,
    var(--bg-secondary) 100%
  );
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e2e8f0" stroke-width="0.5" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.5;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.gradient-text {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Code Preview */
.code-preview {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  position: relative;
}

.code-header {
  background-color: var(--bg-tertiary);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
}

.code-dots {
  display: flex;
  gap: 0.5rem;
}

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

.code-dots span:nth-child(1) {
  background-color: #ef4444;
}
.code-dots span:nth-child(2) {
  background-color: #f59e0b;
}
.code-dots span:nth-child(3) {
  background-color: #10b981;
}

.code-content {
  padding: 1.5rem;
  font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
  font-size: 0.875rem;
  line-height: 1.5;
  position: relative;
}

.code-line {
  margin-bottom: 0.5rem;
  position: relative;
}

.copilot-suggestion {
  color: var(--text-muted);
  opacity: 0;
  animation: typewriter 2s ease-in-out forwards;
  animation-delay: calc(var(--line-index, 0) * 0.5s);
}

.comment {
  color: #6b7280;
}
.keyword {
  color: #7c3aed;
}
.function {
  color: #059669;
}
.parameter {
  color: #dc2626;
}
.punctuation {
  color: var(--text-primary);
}
.operator {
  color: #7c3aed;
}
.number {
  color: #dc2626;
}
.indent {
  opacity: 0;
}

.tab-hint {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background-color: var(--primary-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: pulse 2s infinite;
}

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

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.875rem;
  white-space: nowrap;
}

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

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

.btn-secondary {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

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

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

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

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
}

/* Sections */
section {
  padding: 5rem 0;
  position: relative;
}

/* Seções específicas com espaçamento personalizado */
.hero {
  padding: 8rem 0 6rem;
}

.features {
  padding: 6rem 0;
  background: var(--bg-secondary);
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.feature-card {
  background: var(--bg-primary);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.feature-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

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

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.card-left-align {
  text-align: left;
}

.template {
  padding: 6rem 0;
}

.section {
  padding: 5rem 0;
}

.faq {
  padding: 5rem 0;
}

.advanced {
  padding: 5rem 0;
}

.teams {
  padding: 5rem 0;
}

.footer {
  padding: 3rem 0 2rem;
  margin-top: 2rem;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

.footer-content {
  text-align: center;
}

.footer-section {
  margin: 0 auto;
}

.footer-section p {
  margin: 0.5rem 0;
  color: var(--text-secondary);
}

.footer-section p:first-child {
  color: var(--text-primary);
  font-weight: 500;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.flex-center-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.section-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Profiles Section */
.profiles {
  padding: 6rem 0;
  background-color: var(--bg-secondary);
}

.profiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.profile-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.profile-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-color);
}

.profile-icon {
  width: 60px;
  height: 60px;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 1.5rem;
}

.profile-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.profile-description {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.profile-features {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.feature {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 0.25rem 0;
}

/* Setup Section */
.setup {
  padding: 6rem 0;
}

.setup-steps {
  display: grid;
  gap: 2rem;
}

.step-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  transition: all 0.3s ease;
}

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

.step-number {
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.step-description {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.step-code {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
}

.step-code .code-header {
  background-color: var(--bg-secondary);
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.step-code .code-content {
  padding: 1rem;
  font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
  font-size: 0.875rem;
  line-height: 1.5;
}

.copy-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
}

.copy-btn:hover {
  background-color: var(--bg-tertiary);
  color: var(--primary-color);
}

/* Advanced Section */
.advanced {
  padding: 6rem 0;
  background-color: var(--bg-secondary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

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

.feature-icon {
  width: 50px;
  height: 50px;
  background-color: var(--accent-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: white;
  font-size: 1.25rem;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.feature-description {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Teams Section */
.teams {
  padding: 6rem 0;
}

.implementation-phases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.phase-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
}

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

.phase-header {
  background-color: var(--bg-secondary);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.phase-number {
  width: 30px;
  height: 30px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
}

.phase-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
}

.phase-content {
  padding: 1.5rem;
}

.phase-checklist {
  list-style: none;
  margin-bottom: 1.5rem;
}

.phase-checklist li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  position: relative;
  padding-left: 1.5rem;
}

.phase-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: 600;
}

/* ROI Metrics */
.roi-metrics {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
}

.metrics-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
}

.metric-card {
  text-align: center;
}

.metric-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.metric-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

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

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.footer-description {
  color: var(--text-secondary);
  line-height: 1.6;
}

.footer-links h4,
.footer-contact h4 {
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer-contact p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.footer-contact a {
  color: var(--primary-color);
  text-decoration: none;
}

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

.creator-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.creator-links .btn {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 1rem;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transform: scale(0.9) translateY(20px);
  transition: all 0.3s ease;
}

.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
}

.modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-secondary);
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
}

.modal-close:hover {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
}

.modal-content {
  padding: 2rem;
}

/* Profile Modal Styles */
.profile-modal-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background-color: var(--bg-secondary);
  border-radius: var(--radius-md);
}

.profile-modal-icon {
  width: 60px;
  height: 60px;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

.profile-modal-description {
  color: var(--text-secondary);
  font-size: 1.125rem;
  line-height: 1.6;
}

.profile-steps {
  margin-bottom: 2rem;
}

.profile-step {
  background-color: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--primary-color);
}

.profile-step-header h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.profile-step-header p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.profile-step-actions {
  display: grid;
  gap: 0.75rem;
}

.profile-action {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
}

.profile-action i {
  color: var(--accent-color);
  width: 16px;
}

.profile-next-steps {
  background-color: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.profile-next-steps h4 {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.profile-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Step Modal Styles */
.step-modal-content {
  line-height: 1.6;
}

.step-modal-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.step-details {
  margin-bottom: 2rem;
}

.step-details h4 {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.step-list {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.step-list li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.step-code-section {
  margin-bottom: 2rem;
}

.step-code-section h4 {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.step-tips {
  background-color: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border-left: 4px solid var(--warning-color);
}

.step-tips h4 {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.tips-list {
  padding-left: 1.5rem;
}

.tips-list li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

/* Feature Modal Styles */
.feature-modal-content {
  line-height: 1.6;
}

.feature-modal-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.feature-section {
  margin-bottom: 2rem;
}

.feature-section h4 {
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-size: 1.125rem;
}

.feature-list {
  padding-left: 1.5rem;
}

.feature-list li {
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}

.warning-box {
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid var(--error-color);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.danger-list {
  list-style: none;
  padding: 0;
}

.danger-list li {
  margin-bottom: 0.5rem;
  color: var(--error-color);
  font-family: monospace;
  font-weight: 500;
}

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

.mode-card {
  background-color: var(--bg-tertiary);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
}

.mode-card h5 {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.mode-card p {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.feature-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* Phase Modal Styles */
.phase-modal-content {
  line-height: 1.6;
}

.phase-modal-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.phase-section {
  margin-bottom: 2rem;
}

.phase-section h4 {
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-size: 1.125rem;
}

.checklist {
  background-color: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.checklist-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-color);
}

.checklist-item label {
  color: var(--text-secondary);
  cursor: pointer;
}

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

.roi-card {
  background-color: var(--bg-tertiary);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
}

.roi-metric {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.roi-label {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.documents-list {
  padding-left: 1.5rem;
}

.documents-list li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.template-features {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.template-item {
  background-color: var(--bg-tertiary);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.template-item strong {
  color: var(--text-primary);
  display: block;
  margin-bottom: 0.5rem;
}

.corporate-modes {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.mode-item {
  background-color: var(--bg-tertiary);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.mode-item strong {
  color: var(--text-primary);
  display: block;
  margin-bottom: 0.5rem;
}

.training-timeline {
  margin-top: 1rem;
}

.timeline-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.timeline-marker {
  width: 30px;
  height: 30px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.timeline-content {
  flex: 1;
}

.timeline-content strong {
  color: var(--text-primary);
  display: block;
  margin-bottom: 0.5rem;
}

.certification-checklist {
  display: grid;
  gap: 1.5rem;
  margin-top: 1rem;
}

.cert-category {
  background-color: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.cert-category h5 {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.cert-category ul {
  padding-left: 1.5rem;
}

.cert-category li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.metrics-dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.metric-category {
  background-color: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.metric-category h5 {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.metric-category ul {
  padding-left: 1.5rem;
}

.metric-category li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.improvement-cycle {
  background-color: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-top: 1rem;
}

.cycle-step {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.cycle-step:last-child {
  border-bottom: none;
}

.cycle-step strong {
  color: var(--text-primary);
}

.success-criteria {
  margin-top: 1rem;
}

.success-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
}

.success-item.success i {
  color: var(--accent-color);
}

.phase-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  section {
    padding: 3rem 0;
  }

  .hero {
    padding: 5rem 0 3rem;
  }

  .features {
    padding: 4rem 0;
  }

  .template {
    padding: 4rem 0;
    margin: 1rem 0;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .feature-card {
    padding: 1.5rem;
  }

  .footer {
    padding: 2rem 0 1rem;
    margin-top: 1rem;
  }
}
@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .nav {
    display: none;
  }

  .step-card {
    flex-direction: column;
    text-align: center;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .profiles-grid,
  .features-grid,
  .implementation-phases {
    grid-template-columns: 1fr;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

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

/* Notifications */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1rem;
  min-width: 300px;
  max-width: 400px;
  z-index: 10000;
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.3s ease;
}

.notification.show {
  transform: translateX(0);
  opacity: 1;
}

.notification.success {
  border-left: 4px solid var(--accent-color);
}

.notification.info {
  border-left: 4px solid var(--primary-color);
}

.notification.warning {
  border-left: 4px solid var(--warning-color);
}

.notification.error {
  border-left: 4px solid var(--error-color);
}

.notification-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.notification-content span {
  color: var(--text-primary);
  font-weight: 500;
}

.notification-content button {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  transition: color 0.2s ease;
}

.notification-content button:hover {
  color: var(--text-primary);
}

/* Template Section - Complete Redesign */
.template {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
  margin: 2rem 0;
}

.template::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e2e8f0" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
  z-index: 1;
}

.template .container {
  position: relative;
  z-index: 2;
}

.template-section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.template-section-title i {
  color: var(--primary-color);
  font-size: 1.25rem;
}

/* Prerequisites Section */
.template-prerequisites {
  margin-bottom: 4rem;
}

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

.prerequisite-item {
  background: white;
  border-radius: var(--radius-xl);
  padding: 2rem;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.prerequisite-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.prerequisite-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.15);
}

.prerequisite-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.prerequisite-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.prerequisite-content h4 {
  margin: 0 0 0.5rem 0;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.125rem;
}

.prerequisite-content p {
  margin: 0 0 1rem 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

.prerequisite-list {
  list-style-type: disc;
  padding-left: 1rem;
  margin: 0.5rem 0 1.5rem 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.prerequisite-list li {
  margin: 0.25rem 0;
  color: var(--text-secondary);
}

.prerequisite-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.link-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--bg-secondary);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.link-button:hover {
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Download Section */
.template-download {
  margin-bottom: 4rem;
}

.download-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  margin-top: 2rem;
  position: relative;
  overflow: hidden;
}

.download-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.download-card-content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}

.download-info {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.download-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.5rem;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

.download-details h4 {
  margin: 0 0 0.75rem 0;
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 700;
}

.download-details p {
  margin: 0 0 1.5rem 0;
  color: var(--text-secondary);
  font-size: 1.125rem;
  line-height: 1.6;
}

.download-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin: 0 0 2rem 0;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.4;
}

.feature-item i {
  color: var(--accent-color);
  font-size: 0.875rem;
  flex-shrink: 0;
}

.download-author {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  margin-top: 1rem;
}

.download-author p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.download-security {
  margin: 0.5rem 0 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.download-meta {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border-color);
}

.download-meta-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

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

.download-meta-item i {
  color: var(--primary-color);
  width: 16px;
  flex-shrink: 0;
}

.download-actions {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.download-btn {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: var(--radius-lg);
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  min-width: 200px;
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
}

.download-btn i {
  margin-right: 0.5rem;
}

.download-info-text {
  color: var(--text-muted);
  font-size: 0.875rem;
  text-align: center;
}

.download-size {
  font-weight: 600;
  color: var(--text-secondary);
}

/* Implementation Steps */
.template-steps {
  margin-bottom: 4rem;
}

.command-highlight {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin: 2rem 0;
  color: white;
  position: relative;
  overflow: hidden;
}

.command-highlight::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(255, 255, 255, 0.05) 10px,
    rgba(255, 255, 255, 0.05) 20px
  );
  animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.command-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  position: relative;
  z-index: 2;
}

.command-code {
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: relative;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 2;
}

.command-code code {
  color: white;
  font-size: 0.9rem;
  line-height: 1.6;
  display: block;
  font-family: "Fira Code", "Courier New", monospace;
}

.command-copy-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.command-copy-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.command-info {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  opacity: 0.9;
  position: relative;
  z-index: 2;
}

.steps-container {
  display: grid;
  gap: 2rem;
  margin-top: 3rem;
}

.step-item {
  background: white;
  border-radius: var(--radius-xl);
  padding: 2rem;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

.step-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.15);
}

.step-header {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.step-number {
  width: 48px;
  height: 48px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.step-content h4 {
  margin: 0 0 0.5rem 0;
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 700;
}

.step-content p {
  margin: 0 0 1.5rem 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

.code-block {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.code-block pre {
  margin: 0;
  padding: 1.5rem;
  overflow-x: auto;
  background: transparent;
}

.code-block code {
  font-family: "Fira Code", "Courier New", monospace;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-primary);
}

.copy-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.5rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.copy-btn:hover {
  background: var(--primary-color);
  color: white;
  transform: scale(1.05);
}

.step-tip {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-lg);
  padding: 1rem;
  margin-top: 1rem;
}

.step-tip-content {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.step-tip-icon {
  color: var(--accent-color);
  margin-top: 0.125rem;
  flex-shrink: 0;
}

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

/* Warning and Info Boxes */
.warning-box {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.5rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-left: 4px solid var(--warning-color);
  border-radius: var(--radius-lg);
  margin-top: 2rem;
}

.warning-box i {
  color: var(--warning-color);
  margin-top: 0.125rem;
  flex-shrink: 0;
  font-size: 1.125rem;
}

.warning-box-content p {
  margin: 0 0 0.5rem 0;
  color: var(--text-primary);
  line-height: 1.6;
}

.warning-box-content p:last-child {
  margin-bottom: 0;
}

.success-indicators {
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-left: 4px solid var(--accent-color);
  border-radius: var(--radius-lg);
}

.success-indicators h5 {
  margin: 0 0 1rem 0;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.success-indicators ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.success-indicators li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

.success-indicators li:last-child {
  margin-bottom: 0;
}

.success-indicators i {
  color: var(--accent-color);
  flex-shrink: 0;
}

/* Stacks Grid */
.template-stacks {
  margin-bottom: 4rem;
}

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

.stack-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stack-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

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

.stack-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.stack-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  color: var(--primary-color);
}

.stack-card h4 {
  margin: 0 0 0.5rem 0;
  color: var(--text-primary);
  font-weight: 600;
}

.stack-card p {
  margin: 0 0 1rem 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.stack-status {
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.stack-status.supported {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-color);
}

.stack-status.experimental {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning-color);
}

/* Benefits Grid */
.template-benefits {
  margin-bottom: 4rem;
}

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

.benefit-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 2rem;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.benefit-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.15);
}

.benefit-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.75rem;
  margin: 0 auto 1.5rem;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

.benefit-card h4 {
  margin: 0 0 1rem 0;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.125rem;
}

.benefit-card p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Responsive Design for Template Section */
@media (max-width: 768px) {
  .template {
    padding: 3rem 0;
  }

  .prerequisites-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .download-card-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .download-info {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .download-features {
    grid-template-columns: 1fr;
  }

  .step-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .stacks-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .command-highlight {
    padding: 1.5rem;
  }

  .command-code {
    padding: 1rem;
  }

  .command-code code {
    font-size: 0.8rem;
  }
}

/* FAQ Styles */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.faq-item {
  background: white;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.faq-item h4 {
  color: var(--text-primary);
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.faq-item h4 i {
  color: var(--primary-color);
}

.faq-item p {
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* Troubleshooting Styles */
.troubleshooting-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.trouble-item {
  background: white;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary-color);
}

.trouble-item h4 {
  color: var(--text-primary);
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.trouble-item h4 .text-warning {
  color: #f59e0b;
}

.trouble-item h4 .text-danger {
  color: #dc2626;
}

.trouble-item h4 .text-info {
  color: #2563eb;
}

.trouble-item h4 .text-primary {
  color: var(--primary-color);
}

.trouble-solution {
  color: var(--text-secondary);
}

.trouble-solution p {
  margin: 0 0 0.5rem 0;
}

.trouble-solution ul {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
}

.trouble-solution li {
  margin: 0.25rem 0;
}

/* Footer enhancements */
.footer {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: white;
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: white;
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
}

.footer-section p {
  color: #cbd5e1;
  margin: 0 0 1rem 0;
  line-height: 1.5;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin: 0.5rem 0;
}

.footer-section ul li a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: var(--accent-color);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  color: #cbd5e1;
  font-size: 1.2rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.version-info {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.badge {
  background: var(--primary-color);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 1rem;
  text-align: center;
  color: #94a3b8;
  font-size: 0.9rem;
}

.footer-bottom p {
  margin: 0.25rem 0;
}

#lastUpdate {
  font-weight: 600;
  color: var(--accent-color);
}

/* Additional dark mode rules for sections */
[data-theme="dark"] .section {
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

[data-theme="dark"] .section h2 {
  color: var(--text-primary);
}

[data-theme="dark"] .section h3 {
  color: var(--text-primary);
}

[data-theme="dark"] .section h4 {
  color: var(--text-primary);
}

[data-theme="dark"] .section p {
  color: var(--text-secondary);
}

/* Additional responsive adjustments for template section */
@media (max-width: 768px) {
  .troubleshooting-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .faq-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .trouble-item {
    padding: 1rem;
  }

  .faq-item {
    padding: 1rem;
  }
}
