:root {
  --blue: #0f6fff;
  --blue-dark: #0948b3;
  --sky: #eaf3ff;
  --ink: #102033;
  --muted: #627084;
  --line: #dce6f3;
  --soft: #f6f9fd;
  --white: #ffffff;
  --success: #0f9f6e;
  --warning: #b87600;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
}

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(220, 230, 243, 0.85);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  color: white;
  background: var(--blue);
}

.nav {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-weight: 700;
}

.hero {
  display: flex;
  align-items: center;
  min-height: calc(100vh - 110px);
  padding: clamp(48px, 8vw, 96px) clamp(18px, 6vw, 80px) 44px;
  background:
    linear-gradient(135deg, rgba(15, 111, 255, 0.1), rgba(255, 255, 255, 0) 45%),
    radial-gradient(circle at 80% 20%, rgba(15, 111, 255, 0.12), transparent 30%);
}

.hero-copy {
  max-width: 900px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.97;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 18px;
}

.hero-text {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 18px;
  cursor: pointer;
  font-weight: 800;
  transition: 0.18s ease;
}

.button.primary {
  color: white;
  background: var(--blue);
  box-shadow: 0 12px 28px rgba(15, 111, 255, 0.22);
}

.button.primary:hover {
  background: var(--blue-dark);
}

.button.secondary,
.button.ghost {
  color: var(--blue);
  border-color: var(--line);
  background: white;
}

.button.wide {
  width: 100%;
}

.ad-band,
.tool-hero,
.tools-section,
.workspace-section,
.faq-section,
.legal-section {
  padding: 54px clamp(18px, 6vw, 80px);
}

.tool-hero {
  min-height: 340px;
  padding-top: clamp(58px, 9vw, 108px);
  padding-bottom: clamp(42px, 7vw, 76px);
  background:
    linear-gradient(135deg, rgba(15, 111, 255, 0.1), rgba(255, 255, 255, 0) 50%),
    var(--white);
}

.tool-hero h1 {
  max-width: 860px;
}

.ad-slot {
  display: grid;
  min-height: 96px;
  place-items: center;
  border: 1px dashed #b8c8dd;
  border-radius: 8px;
  color: var(--muted);
  background: var(--soft);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

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

.tool-card {
  display: block;
  min-height: 170px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  cursor: pointer;
  text-align: left;
  transition: 0.18s ease;
}

.tool-card:hover,
.tool-card.active {
  border-color: rgba(15, 111, 255, 0.55);
  box-shadow: 0 16px 45px rgba(24, 45, 76, 0.1);
  transform: translateY(-2px);
}

.tool-card .icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  color: var(--blue);
  background: var(--sky);
  font-weight: 900;
}

.tool-card h3 {
  margin-top: 18px;
}

.tool-card p {
  margin: 9px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.badge {
  display: inline-flex;
  margin-top: 14px;
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--success);
  background: #e9fbf5;
  font-size: 12px;
  font-weight: 800;
}

.badge.warning {
  color: var(--warning);
  background: #fff6df;
}

.workspace-section {
  background: var(--soft);
}

.workspace-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
}

.drop-zone,
.settings-panel,
.results,
.file-item,
.faq-grid article,
.legal-section article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.drop-zone {
  display: grid;
  min-height: 320px;
  place-items: center;
  align-content: center;
  padding: 28px;
  text-align: center;
}

.drop-zone.dragging {
  border-color: var(--blue);
  background: #f2f7ff;
}

.drop-zone input {
  display: none;
}

.drop-icon {
  display: grid;
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  place-items: center;
  border-radius: 8px;
  color: white;
  background: var(--blue);
  font-size: 38px;
  font-weight: 300;
}

.drop-zone p {
  margin: 8px 0 20px;
  color: var(--muted);
}

.settings-panel {
  padding: 20px;
}

.setting {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}

.setting label {
  color: var(--muted);
  font-weight: 700;
}

.setting input,
.setting select {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: white;
}

.status {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.file-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 16px;
}

.file-item small {
  color: var(--muted);
}

.results {
  display: none;
  margin-top: 18px;
  padding: 18px;
}

.results.visible {
  display: block;
}

.result-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.download-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  border-radius: 8px;
  padding: 0 14px;
  color: white;
  background: var(--success);
  font-weight: 800;
}

.info-band {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 36px;
  align-items: center;
  padding: 64px clamp(18px, 6vw, 80px);
  color: white;
  background: #102033;
}

.info-band .eyebrow {
  color: #9dccff;
}

.info-band p:last-child {
  color: #d9e7f7;
  font-size: 18px;
  line-height: 1.7;
}

.faq-grid,
.legal-section {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.faq-grid article,
.legal-section article {
  padding: 22px;
}

.faq-grid p,
.legal-section p {
  color: var(--muted);
  line-height: 1.6;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 6vw, 80px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 980px) {
  .hero,
  .workspace,
  .info-band {
    grid-template-columns: 1fr;
  }

  .tool-grid,
  .faq-grid,
  .legal-section {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-header,
  .section-heading,
  .workspace-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    padding-top: 40px;
  }

  .tool-grid,
  .faq-grid,
  .legal-section {
    grid-template-columns: 1fr;
  }

}
