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

body {
  font-family: Arial, sans-serif;
  background: #0f1117;
  color: #ffffff;
}

/* ================= LANDING PAGE ================= */

.navbar {
  padding: 22px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #111318;
}


.logo {
  font-size: 26px;
  font-weight: 900;
  color: #ffcc00;
}

.navbar nav {
  display: flex;
  gap: 24px;
}

.navbar a {
  color: #ffffff;
  text-decoration: none;
}

.hero-section {
  min-height: calc(100vh - 80px);
  padding: 35px 8%;
  display: grid;
  grid-template-columns: 1fr 430px;
  gap: 45px;
  align-items: start;
}

.hero-content {
  padding-top: 70px;
}

.hero-content .tag {
  display: inline-block;
  padding: 8px 14px;
  background: #222631;
  color: #ffcc00;
  border-radius: 40px;
  margin-bottom: 20px;
  font-size: 13px;
  font-weight: 800;
}

.hero-content h1 {
  font-size: 60px;
  line-height: 1.05;
  margin-bottom: 20px;
}

.hero-content p {
  color: #cfcfcf;
  font-size: 18px;
  line-height: 1.7;
}

@media (max-width: 768px) {

  .navbar {

    padding: 18px 5%;

    flex-direction: column;

    gap: 14px;

  }

  .nav-links {

    flex-wrap: wrap;

    justify-content: center;

    gap: 14px;

  }

  .nav-links a {

    font-size: 14px;

  }

}




/* ================= FORM CARD ================= */

.brief-card {
  background: rgba(255, 255, 255, 0.96);
  color: #111111;
  padding: 24px;
  border-radius: 26px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.35);
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.form-header {
  margin-bottom: 18px;
}

.form-header span {
  display: inline-block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #ff9f1c;
  margin-bottom: 6px;
}

.form-header h2 {
  font-size: 28px;
  margin-bottom: 6px;
}

.form-header p {
  font-size: 14px;
  color: #666666;
}

.brief-card form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.input-group label {
  font-size: 13px;
  font-weight: 800;
  color: #222222;
}

.input-group input,
.input-group select {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #dddddd;
  border-radius: 13px;
  font-size: 14px;
  background: #f8f8f8;
  outline: none;
}

.input-group input:focus,
.input-group select:focus {
  border-color: #ffcc00;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(255,204,0,0.18);
}

.generate-btn,
.brief-card button {
  margin-top: 10px;
  padding: 14px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #ffcc00, #ff9f1c);
  color: #111111;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(255,159,28,0.35);
}

/* ================= GENERATE PAGE ================= */

.generate-page {
  min-height: 100vh;
  padding: 50px 6%;
  background: #0f1117;
}

.top-bar {
  margin-bottom: 34px;
}

.top-bar h1 {
  font-size: 44px;
  margin-bottom: 8px;
}

.top-bar p {
  color: #bbbbbb;
}

.poster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 340px));
  gap: 32px;
  align-items: start;
}

.poster-card {
  width: 340px;
  background: #181b23;
  border-radius: 26px;
  overflow: hidden;
   touch-action: pan-y;
  box-shadow: 0 20px 55px rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.08);
}

.poster-preview-wrap {
  width: 320px;
  margin: 10px auto 0;
  overflow: hidden;
  background: #111111;
  border-radius: 20px;
  position: relative;
}

.poster-preview-wrap .canvas-container {
  border-radius: 20px;
  overflow: hidden;
}

.poster-bottom {
  padding: 18px;
}

.poster-bottom {
  padding: 16px;
  display: flex;
  gap: 10px;
}

.poster-bottom button {
  flex: 1;
  height: 42px;
  border: none;
  border-radius: 12px;

  background: rgba(255,255,255,0.08);

  backdrop-filter: blur(10px);

  color: #ffffff;

  font-size: 13px;
  font-weight: 700;

  letter-spacing: 1px;

  cursor: pointer;

  transition: 0.25s ease;

  border: 1px solid rgba(255,255,255,0.08);
}

.poster-bottom button:hover {
  transform: translateY(-2px);

  background: rgba(255,255,255,0.14);
}

.poster-bottom .download-btn {
  background: linear-gradient(
    135deg,
    #ffcc00,
    #ff9f1c
  ) !important;

  color: #111111 !important;

  font-weight: 900;
}

.poster-bottom .download-btn:hover {
  opacity: 0.92;
}

.poster-bottom .download-btn {
  background: #ffffff !important;
  color: #111111 !important;
}

