:root {
  --bg-a: #eef4ff;
  --bg-b: #f8fbff;
  --panel: #ffffff;
  --line: #d7e3f4;
  --text: #12213f;
  --muted: #64748b;
  --accent: #4f46e5;
  --accent-strong: #2f6fff;
  --danger: #b42318;
  --success: #0f9d58;
  --chip: #eef4ff;
  --shadow: rgb(17 30 68 / 14%);
  font-family: "Noto Sans SC", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, #f4f8ff 0%, #ffffff 40%, #f7faff 100%);
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgb(11 18 44 / 88%);
  backdrop-filter: blur(10px);
}

.nav-shell {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.1rem;
}

.brand-icon {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #6ea8ff, #7c4dff);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  color: rgb(255 255 255 / 86%);
  text-decoration: none;
  font-size: 0.96rem;
}

.nav-links a:hover {
  color: #fff;
}

.main-content {
  padding-bottom: 56px;
}

.hero-section {
  position: relative;
  overflow: hidden;
  padding: 92px 0 72px;
  background: linear-gradient(135deg, #11193d 0%, #2a4fd7 55%, #57a0ff 100%);
  color: #fff;
}

.hero-section::before,
.hero-section::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.35;
}

.hero-section::before {
  width: 340px;
  height: 340px;
  background: #7cc7ff;
  top: -120px;
  right: -60px;
}

.hero-section::after {
  width: 280px;
  height: 280px;
  background: #8f7cff;
  bottom: -120px;
  left: -60px;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 32px;
  align-items: center;
}

.hero-copy h1 {
  margin: 0 0 20px;
  font-size: clamp(2.2rem, 5vw, 4.25rem);
  line-height: 1.08;
}

