  :root{
    --bg: #f4f7fb;
    --card: #ffffff;
    --muted: #6b7280;
    --primary: #2b6ef6;
    --accent: #2478c6;
    --glass: rgba(43,110,246,0.06);
    --radius: 12px;
    --shadow: 0 10px 30px rgba(16,24,40,0.08);
    --gap:12px;
    --control-h:38px;
    --swatch-size:34px;
  }
  *{box-sizing:border-box}
  body{
    margin:0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    background:var(--bg);
    color:#0f172a;
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
  }

  /* Header */
  .header{
    background: linear-gradient(90deg,var(--primary),var(--accent));
    color:white;
    padding:20px;
    text-align:center;
    box-shadow: var(--shadow);
  }
  .header h1{margin:0;font-size:20px;letter-spacing:.2px}
  .header p{margin:6px 0 0;opacity:.95;font-size:13px}

  .wrap{
    max-width:1100px;
    margin:22px auto;
    padding:18px;
    display:flex;
    flex-direction:column;
    gap:18px;
  }

   footer .container, header div, .faq-section{
       max-width: 1056px;
     }

    @media (max-width: 1106px) {
    footer .container {
        padding-left: 4%;
        padding-right: 4%;
    }
    header div{
        padding-left: 4%;
        padding-right: 4%;
    }
    
    }

  /* Editor card */
  .card{
    background:var(--card);
    border-radius:var(--radius);
    box-shadow:var(--shadow);
    padding:14px;
    overflow:hidden;
  }

  /* Top area: canvas + upload overlay */
  .top-area{
    display:flex;
    gap:14px;
    align-items:flex-start;
    flex-wrap:wrap;
  }

  .canvas-wrap{
    flex:1;
    min-width:260px;
    border-radius:10px;
    border:1px solid #e9eefb;
    background:linear-gradient(180deg, rgba(25, 101, 253, 0.096), rgba(236, 236, 236, 0.6));
    position:relative;
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:360px;
    overflow:hidden;
  }

  canvas{display:block; max-width:100%; max-height: 300px; height:auto; border-radius:8px;}

  /* upload overlay */
  .upload-overlay{
    position:absolute;
    inset:0;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:8px;
    text-align:center;
    padding:18px;
    cursor:pointer;
    transition:background .12s;
    background:transparent;
  }
  .upload-overlay:hover{ background: rgba(43,110,246,0.03) }
  .upload-overlay .big{
    font-size:30px;color:var(--primary);
  }
  .hidden-file{ display:none; }

  /* controls below canvas */
  .controls-panel{
    margin-top:12px;
  }
  .accordion{
    border-radius:10px;
    overflow:hidden;
    border:1px solid #eef4ff;
    background:var(--card);
    margin-bottom:10px;
  }
  .accordion > button{
    width:100%;
    background:linear-gradient(90deg,var(--primary),var(--accent));
    color:#fff;
    padding:12px 14px;
    border:0;
    text-align:left;
    font-weight:700;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    cursor:pointer;
  }
  .accordion .body{
    padding:12px;
    display:none;
    background:linear-gradient(180deg,#fff,#fbfdff);
  }
  .accordion.open .body{ display:block }

  .grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:10px;
  }
  .field{
    display:flex;
    flex-direction:column;
    gap:6px;
    background:#fbfdff;
    padding:8px;
    border-radius:8px;
    border:1px solid #eef4ff;
    min-height:48px;
    justify-content:center;
  }
  .field label{font-size:12px;color:var(--muted);font-weight:700}
  .field input[type="text"], .field select{
    height:var(--control-h);
    border-radius:8px;
    border:1px solid #dbeafe;
    padding:6px 8px;
    font-size:14px;
    background:white;
  }
  .field input[type="range"]{ width:100% }

  .small-check{ display:flex; align-items:center; gap:8px; font-size:13px; color:var(--muted) }

  /* colors: swatches */
  .color-row{ display:flex; align-items:center; gap:8px }
  .swatch{
    width:var(--swatch-size);
    height:var(--swatch-size);
    border-radius:8px;
    border:1px solid #e6eef9;
    cursor:pointer;
    position: relative;
  }
  input[type="color"].hidden{ width:10px;height:10px;padding:0;border:0;opacity:0;position:absolute; }

  /* action buttons row */
  .actions{
    display:flex;
    gap:12px;
    margin-top:8px;
    justify-content:flex-end;
  }
  .btn{
    padding:10px 14px;
    border-radius:8px;
    border:0;
    cursor:pointer;
    font-weight:700;
  }
  .btn.primary{ background:linear-gradient(90deg,var(--primary),var(--accent)); color:#fff; box-shadow:0 10px 30px rgba(43,110,246,0.12) }
  .btn.ghost{ background:transparent; border:1px solid rgba(15,23,42,0.06); color:var(--muted) }

  /* small helpers */
  .range-val{ font-size:12px;color:var(--muted);text-align:right }

  /* responsive */
  @media (max-width:680px){
    .top-area{ flex-direction:column; align-items: center;}
    .grid{ grid-template-columns: 1fr; }
    .canvas-wrap{ min-height:260px }
  }

  /* Content Section Styles */
.content-section {
  max-width: 1100px;
  margin: 30px auto;
}

.content-section h2 {
  color: var(--primary);
  font-size: 24px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #eef4ff;
}

.intro {
  background: var(--card);
  border-radius: var(--radius);
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: var(--shadow);
}

.intro p {
  font-size: 16px;
  line-height: 1.6;
  color: #374151;
  margin-bottom: 25px;
}

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

.feature {
  text-align: center;
  padding: 20px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, #fbfdff);
  border: 1px solid #eef4ff;
  transition: transform 0.3s ease;
}

.feature:hover {
  transform: translateY(-5px);
}

.feature i {
  font-size: 32px;
  color: var(--primary);
  margin-bottom: 15px;
  background: var(--glass);
  width: 60px;
  height: 60px;
  line-height: 60px;
  border-radius: 50%;
}

.feature h3 {
  font-size: 18px;
  margin: 10px 0;
  color: #1f2937;
}

.feature p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.how-to-use {
  background: var(--card);
  border-radius: var(--radius);
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: var(--shadow);
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, #fbfdff);
  border: 1px solid #eef4ff;
}

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

.step-content h3 {
  font-size: 18px;
  margin: 0 0 10px;
  color: #1f2937;
}

.step-content p {
  font-size: 15px;
  line-height: 1.6;
  color: #374151;
  margin: 0;
}

.faq {
  background: var(--card);
  border-radius: var(--radius);
  padding: 25px;
  box-shadow: var(--shadow);
}

.faq-item {
  margin-bottom: 15px;
  border: 1px solid #eef4ff;
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: linear-gradient(180deg, #fff, #f8fbff);
  border: none;
  padding: 18px 20px;
  text-align: left;
  font-weight: 600;
  color: #1f2937;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

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

.faq-question i {
  transition: transform 0.3s ease;
}

.faq-question.active i {
  transform: rotate(180deg);
}

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

.faq-answer.active {
  padding: 20px;
  max-height: 200px;
}

.faq-answer p {
  margin: 0;
  color: #374151;
  line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
  
  .step {
    flex-direction: column;
    text-align: center;
  }
  
  .step-number {
    align-self: center;
  }
}

.image-section {
  text-align: center;
  margin: 30px 0;
}

.image-section img {
  width: 100%;
  height: auto;
  max-height: 300px; /* adjust as needed */
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
}


@media (max-width: 480px) {
  .content-section {
    padding: 0 12px;
  }
  
  .intro, .how-to-use, .faq {
    padding: 20px;
  }
  
  .content-section h2 {
    font-size: 20px;
  }
}
