:root {
  --bg-top: #db8273;
  --bg-bottom: #b34a56;
  --hero-deep: #9c3f4e;
  --hero-mid: #b5555e;
  --hero-soft: #d57e72;
  --card: #fff9f7;
  --card-strong: #ffffff;
  --surface: rgba(255, 248, 246, 0.9);
  --text: #5f3140;
  --text-strong: #ffffff;
  --muted: #8e6670;
  --line: rgba(216, 139, 130, 0.34);
  --accent: #d44f56;
  --accent-deep: #8f2f4c;
  --accent-soft: rgba(212, 79, 86, 0.12);
  --shadow-lg: 0 28px 60px rgba(121, 58, 71, 0.18);
  --shadow-md: 0 16px 30px rgba(121, 58, 71, 0.14);
  --radius-xl: 22px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: europa, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 65%, rgba(255, 226, 168, 0.32), transparent 22%),
    radial-gradient(circle at 82% 72%, rgba(180, 221, 255, 0.28), transparent 18%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 315px, #fbf7f5 315px, #fbf7f5 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.app-shell {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

.app-background {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.bg-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(28px);
  opacity: 0.45;
}

.bg-orb-one {
  top: 320px;
  left: -60px;
  width: 280px;
  height: 280px;
  background: rgba(255, 228, 154, 0.46);
}

.bg-orb-two {
  right: -40px;
  top: 360px;
  width: 260px;
  height: 260px;
  background: rgba(204, 226, 255, 0.34);
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.25), transparent 45%);
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 22px));
  margin: 14px auto 56px;
}

.hero-panel {
  padding: 0;
  border-radius: var(--radius-xl);
  box-shadow: none;
  background: transparent;
}

.hero-frame {
  min-height: 244px;
  padding: 16px 14px;
  border-radius: var(--radius-xl);
}

.hero-copy {
  min-height: 244px;
  padding: 12px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(205, 108, 94, 0.88), rgba(159, 62, 79, 0.96));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.hero-copy {
  position: relative;
  overflow: hidden;
}

.hero-copy::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: rgba(255, 244, 242, 0.92);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-badge {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(255, 95, 79, 0.72);
}

.hero-badge img {
  width: 34px;
  height: 34px;
}

.hero-copy h1 {
  max-width: 470px;
  margin: 0 0 10px;
  color: var(--text-strong);
  font-size: clamp(2rem, 5vw, 3.3rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.04em;
}

.hero-text {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 241, 239, 0.92);
  font-size: 1.05rem;
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.primary-cta,
.secondary-cta,
.tertiary-cta,
.promo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary-cta {
  background: rgba(255, 228, 223, 0.26);
  color: var(--text-strong);
  box-shadow: inset 0 0 0 1px rgba(255, 214, 210, 0.15);
}

.tertiary-cta {
  background: rgba(255, 247, 245, 0.12);
  color: #fff4f2;
  box-shadow: inset 0 0 0 1px rgba(255, 223, 219, 0.24);
}

.secondary-cta,
.promo-link {
  background: linear-gradient(135deg, #d25557, #8e2f4b);
  color: #fff;
  box-shadow: 0 14px 24px rgba(143, 47, 75, 0.18);
}

.primary-cta:hover,
.secondary-cta:hover,
.promo-link:hover,
.modern-tool-card:hover {
  transform: translateY(-1px);
}

.content-card {
  margin-top: 26px;
  padding: 0 0 24px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 247, 245, 0.98), rgba(255, 255, 255, 0.98));
  box-shadow: 0 20px 40px rgba(100, 67, 75, 0.16);
  overflow: hidden;
}

.ad-card {
  margin-top: 22px;
  padding: 18px 20px 20px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 247, 245, 0.94), rgba(255, 255, 255, 0.96));
  box-shadow: 0 18px 34px rgba(100, 67, 75, 0.12);
}

.ad-card-label {
  margin-bottom: 12px;
  color: #b07b82;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

.ad-card-slot {
  min-height: 90px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 252, 251, 0.96);
  box-shadow: inset 0 0 0 1px rgba(233, 203, 197, 0.56);
}

.card-section-title {
  padding: 18px 20px 12px;
  background: linear-gradient(180deg, rgba(255, 242, 239, 0.92), rgba(255, 248, 246, 0.96));
  text-align: center;
  color: #ef5538;
  font-size: 1.1rem;
  font-weight: 800;
}

.card-intro {
  max-width: 760px;
  margin: 14px auto 22px;
  padding: 0 24px;
  text-align: center;
  color: #7e6067;
  font-size: 1rem;
  line-height: 1.55;
}

.tools-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 0 24px;
  margin: 0 auto 18px;
}

.summary-metric {
  padding: 18px 16px;
  border-radius: 18px;
  background: #fff5f2;
  box-shadow: inset 0 0 0 1px rgba(229, 188, 179, 0.5);
  text-align: center;
}

.summary-metric strong {
  display: block;
  color: #cf4f4d;
  font-size: 1.5rem;
  font-weight: 800;
}

.summary-metric span {
  color: #8c6b73;
  font-size: 0.92rem;
}

.tool-groups {
  display: grid;
  gap: 18px;
  padding: 0 24px;
}

.tool-group-card {
  padding: 22px;
  border-radius: 22px;
  background: #fffdfc;
  box-shadow: inset 0 0 0 1px rgba(233, 203, 197, 0.56);
}

