@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Poppins:wght@500;600;700;800&display=swap');

:root {
  --saffron: #ff9933;
  --saffron-dark: #e87500;
  --green: #138808;
  --navy: #000080;
  --dark: #101828;
  --muted: #667085;
  --border: #e4e7ec;
  --background: #fffaf5;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, sans-serif;
  color: var(--dark);
  background: var(--background);
  line-height: 1.5;
}

button,
input {
  font-family: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  text-decoration: none;
}


/* =========================
   TOPBAR
========================= */

.topbar {
  height: 72px;
  padding: 0 6%;
  background: rgba(255,255,255,.95);
  border-bottom: 1px solid var(--border);

  display: flex;
  align-items: center;
  justify-content: space-between;

  position: sticky;
  top: 0;
  z-index: 50;

  backdrop-filter: blur(15px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo > span {
  font-size: 30px;
}

.logo strong {
  display: block;
  font-family: Poppins;
  font-size: 18px;
}

.logo small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.top-btn {
  background: var(--saffron);
  color: white;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 700;
}


/* =========================
   HERO
========================= */

.hero {
  min-height: 560px;

  display: flex;
  justify-content: center;
  align-items: center;

  text-align: center;

  padding: 80px 20px;

  position: relative;

  overflow: hidden;

  background:
    radial-gradient(
      circle at 50% 10%,
      rgba(255,153,51,.18),
      transparent 35%
    ),
    linear-gradient(
      180deg,
      #fff 0%,
      #fff9f2 100%
    );
}

.hero::before {
  content: "";

  position: absolute;

  left: -10%;
  right: -10%;

  bottom: -150px;

  height: 260px;

  background:
    linear-gradient(
      to bottom,
      rgba(255,153,51,.14) 0 33%,
      rgba(255,255,255,.7) 33% 66%,
      rgba(19,136,8,.12) 66%
    );

  border-radius: 50%;
}

.hero-content {
  max-width: 780px;
  position: relative;
  z-index: 2;
}

.badge,
.mini-badge {
  display: inline-flex;
  align-items: center;

  background: #fff2e3;
  color: var(--saffron-dark);

  border: 1px solid #ffd6ad;

  padding: 7px 13px;

  border-radius: 100px;

  font-size: 12px;
  font-weight: 800;
  letter-spacing: .4px;
}

.hero h1 {
  font-family: Poppins, sans-serif;

  font-size: clamp(42px, 7vw, 76px);

  line-height: 1.05;

  margin: 22px 0 18px;
}

.hero h1 span {
  color: var(--saffron);
}

.hero p {
  max-width: 650px;
  margin: auto;

  color: var(--muted);

  font-size: 17px;
}

.primary-btn {
  display: inline-flex;

  margin-top: 30px;

  background: var(--saffron);

  color: white;

  padding: 15px 26px;

  border-radius: 12px;

  font-weight: 800;

  box-shadow: 0 10px 25px rgba(255,153,51,.25);

  transition: .2s;
}

.primary-btn:hover {
  transform: translateY(-2px);
  background: var(--saffron-dark);
}

.trust {
  margin-top: 18px;

  display: flex;
  justify-content: center;

  gap: 18px;

  color: var(--muted);

  font-size: 12px;
}


/* =========================
   MAIN MAKER
========================= */

.maker-section {
  max-width: 1200px;
  margin: auto;

  padding: 90px 20px;
}

.section-heading {
  text-align: center;
  margin-bottom: 45px;
}

.section-heading h2 {
  font-family: Poppins;
  font-size: clamp(28px, 4vw, 42px);
  margin-top: 12px;
}

.section-heading p {
  color: var(--muted);
  margin-top: 6px;
}

.maker-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;

  gap: 35px;

  align-items: start;
}

.controls {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.card {
  background: white;

  border: 1px solid var(--border);

  border-radius: 18px;

  padding: 22px;

  box-shadow:
    0 8px 30px rgba(16,24,40,.04);
}

.step-title {
  display: flex;
  align-items: center;
  gap: 13px;

  margin-bottom: 20px;
}

.step-title > span {
  width: 34px;
  height: 34px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  background: #fff2e3;
  color: var(--saffron-dark);

  font-weight: 800;
}

.step-title h3 {
  font-size: 15px;
}

.step-title p {
  font-size: 12px;
  color: var(--muted);
}


/* =========================
   UPLOAD
========================= */

.upload-box {
  min-height: 160px;

  border: 2px dashed #ffcc99;

  border-radius: 15px;

  background: #fffaf5;

  display: flex;
  flex-direction: column;

  justify-content: center;
  align-items: center;

  cursor: pointer;

  transition: .2s;
}

.upload-box:hover {
  border-color: var(--saffron);
  background: #fff6ed;
}

.upload-icon {
  font-size: 32px;
  margin-bottom: 6px;
}

.upload-box strong {
  font-size: 14px;
}

.upload-box small {
  color: var(--muted);
  margin-top: 5px;
  font-size: 11px;
}


/* =========================
   DESIGNS
========================= */

.designs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);

  gap: 8px;
}