.hero-text {
  margin: 0 0 32px;
  max-width: 660px;
  font-size: 1.06rem;
  line-height: 1.8;
  color: rgb(255 255 255 / 86%);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.mobile-link-actions {
  display: none;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.mobile-action-btn {
  min-height: 48px;
  padding: 0 20px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 26px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.hero-btn:hover {
  transform: translateY(-1px);
}

.hero-btn.primary {
  color: #172554;
  background: #fff;
  box-shadow: 0 14px 28px rgb(11 18 44 / 20%);
}

.hero-btn.secondary {
  color: #fff;
  border: 1px solid rgb(255 255 255 / 30%);
  background: rgb(255 255 255 / 10%);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-icon {
  width: min(360px, 100%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 28px;
  background: linear-gradient(180deg, rgb(255 255 255 / 20%), rgb(255 255 255 / 8%));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 28%), 0 24px 48px rgb(6 12 34 / 22%);
  font-size: clamp(5rem, 10vw, 8rem);
}

.qr-panel {
  padding: 24px;
  grid-auto-rows: min-content;
  gap: 14px;
  justify-items: center;
}

.qr-title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.site-qr {
  width: min(220px, 72%);
  aspect-ratio: 1;
  border-radius: 18px;
  padding: 10px;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 14px 28px rgb(11 18 44 / 18%);
}

.site-url {
  max-width: 100%;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgb(255 255 255 / 12%);
  color: rgb(255 255 255 / 88%);
  font-size: 0.9rem;
  word-break: break-all;
  text-align: center;
}

.upload-section,
.features-section,
.about-section {
  padding-top: 64px;
}

.upload-card,
.feature-item,
.about-grid {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px var(--shadow);
}

.upload-card {
  border-radius: 28px;
  padding: 28px;
}

.section-head {
  margin-bottom: 22px;
}

.section-head h2,
.section-title-block h2,
.about-copy h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.section-head h2 {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-head h2 i {
  color: var(--accent);
}

.section-head p,
.section-title-block p,
.about-copy p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.form {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

.small-field {
  font-size: 0.96rem;
}

.upload-zone {
  position: relative;
  padding: 28px;
  border: 2px dashed #bfd3f4;
  border-radius: 24px;
  background: linear-gradient(180deg, #f9fbff, #f3f7ff);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.upload-zone:hover {
  transform: translateY(-1px);
  border-color: #8eb6ff;
  box-shadow: 0 18px 34px rgb(47 111 255 / 12%);
}

.upload-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 30px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #e6efff;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.upload-title {
  font-size: 1.32rem;
  font-weight: 800;
}

.upload-hint {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.7;
}

.upload-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 16px 30px rgb(79 70 229 / 22%);
}

input[type="file"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #c8d8ef;
  border-radius: 14px;
  background: #fff;
  font-weight: 600;
}

input[type="number"] {
  width: 100%;
}

input[type="number"] {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  background: #fbfffc;
}

select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: #fff;
  color: var(--text);
}

.preview-wrap {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 16px;
  background: linear-gradient(180deg, #fbfdff, #f4f8ff);
}

.preview-video {
  width: 100%;
  border-radius: 18px;
  background: #111;
  max-height: 360px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.88rem;
  color: #35507f;
  background: var(--chip);
}

.clip-card {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  background: linear-gradient(180deg, #ffffff, #f6f9ff);
}

.toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.inline-options {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
}

.segment-controls {
  display: grid;
  gap: 14px;
  transition: opacity 180ms ease;
}

.segment-controls.disabled {
  opacity: 0.45;
}

.output-grid {
  margin-top: 2px;
}

.range-values {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.time-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.dual-slider {
  position: relative;
  height: 54px;
}

.slider-track,
.slider-fill {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 8px;
  border-radius: 999px;
}

.slider-track {
  width: 100%;
  background: #dde7f8;
}

.slider-fill {
  left: 0;
  width: 0;
  background: linear-gradient(90deg, #73a8ff, var(--accent-strong));
}

.thumb {
  position: absolute;
  left: 0;
  top: 9px;
  width: 100%;
  height: 36px;
  margin: 0;
  appearance: none;
  pointer-events: none;
  background: transparent;
}

.drag-tip {
  position: absolute;
  top: -6px;
  transform: translateX(-50%);
  min-width: 66px;
  padding: 4px 8px;
  border-radius: 999px;
  text-align: center;
  font-size: 0.78rem;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 4px 12px rgb(16 40 74 / 24%);
  pointer-events: none;
}

.estimate-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: #f5f9ff;
}

.estimate-item {
  font-size: 0.92rem;
  color: var(--muted);
}

.estimate-item strong {
  color: var(--text);
}

.thumb::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--accent);
  box-shadow: 0 4px 14px rgb(0 0 0 / 18%);
  pointer-events: auto;
  cursor: pointer;
}

.thumb::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--accent);
  box-shadow: 0 4px 14px rgb(0 0 0 / 18%);
  pointer-events: auto;
  cursor: pointer;
}

.thumb::-webkit-slider-runnable-track,
.thumb::-moz-range-track {
  background: transparent;
  border: none;
}

.hidden {
  display: none;
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  padding: 16px 24px;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
  box-shadow: 0 18px 34px rgb(79 70 229 / 26%);
}

.submit-btn:hover {
  transform: translateY(-1px);
}

.submit-btn:active {
  transform: translateY(0);
}

.submit-btn:disabled {
  cursor: wait;
  background: linear-gradient(135deg, #6e79c9, #7190d9);
  opacity: 0.85;
}

.status {
  margin-top: 18px;
  min-height: 30px;
  color: var(--muted);
  font-size: 0.95rem;
}

.status.error {
  color: var(--danger);
}

.status.success {
  color: var(--success);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 60;
  min-width: min(92vw, 320px);
  max-width: min(92vw, 420px);
  padding: 14px 18px;
  border-radius: 16px;
  transform: translateX(-50%);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 18px 40px rgb(17 30 68 / 24%);
  animation: toast-in 180ms ease-out;
}

.toast.success {
  background: linear-gradient(135deg, #0f9d58, #24b36b);
}

.toast.error {
  background: linear-gradient(135deg, #c0342b, #e25247);
}

.toast.info {
  background: linear-gradient(135deg, #3f51b5, #5c6ee8);
}

.section-title-block {
  text-align: center;
  margin-bottom: 28px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.feature-item {
  border-radius: 22px;
  padding: 24px;
}

.feature-icon,
.about-visual {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #edf2ff, #dae8ff);
  color: var(--accent);
  font-size: 1.5rem;
}

.feature-item h3 {
  margin: 18px 0 10px;
  font-size: 1.14rem;
}

.feature-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  gap: 28px;
  align-items: center;
  border-radius: 28px;
  padding: 28px;
}

.about-visual {
  width: 100%;
  min-height: 260px;
  border-radius: 26px;
  font-size: clamp(4rem, 8vw, 6rem);
  background: linear-gradient(135deg, #eaf0ff, #dce9ff);
}

.about-list {
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.9;
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 20px, 1120px);
  }

  .nav-shell {
    min-height: 64px;
  }

  .nav-links {
    display: none;
  }

  .hero-section {
    padding: 68px 0 48px;
  }

  .upload-card,
  .about-grid {
    padding: 18px;
    border-radius: 18px;
  }

  .hero-copy h1 {
    font-size: 2rem;
  }

  .hero-actions {
    display: none;
  }

  .mobile-link-actions {
    display: flex;
  }

  .mobile-action-btn {
    flex: 1 1 100%;
    width: 100%;
  }

  .qr-panel {
    padding: 20px;
  }

  .site-qr {
    width: min(210px, 78%);
  }

  .preview-video {
    max-height: 240px;
  }

  .inline-options {
    gap: 12px;
  }

  .time-grid {
    grid-template-columns: 1fr;
  }

  .submit-btn {
    min-height: 46px;
    width: 100%;
  }

  .upload-zone {
    padding: 20px;
  }

  .upload-title {
    font-size: 1.14rem;
  }

  .upload-cta {
    width: 100%;
  }

  .drag-tip {
    min-width: 58px;
    font-size: 0.74rem;
  }

  .toast {
    bottom: 16px;
    padding: 13px 16px;
    font-size: 0.92rem;
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .about-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    display: none;
  }
}

@media (min-width: 901px) {
  .hero-visual {
    display: flex;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}