.group-header {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.group-kicker,
.modal-kicker {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  background: #fff1ee;
  color: #d1554f;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.group-header h3 {
  margin: 10px 0 0;
  color: #5e3040;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.group-header p {
  margin: 0;
  color: #87666f;
  line-height: 1.55;
}

.modern-tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

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

.modern-tool-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 205px;
  padding: 18px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff7f5, #fffdfd);
  box-shadow: inset 0 0 0 1px rgba(235, 206, 200, 0.7);
  text-align: left;
}

.modern-tool-card-wide {
  min-height: 188px;
}

.tool-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tool-card-top img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.tool-badge {
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff0eb;
  color: #ad4454;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tool-card-copy h4 {
  margin: 0;
  color: #5a2f3e;
  font-size: 1.1rem;
  font-weight: 800;
}

.tool-card-copy p,
.tool-link {
  color: #8a6971;
}

.tool-card-copy p {
  margin: 0;
  line-height: 1.52;
}

.tool-client-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 242, 238, 0.96);
  box-shadow: inset 0 0 0 1px rgba(223, 176, 170, 0.58);
  color: #8e4651;
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.tool-client-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #d25557, #8e2f4b);
  box-shadow: 0 0 0 4px rgba(212, 79, 86, 0.12);
}

.tool-link {
  margin-top: auto;
  font-weight: 700;
}

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(104, 58, 69, 0.35);
  backdrop-filter: blur(8px);
}

.modal-panel {
  width: min(620px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  border-radius: 24px;
  background: linear-gradient(180deg, #fffaf8, #fff2ee);
  box-shadow: 0 26px 70px rgba(115, 58, 72, 0.28);
}

.modal-panel-wide {
  width: min(900px, 100%);
}

.modern-modal-header,
.modern-modal-footer {
  padding: 22px 24px;
}

.modern-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid rgba(230, 190, 183, 0.7);
}

.modern-modal-footer .primary-cta {
  background: linear-gradient(135deg, #d25557, #8e2f4b);
  color: #fff;
  box-shadow: 0 14px 24px rgba(143, 47, 75, 0.2);
}

.modern-modal-footer .secondary-cta {
  background: #fff;
  color: #8e2f4b;
  box-shadow: inset 0 0 0 1px rgba(210, 85, 87, 0.32);
}

.modern-modal-footer .primary-cta:disabled,
.modern-modal-footer .secondary-cta:disabled {
  opacity: 0.72;
  cursor: not-allowed;
  transform: none;
}

.modern-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(230, 190, 183, 0.7);
}

.modal-title {
  margin: 10px 0 0;
  color: #5f3140;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.modal-close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #fff1ee;
  color: #7f4c5a;
  cursor: pointer;
}

.modern-modal-body {
  padding: 22px 24px;
  display: grid;
  gap: 16px;
}

.upload-panel,
.file-list-panel,
.option-panel {
  padding: 18px;
  border-radius: 18px;
  background: #fffdfc;
  box-shadow: inset 0 0 0 1px rgba(233, 203, 197, 0.56);
}

.panel-heading {
  margin-bottom: 12px;
  color: #9f6c6c;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.inputfile {
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  z-index: -1;
}

.upload-dropzone {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 170px;
  padding: 20px;
  border: 2px dashed rgba(237, 140, 126, 0.72);
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 226, 214, 0.62), transparent 28%),
    #ffffff;
  text-align: center;
  cursor: pointer;
}

.upload-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff1ed;
  color: #d1554f;
  font-size: 1.25rem;
}

.upload-dropzone span:last-child {
  color: #8c6a72;
}

.file-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.file-list li {
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff7f4;
}

.file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.file-name {
  color: #673747;
}

.file-remove {
  border: 0;
  padding: 0;
  background: transparent;
  color: #b04855;
  cursor: pointer;
}

.segmented-control {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.segmented-control label {
  position: relative;
}

.segmented-control input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented-control span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: #fff7f5;
  box-shadow: inset 0 0 0 1px rgba(229, 190, 183, 0.72);
}

.segmented-control input:checked + span {
  background: linear-gradient(135deg, #d75859, #91304c);
  color: #fff;
  box-shadow: none;
}

.modern-input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(229, 190, 183, 0.72);
  border-radius: 14px;
  background: #fff;
  color: #5f3140;
  outline: none;
}

.modern-input:focus {
  border-color: rgba(214, 96, 88, 0.7);
  box-shadow: 0 0 0 4px rgba(214, 96, 88, 0.12);
}

.range-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.modern-range {
  width: 100%;
}

.modal-grid-two,
.compact-grid {
  display: grid;
  gap: 12px;
}

.modal-grid-two,
.compact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.margins-grid {
  margin-top: 12px;
}

.checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  color: #87666f;
}

@media (max-width: 980px) {
  .tools-summary,
  .modern-tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .group-header,
  .modal-grid-two {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100%, calc(100% - 12px));
    margin-top: 8px;
  }

  .hero-frame {
    padding: 10px 8px;
  }

  .hero-copy {
    min-height: 0;
    padding: 16px;
  }

  .hero-copy h1 {
    max-width: none;
  }

  .content-card {
    margin-top: 28px;
    border-radius: 22px;
  }

  .tools-summary,
  .modern-tool-grid,
  .wide-grid,
  .compact-grid {
    grid-template-columns: 1fr;
  }

  .tool-groups,
  .tools-summary {
    padding-left: 16px;
    padding-right: 16px;
  }

  .modal-shell {
    padding: 10px;
  }

  .modern-modal-header,
  .modern-modal-body,
  .modern-modal-footer {
    padding: 18px;
  }
}
