@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  font-family: 'DM Sans', sans-serif;
  color: #173d35;
  background: #f5f3ee;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  --green: #173d35;
  --green-2: #2c5b4f;
  --lime: #cfee67;
  --lime-soft: #eef5cf;
  --cream: #f5f3ee;
  --panel: #ffffff;
  --line: #d6ddd3;
  --text-soft: #5b7069;
  --shadow: 0 30px 70px rgba(23, 61, 53, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, #e9eedf 0, transparent 34%),
    radial-gradient(circle at 85% 10%, #d8e7c8 0, transparent 28%),
    var(--cream);
  color: var(--green);
}

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

button,
input,
select {
  font: inherit;
}

svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 80px;
  padding: 0 0 12px;
  border-bottom: 1px solid #173d3522;
  backdrop-filter: blur(12px);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--green);
  color: #efff8b;
  border-radius: 9px;
  box-shadow: 0 10px 24px rgba(23, 61, 53, 0.16);
}

.brand-mark svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
}

.brand-name {
  margin: 0;
  font: 800 20px Manrope, sans-serif;
  letter-spacing: -0.04em;
}

.brand-tagline {
  margin: 2px 0 0;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.topbar-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #173d351f;
  background: rgba(255, 255, 255, 0.6);
  color: var(--text-soft);
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
}

.pill-strong {
  background: var(--green);
  color: #efff8b;
  border-color: transparent;
}

.hero {
  min-height: 540px;
  padding: 72px 0 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  gap: 24px;
  align-items: start;
}

.hero-copy,
.privacy-panel,
.drop-zone,
.controls,
.result {
  background: var(--panel);
  border: 1px solid #d7ddd7;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.hero-copy {
  position: relative;
  overflow: hidden;
  padding: 40px 40px 32px;
}

.hero-copy::after {
  content: "";
  position: absolute;
  right: -85px;
  top: 28px;
  width: 260px;
  height: 260px;
  border-radius: 45% 45% 18% 18% / 35% 35% 12% 12%;
  background: linear-gradient(135deg, #dce4c8 0%, #eef2dc 100%);
  transform: rotate(10deg);
  opacity: 0.9;
}

.eyebrow,
.result-label,
.panel-title {
  margin: 0 0 12px;
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 800;
  text-transform: uppercase;
  color: #6d7e3e;
}

h1 {
  margin: 0;
  max-width: 680px;
  font: 700 clamp(50px, 5.6vw, 82px) / 0.98 Manrope, sans-serif;
  letter-spacing: -0.06em;
  color: var(--green);
}

.intro {
  position: relative;
  z-index: 1;
  max-width: 580px;
  margin: 20px 0 0;
  color: #38544d;
  font-size: 18px;
  line-height: 1.65;
}

.hero-metrics {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.metric {
  flex: 1 1 180px;
  padding: 16px;
  border: 1px solid #e2e8de;
  border-radius: 12px;
  background: #fbfcf8;
}

.metric-value {
  display: block;
  font: 800 18px Manrope, sans-serif;
  color: var(--green);
  margin-bottom: 6px;
}

.metric-label {
  color: var(--text-soft);
  line-height: 1.45;
}

.privacy-panel {
  padding: 22px;
  background: linear-gradient(180deg, #fffdf7 0%, #f8fbf3 100%);
}

.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
  color: #38544d;
  line-height: 1.55;
}

.checklist li {
  position: relative;
  padding-left: 20px;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #bded4f;
  box-shadow: 0 0 0 5px #bded4f22;
}

.privacy-note {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #dfe5dc;
  color: var(--text-soft);
  line-height: 1.55;
}

.studio {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0;
  max-width: 1200px;
  border-radius: 15px;
  overflow: hidden;
  background: #fff;
  color: var(--green);
  box-shadow: var(--shadow);
}

.drop-zone {
  min-height: 490px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 45px;
  border-right: 1px solid #d7ddd7;
  border-radius: 0;
  box-shadow: none;
  background-image: radial-gradient(#173d3515 1px, transparent 1px);
  background-size: 18px 18px;
  position: relative;
}

.drop-zone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.drop-content {
  display: grid;
  justify-items: center;
  gap: 14px;
  max-width: 460px;
}

.drop-icon {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #edf3e5;
  color: var(--green);
}

.drop-icon svg {
  width: 29px;
  height: 29px;
}

.drop-title {
  margin: 0;
  font: 700 24px Manrope, sans-serif;
  letter-spacing: -0.03em;
}

.drop-hint {
  margin: 0;
  color: #71817d;
  max-width: 420px;
  line-height: 1.55;
}

.primary-button,
.compress-button,
.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  background: var(--green);
  color: white;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 15px 30px rgba(23, 61, 53, 0.16);
}

.primary-button:hover,
.compress-button:hover,
.download-button:hover {
  opacity: 0.88;
}

.compress-button:disabled {
  background: #aeb7b2;
  color: #f7faf8;
  cursor: not-allowed;
  box-shadow: none;
}

.controls {
  padding: 35px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.file-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid #e2e5e0;
  border-radius: 10px;
  background: #fbfcf8;
}

.file-name {
  overflow: hidden;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-size {
  color: var(--text-soft);
  font-size: 0.92rem;
}

.field {
  display: grid;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
}

.field span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

select,
input[type="range"] {
  width: 100%;
}

select {
  appearance: auto;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #cfd7d2;
  border-radius: 8px;
  background: white;
  color: #173d35;
}

select option {
  color: #173d35;
  background: white;
}

select:focus {
  outline: 2px solid #cfee67aa;
  outline-offset: 2px;
}

input[type="range"] {
  accent-color: #173d35;
}

output {
  color: var(--text-soft);
  font-weight: 600;
}

.progress-wrap {
  display: grid;
  gap: 8px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--text-soft);
  font-size: 0.92rem;
}

progress {
  width: 100%;
  height: 12px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: #e9eee8;
}

progress::-webkit-progress-bar {
  background: #e9eee8;
}

progress::-webkit-progress-value {
  background: #cfee67;
}

progress::-moz-progress-bar {
  background: #cfee67;
}

.result {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-top: 22px;
  padding: 20px 24px;
  background: linear-gradient(180deg, #fbfcf8 0%, #f3f6ee 100%);
  border: 1px solid #ccd4ce;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.result h2 {
  margin: 0;
  font: 700 22px Manrope, sans-serif;
}

.result p {
  margin: 8px 0 0;
  color: var(--text-soft);
}

.notes {
  margin-top: 20px;
  padding: 0 0 12px;
  color: #6d7e3e;
  line-height: 1.6;
}

.notes p {
  margin: 0;
}

.site-footer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(280px, 420px) auto auto;
  align-items: center;
  gap: 18px;
  padding: 30px 0 14px;
  color: #6f7e79;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 800 21px Manrope, sans-serif;
  color: var(--green);
}

.footer-brand span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--green);
  color: #efff8b;
  border-radius: 9px;
}

