/* ===========================
   GRUNDRISS GENERATOR — STYLES
   Design: Clean, modern, card-based
   Colors: Blue monochromatic + slate neutrals
   =========================== */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #334155;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: #1447e6; text-decoration: none; transition: color 0.2s; }
a:hover { color: #0f3bc8; }
ul { list-style: none; }

/* --- Layout --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-alt {
  background: #f8fafc;
}

.section-dark {
  background: linear-gradient(135deg, #1e3a5f 0%, #1e40af 100%);
  color: #ffffff;
}

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

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 12px;
  line-height: 1.3;
}

.section-header p {
  font-size: 1.1rem;
  color: #64748b;
}

.section-header-light h2 {
  color: #ffffff;
}

.section-header-light p {
  color: rgba(255, 255, 255, 0.8);
}

.section-cta {
  text-align: center;
  margin-top: 48px;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e293b;
  white-space: nowrap;
}

.nav-logo:hover {
  color: #1447e6;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links li a {
  font-size: 0.9rem;
  font-weight: 500;
  color: #475569;
  transition: color 0.2s;
}

.nav-links li a:hover {
  color: #1447e6;
}

.nav-cta {
  background: #1447e6;
  color: #ffffff !important;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem !important;
  transition: background 0.2s !important;
}

.nav-cta:hover {
  background: #0f3bc8 !important;
  color: #ffffff !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #334155;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  line-height: 1.4;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1.05rem;
}

.btn-primary {
  background: #1447e6;
  color: #ffffff;
  border-color: #1447e6;
}

.btn-primary:hover {
  background: #0f3bc8;
  border-color: #0f3bc8;
  color: #ffffff;
}

.btn-outline-white {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  color: #ffffff;
}

.btn-white {
  background: #ffffff;
  color: #1447e6;
  border-color: #ffffff;
}

.btn-white:hover {
  background: #f0f4ff;
  color: #0f3bc8;
}

.btn-block {
  display: flex;
  width: 100%;
  text-align: center;
}

/* --- Badges --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  backdrop-filter: blur(4px);
}

.badge-light {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* --- BLOCK 1: HERO --- */
.hero {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 50%, #1e3a5f 100%);
  color: #ffffff;
  padding: 140px 0 100px;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.2rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 36px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

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

.hero-badges {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- BLOCK 2: INTRO --- */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.intro-text h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 16px;
}

.intro-text p {
  margin-bottom: 16px;
  color: #475569;
}

.intro-list {
  list-style: none;
  margin: 16px 0;
  padding: 0;
}

.intro-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  color: #475569;
}

.intro-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background: #1447e6;
  border-radius: 50%;
}

.intro-visual {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.intro-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 28px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.intro-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.intro-card-icon {
  color: #1447e6;
  margin-bottom: 12px;
}

.intro-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 8px;
}

.intro-card p {
  font-size: 0.95rem;
  color: #64748b;
  margin: 0;
}

/* --- BLOCK 3: TOOL CARDS --- */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.tool-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 28px;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}

.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.tool-card-featured {
  border: 2px solid #1447e6;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr auto;
  gap: 0 32px;
  padding: 36px;
  background: linear-gradient(135deg, #f0f4ff 0%, #ffffff 100%);
}

.tool-card-featured .tool-card-header {
  grid-column: 1 / -1;
}

.tool-card-featured .tool-card-body {
  grid-column: 1 / 2;
}

.tool-card-featured .btn-block {
  grid-column: 1 / -1;
  max-width: 320px;
  justify-self: center;
  margin-top: 12px;
}

.tool-card-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: #1447e6;
  color: #ffffff;
  padding: 4px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.tool-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.tool-card-rank {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1447e6;
  min-width: 36px;
}

.tool-card-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 2px;
}

.tool-card-stars {
  display: flex;
  align-items: center;
  gap: 6px;
}

.stars {
  color: #f59e0b;
  font-size: 1rem;
  letter-spacing: 2px;
}

.rating-text {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 500;
}

.tool-features {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.tool-features li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: #475569;
}

.tool-features li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: #22c55e;
  font-weight: 700;
}

.tool-card-pricing {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
}

.price {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e293b;
}

.price-detail {
  font-size: 0.85rem;
  color: #94a3b8;
}

.tool-verdict {
  font-size: 0.9rem;
  color: #475569;
  border-top: 1px solid #e2e8f0;
  padding-top: 16px;
}

