* { box-sizing: border-box; }
html, body { overflow-x: hidden; max-width: 100vw; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  color: #0f172a;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.10), transparent 24%),
    linear-gradient(180deg, #f8fbff 0%, #f5f7fb 48%, #eef4ff 100%);
}
nav {
  background: rgba(255,255,255,0.92);
  border-bottom: 1px solid #dbeafe;
  box-shadow: 0 8px 24px rgba(15,23,42,0.04);
  position: relative;
  z-index: 20;
  padding: 6px 12px;
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1380px;
  margin: 0 auto;
  padding: 8px 16px;
  min-height: 76px;
  gap: 14px;
}
.nav-brand { display: flex; align-items: center; }
.nav-logo {
  height: 72px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  display: block;
}
.nav-center{
  flex:1;
  text-align:center;
  font-weight:900;
  color:#0b1f4d;
  margin-left:8px;
  font-size:20px;
  padding:8px 12px;
  border-radius:999px;
  background:linear-gradient(135deg,#dbeafe 0%,#e0f2fe 45%,#ede9fe 100%);
  border:1px solid #bfdbfe;
  box-shadow:0 8px 20px rgba(59,130,246,0.12);
}
.nav-mobile-title { display:none; }
.nav-links{list-style:none;margin:0;padding:0;display:flex;gap:12px;align-items:center}
.nav-links li a{color:#0f172a;font-weight:700;padding:8px 10px;border-radius:8px;text-decoration:none}
.nav-links li a.active{background:linear-gradient(135deg,#e9e7ff,#e6f0ff);color:#2b2358}
.nav-toggle{display:none;background:transparent;border:none;cursor:pointer;padding:8px}
.nav-toggle span{display:block;width:20px;height:2px;background:#334155;border-radius:999px}
.nav-toggle span + span{margin-top:4px}
.page-divider {
  max-width: 1200px;
  margin: 0 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(191,219,254,0), rgba(191,219,254,0.95), rgba(191,219,254,0));
}
.page-wrap {
  max-width: 1320px;
  width: calc(100% - 24px);
  margin: 0 auto;
  padding: 8px 12px 18px;
}
.compact-intro {
  max-width: 1180px;
  margin: 0 auto 18px;
  padding: 0 16px;
  text-align: center;
}
.compact-intro-box {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.20), transparent 26%),
    radial-gradient(circle at bottom left, rgba(16, 185, 129, 0.12), transparent 24%),
    linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(240,247,255,0.98) 52%, rgba(236,253,245,0.96) 100%);
  border: 1px solid rgba(191, 219, 254, 0.95);
  border-radius: 32px;
  padding: 30px 34px 28px;
  box-shadow: 0 26px 64px rgba(37, 99, 235, 0.12);
}
.compact-intro-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.34), transparent 55%);
  pointer-events: none;
}
.compact-intro-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(191, 219, 254, 0.98);
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.2px;
  box-shadow: 0 12px 28px rgba(59, 130, 246, 0.14);
  position: relative;
  z-index: 1;
}
.compact-intro-flow-title {
  margin: 8px 0 4px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.02;
  letter-spacing: -1.3px;
  color: #0f172a;
  font-weight: 900;
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 0 rgba(255,255,255,0.45);
}
.compact-intro p {
  margin: 0 auto;
  max-width: 650px;
  font-size: 14px;
  line-height: 1.5;
  color: #52627b;
  font-weight: 600;
  position: relative;
  z-index: 1;
}
.compact-intro-keywords {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  position: relative;
  z-index: 1;
}
.compact-intro-keywords a,
.compact-intro-keywords span,
.keyword-pill {
  display: inline;
  color: #334155;
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  min-width: 0;
  text-align: left;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.7;
  box-shadow: none;
  text-decoration: none;
  pointer-events: none;
  cursor: default;
}
.tool-stage {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(248,251,255,0.98) 100%);
  border: 1px solid rgba(191,219,254,0.72);
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(37,99,235,0.10);
}
.tool-shell {
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(248,251,255,0.98) 100%);
  border: 1px solid rgba(191,219,254,0.72);
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(37,99,235,0.10);
  padding: 12px;
}
.upload-card {
  max-width: 760px;
  margin: 0 auto;
  border-radius: 24px;
  padding: 10px;
}
.panel-pill {
  display: inline-block;
  background: linear-gradient(135deg,#e0f2fe,#dbeafe);
  color: #2b59d9;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
  padding: 7px 14px;
  margin-bottom: 8px;
}
.preview-frame {
  background: linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);
  border: 1px solid rgba(191,219,254,0.72);
  border-radius: 28px;
  box-shadow: 0 24px 54px rgba(37,99,235,0.10);
  padding: 20px 26px 22px;
  text-align: center;
}
.preview-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #4f46e5;
  font-weight: 900;
  font-size: 15px;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}
.preview-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.04;
  letter-spacing: -1.2px;
  color: #0f172a;
  font-weight: 900;
}
.preview-copy {
  margin: 10px auto 0;
  max-width: 580px;
  color: #52627b;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 600;
}
.cta {
  display: inline;
  color: #1d4ed8;
  text-decoration: none;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  font-weight: 900;
  font-size: 16px;
  background: none;
  border: 0;
  box-shadow: none;
}
.cta:hover { color: #0f3fbf; }
@media (max-width: 900px) {
  .nav-container { gap: 8px; position:relative; }
  .nav-center { display:none; }
  .nav-mobile-title { display:block; font-weight:900; color:#0b1f4d; font-size:15px; }
  .nav-links { display:none; }
  .nav-links.active {
    display:flex;
    flex-direction:column;
    position:absolute;
    right:16px;
    top:calc(100% + 8px);
    background:rgba(255,255,255,0.98);
    border:1px solid #dbeafe;
    border-radius:16px;
    box-shadow:0 18px 36px rgba(15,23,42,0.12);
    padding:12px;
    z-index:40;
    min-width:180px;
  }
  .nav-links.active li { width:100%; }
  .nav-links.active li a { display:block; width:100%; }
  .nav-toggle { display:block; }
  .nav-logo { height: 56px; }
  .compact-intro-box { padding: 22px 18px 18px; border-radius: 24px; }
  .preview-frame { padding: 18px 16px 18px; }
  .cta { width: auto; min-width: 0; }
}