/* ================= LOAD MORE ================= */

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 50px;
}

#loadMoreBtn {
  padding: 16px 32px;
  border: none;
  border-radius: 16px;
  background: #ffcc00;
  color: #111111;
  font-weight: 900;
  cursor: pointer;
}

/* ================= EDITOR PAGE ================= */

.editor-layout {
  display: flex;
  height: 100vh;
  background: #0f1117;
}

.editor-sidebar {
  width: 320px;
  background: #171a22;
  padding: 24px;
  overflow-y: auto;
  border-right: 1px solid rgba(255,255,255,0.08);
}

.editor-sidebar h2 {
  font-size: 28px;
  margin-bottom: 24px;
}

.control-group {
  margin-bottom: 18px;
}

.control-group label {
  display: block;
  color: #cfcfcf;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
}

.control-group input,
.control-group select {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 12px;
  background: #232734;
  color: #ffffff;
}

.button-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 26px;
}

.button-group button {
  border: none;
  padding: 14px;
  border-radius: 14px;
  background: #2f6bff;
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

.button-group .download-btn {
  background: #00b894 !important;
}

.editor-main {
  flex: 1;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: auto;
  padding: 30px;
}

.canvas-wrapper {
  max-width: calc(100vw - 380px);
  max-height: calc(100vh - 80px);
  background: #111318;
  padding: 22px;
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.45);
  overflow: auto;
}

.canvas-container {
  transform-origin: top left;
  border-radius: 22px;
  overflow: hidden;
}

.canvas-container canvas {
  display: block;
}

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

@media (max-width: 900px) {
  .navbar nav {
    display: flex;
  }

  .hero-section {
    grid-template-columns: 1fr;
    padding: 30px 5%;
  }

  .hero-content {
    padding-top: 20px;
  }

  .hero-content h1 {
    font-size: 40px;
  }

  .brief-card {
    max-height: none;
  }

  .poster-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .editor-layout {
    flex-direction: column;
    height: auto;
  }

  .editor-sidebar {
    width: 100%;
  }

  .editor-main {
    height: 75vh;
    padding: 16px;
    justify-content: flex-start;
    align-items: flex-start;
  }

  .canvas-wrapper {
    max-width: 100%;
    max-height: 70vh;
    padding: 14px;
  }
} 

.pro-editor {
  height: 100vh;
  display: grid;
  grid-template-columns: 300px 1fr 260px;
  background: #0d0f14;
  color: #ffffff;
  overflow: hidden;
}

.editor-panel {
  background: #151821;
  border-right: 1px solid rgba(255,255,255,0.08);
  padding: 20px;
  overflow-y: auto;
}

.right-panel {
  border-right: none;
  border-left: 1px solid rgba(255,255,255,0.08);
}

.panel-title {
  margin-bottom: 22px;
}

.panel-title h2 {
  font-size: 24px;
  margin-bottom: 4px;
}

.panel-title p {
  color: #a8a8a8;
  font-size: 13px;
}

.tool-section {
  padding: 16px;
  background: #1d2130;
  border-radius: 18px;
  margin-bottom: 18px;
  border: 1px solid rgba(255,255,255,0.06);
}

.tool-section h3 {
  margin-bottom: 14px;
  font-size: 16px;
}

.tool-section label {
  display: block;
  margin: 10px 0 6px;
  color: #cfcfcf;
  font-size: 13px;
  font-weight: 700;
}

.tool-section input,
.tool-section select {
  width: 100%;
  padding: 11px;
  border-radius: 12px;
  border: none;
  background: #2a3042;
  color: #ffffff;
  outline: none;
}

