:root {
  --green-light: #869d28;
  --green-dark: #445425;
  --orange: #faa332;
  --green-mid: #456327;
  --black: #11130e;
  --cream: #f8f0dc;
  --white: #ffffff;
  --shadow: 0 22px 70px rgba(24, 38, 12, .20);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--white);
  background:
    radial-gradient(circle at 85% 12%, rgba(250,163,50,.28), transparent 24%),
    radial-gradient(circle at 10% 88%, rgba(134,157,40,.25), transparent 28%),
    var(--green-dark);
}
button, input { font: inherit; }
a { color: inherit; }

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 18px;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand { display: inline-flex; align-items: center; width: 175px; }
.brand img { width: 100%; height: auto; display: block; }
.instagram-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 15px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 750;
  background: rgba(0,0,0,.10);
  backdrop-filter: blur(10px);
}
.instagram-link:hover { background: rgba(0,0,0,.18); }

.hero {
  min-height: calc(100vh - 120px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 490px);
  align-items: center;
  gap: clamp(40px, 6vw, 90px);
  padding: 70px 0 44px;
}
.hero-copy { max-width: 540px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 850;
  color: var(--orange);
}
.eyebrow::before {
  content: "";
  width: 30px;
  height: 3px;
  border-radius: 99px;
  background: var(--orange);
}
h1 {
  max-width: 560px;
  margin: 0 0 18px;
  font-size: clamp(3rem, 7vw, 5.7rem);
  line-height: .94;
  letter-spacing: -.055em;
  font-weight: 950;
}
.hero-copy p {
  max-width: 520px;
  margin: 0;
  color: rgba(255,255,255,.78);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.7;
}

.app-card {
  padding: 18px;
  background: var(--black);
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.card-topline,
.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 5px 4px 15px;
}
.card-topline > div,
.preview-header > div {
  display: flex;
  align-items: center;
  gap: 9px;
}
.step-number {
  color: var(--orange);
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .08em;
}
.step-label { font-size: .85rem; font-weight: 800; }
.upload-zone {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 24px;
  text-align: center;
  border: 1.5px dashed rgba(255,255,255,.30);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
  cursor: pointer;
  transition: .2s ease;
}
.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--orange);
  background: rgba(250,163,50,.08);
  transform: translateY(-1px);
}
.upload-zone input { position: absolute; opacity: 0; pointer-events: none; }
.upload-zone strong { font-size: 1rem; }
.upload-zone span { color: rgba(255,255,255,.55); font-size: .78rem; }
.upload-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--black);
  font-size: 1.9rem;
  line-height: 1;
  font-weight: 400;
}

.preview-section { margin-top: 4px; }

.photo-adjust {
  margin-top: 12px;
  padding: 12px 13px 11px;
  border-radius: 14px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.07);
}
.adjust-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
  font-size: .78rem;
  font-weight: 800;
}
.adjust-header output {
  color: var(--orange);
  font-variant-numeric: tabular-nums;
}
.zoom-controls {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 9px;
}
.zoom-controls > span {
  color: rgba(255,255,255,.65);
  font-size: 1.05rem;
  line-height: 1;
  text-align: center;
}
.zoom-controls input {
  width: 100%;
  margin: 0;
  accent-color: var(--orange);
  cursor: pointer;
}
.adjust-helper {
  margin: 7px 0 0;
  color: rgba(255,255,255,.44);
  font-size: .67rem;
  line-height: 1.4;
  text-align: center;
}
.text-button {
  border: 0;
  padding: 7px 0;
  background: transparent;
  color: rgba(255,255,255,.70);
  cursor: pointer;
  font-size: .78rem;
  font-weight: 800;
}
.text-button:hover { color: var(--orange); }
.preview-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 16px;
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.07);
}
.preview-frame canvas { display: block; width: 100%; height: 100%; }
.loading-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(10, 12, 8, .82);
  backdrop-filter: blur(4px);
  font-size: .86rem;
  font-weight: 800;
}
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255,255,255,.2);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.primary-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  padding: 16px 18px;
  border: 0;
  border-radius: 14px;
  background: var(--orange);
  color: var(--black);
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(250,163,50,.22);
  transition: .2s ease;
}
.primary-button:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 16px 35px rgba(250,163,50,.30); }
.primary-button:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.helper {
  margin: 10px 3px 0;
  color: rgba(255,255,255,.48);
  font-size: .71rem;
  line-height: 1.5;
  text-align: center;
}
.status-message {
  min-height: 20px;
  padding: 8px 3px 0;
  color: var(--orange);
  font-size: .78rem;
  font-weight: 700;
  text-align: center;
}
.hidden { display: none !important; }

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 2px 3px;
  color: rgba(255,255,255,.52);
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .75rem;
  font-weight: 700;
}

@media (max-width: 860px) {
  .page-shell { width: min(100% - 22px, 620px); }
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 42px 0 34px;
  }
  .hero-copy { max-width: none; text-align: center; }
  .eyebrow { justify-content: center; }
  h1 { font-size: clamp(2.75rem, 12vw, 4.6rem); }
  .hero-copy p { margin-inline: auto; }
  .app-card { padding: 14px; }
}

@media (max-width: 480px) {
  .page-shell { width: calc(100% - 16px); padding-top: 14px; }
  .site-header { align-items: center; }
  .brand { width: 150px; }
  .instagram-link { padding: 9px 12px; font-size: .78rem; }
  .hero { padding-top: 32px; }
  h1 { font-size: 3rem; }
  .hero-copy p { font-size: .96rem; line-height: 1.55; }
  .upload-zone { min-height: 205px; }
  .card-topline, .preview-header { padding-bottom: 12px; }
  .site-footer { padding-bottom: 2px; }
}