.design {
  border: 2px solid transparent;
  background: white;

  cursor: pointer;

  padding: 6px;

  border-radius: 12px;

  color: var(--dark);

  transition: .2s;
}

.design:hover {
  background: #fafafa;
}

.design.active {
  border-color: var(--saffron);
}

.design b {
  display: block;
  font-size: 10px;
  margin-top: 5px;
}

.mini-preview {
  height: 55px;
  width: 100%;

  display: block;

  border-radius: 8px;
}

.design-one {
  background:
    linear-gradient(
      to bottom,
      #ff9933 0 33%,
      white 33% 66%,
      #138808 66%
    );
}

.design-two {
  background:
    radial-gradient(
      circle at center,
      #000080 0 12%,
      transparent 13%
    ),
    linear-gradient(
      135deg,
      #ff9933,
      #fff 48%,
      #138808
    );
}

.design-three {
  background:
    linear-gradient(
      135deg,
      #ff9933 0 50%,
      #138808 50%
    );
}

.design-four {
  background:
    radial-gradient(
      circle,
      #fff 0 22%,
      #ff9933 23% 55%,
      #138808 56%
    );
}

.design-five {
  background:
    linear-gradient(
      145deg,
      #ff9933,
      #ffffff 50%,
      #138808
    );
}


/* =========================
   INPUTS
========================= */

.field-label {
  display: block;

  font-size: 12px;
  font-weight: 700;

  margin: 14px 0 7px;
}

.text-input {
  width: 100%;

  padding: 12px 13px;

  border: 1px solid var(--border);

  border-radius: 10px;

  outline: none;

  font-size: 14px;

  transition: .2s;
}

.text-input:focus {
  border-color: var(--saffron);

  box-shadow:
    0 0 0 3px rgba(255,153,51,.12);
}


/* =========================
   GENERATE
========================= */

.generate-btn {
  border: none;

  cursor: pointer;

  background: linear-gradient(
    135deg,
    #ff9933,
    #f57c00
  );

  color: white;

  padding: 16px;

  border-radius: 13px;

  font-size: 15px;
  font-weight: 800;

  box-shadow:
    0 10px 25px rgba(255,153,51,.2);

  transition: .2s;
}

.generate-btn:hover {
  transform: translateY(-2px);
}


/* =========================
   PREVIEW
========================= */

.preview-area {
  position: sticky;
  top: 100px;
}

.preview-card {
  background: white;

  border: 1px solid var(--border);

  border-radius: 20px;

  padding: 15px;

  box-shadow:
    0 15px 45px rgba(16,24,40,.08);
}

.preview-header {
  padding: 4px 5px 12px;

  display: flex;
  justify-content: space-between;

  font-size: 10px;
  font-weight: 800;

  color: var(--muted);
}

.live-dot {
  color: var(--green);
}

.canvas-wrap {
  width: 100%;

  aspect-ratio: 1;

  background: #f5f5f5;

  border-radius: 15px;

  overflow: hidden;

  position: relative;
}

canvas {
  width: 100%;
  height: 100%;

  display: block;
}

.empty-state {
  position: absolute;

  inset: 0;

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  background: #fafafa;

  text-align: center;

  color: var(--muted);
}

.empty-state div {
  font-size: 45px;
  margin-bottom: 10px;
}

.empty-state strong {
  color: var(--dark);
}

.empty-state small {
  margin-top: 5px;
}

.download-btn,
.share-btn {
  width: 100%;

  border: none;

  padding: 14px;

  border-radius: 11px;

  margin-top: 12px;

  font-weight: 800;

  cursor: pointer;
}

.download-btn {
  background: var(--green);
  color: white;
}

.share-btn {
  background: #25D366;
  color: white;
}

