* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Manrope', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.5;
}

img,
svg,
video,
canvas,
iframe {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
}

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  overflow: hidden;
}

.brand-mark img {
  display: block;
  max-width: 100%;
  height: auto;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  height: 112px;
  width: auto;
  max-width: 640px;
  border: 0;
  background: transparent;
  overflow: visible;
}

.nav-logo img {
  height: 100% !important;
  width: auto !important;
  max-width: 100%;
  object-fit: contain;
  object-position: center center;
  vertical-align: middle;
  transition: transform 0.25s ease;
}

#site-header {
  will-change: box-shadow, background-color;
}

#site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.1);
}

#site-header.is-scrolled .nav-logo img {
  transform: none;
  transform-origin: left center;
}

@media (max-width: 640px) {
  .nav-logo {
    height: 100px;
    max-width: 540px;
  }

  #site-header.is-scrolled .nav-logo img {
    transform: none;
  }

  .mobile-stack > * {
    width: 100%;
  }
}

.business-details {
  line-height: 1.6;
}

.legal-disclaimer {
  font-size: 12px;
}

.logo-disclaimer {
  font-size: 12px;
  line-height: 1.4;
}

.hero-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.hero-cta::before {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}

.hero-cta-primary::before {
  content: "↗";
  background: rgba(82, 183, 136, 0.16);
  color: #157347;
}

.hero-cta-secondary::before {
  content: "◎";
  background: rgba(16, 24, 40, 0.14);
  color: #ffffff;
}

.hero-cta-secondary.border-2::before {
  background: rgba(82, 183, 136, 0.14);
  color: #157347;
}

.feature-startup-card {
  position: relative;
  overflow: hidden;
}

.feature-startup-card::before {
  content: "";
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: block;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #e8f7ef 0%, #d7f1e4 100%);
  box-shadow: inset 0 0 0 1px #b7e7cf;
  position: relative;
}

.feature-startup-card:nth-child(1)::after,
.feature-startup-card:nth-child(2)::after,
.feature-startup-card:nth-child(3)::after,
.feature-startup-card:nth-child(4)::after {
  position: absolute;
  left: 18px;
  top: 14px;
  font-size: 14px;
  font-weight: 800;
  color: #0f6b46;
}

.feature-startup-card:nth-child(1)::after { content: "$"; }
.feature-startup-card:nth-child(2)::after { content: "≋"; }
.feature-startup-card:nth-child(3)::after { content: "↔"; }
.feature-startup-card:nth-child(4)::after { content: "▦"; }

.testimonial-card {
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: "“";
  position: absolute;
  right: 14px;
  top: 10px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ecf8f1;
  color: #1e7a52;
  font-size: 18px;
  font-weight: 800;
}

.label-dropzone {
  position: relative;
  overflow: hidden;
}

.label-dropzone.is-dragover {
  border-color: #0f9f6e;
  background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 48%, #f0fdf4 100%);
  box-shadow: 0 18px 40px rgba(16, 185, 129, 0.12);
}

.preview-shell {
  position: relative;
}

.preview-empty {
  transition: opacity 0.2s ease;
}

.canvas-viewport {
  touch-action: none;
}

.crop-layer {
  pointer-events: none;
}

.crop-shade {
  position: absolute;
  background: rgba(2, 6, 23, 0.56);
  pointer-events: none;
}

.crop-box {
  position: absolute;
  border: 2px solid #22c55e;
  border-radius: 20px;
  box-shadow: 0 0 0 9999px rgba(255, 255, 255, 0.01), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  cursor: move;
  pointer-events: auto;
  touch-action: none;
  backdrop-filter: saturate(1.2);
}

.crop-box::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(rgba(34, 197, 94, 0.18), rgba(34, 197, 94, 0.18)),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent calc(33.333% - 1px),
      rgba(255, 255, 255, 0.5) calc(33.333% - 1px),
      rgba(255, 255, 255, 0.5) 33.333%
    ),
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent calc(33.333% - 1px),
      rgba(255, 255, 255, 0.5) calc(33.333% - 1px),
      rgba(255, 255, 255, 0.5) 33.333%
    );
}

.crop-box-label {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  z-index: 2;
}

.crop-handle {
  position: absolute;
  border: 0;
  background: transparent;
  pointer-events: auto;
  z-index: 3;
}

.crop-handle-n,
.crop-handle-s {
  left: 18px;
  right: 18px;
  height: 16px;
}

.crop-handle-w,
.crop-handle-e {
  top: 18px;
  bottom: 18px;
  width: 16px;
}

.crop-handle-n {
  top: -8px;
  cursor: ns-resize;
}

.crop-handle-s {
  bottom: -8px;
  cursor: ns-resize;
}

.crop-handle-w {
  left: -8px;
  cursor: ew-resize;
}

.crop-handle-e {
  right: -8px;
  cursor: ew-resize;
}

.crop-handle-n::before,
.crop-handle-s::before,
.crop-handle-w::before,
.crop-handle-e::before,
.crop-handle-nw::before,
.crop-handle-ne::before,
.crop-handle-sw::before,
.crop-handle-se::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #22c55e;
  border: 2px solid #fff;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.26);
}

.crop-handle-n::before,
.crop-handle-s::before {
  left: 50%;
  top: 50%;
  width: 38px;
  height: 8px;
  transform: translate(-50%, -50%);
}

.crop-handle-w::before,
.crop-handle-e::before {
  left: 50%;
  top: 50%;
  width: 8px;
  height: 38px;
  transform: translate(-50%, -50%);
}

.crop-handle-nw {
  width: 18px;
  height: 18px;
  top: -9px;
  left: -9px;
  cursor: nwse-resize;
}

.crop-handle-ne {
  width: 18px;
  height: 18px;
  top: -9px;
  right: -9px;
  cursor: nesw-resize;
}

.crop-handle-sw {
  width: 18px;
  height: 18px;
  bottom: -9px;
  left: -9px;
  cursor: nesw-resize;
}

.crop-handle-se {
  width: 18px;
  height: 18px;
  right: -9px;
  bottom: -9px;
  cursor: nwse-resize;
}

.preview-loader {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-radius: 22px;
  background: rgba(2, 6, 23, 0.6);
  backdrop-filter: blur(4px);
}

.loading-spinner {
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 2.5px solid rgba(16, 185, 129, 0.22);
  border-top-color: #10b981;
  animation: vaaprex-spin 0.78s linear infinite;
}

.loading-spinner-lg {
  width: 42px;
  height: 42px;
  border-width: 4px;
  border-top-color: #34d399;
  border-right-color: rgba(255, 255, 255, 0.55);
}

@keyframes vaaprex-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 640px) {
  .crop-box {
    border-radius: 16px;
  }

  .crop-box-label {
    top: 8px;
    left: 8px;
    font-size: 10px;
    padding: 5px 8px;
  }
}