.tool-section button,
.top-toolbar button {
  width: 100%;
  margin-top: 10px;
  padding: 11px;
  border: none;
  border-radius: 12px;
  background: #2f6bff;
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

.editor-stage {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.top-toolbar {
  height: 64px;
  background: #151821;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 16px;
}

.top-toolbar button {
  width: auto;
  margin-top: 0;
  padding: 10px 16px;
  background: #242a3a;
}

.top-toolbar .export-btn {
  background: linear-gradient(135deg, #ffcc00, #ff9f1c);
  color: #111111;
}

#zoomLabel {
  min-width: 58px;
  text-align: center;
  color: #d7d7d7;
  font-weight: 800;
}

.stage-scroll {
  flex: 1;
  overflow: auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 32px;
}

.canvas-frame {
  background: #10131b;
  padding: 24px;
  border-radius: 24px;
  box-shadow: 0 25px 80px rgba(0,0,0,0.5);
}

.canvas-container {
  transform-origin: top left;
  border-radius: 18px;
  overflow: hidden;
}

.layer-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.layer-item {
  padding: 11px 12px;
  background: #22283a;
  border-radius: 12px;
  cursor: pointer;
  font-size: 13px;
  border: 1px solid rgba(255,255,255,0.06);
}

.layer-item:hover {
  background: #2c3348;
}

@media (max-width: 1000px) {
  .pro-editor {
    grid-template-columns: 1fr;
    height: auto;
  }

  .left-panel,
  .right-panel {
    width: 100%;
    border: none;
  }

  .stage-scroll {
    height: 70vh;
    justify-content: flex-start;
  }
}

.free-badge {

  display: inline-block;

  padding: 10px 18px;

  border-radius: 999px;

  background:
    rgba(255,255,255,0.08);

  border:
    1px solid
    rgba(255,255,255,0.12);

  color: #ffcc00;

  font-size: 13px;

  font-weight: 800;

  letter-spacing: 1px;

  margin-bottom: 18px;

  backdrop-filter: blur(12px);

}

.mini-guide {

  display: grid;

  grid-template-columns:
    repeat(auto-fit,minmax(220px,1fr));

  gap: 20px;

  margin-top: 40px;

}

.guide-card {

  padding: 24px;

  border-radius: 24px;

  background:
    rgba(255,255,255,0.05);

  border:
    1px solid
    rgba(255,255,255,0.08);

  backdrop-filter: blur(12px);

}

.guide-card span {

  width: 42px;
  height: 42px;

  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  background:
    linear-gradient(
      135deg,
      #ffcc00,
      #ff9f1c
    );

  color: #111;

  font-weight: 900;

  margin-bottom: 16px;

}

.guide-card h3 {

  margin-bottom: 8px;

  font-size: 18px;

}

.guide-card p {

  color: #cfcfcf;

  line-height: 1.6;

}

.feedback-section {
  padding: 60px 8%;
  background: #0f1117;
}

.feedback-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 34px;
  border-radius: 28px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}

.feedback-card span {
  color: #ffcc00;
  font-weight: 900;
  letter-spacing: 1px;
  font-size: 13px;
}

.feedback-card h2 {
  margin: 12px 0;
  font-size: 34px;
}

.feedback-card p {
  color: #cfcfcf;
  line-height: 1.7;
  margin-bottom: 22px;
}

.feedback-card textarea {
  width: 100%;
  min-height: 130px;
  padding: 16px;
  border-radius: 18px;
  border: none;
  outline: none;
  resize: vertical;
  font-size: 15px;
}

.feedback-card button {
  margin-top: 18px;
  padding: 14px 26px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #ffcc00, #ff9f1c);
  color: #111;
  font-weight: 900;
  cursor: pointer;
}

.footer {

  padding: 60px 8%;

  background: #0a0d14;

  border-top:
    1px solid
    rgba(255,255,255,0.08);

}

.footer-content {

  max-width: 1100px;

  margin: 0 auto;

  text-align: center;

}

.footer h3 {

  font-size: 28px;

  margin-bottom: 12px;

}

.footer p {

  color: #cfcfcf;

  max-width: 650px;

  margin: 0 auto 22px;

  line-height: 1.7;

}

.footer-links {

  display: flex;

  justify-content: center;

  gap: 20px;

  margin-bottom: 20px;

  flex-wrap: wrap;

}

.footer-links a {

  color: #ffcc00;

  text-decoration: none;

  font-weight: 700;

}

.footer span {

  color: #8d8d8d;

  font-size: 14px;

}

.simple-page {

  min-height: 100vh;

  padding: 100px 8%;

  background: #0f1117;

  color: #ffffff;

}

.simple-page h1 {

  font-size: 48px;

  margin-bottom: 24px;

}

.simple-page p {

  max-width: 800px;

  line-height: 1.9;

  color: #d0d0d0;

  margin-bottom: 18px;

}

@media (max-width: 768px) {

  .hero h1 {

    font-size: 42px !important;

    line-height: 1.1;

  }

  .hero p {

    font-size: 16px;

    line-height: 1.8;

  }

}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 14px;
  }

  .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
  }

  .nav-links li {
    list-style: none;
  }

  .nav-links a {
    font-size: 14px;
  }
}

.poster-card canvas {

  touch-action: pan-y !important;

  pointer-events: none;

}