/* --- BLOCK 4: COMPARISON TABLE --- */
.table-wrapper {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.comparison-table thead {
  background: #f1f5f9;
}

.comparison-table th {
  padding: 16px 20px;
  text-align: left;
  font-weight: 600;
  color: #1e293b;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.comparison-table td {
  padding: 16px 20px;
  border-top: 1px solid #f1f5f9;
  color: #475569;
  white-space: nowrap;
}

.table-row-featured {
  background: #f0f4ff;
}

.table-row-featured td {
  color: #1e293b;
  font-weight: 500;
}

.table-check {
  color: #22c55e;
  font-size: 1.2rem;
  font-weight: 700;
}

.table-cross {
  color: #ef4444;
  font-size: 1.2rem;
  font-weight: 700;
}

.table-partial {
  color: #f59e0b;
  font-size: 0.85rem;
  font-weight: 600;
}

.table-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
}

.tag-green {
  background: #dcfce7;
  color: #166534;
}

.tag-yellow {
  background: #fef3c7;
  color: #92400e;
}

.tag-red {
  background: #fee2e2;
  color: #991b1b;
}

/* --- BLOCK 5: TARGET AUDIENCE --- */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.audience-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 32px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.audience-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.audience-icon {
  color: #1447e6;
  margin-bottom: 16px;
}

.audience-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 12px;
}

.audience-card p {
  font-size: 0.95rem;
  color: #475569;
  margin-bottom: 16px;
}

.audience-rec {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #1447e6;
  background: #eff3ff;
  padding: 4px 12px;
  border-radius: 100px;
}

/* --- BLOCK 6: HOW-TO STEPS --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.steps-grid::before {
  content: "";
  position: absolute;
  top: 32px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(to right, #e2e8f0, #1447e6, #e2e8f0);
  z-index: 0;
}

.step-card {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #1447e6;
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(20, 71, 230, 0.3);
}

.step-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
}

.step-content p {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.6;
}

/* --- BLOCK 7: STATS / ADVANTAGES --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  backdrop-filter: blur(8px);
  transition: transform 0.2s, background 0.2s;
}

.stat-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.15);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: #93c5fd;
}

.stat-label {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #ffffff;
}

.stat-card p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
}

/* --- BLOCK 8: FAQ --- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.faq-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.faq-item.active {
  border-color: #c7d2fe;
  box-shadow: 0 4px 16px rgba(20, 71, 230, 0.08);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: #ffffff;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 600;
  color: #1e293b;
  font-family: inherit;
  line-height: 1.4;
  transition: background 0.2s;
}

.faq-question:hover {
  background: #f8fafc;
}

.faq-chevron {
  flex-shrink: 0;
  color: #94a3b8;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  color: #1447e6;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 24px 20px;
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.7;
}

/* --- BLOCK 9: CTA BANNER --- */
.cta-banner {
  background: linear-gradient(135deg, #1447e6 0%, #1e40af 50%, #1e3a5f 100%);
  color: #ffffff;
  text-align: center;
  padding: 80px 0;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}

.cta-content > p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
}

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

.cta-badges {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- BLOCK 10: FOOTER --- */
.footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #1e293b;
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 16px;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #64748b;
}

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

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 0.9rem;
  color: #94a3b8;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: #e2e8f0;
}

.footer-bottom {
  padding: 24px 0;
  text-align: center;
  font-size: 0.85rem;
  color: #64748b;
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .steps-grid::before {
    display: none;
  }

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

@media (max-width: 768px) {
  .hero {
    padding: 120px 0 60px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .section {
    padding: 60px 0;
  }

  .section-header h2 {
    font-size: 1.7rem;
  }

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

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

  .tool-card-featured {
    grid-template-columns: 1fr;
  }

  .tool-card-featured .tool-card-body {
    grid-column: 1 / -1;
  }

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

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

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .cta-content h2 {
    font-size: 1.75rem;
  }

  /* Mobile nav */
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #ffffff;
    padding: 16px 24px 24px;
    gap: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #e2e8f0;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links li a {
    display: block;
    padding: 12px 0;
    font-size: 1rem;
    border-bottom: 1px solid #f1f5f9;
  }

  .nav-cta {
    text-align: center;
    margin-top: 8px;
  }

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

  .hero-ctas .btn {
    width: 100%;
    max-width: 320px;
  }

  .hero-badges {
    gap: 6px;
  }

  .badge {
    font-size: 0.75rem;
    padding: 4px 10px;
  }
}

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

  .section-header h2 {
    font-size: 1.5rem;
  }

  .container {
    padding: 0 16px;
  }

  .container-narrow {
    padding: 0 16px;
  }

  .tool-card,
  .audience-card,
  .stat-card {
    padding: 24px;
  }

  .faq-question {
    padding: 16px 20px;
    font-size: 0.95rem;
  }

  .faq-answer p {
    padding: 0 20px 16px;
    font-size: 0.9rem;
  }
}