.footer-brand span svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-copy,
.site-footer small {
  margin: 0;
  font-size: 13px;
}

.footer-copy {
  max-width: 420px;
}

.footer-cta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  text-align: right;
  font-size: 13px;
  line-height: 1.45;
}

.footer-cta span {
  max-width: 360px;
  color: var(--text-soft);
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.footer-links a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-links a:hover {
  opacity: 0.72;
}

.footer-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  background: var(--green);
  color: #efff8b !important;
  text-decoration: none !important;
  box-shadow: 0 10px 24px rgba(23, 61, 53, 0.14);
  white-space: nowrap;
}

.footer-button:hover {
  opacity: 0.88;
}

@media (max-width: 1100px) {
  .studio {
    grid-template-columns: 1fr;
  }

  .drop-zone {
    border-right: 0;
    border-bottom: 1px solid #d7ddd7;
  }

  .site-footer {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .footer-cta,
  .footer-links {
    justify-content: flex-start;
    text-align: left;
    justify-items: start;
  }

  .footer-cta {
    max-width: 420px;
    flex-wrap: wrap;
  }
}

@media (max-width: 900px) {
  .topbar-pills {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 42px 0 28px;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 28px 22px 24px;
  }

  .privacy-panel {
    padding: 20px;
  }

  .result {
    align-items: stretch;
    flex-direction: column;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 22px, 1200px);
    padding-top: 18px;
  }

  .topbar {
    min-height: auto;
    align-items: flex-start;
    padding-bottom: 16px;
    gap: 12px;
    flex-direction: column;
  }

  h1 {
    font-size: 44px;
  }

  .intro {
    font-size: 16px;
  }

  .drop-zone {
    min-height: 360px;
    padding: 25px;
  }

  .controls {
    padding: 24px;
  }

  .drop-title {
    font-size: 21px;
  }

  .footer-cta {
    gap: 10px;
  }

  .footer-links {
    gap: 14px;
  }
}