.download-btn:disabled,
.share-btn:disabled {
  opacity: .4;
  cursor: not-allowed;
}


/* =========================
   FEATURES
========================= */

.features {
  background: white;

  padding: 90px 20px;
}

.feature-grid {
  max-width: 1100px;

  margin: auto;

  display: grid;

  grid-template-columns:
    repeat(4, 1fr);

  gap: 18px;
}

.feature-card {
  border: 1px solid var(--border);

  border-radius: 16px;

  padding: 25px;

  text-align: center;
}

.feature-card > div {
  font-size: 30px;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-size: 15px;
}

.feature-card p {
  font-size: 12px;

  color: var(--muted);

  margin-top: 7px;
}


/* =========================
   CTA
========================= */

.bottom-cta {
  padding: 90px 20px;

  text-align: center;

  background:
    linear-gradient(
      120deg,
      #fff1e2,
      white,
      #eff9ed
    );
}

.bottom-cta > div {
  max-width: 650px;
  margin: auto;
}

.bottom-cta span {
  font-size: 45px;
}

.bottom-cta h2 {
  font-family: Poppins;

  font-size: clamp(27px, 4vw, 40px);

  margin-top: 10px;
}

.bottom-cta p {
  color: var(--muted);
}


/* =========================
   FOOTER
========================= */

footer {
  background: #101828;

  color: white;

  padding: 45px 20px;

  text-align: center;
}

.footer-logo {
  font-size: 20px;
}

footer p {
  color: #98a2b3;

  font-size: 12px;

  margin-top: 8px;
}

footer .copyright {
  margin-top: 25px;
}


/* =========================
   TOAST
========================= */

.toast {
  position: fixed;

  left: 50%;
  bottom: 25px;

  transform:
    translate(-50%, 100px);

  background: #101828;

  color: white;

  padding: 12px 18px;

  border-radius: 10px;

  font-size: 13px;

  opacity: 0;

  transition: .3s;

  z-index: 100;
}

.toast.show {
  opacity: 1;

  transform:
    translate(-50%, 0);
}


/* =================================================
   ADSENSE
   ================================================= */

/*
   IMPORTANT:

   AdSense ko crop hone se bachane ke liye
   container ka overflow visible rakha gaya hai.

   AdSense element ki height/width ko force nahi
   kiya gaya hai. Google ko apna responsive size
   decide karne diya gaya hai.
*/

.ad-container {
  width: 100%;

  max-width: 970px;

  margin: 25px auto;

  padding: 10px 15px;

  text-align: center;

  box-sizing: border-box;

  overflow: visible;

  position: relative;

  z-index: 1;
}


/* Advertisement label */

.ad-label {
  display: block;

  margin: 0 0 8px;

  color: #98a2b3;

  font-size: 9px;

  line-height: 14px;

  font-weight: 600;

  letter-spacing: .5px;

  text-align: center;

  text-transform: uppercase;
}


/*
   IMPORTANT:

   Yahan width/height force nahi ki gayi.
   AdSense apne responsive dimensions khud
   calculate karega.
*/

.ad-container .adsbygoogle {
  display: block;
}


/* =========================
   MOBILE ADSENSE
========================= */

@media (max-width: 600px) {

  .ad-container {
    width: 100%;

    margin: 18px auto;

    padding: 8px 10px;

    overflow: visible;
  }

  .ad-label {
    margin-bottom: 6px;

    font-size: 8px;
  }

}


/* =========================
   MOBILE
========================= */

@media (max-width: 850px) {

  .maker-grid {
    grid-template-columns: 1fr;
  }

  .preview-area {
    position: static;
    order: -1;
  }

  .feature-grid {
    grid-template-columns:
      repeat(2, 1fr);
  }

}


@media (max-width: 550px) {

  .topbar {
    padding: 0 16px;
  }

  .top-btn {
    padding: 8px 12px;
    font-size: 12px;
  }

  .hero {
    min-height: 500px;
    padding: 60px 18px;
  }

  .hero h1 {
    font-size: 43px;
  }

  .hero p {
    font-size: 14px;
  }

  .trust {
    gap: 9px;
    flex-wrap: wrap;
  }

  .maker-section,
  .features {
    padding: 60px 14px;
  }

  .card {
    padding: 17px;
  }

  .designs {
    gap: 5px;
  }

  .design b {
    font-size: 8px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

}